variables.rst 420 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837
  1. .. SPDX-License-Identifier: CC-BY-SA-2.0-UK
  2. ******************
  3. Variables Glossary
  4. ******************
  5. This chapter lists common variables used in the OpenEmbedded build
  6. system and gives an overview of their function and contents.
  7. :term:`A <ABIEXTENSION>` :term:`B` :term:`C <CACHE>`
  8. :term:`D` :term:`E <EFI_PROVIDER>` :term:`F <FEATURE_PACKAGES>`
  9. :term:`G <GCCPIE>` :term:`H <HOMEPAGE>` :term:`I <ICECC_DISABLED>`
  10. :term:`K <KARCH>` :term:`L <LABELS>` :term:`M <MACHINE>`
  11. :term:`N <NATIVELSBSTRING>` :term:`O <OBJCOPY>` :term:`P`
  12. :term:`R <RANLIB>` :term:`S` :term:`T`
  13. :term:`U <UBOOT_CONFIG>` :term:`V <VOLATILE_LOG_DIR>`
  14. :term:`W <WARN_QA>` :term:`X <XSERVER>`
  15. .. glossary::
  16. :sorted:
  17. :term:`ABIEXTENSION`
  18. Extension to the Application Binary Interface (ABI) field of the GNU
  19. canonical architecture name (e.g. "eabi").
  20. ABI extensions are set in the machine include files. For example, the
  21. ``meta/conf/machine/include/arm/arch-arm.inc`` file sets the
  22. following extension::
  23. ABIEXTENSION = "eabi"
  24. :term:`ALLOW_EMPTY`
  25. Specifies whether to produce an output package even if it is empty.
  26. By default, BitBake does not produce empty packages. This default
  27. behavior can cause issues when there is an
  28. :term:`RDEPENDS` or some other hard runtime
  29. requirement on the existence of the package.
  30. Like all package-controlling variables, you must always use them in
  31. conjunction with a package name override, as in::
  32. ALLOW_EMPTY:${PN} = "1"
  33. ALLOW_EMPTY:${PN}-dev = "1"
  34. ALLOW_EMPTY:${PN}-staticdev = "1"
  35. :term:`ALTERNATIVE`
  36. Lists commands in a package that need an alternative binary naming
  37. scheme. Sometimes the same command is provided in multiple packages.
  38. When this occurs, the OpenEmbedded build system needs to use the
  39. alternatives system to create a different binary naming scheme so the
  40. commands can co-exist.
  41. To use the variable, list out the package's commands that are also
  42. provided by another package. For example, if the ``busybox`` package
  43. has four such commands, you identify them as follows::
  44. ALTERNATIVE:busybox = "sh sed test bracket"
  45. For more information on the alternatives system, see the
  46. ":ref:`ref-classes-update-alternatives`"
  47. section.
  48. :term:`ALTERNATIVE_LINK_NAME`
  49. Used by the alternatives system to map duplicated commands to actual
  50. locations. For example, if the ``bracket`` command provided by the
  51. ``busybox`` package is duplicated through another package, you must
  52. use the :term:`ALTERNATIVE_LINK_NAME` variable to specify the actual
  53. location::
  54. ALTERNATIVE_LINK_NAME[bracket] = "/usr/bin/["
  55. In this example, the binary for the ``bracket`` command (i.e. ``[``)
  56. from the ``busybox`` package resides in ``/usr/bin/``.
  57. .. note::
  58. If :term:`ALTERNATIVE_LINK_NAME` is not defined, it defaults to ``${bindir}/name``.
  59. For more information on the alternatives system, see the
  60. ":ref:`ref-classes-update-alternatives`"
  61. section.
  62. :term:`ALTERNATIVE_PRIORITY`
  63. Used by the alternatives system to create default priorities for
  64. duplicated commands. You can use the variable to create a single
  65. default regardless of the command name or package, a default for
  66. specific duplicated commands regardless of the package, or a default
  67. for specific commands tied to particular packages. Here are the
  68. available syntax forms::
  69. ALTERNATIVE_PRIORITY = "priority"
  70. ALTERNATIVE_PRIORITY[name] = "priority"
  71. ALTERNATIVE_PRIORITY_pkg[name] = "priority"
  72. For more information on the alternatives system, see the
  73. ":ref:`ref-classes-update-alternatives`"
  74. section.
  75. :term:`ALTERNATIVE_TARGET`
  76. Used by the alternatives system to create default link locations for
  77. duplicated commands. You can use the variable to create a single
  78. default location for all duplicated commands regardless of the
  79. command name or package, a default for specific duplicated commands
  80. regardless of the package, or a default for specific commands tied to
  81. particular packages. Here are the available syntax forms::
  82. ALTERNATIVE_TARGET = "target"
  83. ALTERNATIVE_TARGET[name] = "target"
  84. ALTERNATIVE_TARGET_pkg[name] = "target"
  85. .. note::
  86. If :term:`ALTERNATIVE_TARGET` is not defined, it inherits the value
  87. from the :term:`ALTERNATIVE_LINK_NAME` variable.
  88. If :term:`ALTERNATIVE_LINK_NAME` and :term:`ALTERNATIVE_TARGET` are the
  89. same, the target for :term:`ALTERNATIVE_TARGET` has "``.{BPN}``"
  90. appended to it.
  91. Finally, if the file referenced has not been renamed, the
  92. alternatives system will rename it to avoid the need to rename
  93. alternative files in the :ref:`ref-tasks-install`
  94. task while retaining support for the command if necessary.
  95. For more information on the alternatives system, see the
  96. ":ref:`ref-classes-update-alternatives`" section.
  97. :term:`ANY_OF_DISTRO_FEATURES`
  98. When inheriting the :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:`AUTHOR`
  150. The email address used to contact the original author or authors in
  151. order to send patches and forward bugs.
  152. :term:`AUTO_LIBNAME_PKGS`
  153. When the :ref:`ref-classes-debian` class is inherited,
  154. which is the default behavior, :term:`AUTO_LIBNAME_PKGS` specifies which
  155. packages should be checked for libraries and renamed according to
  156. Debian library package naming.
  157. The default value is "${PACKAGES}", which causes the
  158. :ref:`ref-classes-debian` class to act on all packages that are
  159. explicitly generated by the recipe.
  160. :term:`AUTOREV`
  161. When :term:`SRCREV` is set to the value of this variable, it specifies to
  162. use the latest source revision in the repository. Here is an example::
  163. SRCREV = "${AUTOREV}"
  164. If you use the previous statement to retrieve the latest version of
  165. software, you need to be sure :term:`PV` contains
  166. ``${``\ :term:`SRCPV`\ ``}``. For example, suppose you have a kernel
  167. recipe that inherits the :ref:`ref-classes-kernel` class and you
  168. use the previous statement. In this example, ``${SRCPV}`` does not
  169. automatically get into :term:`PV`. Consequently, you need to change
  170. :term:`PV` in your recipe so that it does contain ``${SRCPV}``.
  171. For more information see the
  172. ":ref:`dev-manual/packages:automatically incrementing a package version number`"
  173. section in the Yocto Project Development Tasks Manual.
  174. :term:`AUTO_SYSLINUXMENU`
  175. Enables creating an automatic menu for the syslinux bootloader. You
  176. must set this variable in your recipe. The
  177. :ref:`ref-classes-syslinux` class checks this variable.
  178. :term:`AVAILTUNES`
  179. The list of defined CPU and Application Binary Interface (ABI)
  180. tunings (i.e. "tunes") available for use by the OpenEmbedded build
  181. system.
  182. The list simply presents the tunes that are available. Not all tunes
  183. may be compatible with a particular machine configuration, or with
  184. each other in a
  185. :ref:`Multilib <dev-manual/libraries:combining multiple versions of library files into one image>`
  186. configuration.
  187. To add a tune to the list, be sure to append it with spaces using the
  188. "+=" BitBake operator. Do not simply replace the list by using the
  189. "=" operator. See the
  190. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:basic syntax`" section in the BitBake
  191. User Manual for more information.
  192. :term:`AZ_SAS`
  193. Azure Storage Shared Access Signature, when using the
  194. :ref:`Azure Storage fetcher (az://) <bitbake-user-manual/bitbake-user-manual-fetching:fetchers>`
  195. This variable can be defined to be used by the fetcher to authenticate
  196. and gain access to non-public artifacts::
  197. AZ_SAS = ""se=2021-01-01&sp=r&sv=2018-11-09&sr=c&skoid=<skoid>&sig=<signature>""
  198. For more information see Microsoft's Azure Storage documentation at
  199. https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview
  200. :term:`B`
  201. The directory within the :term:`Build Directory` in which the
  202. OpenEmbedded build system places generated objects during a recipe's
  203. build process. By default, this directory is the same as the
  204. :term:`S` directory, which is defined as::
  205. S = "${WORKDIR}/${BP}"
  206. You can separate the (:term:`S`) directory and the directory pointed to
  207. by the :term:`B` variable. Most Autotools-based recipes support
  208. separating these directories. The build system defaults to using
  209. separate directories for ``gcc`` and some kernel recipes.
  210. :term:`BAD_RECOMMENDATIONS`
  211. Lists "recommended-only" packages to not install. Recommended-only
  212. packages are packages installed only through the
  213. :term:`RRECOMMENDS` variable. You can prevent any
  214. of these "recommended" packages from being installed by listing them
  215. with the :term:`BAD_RECOMMENDATIONS` variable::
  216. BAD_RECOMMENDATIONS = "package_name package_name package_name ..."
  217. You can set this variable globally in your ``local.conf`` file or you
  218. can attach it to a specific image recipe by using the recipe name
  219. override::
  220. BAD_RECOMMENDATIONS:pn-target_image = "package_name"
  221. It is important to realize that if you choose to not install packages
  222. using this variable and some other packages are dependent on them
  223. (i.e. listed in a recipe's :term:`RDEPENDS`
  224. variable), the OpenEmbedded build system ignores your request and
  225. will install the packages to avoid dependency errors.
  226. This variable is supported only when using the IPK and RPM
  227. packaging backends. DEB is not supported.
  228. See the :term:`NO_RECOMMENDATIONS` and the
  229. :term:`PACKAGE_EXCLUDE` variables for related
  230. information.
  231. :term:`BASE_LIB`
  232. The library directory name for the CPU or Application Binary
  233. Interface (ABI) tune. The :term:`BASE_LIB` applies only in the Multilib
  234. context. See the ":ref:`dev-manual/libraries:combining multiple versions of library files into one image`"
  235. section in the Yocto Project Development Tasks Manual for information
  236. on Multilib.
  237. The :term:`BASE_LIB` variable is defined in the machine include files in
  238. the :term:`Source Directory`. If Multilib is not
  239. being used, the value defaults to "lib".
  240. :term:`BASE_WORKDIR`
  241. Points to the base of the work directory for all recipes. The default
  242. value is "${TMPDIR}/work".
  243. :term:`BB_ALLOWED_NETWORKS`
  244. Specifies a space-delimited list of hosts that the fetcher is allowed
  245. to use to obtain the required source code. Following are
  246. considerations surrounding this variable:
  247. - This host list is only used if :term:`BB_NO_NETWORK` is either not set
  248. or set to "0".
  249. - There is limited support for wildcard matching against the beginning of
  250. host names. For example, the following setting matches
  251. ``git.gnu.org``, ``ftp.gnu.org``, and ``foo.git.gnu.org``::
  252. BB_ALLOWED_NETWORKS = "*.gnu.org"
  253. .. note::
  254. The use of the "``*``" character only works at the beginning of
  255. a host name and it must be isolated from the remainder of the
  256. host name. You cannot use the wildcard character in any other
  257. location of the name or combined with the front part of the
  258. name.
  259. For example, ``*.foo.bar`` is supported, while ``*aa.foo.bar``
  260. is not.
  261. - Mirrors not in the host list are skipped and logged in debug.
  262. - Attempts to access networks not in the host list cause a failure.
  263. Using :term:`BB_ALLOWED_NETWORKS` in conjunction with
  264. :term:`PREMIRRORS` is very useful. Adding the host
  265. you want to use to :term:`PREMIRRORS` results in the source code being
  266. fetched from an allowed location and avoids raising an error when a
  267. host that is not allowed is in a :term:`SRC_URI`
  268. statement. This is because the fetcher does not attempt to use the
  269. host listed in :term:`SRC_URI` after a successful fetch from the
  270. :term:`PREMIRRORS` occurs.
  271. :term:`BB_BASEHASH_IGNORE_VARS`
  272. See :term:`bitbake:BB_BASEHASH_IGNORE_VARS` in the BitBake manual.
  273. :term:`BB_CACHEDIR`
  274. See :term:`bitbake:BB_CACHEDIR` in the BitBake manual.
  275. :term:`BB_CHECK_SSL_CERTS`
  276. See :term:`bitbake:BB_CHECK_SSL_CERTS` in the BitBake manual.
  277. :term:`BB_CONSOLELOG`
  278. See :term:`bitbake:BB_CONSOLELOG` in the BitBake manual.
  279. :term:`BB_CURRENTTASK`
  280. See :term:`bitbake:BB_CURRENTTASK` in the BitBake manual.
  281. :term:`BB_DANGLINGAPPENDS_WARNONLY`
  282. Defines how BitBake handles situations where an append file
  283. (``.bbappend``) has no corresponding recipe file (``.bb``). This
  284. condition often occurs when layers get out of sync (e.g. ``oe-core``
  285. bumps a recipe version and the old recipe no longer exists and the
  286. other layer has not been updated to the new version of the recipe
  287. yet).
  288. The default fatal behavior is safest because it is the sane reaction
  289. given something is out of sync. It is important to realize when your
  290. changes are no longer being applied.
  291. You can change the default behavior by setting this variable to "1",
  292. "yes", or "true" in your ``local.conf`` file, which is located in the
  293. :term:`Build Directory`: Here is an example::
  294. BB_DANGLINGAPPENDS_WARNONLY = "1"
  295. :term:`BB_DEFAULT_TASK`
  296. See :term:`bitbake:BB_DEFAULT_TASK` in the BitBake manual.
  297. :term:`BB_DEFAULT_UMASK`
  298. See :term:`bitbake:BB_DEFAULT_UMASK` in the BitBake manual.
  299. :term:`BB_DISKMON_DIRS`
  300. Monitors disk space and available inodes during the build and allows
  301. you to control the build based on these parameters.
  302. Disk space monitoring is disabled by default. To enable monitoring,
  303. add the :term:`BB_DISKMON_DIRS` variable to your ``conf/local.conf`` file
  304. found in the :term:`Build Directory`. Use the
  305. following form:
  306. .. code-block:: none
  307. BB_DISKMON_DIRS = "action,dir,threshold [...]"
  308. where:
  309. action is:
  310. ABORT: Immediately stop the build when
  311. a threshold is broken.
  312. STOPTASKS: Stop the build after the currently
  313. executing tasks have finished when
  314. a threshold is broken.
  315. WARN: Issue a warning but continue the
  316. build when a threshold is broken.
  317. Subsequent warnings are issued as
  318. defined by the BB_DISKMON_WARNINTERVAL
  319. variable, which must be defined in
  320. the conf/local.conf file.
  321. dir is:
  322. Any directory you choose. You can specify one or
  323. more directories to monitor by separating the
  324. groupings with a space. If two directories are
  325. on the same device, only the first directory
  326. is monitored.
  327. threshold is:
  328. Either the minimum available disk space,
  329. the minimum number of free inodes, or
  330. both. You must specify at least one. To
  331. omit one or the other, simply omit the value.
  332. Specify the threshold using G, M, K for Gbytes,
  333. Mbytes, and Kbytes, respectively. If you do
  334. not specify G, M, or K, Kbytes is assumed by
  335. default. Do not use GB, MB, or KB.
  336. Here are some examples::
  337. BB_DISKMON_DIRS = "ABORT,${TMPDIR},1G,100K WARN,${SSTATE_DIR},1G,100K"
  338. BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},1G"
  339. BB_DISKMON_DIRS = "ABORT,${TMPDIR},,100K"
  340. The first example works only if you also provide the
  341. :term:`BB_DISKMON_WARNINTERVAL`
  342. variable in the ``conf/local.conf``. This example causes the build
  343. system to immediately stop when either the disk space in
  344. ``${TMPDIR}`` drops below 1 Gbyte or the available free inodes drops
  345. below 100 Kbytes. Because two directories are provided with the
  346. variable, the build system also issue a warning when the disk space
  347. in the ``${SSTATE_DIR}`` directory drops below 1 Gbyte or the number
  348. of free inodes drops below 100 Kbytes. Subsequent warnings are issued
  349. during intervals as defined by the :term:`BB_DISKMON_WARNINTERVAL`
  350. variable.
  351. The second example stops the build after all currently executing
  352. tasks complete when the minimum disk space in the ``${TMPDIR}``
  353. directory drops below 1 Gbyte. No disk monitoring occurs for the free
  354. inodes in this case.
  355. The final example immediately stops the build when the number of
  356. free inodes in the ``${TMPDIR}`` directory drops below 100 Kbytes. No
  357. disk space monitoring for the directory itself occurs in this case.
  358. :term:`BB_DISKMON_WARNINTERVAL`
  359. Defines the disk space and free inode warning intervals. To set these
  360. intervals, define the variable in your ``conf/local.conf`` file in
  361. the :term:`Build Directory`.
  362. If you are going to use the :term:`BB_DISKMON_WARNINTERVAL` variable, you
  363. must also use the :term:`BB_DISKMON_DIRS`
  364. variable and define its action as "WARN". During the build,
  365. subsequent warnings are issued each time disk space or number of free
  366. inodes further reduces by the respective interval.
  367. If you do not provide a :term:`BB_DISKMON_WARNINTERVAL` variable and you
  368. do use :term:`BB_DISKMON_DIRS` with the "WARN" action, the disk
  369. monitoring interval defaults to the following::
  370. BB_DISKMON_WARNINTERVAL = "50M,5K"
  371. When specifying the variable in your configuration file, use the
  372. following form:
  373. .. code-block:: none
  374. BB_DISKMON_WARNINTERVAL = "disk_space_interval,disk_inode_interval"
  375. where:
  376. disk_space_interval is:
  377. An interval of memory expressed in either
  378. G, M, or K for Gbytes, Mbytes, or Kbytes,
  379. respectively. You cannot use GB, MB, or KB.
  380. disk_inode_interval is:
  381. An interval of free inodes expressed in either
  382. G, M, or K for Gbytes, Mbytes, or Kbytes,
  383. respectively. You cannot use GB, MB, or KB.
  384. Here is an example::
  385. BB_DISKMON_DIRS = "WARN,${SSTATE_DIR},1G,100K"
  386. BB_DISKMON_WARNINTERVAL = "50M,5K"
  387. These variables cause the
  388. OpenEmbedded build system to issue subsequent warnings each time the
  389. available disk space further reduces by 50 Mbytes or the number of
  390. free inodes further reduces by 5 Kbytes in the ``${SSTATE_DIR}``
  391. directory. Subsequent warnings based on the interval occur each time
  392. a respective interval is reached beyond the initial warning (i.e. 1
  393. Gbytes and 100 Kbytes).
  394. :term:`BB_ENV_PASSTHROUGH`
  395. See :term:`bitbake:BB_ENV_PASSTHROUGH` in the BitBake manual.
  396. :term:`BB_ENV_PASSTHROUGH_ADDITIONS`
  397. See :term:`bitbake:BB_ENV_PASSTHROUGH_ADDITIONS` in the BitBake manual.
  398. :term:`BB_FETCH_PREMIRRORONLY`
  399. See :term:`bitbake:BB_FETCH_PREMIRRORONLY` in the BitBake manual.
  400. :term:`BB_FILENAME`
  401. See :term:`bitbake:BB_FILENAME` in the BitBake manual.
  402. :term:`BB_GENERATE_MIRROR_TARBALLS`
  403. Causes tarballs of the source control repositories (e.g. Git
  404. repositories), including metadata, to be placed in the
  405. :term:`DL_DIR` directory.
  406. For performance reasons, creating and placing tarballs of these
  407. repositories is not the default action by the OpenEmbedded build
  408. system::
  409. BB_GENERATE_MIRROR_TARBALLS = "1"
  410. Set this variable in your
  411. ``local.conf`` file in the :term:`Build Directory`.
  412. Once you have the tarballs containing your source files, you can
  413. clean up your :term:`DL_DIR` directory by deleting any Git or other
  414. source control work directories.
  415. :term:`BB_GENERATE_SHALLOW_TARBALLS`
  416. See :term:`bitbake:BB_GENERATE_SHALLOW_TARBALLS` in the BitBake manual.
  417. :term:`BB_GIT_SHALLOW`
  418. See :term:`bitbake:BB_GIT_SHALLOW` in the BitBake manual.
  419. :term:`BB_GIT_SHALLOW_DEPTH`
  420. See :term:`bitbake:BB_GIT_SHALLOW_DEPTH` in the BitBake manual.
  421. :term:`BB_HASHCHECK_FUNCTION`
  422. See :term:`bitbake:BB_HASHCHECK_FUNCTION` in the BitBake manual.
  423. :term:`BB_HASHCONFIG_IGNORE_VARS`
  424. See :term:`bitbake:BB_HASHCONFIG_IGNORE_VARS` in the BitBake manual.
  425. :term:`BB_HASHSERVE`
  426. See :term:`bitbake:BB_HASHSERVE` in the BitBake manual.
  427. :term:`BB_HASHSERVE_UPSTREAM`
  428. See :term:`bitbake:BB_HASHSERVE_UPSTREAM` in the BitBake manual.
  429. :term:`BB_INVALIDCONF`
  430. See :term:`bitbake:BB_INVALIDCONF` in the BitBake manual.
  431. :term:`BB_LOGCONFIG`
  432. See :term:`bitbake:BB_LOGCONFIG` in the BitBake manual.
  433. :term:`BB_LOGFMT`
  434. See :term:`bitbake:BB_LOGFMT` in the BitBake manual.
  435. :term:`BB_MULTI_PROVIDER_ALLOWED`
  436. See :term:`bitbake:BB_MULTI_PROVIDER_ALLOWED` in the BitBake manual.
  437. :term:`BB_NICE_LEVEL`
  438. See :term:`bitbake:BB_NICE_LEVEL` in the BitBake manual.
  439. :term:`BB_NO_NETWORK`
  440. See :term:`bitbake:BB_NO_NETWORK` in the BitBake manual.
  441. :term:`BB_NUMBER_PARSE_THREADS`
  442. See :term:`bitbake:BB_NUMBER_PARSE_THREADS` in the BitBake manual.
  443. :term:`BB_NUMBER_THREADS`
  444. The maximum number of tasks BitBake should run in parallel at any one
  445. time. The OpenEmbedded build system automatically configures this
  446. variable to be equal to the number of cores on the build system. For
  447. example, a system with a dual core processor that also uses
  448. hyper-threading causes the :term:`BB_NUMBER_THREADS` variable to default
  449. to "4".
  450. For single socket systems (i.e. one CPU), you should not have to
  451. override this variable to gain optimal parallelism during builds.
  452. However, if you have very large systems that employ multiple physical
  453. CPUs, you might want to make sure the :term:`BB_NUMBER_THREADS` variable
  454. is not set higher than "20".
  455. For more information on speeding up builds, see the
  456. ":ref:`dev-manual/speeding-up-build:speeding up a build`"
  457. section in the Yocto Project Development Tasks Manual.
  458. On the other hand, if your goal is to limit the amount of system
  459. resources consumed by BitBake tasks, setting :term:`BB_NUMBER_THREADS`
  460. to a number lower than the number of CPU threads in your machine
  461. won't be sufficient. That's because each package will still be built
  462. and installed through a number of parallel jobs specified by the
  463. :term:`PARALLEL_MAKE` variable, which is by default the number of CPU
  464. threads in your system, and is not impacted by the
  465. :term:`BB_NUMBER_THREADS` value.
  466. So, if you set :term:`BB_NUMBER_THREADS` to "1" but don't set
  467. :term:`PARALLEL_MAKE`, most of your system resources will be consumed
  468. anyway.
  469. Therefore, if you intend to reduce the load of your build system by
  470. setting :term:`BB_NUMBER_THREADS` to a relatively low value compared
  471. to the number of CPU threads on your system, you should also set
  472. :term:`PARALLEL_MAKE` to a similarly low value.
  473. An alternative to using :term:`BB_NUMBER_THREADS` to keep the usage
  474. of build system resources under control is to use the smarter
  475. :term:`BB_PRESSURE_MAX_CPU`, :term:`BB_PRESSURE_MAX_IO` or
  476. :term:`BB_PRESSURE_MAX_MEMORY` controls. They will prevent BitBake
  477. from starting new tasks as long as thresholds are exceeded. Anyway,
  478. as with :term:`BB_NUMBER_THREADS`, such controls won't prevent the
  479. tasks already being run from using all CPU threads on the system
  480. if :term:`PARALLEL_MAKE` is not set to a low value.
  481. :term:`BB_ORIGENV`
  482. See :term:`bitbake:BB_ORIGENV` in the BitBake manual.
  483. :term:`BB_PRESERVE_ENV`
  484. See :term:`bitbake:BB_PRESERVE_ENV` in the BitBake manual.
  485. :term:`BB_PRESSURE_MAX_CPU`
  486. See :term:`bitbake:BB_PRESSURE_MAX_CPU` in the BitBake manual.
  487. :term:`BB_PRESSURE_MAX_IO`
  488. See :term:`bitbake:BB_PRESSURE_MAX_IO` in the BitBake manual.
  489. :term:`BB_PRESSURE_MAX_MEMORY`
  490. See :term:`bitbake:BB_PRESSURE_MAX_MEMORY` in the BitBake manual.
  491. :term:`BB_RUNFMT`
  492. See :term:`bitbake:BB_RUNFMT` in the BitBake manual.
  493. :term:`BB_RUNTASK`
  494. See :term:`bitbake:BB_RUNTASK` in the BitBake manual.
  495. :term:`BB_SCHEDULER`
  496. See :term:`bitbake:BB_SCHEDULER` in the BitBake manual.
  497. :term:`BB_SCHEDULERS`
  498. See :term:`bitbake:BB_SCHEDULERS` in the BitBake manual.
  499. :term:`BB_SERVER_TIMEOUT`
  500. Specifies the time (in seconds) after which to unload the BitBake
  501. server due to inactivity. Set :term:`BB_SERVER_TIMEOUT` to determine how
  502. long the BitBake server stays resident between invocations.
  503. For example, the following statement in your ``local.conf`` file
  504. instructs the server to be unloaded after 20 seconds of inactivity::
  505. BB_SERVER_TIMEOUT = "20"
  506. If you want the server to never be unloaded,
  507. set :term:`BB_SERVER_TIMEOUT` to "-1".
  508. :term:`BB_SETSCENE_DEPVALID`
  509. See :term:`bitbake:BB_SETSCENE_DEPVALID` in the BitBake manual.
  510. :term:`BB_SIGNATURE_EXCLUDE_FLAGS`
  511. See :term:`bitbake:BB_SIGNATURE_EXCLUDE_FLAGS` in the BitBake manual.
  512. :term:`BB_SIGNATURE_HANDLER`
  513. See :term:`bitbake:BB_SIGNATURE_HANDLER` in the BitBake manual.
  514. :term:`BB_SRCREV_POLICY`
  515. See :term:`bitbake:BB_SRCREV_POLICY` in the BitBake manual.
  516. :term:`BB_STRICT_CHECKSUM`
  517. See :term:`bitbake:BB_STRICT_CHECKSUM` in the BitBake manual.
  518. :term:`BB_TASK_IONICE_LEVEL`
  519. See :term:`bitbake:BB_TASK_IONICE_LEVEL` in the BitBake manual.
  520. :term:`BB_TASK_NICE_LEVEL`
  521. See :term:`bitbake:BB_TASK_NICE_LEVEL` in the BitBake manual.
  522. :term:`BB_TASKHASH`
  523. See :term:`bitbake:BB_TASKHASH` in the BitBake manual.
  524. :term:`BB_VERBOSE_LOGS`
  525. See :term:`bitbake:BB_VERBOSE_LOGS` in the BitBake manual.
  526. :term:`BB_WORKERCONTEXT`
  527. See :term:`bitbake:BB_WORKERCONTEXT` in the BitBake manual.
  528. :term:`BBCLASSEXTEND`
  529. Allows you to extend a recipe so that it builds variants of the
  530. software. There are common variants for recipes as "natives" like
  531. ``quilt-native``, which is a copy of Quilt built to run on the build
  532. system; "crosses" such as ``gcc-cross``, which is a compiler built to
  533. run on the build machine but produces binaries that run on the target
  534. :term:`MACHINE`; ":ref:`ref-classes-nativesdk`", which
  535. targets the SDK machine instead of :term:`MACHINE`; and "mulitlibs" in
  536. the form "``multilib:``\ multilib_name".
  537. To build a different variant of the recipe with a minimal amount of
  538. code, it usually is as simple as adding the following to your recipe::
  539. BBCLASSEXTEND =+ "native nativesdk"
  540. BBCLASSEXTEND =+ "multilib:multilib_name"
  541. .. note::
  542. Internally, the :term:`BBCLASSEXTEND` mechanism generates recipe
  543. variants by rewriting variable values and applying overrides such
  544. as ``:class-native``. For example, to generate a native version of
  545. a recipe, a :term:`DEPENDS` on "foo" is rewritten
  546. to a :term:`DEPENDS` on "foo-native".
  547. Even when using :term:`BBCLASSEXTEND`, the recipe is only parsed once.
  548. Parsing once adds some limitations. For example, it is not
  549. possible to include a different file depending on the variant,
  550. since ``include`` statements are processed when the recipe is
  551. parsed.
  552. :term:`BBDEBUG`
  553. See :term:`bitbake:BBDEBUG` in the BitBake manual.
  554. :term:`BBFILE_COLLECTIONS`
  555. Lists the names of configured layers. These names are used to find
  556. the other ``BBFILE_*`` variables. Typically, each layer will append
  557. its name to this variable in its ``conf/layer.conf`` file.
  558. :term:`BBFILE_PATTERN`
  559. Variable that expands to match files from
  560. :term:`BBFILES` in a particular layer. This variable
  561. is used in the ``conf/layer.conf`` file and must be suffixed with the
  562. name of the specific layer (e.g. ``BBFILE_PATTERN_emenlow``).
  563. :term:`BBFILE_PRIORITY`
  564. Assigns the priority for recipe files in each layer.
  565. This variable is useful in situations where the same recipe appears
  566. in more than one layer. Setting this variable allows you to
  567. prioritize a layer against other layers that contain the same recipe
  568. --- effectively letting you control the precedence for the multiple
  569. layers. The precedence established through this variable stands
  570. regardless of a recipe's version (:term:`PV` variable). For
  571. example, a layer that has a recipe with a higher :term:`PV` value but for
  572. which the :term:`BBFILE_PRIORITY` is set to have a lower precedence still
  573. has a lower precedence.
  574. A larger value for the :term:`BBFILE_PRIORITY` variable results in a
  575. higher precedence. For example, the value 6 has a higher precedence
  576. than the value 5. If not specified, the :term:`BBFILE_PRIORITY` variable
  577. is set based on layer dependencies (see the :term:`LAYERDEPENDS` variable
  578. for more information. The default priority, if unspecified for a
  579. layer with no dependencies, is the lowest defined priority + 1 (or 1
  580. if no priorities are defined).
  581. .. tip::
  582. You can use the command ``bitbake-layers show-layers``
  583. to list all configured layers along with their priorities.
  584. :term:`BBFILES`
  585. A space-separated list of recipe files BitBake uses to build
  586. software.
  587. When specifying recipe files, you can pattern match using Python's
  588. `glob <https://docs.python.org/3/library/glob.html>`__ syntax.
  589. For details on the syntax, see the documentation by following the
  590. previous link.
  591. :term:`BBFILES_DYNAMIC`
  592. Activates content when identified layers are present. You identify
  593. the layers by the collections that the layers define.
  594. Use the :term:`BBFILES_DYNAMIC` variable to avoid ``.bbappend`` files
  595. whose corresponding ``.bb`` file is in a layer that attempts to
  596. modify other layers through ``.bbappend`` but does not want to
  597. introduce a hard dependency on those other layers.
  598. Use the following form for :term:`BBFILES_DYNAMIC`:
  599. ``collection_name:filename_pattern``.
  600. The following example identifies two collection names and two
  601. filename patterns::
  602. BBFILES_DYNAMIC += " \
  603. clang-layer:${LAYERDIR}/bbappends/meta-clang/*/*/*.bbappend \
  604. core:${LAYERDIR}/bbappends/openembedded-core/meta/*/*/*.bbappend \
  605. "
  606. This next example shows an error message that occurs because invalid
  607. entries are found, which cause parsing to fail:
  608. .. code-block:: none
  609. ERROR: BBFILES_DYNAMIC entries must be of the form <collection name>:<filename pattern>, not:
  610. /work/my-layer/bbappends/meta-security-isafw/*/*/*.bbappend
  611. /work/my-layer/bbappends/openembedded-core/meta/*/*/*.bbappend
  612. :term:`BBINCLUDED`
  613. See :term:`bitbake:BBINCLUDED` in the BitBake manual.
  614. :term:`BBINCLUDELOGS`
  615. Variable that controls how BitBake displays logs on build failure.
  616. :term:`BBINCLUDELOGS_LINES`
  617. If :term:`BBINCLUDELOGS` is set, specifies the
  618. maximum number of lines from the task log file to print when
  619. reporting a failed task. If you do not set :term:`BBINCLUDELOGS_LINES`,
  620. the entire log is printed.
  621. :term:`BBLAYERS`
  622. Lists the layers to enable during the build. This variable is defined
  623. in the ``bblayers.conf`` configuration file in the :term:`Build Directory`.
  624. Here is an example::
  625. BBLAYERS = " \
  626. /home/scottrif/poky/meta \
  627. /home/scottrif/poky/meta-poky \
  628. /home/scottrif/poky/meta-yocto-bsp \
  629. /home/scottrif/poky/meta-mykernel \
  630. "
  631. This example enables four layers, one of which is a custom,
  632. user-defined layer named ``meta-mykernel``.
  633. :term:`BBLAYERS_FETCH_DIR`
  634. See :term:`bitbake:BBLAYERS_FETCH_DIR` in the BitBake manual.
  635. :term:`BBMASK`
  636. Prevents BitBake from processing recipes and recipe append files.
  637. You can use the :term:`BBMASK` variable to "hide" these ``.bb`` and
  638. ``.bbappend`` files. BitBake ignores any recipe or recipe append
  639. files that match any of the expressions. It is as if BitBake does not
  640. see them at all. Consequently, matching files are not parsed or
  641. otherwise used by BitBake.
  642. The values you provide are passed to Python's regular expression
  643. compiler. Consequently, the syntax follows Python's Regular
  644. Expression (re) syntax. The expressions are compared against the full
  645. paths to the files. For complete syntax information, see Python's
  646. documentation at https://docs.python.org/3/library/re.html#regular-expression-syntax.
  647. The following example uses a complete regular expression to tell
  648. BitBake to ignore all recipe and recipe append files in the
  649. ``meta-ti/recipes-misc/`` directory::
  650. BBMASK = "meta-ti/recipes-misc/"
  651. If you want to mask out multiple directories or recipes, you can
  652. specify multiple regular expression fragments. This next example
  653. masks out multiple directories and individual recipes::
  654. BBMASK += "/meta-ti/recipes-misc/ meta-ti/recipes-ti/packagegroup/"
  655. BBMASK += "/meta-oe/recipes-support/"
  656. BBMASK += "/meta-foo/.*/openldap"
  657. BBMASK += "opencv.*\.bbappend"
  658. BBMASK += "lzma"
  659. .. note::
  660. When specifying a directory name, use the trailing slash character
  661. to ensure you match just that directory name.
  662. :term:`BBMULTICONFIG`
  663. Specifies each additional separate configuration when you are
  664. building targets with multiple configurations. Use this variable in
  665. your ``conf/local.conf`` configuration file. Specify a
  666. multiconfigname for each configuration file you are using. For
  667. example, the following line specifies three configuration files::
  668. BBMULTICONFIG = "configA configB configC"
  669. Each configuration file you use must reside in a ``multiconfig``
  670. subdirectory of a configuration directory within a layer, or
  671. within the :term:`Build Directory` (e.g.
  672. ``build_directory/conf/multiconfig/configA.conf`` or
  673. ``mylayer/conf/multiconfig/configB.conf``).
  674. For information on how to use :term:`BBMULTICONFIG` in an environment
  675. that supports building targets with multiple configurations, see the
  676. ":ref:`dev-manual/building:building images for multiple targets using multiple configurations`"
  677. section in the Yocto Project Development Tasks Manual.
  678. :term:`BBPATH`
  679. See :term:`bitbake:BBPATH` in the BitBake manual.
  680. :term:`BBSERVER`
  681. If defined in the BitBake environment, :term:`BBSERVER` points to the
  682. BitBake remote server.
  683. Use the following format to export the variable to the BitBake
  684. environment::
  685. export BBSERVER=localhost:$port
  686. By default, :term:`BBSERVER` also appears in :term:`BB_BASEHASH_IGNORE_VARS`.
  687. Consequently, :term:`BBSERVER` is excluded from checksum and dependency
  688. data.
  689. :term:`BBTARGETS`
  690. See :term:`bitbake:BBTARGETS` in the BitBake manual.
  691. :term:`BINCONFIG`
  692. When inheriting the :ref:`ref-classes-binconfig-disabled` class, this
  693. variable specifies binary configuration scripts to disable in favor of
  694. using ``pkg-config`` to query the information. The
  695. :ref:`ref-classes-binconfig-disabled` class will modify the specified
  696. scripts to return an error so that calls to them can be easily found
  697. and replaced.
  698. To add multiple scripts, separate them by spaces. Here is an example
  699. from the ``libpng`` recipe::
  700. BINCONFIG = "${bindir}/libpng-config ${bindir}/libpng16-config"
  701. :term:`BINCONFIG_GLOB`
  702. When inheriting the :ref:`ref-classes-binconfig` class,
  703. this variable specifies a wildcard for configuration scripts that
  704. need editing. The scripts are edited to correct any paths that have
  705. been set up during compilation so that they are correct for use when
  706. installed into the sysroot and called by the build processes of other
  707. recipes.
  708. .. note::
  709. The :term:`BINCONFIG_GLOB` variable uses
  710. `shell globbing <https://tldp.org/LDP/abs/html/globbingref.html>`__,
  711. which is recognition and expansion of wildcards during pattern
  712. matching. Shell globbing is very similar to
  713. `fnmatch <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__
  714. and `glob <https://docs.python.org/3/library/glob.html>`__.
  715. For more information on how this variable works, see
  716. ``meta/classes-recipe/binconfig.bbclass`` in the :term:`Source Directory`.
  717. You can also find general
  718. information on the class in the
  719. ":ref:`ref-classes-binconfig`" section.
  720. :term:`BITBAKE_UI`
  721. See :term:`bitbake:BITBAKE_UI` in the BitBake manual.
  722. :term:`BP`
  723. The base recipe name and version but without any special recipe name
  724. suffix (i.e. ``-native``, ``lib64-``, and so forth). :term:`BP` is
  725. comprised of the following::
  726. ${BPN}-${PV}
  727. :term:`BPN`
  728. This variable is a version of the :term:`PN` variable with
  729. common prefixes and suffixes removed, such as ``nativesdk-``,
  730. ``-cross``, ``-native``, and multilib's ``lib64-`` and ``lib32-``.
  731. The exact lists of prefixes and suffixes removed are specified by the
  732. :term:`MLPREFIX` and
  733. :term:`SPECIAL_PKGSUFFIX` variables,
  734. respectively.
  735. :term:`BUGTRACKER`
  736. Specifies a URL for an upstream bug tracking website for a recipe.
  737. The OpenEmbedded build system does not use this variable. Rather, the
  738. variable is a useful pointer in case a bug in the software being
  739. built needs to be manually reported.
  740. :term:`BUILD_ARCH`
  741. Specifies the architecture of the build host (e.g. ``i686``). The
  742. OpenEmbedded build system sets the value of :term:`BUILD_ARCH` from the
  743. machine name reported by the ``uname`` command.
  744. :term:`BUILD_AS_ARCH`
  745. Specifies the architecture-specific assembler flags for the build
  746. host. By default, the value of :term:`BUILD_AS_ARCH` is empty.
  747. :term:`BUILD_CC_ARCH`
  748. Specifies the architecture-specific C compiler flags for the build
  749. host. By default, the value of :term:`BUILD_CC_ARCH` is empty.
  750. :term:`BUILD_CCLD`
  751. Specifies the linker command to be used for the build host when the C
  752. compiler is being used as the linker. By default, :term:`BUILD_CCLD`
  753. points to GCC and passes as arguments the value of
  754. :term:`BUILD_CC_ARCH`, assuming
  755. :term:`BUILD_CC_ARCH` is set.
  756. :term:`BUILD_CFLAGS`
  757. Specifies the flags to pass to the C compiler when building for the
  758. build host. When building in the ``-native`` context,
  759. :term:`CFLAGS` is set to the value of this variable by
  760. default.
  761. :term:`BUILD_CPPFLAGS`
  762. Specifies the flags to pass to the C preprocessor (i.e. to both the C
  763. and the C++ compilers) when building for the build host. When
  764. building in the ``-native`` context, :term:`CPPFLAGS`
  765. is set to the value of this variable by default.
  766. :term:`BUILD_CXXFLAGS`
  767. Specifies the flags to pass to the C++ compiler when building for the
  768. build host. When building in the ``-native`` context,
  769. :term:`CXXFLAGS` is set to the value of this variable
  770. by default.
  771. :term:`BUILD_FC`
  772. Specifies the Fortran compiler command for the build host. By
  773. default, :term:`BUILD_FC` points to Gfortran and passes as arguments the
  774. value of :term:`BUILD_CC_ARCH`, assuming
  775. :term:`BUILD_CC_ARCH` is set.
  776. :term:`BUILD_LD`
  777. Specifies the linker command for the build host. By default,
  778. :term:`BUILD_LD` points to the GNU linker (ld) and passes as arguments
  779. the value of :term:`BUILD_LD_ARCH`, assuming
  780. :term:`BUILD_LD_ARCH` is set.
  781. :term:`BUILD_LD_ARCH`
  782. Specifies architecture-specific linker flags for the build host. By
  783. default, the value of :term:`BUILD_LD_ARCH` is empty.
  784. :term:`BUILD_LDFLAGS`
  785. Specifies the flags to pass to the linker when building for the build
  786. host. When building in the ``-native`` context,
  787. :term:`LDFLAGS` is set to the value of this variable
  788. by default.
  789. :term:`BUILD_OPTIMIZATION`
  790. Specifies the optimization flags passed to the C compiler when
  791. building for the build host or the SDK. The flags are passed through
  792. the :term:`BUILD_CFLAGS` and
  793. :term:`BUILDSDK_CFLAGS` default values.
  794. The default value of the :term:`BUILD_OPTIMIZATION` variable is "-O2
  795. -pipe".
  796. :term:`BUILD_OS`
  797. Specifies the operating system in use on the build host (e.g.
  798. "linux"). The OpenEmbedded build system sets the value of
  799. :term:`BUILD_OS` from the OS reported by the ``uname`` command --- the
  800. first word, converted to lower-case characters.
  801. :term:`BUILD_PREFIX`
  802. The toolchain binary prefix used for native recipes. The OpenEmbedded
  803. build system uses the :term:`BUILD_PREFIX` value to set the
  804. :term:`TARGET_PREFIX` when building for :ref:`ref-classes-native` recipes.
  805. :term:`BUILD_STRIP`
  806. Specifies the command to be used to strip debugging symbols from
  807. binaries produced for the build host. By default, :term:`BUILD_STRIP`
  808. points to
  809. ``${``\ :term:`BUILD_PREFIX`\ ``}strip``.
  810. :term:`BUILD_SYS`
  811. Specifies the system, including the architecture and the operating
  812. system, to use when building for the build host (i.e. when building
  813. :ref:`ref-classes-native` recipes).
  814. The OpenEmbedded build system automatically sets this variable based
  815. on :term:`BUILD_ARCH`,
  816. :term:`BUILD_VENDOR`, and
  817. :term:`BUILD_OS`. You do not need to set the
  818. :term:`BUILD_SYS` variable yourself.
  819. :term:`BUILD_VENDOR`
  820. Specifies the vendor name to use when building for the build host.
  821. The default value is an empty string ("").
  822. :term:`BUILDDIR`
  823. Points to the location of the :term:`Build Directory`. You can define
  824. this directory indirectly through the :ref:`structure-core-script` script
  825. by passing in a :term:`Build Directory` path when you run the script. If
  826. you run the script and do not provide a :term:`Build Directory` path, the
  827. :term:`BUILDDIR` defaults to ``build`` in the current directory.
  828. :term:`BUILDHISTORY_COMMIT`
  829. When inheriting the :ref:`ref-classes-buildhistory` class, this variable
  830. specifies whether or not to commit the build history output in a local
  831. Git repository. If set to "1", this local repository will be maintained
  832. automatically by the :ref:`ref-classes-buildhistory` class and a commit
  833. will be created on every build for changes to each top-level subdirectory
  834. of the build history output (images, packages, and sdk). If you want to
  835. track changes to build history over time, you should set this value to
  836. "1".
  837. By default, the :ref:`ref-classes-buildhistory` class
  838. enables committing the buildhistory output in a local Git repository::
  839. BUILDHISTORY_COMMIT ?= "1"
  840. :term:`BUILDHISTORY_COMMIT_AUTHOR`
  841. When inheriting the :ref:`ref-classes-buildhistory`
  842. class, this variable specifies the author to use for each Git commit.
  843. In order for the :term:`BUILDHISTORY_COMMIT_AUTHOR` variable to work, the
  844. :term:`BUILDHISTORY_COMMIT` variable must
  845. be set to "1".
  846. Git requires that the value you provide for the
  847. :term:`BUILDHISTORY_COMMIT_AUTHOR` variable takes the form of "name
  848. email@host". Providing an email address or host that is not valid
  849. does not produce an error.
  850. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  851. as follows::
  852. BUILDHISTORY_COMMIT_AUTHOR ?= "buildhistory <buildhistory@${DISTRO}>"
  853. :term:`BUILDHISTORY_DIR`
  854. When inheriting the :ref:`ref-classes-buildhistory`
  855. class, this variable specifies the directory in which build history
  856. information is kept. For more information on how the variable works,
  857. see the :ref:`ref-classes-buildhistory` class.
  858. By default, the :ref:`ref-classes-buildhistory` class sets the directory
  859. as follows::
  860. BUILDHISTORY_DIR ?= "${TOPDIR}/buildhistory"
  861. :term:`BUILDHISTORY_FEATURES`
  862. When inheriting the :ref:`ref-classes-buildhistory`
  863. class, this variable specifies the build history features to be
  864. enabled. For more information on how build history works, see the
  865. ":ref:`dev-manual/build-quality:maintaining build output quality`"
  866. section in the Yocto Project Development Tasks Manual.
  867. You can specify these features in the form of a space-separated list:
  868. - *image:* Analysis of the contents of images, which includes the
  869. list of installed packages among other things.
  870. - *package:* Analysis of the contents of individual packages.
  871. - *sdk:* Analysis of the contents of the software development kit
  872. (SDK).
  873. - *task:* Save output file signatures for
  874. :ref:`shared state <overview-manual/concepts:shared state cache>`
  875. (sstate) tasks.
  876. This saves one file per task and lists the SHA-256 checksums for
  877. each file staged (i.e. the output of the task).
  878. By default, the :ref:`ref-classes-buildhistory` class enables the
  879. following features::
  880. BUILDHISTORY_FEATURES ?= "image package sdk"
  881. :term:`BUILDHISTORY_IMAGE_FILES`
  882. When inheriting the :ref:`ref-classes-buildhistory`
  883. class, this variable specifies a list of paths to files copied from
  884. the image contents into the build history directory under an
  885. "image-files" directory in the directory for the image, so that you
  886. can track the contents of each file. The default is to copy
  887. ``/etc/passwd`` and ``/etc/group``, which allows you to monitor for
  888. changes in user and group entries. You can modify the list to include
  889. any file. Specifying an invalid path does not produce an error.
  890. Consequently, you can include files that might not always be present.
  891. By default, the :ref:`ref-classes-buildhistory` class provides paths to
  892. the following files::
  893. BUILDHISTORY_IMAGE_FILES ?= "/etc/passwd /etc/group"
  894. :term:`BUILDHISTORY_PATH_PREFIX_STRIP`
  895. When inheriting the :ref:`ref-classes-buildhistory`
  896. class, this variable specifies a common path prefix that should be
  897. stripped off the beginning of paths in the task signature list when the
  898. ``task`` feature is active in :term:`BUILDHISTORY_FEATURES`. This can be
  899. useful when build history is populated from multiple sources that may not
  900. all use the same top level directory.
  901. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  902. as follows::
  903. BUILDHISTORY_PATH_PREFIX_STRIP ?= ""
  904. In this case, no prefixes will be stripped.
  905. :term:`BUILDHISTORY_PUSH_REPO`
  906. When inheriting the :ref:`ref-classes-buildhistory` class, this variable
  907. optionally specifies a remote repository to which build history pushes
  908. Git changes. In order for :term:`BUILDHISTORY_PUSH_REPO` to work,
  909. :term:`BUILDHISTORY_COMMIT` must be set to "1".
  910. The repository should correspond to a remote address that specifies a
  911. repository as understood by Git, or alternatively to a remote name
  912. that you have set up manually using ``git remote`` within the local
  913. repository.
  914. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  915. as follows::
  916. BUILDHISTORY_PUSH_REPO ?= ""
  917. :term:`BUILDNAME`
  918. See :term:`bitbake:BUILDNAME` in the BitBake manual.
  919. :term:`BUILDSDK_CFLAGS`
  920. Specifies the flags to pass to the C compiler when building for the
  921. SDK. When building in the ``nativesdk-`` context,
  922. :term:`CFLAGS` is set to the value of this variable by
  923. default.
  924. :term:`BUILDSDK_CPPFLAGS`
  925. Specifies the flags to pass to the C pre-processor (i.e. to both the
  926. C and the C++ compilers) when building for the SDK. When building in
  927. the ``nativesdk-`` context, :term:`CPPFLAGS` is set
  928. to the value of this variable by default.
  929. :term:`BUILDSDK_CXXFLAGS`
  930. Specifies the flags to pass to the C++ compiler when building for the
  931. SDK. When building in the ``nativesdk-`` context,
  932. :term:`CXXFLAGS` is set to the value of this variable
  933. by default.
  934. :term:`BUILDSDK_LDFLAGS`
  935. Specifies the flags to pass to the linker when building for the SDK.
  936. When building in the ``nativesdk-`` context,
  937. :term:`LDFLAGS` is set to the value of this variable
  938. by default.
  939. :term:`BUILDSTATS_BASE`
  940. Points to the location of the directory that holds build statistics
  941. when you use and enable the :ref:`ref-classes-buildstats` class. The
  942. :term:`BUILDSTATS_BASE` directory defaults to
  943. ``${``\ :term:`TMPDIR`\ ``}/buildstats/``.
  944. :term:`BUSYBOX_SPLIT_SUID`
  945. For the BusyBox recipe, specifies whether to split the output
  946. executable file into two parts: one for features that require
  947. ``setuid root``, and one for the remaining features (i.e. those that
  948. do not require ``setuid root``).
  949. The :term:`BUSYBOX_SPLIT_SUID` variable defaults to "1", which results in
  950. splitting the output executable file. Set the variable to "0" to get
  951. a single output executable file.
  952. :term:`BZRDIR`
  953. See :term:`bitbake:BZRDIR` in the BitBake manual.
  954. :term:`CACHE`
  955. Specifies the directory BitBake uses to store a cache of the
  956. :term:`Metadata` so it does not need to be parsed every time
  957. BitBake is started.
  958. :term:`CC`
  959. The minimal command and arguments used to run the C compiler.
  960. :term:`CFLAGS`
  961. Specifies the flags to pass to the C compiler. This variable is
  962. exported to an environment variable and thus made visible to the
  963. software being built during the compilation step.
  964. Default initialization for :term:`CFLAGS` varies depending on what is
  965. being built:
  966. - :term:`TARGET_CFLAGS` when building for the
  967. target
  968. - :term:`BUILD_CFLAGS` when building for the
  969. build host (i.e. ``-native``)
  970. - :term:`BUILDSDK_CFLAGS` when building for
  971. an SDK (i.e. ``nativesdk-``)
  972. :term:`CLASSOVERRIDE`
  973. An internal variable specifying the special class override that
  974. should currently apply (e.g. "class-target", "class-native", and so
  975. forth). The classes that use this variable (e.g.
  976. :ref:`ref-classes-native`, :ref:`ref-classes-nativesdk`, and so forth)
  977. set the variable to appropriate values.
  978. .. note::
  979. :term:`CLASSOVERRIDE` gets its default "class-target" value from the
  980. ``bitbake.conf`` file.
  981. As an example, the following override allows you to install extra
  982. files, but only when building for the target::
  983. do_install:append:class-target() {
  984. install my-extra-file ${D}${sysconfdir}
  985. }
  986. Here is an example where ``FOO`` is set to
  987. "native" when building for the build host, and to "other" when not
  988. building for the build host::
  989. FOO:class-native = "native"
  990. FOO = "other"
  991. The underlying mechanism behind :term:`CLASSOVERRIDE` is simply
  992. that it is included in the default value of
  993. :term:`OVERRIDES`.
  994. :term:`CLEANBROKEN`
  995. If set to "1" within a recipe, :term:`CLEANBROKEN` specifies that the
  996. ``make clean`` command does not work for the software being built.
  997. Consequently, the OpenEmbedded build system will not try to run
  998. ``make clean`` during the :ref:`ref-tasks-configure`
  999. task, which is the default behavior.
  1000. :term:`COMBINED_FEATURES`
  1001. Provides a list of hardware features that are enabled in both
  1002. :term:`MACHINE_FEATURES` and
  1003. :term:`DISTRO_FEATURES`. This select list of
  1004. features contains features that make sense to be controlled both at
  1005. the machine and distribution configuration level. For example, the
  1006. "bluetooth" feature requires hardware support but should also be
  1007. optional at the distribution level, in case the hardware supports
  1008. Bluetooth but you do not ever intend to use it.
  1009. :term:`COMMERCIAL_AUDIO_PLUGINS`
  1010. This variable is specific to the :yocto_git:`GStreamer recipes
  1011. </poky/tree/meta/recipes-multimedia/gstreamer/gstreamer1.0-meta-base.bb>`.
  1012. It allows to build the GStreamer `"ugly"
  1013. <https://github.com/GStreamer/gst-plugins-ugly>`__ and
  1014. `"bad" <https://github.com/GStreamer/gst-plugins-bad>`__ audio plugins.
  1015. See the :ref:`dev-manual/licenses:other variables related to commercial licenses`
  1016. section for usage details.
  1017. :term:`COMMERCIAL_VIDEO_PLUGINS`
  1018. This variable is specific to the :yocto_git:`GStreamer recipes
  1019. </poky/tree/meta/recipes-multimedia/gstreamer/gstreamer1.0-meta-base.bb>`.
  1020. It allows to build the GStreamer `"ugly"
  1021. <https://github.com/GStreamer/gst-plugins-ugly>`__ and
  1022. `"bad" <https://github.com/GStreamer/gst-plugins-bad>`__ video plugins.
  1023. See the :ref:`dev-manual/licenses:other variables related to commercial licenses`
  1024. section for usage details.
  1025. :term:`COMMON_LICENSE_DIR`
  1026. Points to ``meta/files/common-licenses`` in the
  1027. :term:`Source Directory`, which is where generic license
  1028. files reside.
  1029. :term:`COMPATIBLE_HOST`
  1030. A regular expression that resolves to one or more hosts (when the
  1031. recipe is native) or one or more targets (when the recipe is
  1032. non-native) with which a recipe is compatible. The regular expression
  1033. is matched against :term:`HOST_SYS`. You can use the
  1034. variable to stop recipes from being built for classes of systems with
  1035. which the recipes are not compatible. Stopping these builds is
  1036. particularly useful with kernels. The variable also helps to increase
  1037. parsing speed since the build system skips parsing recipes not
  1038. compatible with the current system.
  1039. :term:`COMPATIBLE_MACHINE`
  1040. A regular expression that resolves to one or more target machines
  1041. with which a recipe is compatible. The regular expression is matched
  1042. against :term:`MACHINEOVERRIDES`. You can use
  1043. the variable to stop recipes from being built for machines with which
  1044. the recipes are not compatible. Stopping these builds is particularly
  1045. useful with kernels. The variable also helps to increase parsing
  1046. speed since the build system skips parsing recipes not compatible
  1047. with the current machine.
  1048. :term:`COMPLEMENTARY_GLOB`
  1049. Defines wildcards to match when installing a list of complementary
  1050. packages for all the packages explicitly (or implicitly) installed in
  1051. an image.
  1052. The :term:`COMPLEMENTARY_GLOB` variable uses Unix filename pattern matching
  1053. (`fnmatch <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__),
  1054. which is similar to the Unix style pathname pattern expansion
  1055. (`glob <https://docs.python.org/3/library/glob.html>`__).
  1056. The resulting list of complementary packages is associated with an
  1057. item that can be added to
  1058. :term:`IMAGE_FEATURES`. An example usage of
  1059. this is the "dev-pkgs" item that when added to :term:`IMAGE_FEATURES`
  1060. will install -dev packages (containing headers and other development
  1061. files) for every package in the image.
  1062. To add a new feature item pointing to a wildcard, use a variable flag
  1063. to specify the feature item name and use the value to specify the
  1064. wildcard. Here is an example::
  1065. COMPLEMENTARY_GLOB[dev-pkgs] = '*-dev'
  1066. .. note::
  1067. When installing complementary packages, recommends relationships
  1068. (set via :term:`RRECOMMENDS`) are always ignored.
  1069. :term:`COMPONENTS_DIR`
  1070. Stores sysroot components for each recipe. The OpenEmbedded build
  1071. system uses :term:`COMPONENTS_DIR` when constructing recipe-specific
  1072. sysroots for other recipes.
  1073. The default is
  1074. "``${``\ :term:`STAGING_DIR`\ ``}-components``."
  1075. (i.e.
  1076. "``${``\ :term:`TMPDIR`\ ``}/sysroots-components``").
  1077. :term:`CONF_VERSION`
  1078. Tracks the version of the local configuration file (i.e.
  1079. ``local.conf``). The value for :term:`CONF_VERSION` increments each time
  1080. ``build/conf/`` compatibility changes.
  1081. :term:`CONFFILES`
  1082. Identifies editable or configurable files that are part of a package.
  1083. If the Package Management System (PMS) is being used to update
  1084. packages on the target system, it is possible that configuration
  1085. files you have changed after the original installation and that you
  1086. now want to remain unchanged are overwritten. In other words,
  1087. editable files might exist in the package that you do not want reset
  1088. as part of the package update process. You can use the :term:`CONFFILES`
  1089. variable to list the files in the package that you wish to prevent
  1090. the PMS from overwriting during this update process.
  1091. To use the :term:`CONFFILES` variable, provide a package name override
  1092. that identifies the resulting package. Then, provide a
  1093. space-separated list of files. Here is an example::
  1094. CONFFILES:${PN} += "${sysconfdir}/file1 \
  1095. ${sysconfdir}/file2 ${sysconfdir}/file3"
  1096. There is a relationship between the :term:`CONFFILES` and :term:`FILES`
  1097. variables. The files listed within :term:`CONFFILES` must be a subset of
  1098. the files listed within :term:`FILES`. Because the configuration files
  1099. you provide with :term:`CONFFILES` are simply being identified so that
  1100. the PMS will not overwrite them, it makes sense that the files must
  1101. already be included as part of the package through the :term:`FILES`
  1102. variable.
  1103. .. note::
  1104. When specifying paths as part of the :term:`CONFFILES` variable, it is
  1105. good practice to use appropriate path variables.
  1106. For example, ``${sysconfdir}`` rather than ``/etc`` or ``${bindir}``
  1107. rather than ``/usr/bin``. You can find a list of these variables at
  1108. the top of the ``meta/conf/bitbake.conf`` file in the
  1109. :term:`Source Directory`.
  1110. :term:`CONFIG_INITRAMFS_SOURCE`
  1111. Identifies the initial RAM filesystem (:term:`Initramfs`) source files. The
  1112. OpenEmbedded build system receives and uses this kernel Kconfig
  1113. variable as an environment variable. By default, the variable is set
  1114. to null ("").
  1115. The :term:`CONFIG_INITRAMFS_SOURCE` can be either a single cpio archive
  1116. with a ``.cpio`` suffix or a space-separated list of directories and
  1117. files for building the :term:`Initramfs` image. A cpio archive should contain
  1118. a filesystem archive to be used as an :term:`Initramfs` image. Directories
  1119. should contain a filesystem layout to be included in the :term:`Initramfs`
  1120. image. Files should contain entries according to the format described
  1121. by the ``usr/gen_init_cpio`` program in the kernel tree.
  1122. If you specify multiple directories and files, the :term:`Initramfs` image
  1123. will be the aggregate of all of them.
  1124. For information on creating an :term:`Initramfs`, see the
  1125. ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  1126. in the Yocto Project Development Tasks Manual.
  1127. :term:`CONFIG_SITE`
  1128. A list of files that contains ``autoconf`` test results relevant to
  1129. the current build. This variable is used by the Autotools utilities
  1130. when running ``configure``.
  1131. :term:`CONFIGURE_FLAGS`
  1132. The minimal arguments for GNU configure.
  1133. :term:`CONFLICT_DISTRO_FEATURES`
  1134. When inheriting the :ref:`ref-classes-features_check`
  1135. class, this variable identifies distribution features that would be
  1136. in conflict should the recipe be built. In other words, if the
  1137. :term:`CONFLICT_DISTRO_FEATURES` variable lists a feature that also
  1138. appears in :term:`DISTRO_FEATURES` within the current configuration, then
  1139. the recipe will be skipped, and if the build system attempts to build
  1140. the recipe then an error will be triggered.
  1141. :term:`CONVERSION_CMD`
  1142. This variable is used for storing image conversion commands.
  1143. Image conversion can convert an image into different objects like:
  1144. - Compressed version of the image
  1145. - Checksums for the image
  1146. An example of :term:`CONVERSION_CMD` from :ref:`ref-classes-image_types`
  1147. class is::
  1148. CONVERSION_CMD:lzo = "lzop -9 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
  1149. :term:`COPY_LIC_DIRS`
  1150. If set to "1" along with the
  1151. :term:`COPY_LIC_MANIFEST` variable, the
  1152. OpenEmbedded build system copies into the image the license files,
  1153. which are located in ``/usr/share/common-licenses``, for each
  1154. package. The license files are placed in directories within the image
  1155. itself during build time.
  1156. .. note::
  1157. The :term:`COPY_LIC_DIRS` does not offer a path for adding licenses for
  1158. newly installed packages to an image, which might be most suitable for
  1159. read-only filesystems that cannot be upgraded. See the
  1160. :term:`LICENSE_CREATE_PACKAGE` variable for additional information.
  1161. You can also reference the ":ref:`dev-manual/licenses:providing license text`"
  1162. section in the Yocto Project Development Tasks Manual for
  1163. information on providing license text.
  1164. :term:`COPY_LIC_MANIFEST`
  1165. If set to "1", the OpenEmbedded build system copies the license
  1166. manifest for the image to
  1167. ``/usr/share/common-licenses/license.manifest`` within the image
  1168. itself during build time.
  1169. .. note::
  1170. The :term:`COPY_LIC_MANIFEST` does not offer a path for adding licenses for
  1171. newly installed packages to an image, which might be most suitable for
  1172. read-only filesystems that cannot be upgraded. See the
  1173. :term:`LICENSE_CREATE_PACKAGE` variable for additional information.
  1174. You can also reference the ":ref:`dev-manual/licenses:providing license text`"
  1175. section in the Yocto Project Development Tasks Manual for
  1176. information on providing license text.
  1177. :term:`COPYLEFT_LICENSE_EXCLUDE`
  1178. A space-separated list of licenses to exclude from the source archived by
  1179. the :ref:`ref-classes-archiver` class. In other words, if a license in a
  1180. recipe's :term:`LICENSE` value is in the value of
  1181. :term:`COPYLEFT_LICENSE_EXCLUDE`, then its source is not archived by the
  1182. class.
  1183. .. note::
  1184. The :term:`COPYLEFT_LICENSE_EXCLUDE` variable takes precedence over the
  1185. :term:`COPYLEFT_LICENSE_INCLUDE` variable.
  1186. The default value, which is "CLOSED Proprietary", for
  1187. :term:`COPYLEFT_LICENSE_EXCLUDE` is set by the
  1188. :ref:`ref-classes-copyleft_filter` class, which
  1189. is inherited by the :ref:`ref-classes-archiver` class.
  1190. :term:`COPYLEFT_LICENSE_INCLUDE`
  1191. A space-separated list of licenses to include in the source archived
  1192. by the :ref:`ref-classes-archiver` class. In other
  1193. words, if a license in a recipe's :term:`LICENSE`
  1194. value is in the value of :term:`COPYLEFT_LICENSE_INCLUDE`, then its
  1195. source is archived by the class.
  1196. The default value is set by the :ref:`ref-classes-copyleft_filter` class,
  1197. which is inherited by the :ref:`ref-classes-archiver` class. The default
  1198. value includes "GPL*", "LGPL*", and "AGPL*".
  1199. :term:`COPYLEFT_PN_EXCLUDE`
  1200. A list of recipes to exclude in the source archived by the
  1201. :ref:`ref-classes-archiver` class. The :term:`COPYLEFT_PN_EXCLUDE`
  1202. variable overrides the license inclusion and exclusion caused through the
  1203. :term:`COPYLEFT_LICENSE_INCLUDE` and :term:`COPYLEFT_LICENSE_EXCLUDE`
  1204. variables, respectively.
  1205. The default value, which is "" indicating to not explicitly exclude
  1206. any recipes by name, for :term:`COPYLEFT_PN_EXCLUDE` is set by the
  1207. :ref:`ref-classes-copyleft_filter` class, which is inherited by the
  1208. :ref:`ref-classes-archiver` class.
  1209. :term:`COPYLEFT_PN_INCLUDE`
  1210. A list of recipes to include in the source archived by the
  1211. :ref:`ref-classes-archiver` class. The :term:`COPYLEFT_PN_INCLUDE`
  1212. variable overrides the license inclusion and exclusion caused through the
  1213. :term:`COPYLEFT_LICENSE_INCLUDE` and :term:`COPYLEFT_LICENSE_EXCLUDE`
  1214. variables, respectively.
  1215. The default value, which is "" indicating to not explicitly include
  1216. any recipes by name, for :term:`COPYLEFT_PN_INCLUDE` is set by the
  1217. :ref:`ref-classes-copyleft_filter` class, which is inherited by the
  1218. :ref:`ref-classes-archiver` class.
  1219. :term:`COPYLEFT_RECIPE_TYPES`
  1220. A space-separated list of recipe types to include in the source
  1221. archived by the :ref:`archiver <ref-classes-archiver>` class.
  1222. Recipe types are ``target``, :ref:`ref-classes-native`,
  1223. :ref:`ref-classes-nativesdk`, :ref:`ref-classes-cross`,
  1224. :ref:`ref-classes-crosssdk`, and :ref:`ref-classes-cross-canadian`.
  1225. The default value, which is "target*", for :term:`COPYLEFT_RECIPE_TYPES`
  1226. is set by the :ref:`ref-classes-copyleft_filter` class, which is
  1227. inherited by the :ref:`ref-classes-archiver` class.
  1228. :term:`CORE_IMAGE_EXTRA_INSTALL`
  1229. Specifies the list of packages to be added to the image. You should
  1230. only set this variable in the ``local.conf`` configuration file found
  1231. in the :term:`Build Directory`.
  1232. This variable replaces ``POKY_EXTRA_INSTALL``, which is no longer
  1233. supported.
  1234. :term:`COREBASE`
  1235. Specifies the parent directory of the OpenEmbedded-Core Metadata
  1236. layer (i.e. ``meta``).
  1237. It is an important distinction that :term:`COREBASE` points to the parent
  1238. of this layer and not the layer itself. Consider an example where you
  1239. have cloned the Poky Git repository and retained the ``poky`` name
  1240. for your local copy of the repository. In this case, :term:`COREBASE`
  1241. points to the ``poky`` folder because it is the parent directory of
  1242. the ``poky/meta`` layer.
  1243. :term:`COREBASE_FILES`
  1244. Lists files from the :term:`COREBASE` directory that
  1245. should be copied other than the layers listed in the
  1246. ``bblayers.conf`` file. The :term:`COREBASE_FILES` variable allows
  1247. to copy metadata from the OpenEmbedded build system
  1248. into the extensible SDK.
  1249. Explicitly listing files in :term:`COREBASE` is needed because it
  1250. typically contains build directories and other files that should not
  1251. normally be copied into the extensible SDK. Consequently, the value
  1252. of :term:`COREBASE_FILES` is used in order to only copy the files that
  1253. are actually needed.
  1254. :term:`CPP`
  1255. The minimal command and arguments used to run the C preprocessor.
  1256. :term:`CPPFLAGS`
  1257. Specifies the flags to pass to the C pre-processor (i.e. to both the
  1258. C and the C++ compilers). This variable is exported to an environment
  1259. variable and thus made visible to the software being built during the
  1260. compilation step.
  1261. Default initialization for :term:`CPPFLAGS` varies depending on what is
  1262. being built:
  1263. - :term:`TARGET_CPPFLAGS` when building for
  1264. the target
  1265. - :term:`BUILD_CPPFLAGS` when building for the
  1266. build host (i.e. ``-native``)
  1267. - :term:`BUILDSDK_CPPFLAGS` when building
  1268. for an SDK (i.e. ``nativesdk-``)
  1269. :term:`CROSS_COMPILE`
  1270. The toolchain binary prefix for the target tools. The
  1271. :term:`CROSS_COMPILE` variable is the same as the
  1272. :term:`TARGET_PREFIX` variable.
  1273. .. note::
  1274. The OpenEmbedded build system sets the :term:`CROSS_COMPILE`
  1275. variable only in certain contexts (e.g. when building for kernel
  1276. and kernel module recipes).
  1277. :term:`CVE_CHECK_IGNORE`
  1278. This variable is deprecated and should be replaced by :term:`CVE_STATUS`.
  1279. :term:`CVE_CHECK_SHOW_WARNINGS`
  1280. Specifies whether or not the :ref:`ref-classes-cve-check`
  1281. class should generate warning messages on the console when unpatched
  1282. CVEs are found. The default is "1", but you may wish to set it to "0" if
  1283. you are already examining/processing the logs after the build has
  1284. completed and thus do not need the warning messages.
  1285. :term:`CVE_CHECK_SKIP_RECIPE`
  1286. The list of package names (:term:`PN`) for which
  1287. CVEs (Common Vulnerabilities and Exposures) are ignored.
  1288. :term:`CVE_DB_UPDATE_INTERVAL`
  1289. Specifies the CVE database update interval in seconds, as used by
  1290. ``cve-update-db-native``. The default value is "86400" i.e. once a day
  1291. (24*60*60). If the value is set to "0" then the update will be forced
  1292. every time. Alternatively, a negative value e.g. "-1" will disable
  1293. updates entirely.
  1294. :term:`CVE_PRODUCT`
  1295. In a recipe, defines the name used to match the recipe name
  1296. against the name in the upstream `NIST CVE database <https://nvd.nist.gov/>`__.
  1297. The default is ${:term:`BPN`} (except for recipes that inherit the
  1298. :ref:`ref-classes-pypi` class where it is set based upon
  1299. :term:`PYPI_PACKAGE`). If it does not match the name in the NIST CVE
  1300. database or matches with multiple entries in the database, the default
  1301. value needs to be changed.
  1302. Here is an example from the :oe_layerindex:`Berkeley DB recipe </layerindex/recipe/544>`::
  1303. CVE_PRODUCT = "oracle_berkeley_db berkeley_db"
  1304. Sometimes the product name is not specific enough, for example
  1305. "tar" has been matching CVEs for the GNU ``tar`` package and also
  1306. the ``node-tar`` node.js extension. To avoid this problem, use the
  1307. vendor name as a prefix. The syntax for this is::
  1308. CVE_PRODUCT = "vendor:package"
  1309. :term:`CVE_STATUS`
  1310. The CVE ID which is patched or should be ignored. Here is
  1311. an example from the :oe_layerindex:`Python3 recipe</layerindex/recipe/23823>`::
  1312. CVE_STATUS[CVE-2020-15523] = "not-applicable-platform: Issue only applies on Windows"
  1313. It has the format "reason: description" and the description is optional.
  1314. The Reason is mapped to the final CVE state by mapping via
  1315. :term:`CVE_CHECK_STATUSMAP`
  1316. :term:`CVE_STATUS_GROUPS`
  1317. If there are many CVEs with the same status and reason, they can by simplified by using this
  1318. variable instead of many similar lines with :term:`CVE_STATUS`::
  1319. CVE_STATUS_GROUPS = "CVE_STATUS_WIN CVE_STATUS_PATCHED"
  1320. CVE_STATUS_WIN = "CVE-1234-0001 CVE-1234-0002"
  1321. CVE_STATUS_WIN[status] = "not-applicable-platform: Issue only applies on Windows"
  1322. CVE_STATUS_PATCHED = "CVE-1234-0003 CVE-1234-0004"
  1323. CVE_STATUS_PATCHED[status] = "fixed-version: Fixed externally"
  1324. :term:`CVE_CHECK_STATUSMAP`
  1325. Mapping variable for all possible reasons of :term:`CVE_STATUS`:
  1326. ``Patched``, ``Unpatched`` and ``Ignored``.
  1327. See :ref:`ref-classes-cve-check` or ``meta/conf/cve-check-map.conf`` for more details::
  1328. CVE_CHECK_STATUSMAP[cpe-incorrect] = "Ignored"
  1329. :term:`CVE_VERSION`
  1330. In a recipe, defines the version used to match the recipe version
  1331. against the version in the `NIST CVE database <https://nvd.nist.gov/>`__
  1332. when usign :ref:`ref-classes-cve-check`.
  1333. The default is ${:term:`PV`} but if recipes use custom version numbers
  1334. which do not map to upstream software component release versions and the versions
  1335. used in the CVE database, then this variable can be used to set the
  1336. version number for :ref:`ref-classes-cve-check`. Example::
  1337. CVE_VERSION = "2.39"
  1338. :term:`CVSDIR`
  1339. The directory in which files checked out under the CVS system are
  1340. stored.
  1341. :term:`CXX`
  1342. The minimal command and arguments used to run the C++ compiler.
  1343. :term:`CXXFLAGS`
  1344. Specifies the flags to pass to the C++ compiler. This variable is
  1345. exported to an environment variable and thus made visible to the
  1346. software being built during the compilation step.
  1347. Default initialization for :term:`CXXFLAGS` varies depending on what is
  1348. being built:
  1349. - :term:`TARGET_CXXFLAGS` when building for
  1350. the target
  1351. - :term:`BUILD_CXXFLAGS` when building for the
  1352. build host (i.e. ``-native``)
  1353. - :term:`BUILDSDK_CXXFLAGS` when building
  1354. for an SDK (i.e. ``nativesdk-``)
  1355. :term:`D`
  1356. The destination directory. The location in the :term:`Build Directory`
  1357. where components are installed by the
  1358. :ref:`ref-tasks-install` task. This location defaults
  1359. to::
  1360. ${WORKDIR}/image
  1361. .. note::
  1362. Tasks that read from or write to this directory should run under
  1363. :ref:`fakeroot <overview-manual/concepts:fakeroot and pseudo>`.
  1364. :term:`DATE`
  1365. The date the build was started. Dates appear using the year, month,
  1366. and day (YMD) format (e.g. "20150209" for February 9th, 2015).
  1367. :term:`DATETIME`
  1368. The date and time on which the current build started. The format is
  1369. suitable for timestamps.
  1370. :term:`DEBIAN_NOAUTONAME`
  1371. When the :ref:`ref-classes-debian` class is inherited,
  1372. which is the default behavior, :term:`DEBIAN_NOAUTONAME` specifies a
  1373. particular package should not be renamed according to Debian library
  1374. package naming. You must use the package name as an override when you
  1375. set this variable. Here is an example from the ``fontconfig`` recipe::
  1376. DEBIAN_NOAUTONAME:fontconfig-utils = "1"
  1377. :term:`DEBIANNAME`
  1378. When the :ref:`ref-classes-debian` class is inherited,
  1379. which is the default behavior, :term:`DEBIANNAME` allows you to override
  1380. the library name for an individual package. Overriding the library
  1381. name in these cases is rare. You must use the package name as an
  1382. override when you set this variable. Here is an example from the
  1383. ``dbus`` recipe::
  1384. DEBIANNAME:${PN} = "dbus-1"
  1385. :term:`DEBUG_BUILD`
  1386. Specifies to build packages with debugging information. This
  1387. influences the value of the :term:`SELECTED_OPTIMIZATION` variable.
  1388. :term:`DEBUG_OPTIMIZATION`
  1389. The options to pass in :term:`TARGET_CFLAGS` and :term:`CFLAGS` when
  1390. compiling a system for debugging. This variable defaults to "-O
  1391. -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe".
  1392. :term:`DEBUG_PREFIX_MAP`
  1393. Allows to set C compiler options, such as ``-fdebug-prefix-map``,
  1394. ``-fmacro-prefix-map``, and ``-ffile-prefix-map``, which allow to
  1395. replace build-time paths by install-time ones in the debugging sections
  1396. of binaries. This makes compiler output files location independent,
  1397. at the cost of having to pass an extra command to tell the debugger
  1398. where source files are.
  1399. This is used by the Yocto Project to guarantee
  1400. :doc:`/test-manual/reproducible-builds` even when the source code of
  1401. a package uses the ``__FILE__`` or ``assert()`` macros. See the
  1402. `reproducible-builds.org <https://reproducible-builds.org/docs/build-path/>`__
  1403. website for details.
  1404. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  1405. not intended to be user-configurable.
  1406. :term:`DEFAULT_PREFERENCE`
  1407. Specifies a weak bias for recipe selection priority.
  1408. The most common usage of this is variable is to set it to "-1" within
  1409. a recipe for a development version of a piece of software. Using the
  1410. variable in this way causes the stable version of the recipe to build
  1411. by default in the absence of :term:`PREFERRED_VERSION` being used to
  1412. build the development version.
  1413. .. note::
  1414. The bias provided by :term:`DEFAULT_PREFERENCE` is weak and is overridden
  1415. by :term:`BBFILE_PRIORITY` if that variable is different between two
  1416. layers that contain different versions of the same recipe.
  1417. :term:`DEFAULTTUNE`
  1418. The default CPU and Application Binary Interface (ABI) tunings (i.e.
  1419. the "tune") used by the OpenEmbedded build system. The
  1420. :term:`DEFAULTTUNE` helps define
  1421. :term:`TUNE_FEATURES`.
  1422. The default tune is either implicitly or explicitly set by the
  1423. machine (:term:`MACHINE`). However, you can override
  1424. the setting using available tunes as defined with
  1425. :term:`AVAILTUNES`.
  1426. :term:`DEPENDS`
  1427. Lists a recipe's build-time dependencies. These are dependencies on
  1428. other recipes whose contents (e.g. headers and shared libraries) are
  1429. needed by the recipe at build time.
  1430. As an example, consider a recipe ``foo`` that contains the following
  1431. assignment::
  1432. DEPENDS = "bar"
  1433. The practical effect of the previous assignment is that all files
  1434. installed by bar will be available in the appropriate staging sysroot,
  1435. given by the :term:`STAGING_DIR* <STAGING_DIR>` variables, by the time
  1436. the :ref:`ref-tasks-configure` task for ``foo`` runs. This mechanism is
  1437. implemented by having :ref:`ref-tasks-configure` depend on the
  1438. :ref:`ref-tasks-populate_sysroot` task of each recipe listed in
  1439. :term:`DEPENDS`, through a
  1440. ``[``\ :ref:`deptask <bitbake-user-manual/bitbake-user-manual-metadata:variable flags>`\ ``]``
  1441. declaration in the :ref:`ref-classes-base` class.
  1442. .. note::
  1443. It seldom is necessary to reference, for example, :term:`STAGING_DIR_HOST`
  1444. explicitly. The standard classes and build-related variables are
  1445. configured to automatically use the appropriate staging sysroots.
  1446. As another example, :term:`DEPENDS` can also be used to add utilities
  1447. that run on the build machine during the build. For example, a recipe
  1448. that makes use of a code generator built by the recipe ``codegen``
  1449. might have the following::
  1450. DEPENDS = "codegen-native"
  1451. For more
  1452. information, see the :ref:`ref-classes-native` class and
  1453. the :term:`EXTRANATIVEPATH` variable.
  1454. .. note::
  1455. - :term:`DEPENDS` is a list of recipe names. Or, to be more precise,
  1456. it is a list of :term:`PROVIDES` names, which
  1457. usually match recipe names. Putting a package name such as
  1458. "foo-dev" in :term:`DEPENDS` does not make sense. Use "foo"
  1459. instead, as this will put files from all the packages that make
  1460. up ``foo``, which includes those from ``foo-dev``, into the
  1461. sysroot.
  1462. - One recipe having another recipe in :term:`DEPENDS` does not by
  1463. itself add any runtime dependencies between the packages
  1464. produced by the two recipes. However, as explained in the
  1465. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  1466. section in the Yocto Project Overview and Concepts Manual,
  1467. runtime dependencies will often be added automatically, meaning
  1468. :term:`DEPENDS` alone is sufficient for most recipes.
  1469. - Counterintuitively, :term:`DEPENDS` is often necessary even for
  1470. recipes that install precompiled components. For example, if
  1471. ``libfoo`` is a precompiled library that links against
  1472. ``libbar``, then linking against ``libfoo`` requires both
  1473. ``libfoo`` and ``libbar`` to be available in the sysroot.
  1474. Without a :term:`DEPENDS` from the recipe that installs ``libfoo``
  1475. to the recipe that installs ``libbar``, other recipes might
  1476. fail to link against ``libfoo``.
  1477. For information on runtime dependencies, see the :term:`RDEPENDS`
  1478. variable. You can also see the
  1479. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:tasks`" and
  1480. ":ref:`bitbake-user-manual/bitbake-user-manual-execution:dependencies`"
  1481. sections in the BitBake User Manual for additional information on tasks
  1482. and dependencies.
  1483. :term:`DEPLOY_DIR`
  1484. Points to the general area that the OpenEmbedded build system uses to
  1485. place images, packages, SDKs, and other output files that are ready
  1486. to be used outside of the build system. By default, this directory
  1487. resides within the :term:`Build Directory` as ``${TMPDIR}/deploy``.
  1488. For more information on the structure of the Build Directory, see
  1489. ":ref:`ref-manual/structure:the build directory --- \`\`build/\`\``" section.
  1490. For more detail on the contents of the ``deploy`` directory, see the
  1491. ":ref:`overview-manual/concepts:images`",
  1492. ":ref:`overview-manual/concepts:package feeds`", and
  1493. ":ref:`overview-manual/concepts:application development sdk`" sections all in the
  1494. Yocto Project Overview and Concepts Manual.
  1495. :term:`DEPLOY_DIR_DEB`
  1496. Points to the area that the OpenEmbedded build system uses to place
  1497. Debian packages that are ready to be used outside of the build
  1498. system. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1499. ":ref:`ref-classes-package_deb`".
  1500. The BitBake configuration file initially defines the
  1501. :term:`DEPLOY_DIR_DEB` variable as a sub-folder of
  1502. :term:`DEPLOY_DIR`::
  1503. DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb"
  1504. The :ref:`ref-classes-package_deb` class uses the
  1505. :term:`DEPLOY_DIR_DEB` variable to make sure the
  1506. :ref:`ref-tasks-package_write_deb` task
  1507. writes Debian packages into the appropriate folder. For more
  1508. information on how packaging works, see the
  1509. ":ref:`overview-manual/concepts:package feeds`" section
  1510. in the Yocto Project Overview and Concepts Manual.
  1511. :term:`DEPLOY_DIR_IMAGE`
  1512. Points to the area that the OpenEmbedded build system uses to place
  1513. images and other associated output files that are ready to be
  1514. deployed onto the target machine. The directory is machine-specific
  1515. as it contains the ``${MACHINE}`` name. By default, this directory
  1516. resides within the :term:`Build Directory` as
  1517. ``${DEPLOY_DIR}/images/${MACHINE}/``.
  1518. It must not be used directly in recipes when deploying files. Instead,
  1519. it's only useful when a recipe needs to "read" a file already deployed
  1520. by a dependency. So, it should be filled with the contents of
  1521. :term:`DEPLOYDIR` by the :ref:`ref-classes-deploy` class or with the
  1522. contents of :term:`IMGDEPLOYDIR` by the :ref:`ref-classes-image` class.
  1523. For more information on the structure of the :term:`Build Directory`, see
  1524. ":ref:`ref-manual/structure:the build directory --- \`\`build/\`\``" section.
  1525. For more detail on the contents of the ``deploy`` directory, see the
  1526. ":ref:`overview-manual/concepts:images`" and
  1527. ":ref:`overview-manual/concepts:application development sdk`" sections both in
  1528. the Yocto Project Overview and Concepts Manual.
  1529. :term:`DEPLOY_DIR_IPK`
  1530. Points to the area that the OpenEmbedded build system uses to place
  1531. IPK packages that are ready to be used outside of the build system.
  1532. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1533. ":ref:`ref-classes-package_ipk`".
  1534. The BitBake configuration file initially defines this variable as a
  1535. sub-folder of :term:`DEPLOY_DIR`::
  1536. DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk"
  1537. The :ref:`ref-classes-package_ipk` class uses the :term:`DEPLOY_DIR_IPK`
  1538. variable to make sure the :ref:`ref-tasks-package_write_ipk` task
  1539. writes IPK packages into the appropriate folder. For more information
  1540. on how packaging works, see the
  1541. ":ref:`overview-manual/concepts:package feeds`" section
  1542. in the Yocto Project Overview and Concepts Manual.
  1543. :term:`DEPLOY_DIR_RPM`
  1544. Points to the area that the OpenEmbedded build system uses to place
  1545. RPM packages that are ready to be used outside of the build system.
  1546. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1547. ":ref:`ref-classes-package_rpm`".
  1548. The BitBake configuration file initially defines this variable as a
  1549. sub-folder of :term:`DEPLOY_DIR`::
  1550. DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm"
  1551. The :ref:`ref-classes-package_rpm` class uses the
  1552. :term:`DEPLOY_DIR_RPM` variable to make sure the
  1553. :ref:`ref-tasks-package_write_rpm` task
  1554. writes RPM packages into the appropriate folder. For more information
  1555. on how packaging works, see the
  1556. ":ref:`overview-manual/concepts:package feeds`" section
  1557. in the Yocto Project Overview and Concepts Manual.
  1558. :term:`DEPLOYDIR`
  1559. When inheriting the :ref:`ref-classes-deploy` class, the
  1560. :term:`DEPLOYDIR` points to a temporary work area for deployed files that
  1561. is set in the :ref:`ref-classes-deploy` class as follows::
  1562. DEPLOYDIR = "${WORKDIR}/deploy-${PN}"
  1563. Recipes inheriting the :ref:`ref-classes-deploy` class should copy files to be
  1564. deployed into :term:`DEPLOYDIR`, and the class will take care of copying
  1565. them into :term:`DEPLOY_DIR_IMAGE`
  1566. afterwards.
  1567. :term:`DESCRIPTION`
  1568. The package description used by package managers. If not set,
  1569. :term:`DESCRIPTION` takes the value of the :term:`SUMMARY`
  1570. variable.
  1571. :term:`DEV_PKG_DEPENDENCY`
  1572. Provides an easy way for recipes to disable or adjust the runtime recommendation
  1573. (:term:`RRECOMMENDS`) of the ``${PN}-dev`` package on the main
  1574. (``${PN}``) package.
  1575. :term:`DISABLE_STATIC`
  1576. Used in order to disable static linking by default (in order to save
  1577. space, since static libraries are often unused in embedded systems.)
  1578. The default value is " --disable-static", however it can be set to ""
  1579. in order to enable static linking if desired. Certain recipes do this
  1580. individually, and also there is a
  1581. ``meta/conf/distro/include/no-static-libs.inc`` include file that
  1582. disables static linking for a number of recipes. Some software
  1583. packages or build tools (such as CMake) have explicit support for
  1584. enabling / disabling static linking, and in those cases
  1585. :term:`DISABLE_STATIC` is not used.
  1586. :term:`DISTRO`
  1587. The short name of the distribution. For information on the long name
  1588. of the distribution, see the :term:`DISTRO_NAME`
  1589. variable.
  1590. The :term:`DISTRO` variable corresponds to a distribution configuration
  1591. file whose root name is the same as the variable's argument and whose
  1592. filename extension is ``.conf``. For example, the distribution
  1593. configuration file for the Poky distribution is named ``poky.conf``
  1594. and resides in the ``meta-poky/conf/distro`` directory of the
  1595. :term:`Source Directory`.
  1596. Within that ``poky.conf`` file, the :term:`DISTRO` variable is set as
  1597. follows::
  1598. DISTRO = "poky"
  1599. Distribution configuration files are located in a ``conf/distro``
  1600. directory within the :term:`Metadata` that contains the
  1601. distribution configuration. The value for :term:`DISTRO` must not contain
  1602. spaces, and is typically all lower-case.
  1603. .. note::
  1604. If the :term:`DISTRO` variable is blank, a set of default configurations
  1605. are used, which are specified within
  1606. ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.
  1607. :term:`DISTRO_CODENAME`
  1608. Specifies a codename for the distribution being built.
  1609. :term:`DISTRO_EXTRA_RDEPENDS`
  1610. Specifies a list of distro-specific packages to add to all images.
  1611. This variable takes effect through ``packagegroup-base`` so the
  1612. variable only really applies to the more full-featured images that
  1613. include ``packagegroup-base``. You can use this variable to keep
  1614. distro policy out of generic images. As with all other distro
  1615. variables, you set this variable in the distro ``.conf`` file.
  1616. :term:`DISTRO_EXTRA_RRECOMMENDS`
  1617. Specifies a list of distro-specific packages to add to all images if
  1618. the packages exist. The packages might not exist or be empty (e.g.
  1619. kernel modules). The list of packages are automatically installed but
  1620. you can remove them.
  1621. :term:`DISTRO_FEATURES`
  1622. The software support you want in your distribution for various
  1623. features. You define your distribution features in the distribution
  1624. configuration file.
  1625. In most cases, the presence or absence of a feature in
  1626. :term:`DISTRO_FEATURES` is translated to the appropriate option supplied
  1627. to the configure script during the
  1628. :ref:`ref-tasks-configure` task for recipes that
  1629. optionally support the feature. For example, specifying "x11" in
  1630. :term:`DISTRO_FEATURES`, causes every piece of software built for the
  1631. target that can optionally support X11 to have its X11 support
  1632. enabled.
  1633. .. note::
  1634. Just enabling :term:`DISTRO_FEATURES` alone doesn't
  1635. enable feature support for packages. Mechanisms such as making
  1636. :term:`PACKAGECONFIG` track :term:`DISTRO_FEATURES` are used
  1637. to enable/disable package features.
  1638. Two more examples are Bluetooth and NFS support. For a more complete
  1639. list of features that ships with the Yocto Project and that you can
  1640. provide with this variable, see the ":ref:`ref-features-distro`" section.
  1641. :term:`DISTRO_FEATURES_BACKFILL`
  1642. A space-separated list of features to be added to :term:`DISTRO_FEATURES`
  1643. if not also present in :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`.
  1644. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  1645. not intended to be user-configurable. It is best to just reference
  1646. the variable to see which distro features are being
  1647. :ref:`backfilled <ref-features-backfill>` for all distro configurations.
  1648. :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`
  1649. A space-separated list of features from :term:`DISTRO_FEATURES_BACKFILL`
  1650. that should not be :ref:`backfilled <ref-features-backfill>` (i.e. added
  1651. to :term:`DISTRO_FEATURES`) during the build.
  1652. This corresponds to an opt-out mechanism. When new default distro
  1653. features are introduced, distribution maintainers can review (`consider`)
  1654. them and decide to exclude them from the
  1655. :ref:`backfilled <ref-features-backfill>` features. Therefore, the
  1656. combination of :term:`DISTRO_FEATURES_BACKFILL` and
  1657. :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED` makes it possible to
  1658. add new default features without breaking existing distributions.
  1659. :term:`DISTRO_FEATURES_DEFAULT`
  1660. A convenience variable that gives you the default list of distro
  1661. features with the exception of any features specific to the C library
  1662. (``libc``).
  1663. When creating a custom distribution, you might find it useful to be
  1664. able to reuse the default
  1665. :term:`DISTRO_FEATURES` options without the
  1666. need to write out the full set. Here is an example that uses
  1667. :term:`DISTRO_FEATURES_DEFAULT` from a custom distro configuration file::
  1668. DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} myfeature"
  1669. :term:`DISTRO_FEATURES_FILTER_NATIVE`
  1670. Specifies a list of features that if present in the target
  1671. :term:`DISTRO_FEATURES` value should be
  1672. included in :term:`DISTRO_FEATURES` when building native recipes. This
  1673. variable is used in addition to the features filtered using the
  1674. :term:`DISTRO_FEATURES_NATIVE`
  1675. variable.
  1676. :term:`DISTRO_FEATURES_FILTER_NATIVESDK`
  1677. Specifies a list of features that if present in the target
  1678. :term:`DISTRO_FEATURES` value should be included in
  1679. :term:`DISTRO_FEATURES` when building :ref:`ref-classes-nativesdk`
  1680. recipes. This variable is used in addition to the features filtered using
  1681. the :term:`DISTRO_FEATURES_NATIVESDK` variable.
  1682. :term:`DISTRO_FEATURES_NATIVE`
  1683. Specifies a list of features that should be included in
  1684. :term:`DISTRO_FEATURES` when building native
  1685. recipes. This variable is used in addition to the features filtered
  1686. using the
  1687. :term:`DISTRO_FEATURES_FILTER_NATIVE`
  1688. variable.
  1689. :term:`DISTRO_FEATURES_NATIVESDK`
  1690. Specifies a list of features that should be included in
  1691. :term:`DISTRO_FEATURES` when building
  1692. :ref:`ref-classes-nativesdk` recipes. This variable is used
  1693. in addition to the features filtered using the
  1694. :term:`DISTRO_FEATURES_FILTER_NATIVESDK` variable.
  1695. :term:`DISTRO_NAME`
  1696. The long name of the distribution. For information on the short name
  1697. of the distribution, see the :term:`DISTRO` variable.
  1698. The :term:`DISTRO_NAME` variable corresponds to a distribution
  1699. configuration file whose root name is the same as the variable's
  1700. argument and whose filename extension is ``.conf``. For example, the
  1701. distribution configuration file for the Poky distribution is named
  1702. ``poky.conf`` and resides in the ``meta-poky/conf/distro`` directory
  1703. of the :term:`Source Directory`.
  1704. Within that ``poky.conf`` file, the :term:`DISTRO_NAME` variable is set
  1705. as follows::
  1706. DISTRO_NAME = "Poky (Yocto Project Reference Distro)"
  1707. Distribution configuration files are located in a ``conf/distro``
  1708. directory within the :term:`Metadata` that contains the
  1709. distribution configuration.
  1710. .. note::
  1711. If the :term:`DISTRO_NAME` variable is blank, a set of default
  1712. configurations are used, which are specified within
  1713. ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.
  1714. :term:`DISTRO_VERSION`
  1715. The version of the distribution.
  1716. :term:`DISTROOVERRIDES`
  1717. A colon-separated list of overrides specific to the current
  1718. distribution. By default, this list includes the value of
  1719. :term:`DISTRO`.
  1720. You can extend :term:`DISTROOVERRIDES` to add extra overrides that should
  1721. apply to the distribution.
  1722. The underlying mechanism behind :term:`DISTROOVERRIDES` is simply that it
  1723. is included in the default value of
  1724. :term:`OVERRIDES`.
  1725. Here is an example from :yocto_git:`meta-poky/conf/distro/poky-tiny.conf
  1726. </poky/tree/meta-poky/conf/distro/poky-tiny.conf>`::
  1727. DISTROOVERRIDES = "poky:poky-tiny"
  1728. :term:`DL_DIR`
  1729. The central download directory used by the build process to store
  1730. downloads. By default, :term:`DL_DIR` gets files suitable for mirroring
  1731. for everything except Git repositories. If you want tarballs of Git
  1732. repositories, use the
  1733. :term:`BB_GENERATE_MIRROR_TARBALLS`
  1734. variable.
  1735. You can set this directory by defining the :term:`DL_DIR` variable in the
  1736. ``conf/local.conf`` file. This directory is self-maintaining and you
  1737. should not have to touch it. By default, the directory is
  1738. ``downloads`` in the :term:`Build Directory`::
  1739. #DL_DIR ?= "${TOPDIR}/downloads"
  1740. To specify a different download directory,
  1741. simply remove the comment from the line and provide your directory.
  1742. During a first build, the system downloads many different source code
  1743. tarballs from various upstream projects. Downloading can take a
  1744. while, particularly if your network connection is slow. Tarballs are
  1745. all stored in the directory defined by :term:`DL_DIR` and the build
  1746. system looks there first to find source tarballs.
  1747. .. note::
  1748. When wiping and rebuilding, you can preserve this directory to
  1749. speed up this part of subsequent builds.
  1750. You can safely share this directory between multiple builds on the
  1751. same development machine. For additional information on how the build
  1752. process gets source files when working behind a firewall or proxy
  1753. server, see this specific question in the ":doc:`faq`"
  1754. chapter. You can also refer to the
  1755. ":yocto_wiki:`Working Behind a Network Proxy </Working_Behind_a_Network_Proxy>`"
  1756. Wiki page.
  1757. :term:`DOC_COMPRESS`
  1758. When inheriting the :ref:`ref-classes-compress_doc`
  1759. class, this variable sets the compression policy used when the
  1760. OpenEmbedded build system compresses man pages and info pages. By
  1761. default, the compression method used is gz (gzip). Other policies
  1762. available are xz and bz2.
  1763. For information on policies and on how to use this variable, see the
  1764. comments in the ``meta/classes-recipe/compress_doc.bbclass`` file.
  1765. :term:`DT_FILES`
  1766. Space-separated list of device tree source files to compile using
  1767. a recipe that inherits the :ref:`ref-classes-devicetree` class. These
  1768. are relative to the :term:`DT_FILES_PATH`.
  1769. For convenience, both ``.dts`` and ``.dtb`` extensions can be used.
  1770. Use an empty string (default) to build all device tree sources within
  1771. the :term:`DT_FILES_PATH` directory.
  1772. :term:`DT_FILES_PATH`
  1773. When compiling out-of-tree device tree sources using a recipe that
  1774. inherits the :ref:`ref-classes-devicetree` class, this variable specifies
  1775. the path to the directory containing dts files to build.
  1776. Defaults to the :term:`S` directory.
  1777. :term:`DT_PADDING_SIZE`
  1778. When inheriting the :ref:`ref-classes-devicetree` class, this variable
  1779. specifies the size of padding appended to the device tree blob, used as
  1780. extra space typically for additional properties during boot.
  1781. :term:`EFI_PROVIDER`
  1782. When building bootable images (i.e. where ``hddimg``, ``iso``, or
  1783. ``wic.vmdk`` is in :term:`IMAGE_FSTYPES`), the
  1784. :term:`EFI_PROVIDER` variable specifies the EFI bootloader to use. The
  1785. default is "grub-efi", but "systemd-boot" can be used instead.
  1786. See the :ref:`ref-classes-systemd-boot` and :ref:`ref-classes-image-live`
  1787. classes for more information.
  1788. :term:`ENABLE_BINARY_LOCALE_GENERATION`
  1789. Variable that controls which locales for ``glibc`` are generated
  1790. during the build (useful if the target device has 64Mbytes of RAM or
  1791. less).
  1792. :term:`ERR_REPORT_DIR`
  1793. When used with the :ref:`ref-classes-report-error` class, specifies the
  1794. path used for storing the debug files created by the :ref:`error reporting
  1795. tool <dev-manual/error-reporting-tool:using the error reporting tool>`,
  1796. which allows you to submit build errors you encounter to a central
  1797. database. By default, the value of this variable is
  1798. ``${``\ :term:`LOG_DIR`\ ``}/error-report``.
  1799. You can set :term:`ERR_REPORT_DIR` to the path you want the error
  1800. reporting tool to store the debug files as follows in your
  1801. ``local.conf`` file::
  1802. ERR_REPORT_DIR = "path"
  1803. :term:`ERROR_QA`
  1804. Specifies the quality assurance checks whose failures are reported as
  1805. errors by the OpenEmbedded build system. You set this variable in
  1806. your distribution configuration file. For a list of the checks you
  1807. can control with this variable, see the
  1808. ":ref:`ref-classes-insane`" section.
  1809. :term:`ESDK_CLASS_INHERIT_DISABLE`
  1810. A list of classes to remove from the :term:`INHERIT`
  1811. value globally within the extensible SDK configuration. The
  1812. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class sets the
  1813. default value::
  1814. ESDK_CLASS_INHERIT_DISABLE ?= "buildhistory icecc"
  1815. Some classes are not generally applicable within the extensible SDK
  1816. context. You can use this variable to disable those classes.
  1817. For additional information on how to customize the extensible SDK's
  1818. configuration, see the
  1819. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  1820. section in the Yocto Project Application Development and the
  1821. Extensible Software Development Kit (eSDK) manual.
  1822. :term:`ESDK_LOCALCONF_ALLOW`
  1823. A list of variables allowed through from the OpenEmbedded build
  1824. system configuration into the extensible SDK configuration. By
  1825. default, the list of variables is empty and is set in the
  1826. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class.
  1827. This list overrides the variables specified using the
  1828. :term:`ESDK_LOCALCONF_REMOVE` variable as well as
  1829. other variables automatically added due to the "/" character
  1830. being found at the start of the
  1831. value, which is usually indicative of being a path and thus might not
  1832. be valid on the system where the SDK is installed.
  1833. For additional information on how to customize the extensible SDK's
  1834. configuration, see the
  1835. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  1836. section in the Yocto Project Application Development and the
  1837. Extensible Software Development Kit (eSDK) manual.
  1838. :term:`ESDK_LOCALCONF_REMOVE`
  1839. A list of variables not allowed through from the OpenEmbedded build
  1840. system configuration into the extensible SDK configuration. Usually,
  1841. these are variables that are specific to the machine on which the
  1842. build system is running and thus would be potentially problematic
  1843. within the extensible SDK.
  1844. By default, :term:`ESDK_LOCALCONF_REMOVE` is set in the
  1845. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class and
  1846. excludes the following variables:
  1847. - :term:`CONF_VERSION`
  1848. - :term:`BB_NUMBER_THREADS`
  1849. - :term:`BB_NUMBER_PARSE_THREADS`
  1850. - :term:`PARALLEL_MAKE`
  1851. - :term:`PRSERV_HOST`
  1852. - :term:`SSTATE_MIRRORS` :term:`DL_DIR`
  1853. - :term:`SSTATE_DIR` :term:`TMPDIR`
  1854. - :term:`BB_SERVER_TIMEOUT`
  1855. For additional information on how to customize the extensible SDK's
  1856. configuration, see the
  1857. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  1858. section in the Yocto Project Application Development and the
  1859. Extensible Software Development Kit (eSDK) manual.
  1860. :term:`EXCLUDE_FROM_SHLIBS`
  1861. Triggers the OpenEmbedded build system's shared libraries resolver to
  1862. exclude an entire package when scanning for shared libraries.
  1863. .. note::
  1864. The shared libraries resolver's functionality results in part from
  1865. the internal function ``package_do_shlibs``, which is part of the
  1866. :ref:`ref-tasks-package` task. You should be aware that the shared
  1867. libraries resolver might implicitly define some dependencies between
  1868. packages.
  1869. The :term:`EXCLUDE_FROM_SHLIBS` variable is similar to the
  1870. :term:`PRIVATE_LIBS` variable, which excludes a
  1871. package's particular libraries only and not the whole package.
  1872. Use the :term:`EXCLUDE_FROM_SHLIBS` variable by setting it to "1" for a
  1873. particular package::
  1874. EXCLUDE_FROM_SHLIBS = "1"
  1875. :term:`EXCLUDE_FROM_WORLD`
  1876. Directs BitBake to exclude a recipe from world builds (i.e.
  1877. ``bitbake world``). During world builds, BitBake locates, parses and
  1878. builds all recipes found in every layer exposed in the
  1879. ``bblayers.conf`` configuration file.
  1880. To exclude a recipe from a world build using this variable, set the
  1881. variable to "1" in the recipe.
  1882. .. note::
  1883. Recipes added to :term:`EXCLUDE_FROM_WORLD` may still be built during a
  1884. world build in order to satisfy dependencies of other recipes. Adding
  1885. a recipe to :term:`EXCLUDE_FROM_WORLD` only ensures that the recipe is not
  1886. explicitly added to the list of build targets in a world build.
  1887. :term:`EXTENDPE`
  1888. Used with file and pathnames to create a prefix for a recipe's
  1889. version based on the recipe's :term:`PE` value. If :term:`PE`
  1890. is set and greater than zero for a recipe, :term:`EXTENDPE` becomes that
  1891. value (e.g if :term:`PE` is equal to "1" then :term:`EXTENDPE` becomes "1").
  1892. If a recipe's :term:`PE` is not set (the default) or is equal to zero,
  1893. :term:`EXTENDPE` becomes "".
  1894. See the :term:`STAMP` variable for an example.
  1895. :term:`EXTENDPKGV`
  1896. The full package version specification as it appears on the final
  1897. packages produced by a recipe. The variable's value is normally used
  1898. to fix a runtime dependency to the exact same version of another
  1899. package in the same recipe::
  1900. RDEPENDS:${PN}-additional-module = "${PN} (= ${EXTENDPKGV})"
  1901. The dependency relationships are intended to force the package
  1902. manager to upgrade these types of packages in lock-step.
  1903. :term:`EXTERNAL_KERNEL_TOOLS`
  1904. When set, the :term:`EXTERNAL_KERNEL_TOOLS` variable indicates that these
  1905. tools are not in the source tree.
  1906. When kernel tools are available in the tree, they are preferred over
  1907. any externally installed tools. Setting the :term:`EXTERNAL_KERNEL_TOOLS`
  1908. variable tells the OpenEmbedded build system to prefer the installed
  1909. external tools. See the :ref:`ref-classes-kernel-yocto` class in
  1910. ``meta/classes-recipe`` to see how the variable is used.
  1911. :term:`EXTERNAL_TOOLCHAIN`
  1912. When you intend to use an
  1913. :ref:`external toolchain <dev-manual/external-toolchain:optionally using an external toolchain>`,
  1914. this variable allows to specify the directory where this toolchain was
  1915. installed.
  1916. :term:`EXTERNALSRC`
  1917. When inheriting the :ref:`ref-classes-externalsrc`
  1918. class, this variable points to the source tree, which is outside of
  1919. the OpenEmbedded build system. When set, this variable sets the
  1920. :term:`S` variable, which is what the OpenEmbedded build
  1921. system uses to locate unpacked recipe source code.
  1922. See the ":ref:`ref-classes-externalsrc`" section for details. You
  1923. can also find information on how to use this variable in the
  1924. ":ref:`dev-manual/building:building software from an external source`"
  1925. section in the Yocto Project Development Tasks Manual.
  1926. :term:`EXTERNALSRC_BUILD`
  1927. When inheriting the :ref:`ref-classes-externalsrc`
  1928. class, this variable points to the directory in which the recipe's
  1929. source code is built, which is outside of the OpenEmbedded build
  1930. system. When set, this variable sets the :term:`B` variable,
  1931. which is what the OpenEmbedded build system uses to locate the
  1932. :term:`Build Directory`.
  1933. See the ":ref:`ref-classes-externalsrc`" section for details. You
  1934. can also find information on how to use this variable in the
  1935. ":ref:`dev-manual/building:building software from an external source`"
  1936. section in the Yocto Project Development Tasks Manual.
  1937. :term:`EXTRA_AUTORECONF`
  1938. For recipes inheriting the :ref:`ref-classes-autotools`
  1939. class, you can use :term:`EXTRA_AUTORECONF` to specify extra options to
  1940. pass to the ``autoreconf`` command that is executed during the
  1941. :ref:`ref-tasks-configure` task.
  1942. The default value is "--exclude=autopoint".
  1943. :term:`EXTRA_IMAGE_FEATURES`
  1944. A list of additional features to include in an image. When listing
  1945. more than one feature, separate them with a space.
  1946. Typically, you configure this variable in your ``local.conf`` file,
  1947. which is found in the :term:`Build Directory`. Although you can use this
  1948. variable from within a recipe, best practices dictate that you do not.
  1949. .. note::
  1950. To enable primary features from within the image recipe, use the
  1951. :term:`IMAGE_FEATURES` variable.
  1952. Here are some examples of features you can add:
  1953. - "dbg-pkgs" --- adds -dbg packages for all installed packages including
  1954. symbol information for debugging and profiling.
  1955. - "debug-tweaks" --- makes an image suitable for debugging. For example, allows root logins without passwords and
  1956. enables post-installation logging. See the 'allow-empty-password' and
  1957. 'post-install-logging' features in the ":ref:`ref-features-image`"
  1958. section for more information.
  1959. - "dev-pkgs" --- adds -dev packages for all installed packages. This is
  1960. useful if you want to develop against the libraries in the image.
  1961. - "read-only-rootfs" --- creates an image whose root filesystem is
  1962. read-only. See the
  1963. ":ref:`dev-manual/read-only-rootfs:creating a read-only root filesystem`"
  1964. section in the Yocto Project Development Tasks Manual for more
  1965. information
  1966. - "tools-debug" --- adds debugging tools such as gdb and strace.
  1967. - "tools-sdk" --- adds development tools such as gcc, make,
  1968. pkgconfig and so forth.
  1969. - "tools-testapps" --- adds useful testing tools
  1970. such as ts_print, aplay, arecord and so forth.
  1971. For a complete list of image features that ships with the Yocto
  1972. Project, see the ":ref:`ref-features-image`" section.
  1973. For an example that shows how to customize your image by using this
  1974. variable, see the ":ref:`dev-manual/customizing-images:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  1975. section in the Yocto Project Development Tasks Manual.
  1976. :term:`EXTRA_IMAGECMD`
  1977. Specifies additional options for the image creation command that has
  1978. been specified in :term:`IMAGE_CMD`. When setting
  1979. this variable, use an override for the associated image type. Here is
  1980. an example::
  1981. EXTRA_IMAGECMD:ext3 ?= "-i 4096"
  1982. :term:`EXTRA_IMAGEDEPENDS`
  1983. A list of recipes to build that do not provide packages for
  1984. installing into the root filesystem.
  1985. Sometimes a recipe is required to build the final image but is not
  1986. needed in the root filesystem. You can use the :term:`EXTRA_IMAGEDEPENDS`
  1987. variable to list these recipes and thus specify the dependencies. A
  1988. typical example is a required bootloader in a machine configuration.
  1989. .. note::
  1990. To add packages to the root filesystem, see the various
  1991. :term:`RDEPENDS` and :term:`RRECOMMENDS` variables.
  1992. :term:`EXTRA_OECMAKE`
  1993. Additional `CMake <https://cmake.org/overview/>`__ options. See the
  1994. :ref:`ref-classes-cmake` class for additional information.
  1995. :term:`EXTRA_OECONF`
  1996. Additional ``configure`` script options. See
  1997. :term:`PACKAGECONFIG_CONFARGS` for
  1998. additional information on passing configure script options.
  1999. :term:`EXTRA_OEMAKE`
  2000. Additional GNU ``make`` options.
  2001. Because the :term:`EXTRA_OEMAKE` defaults to "", you need to set the
  2002. variable to specify any required GNU options.
  2003. :term:`PARALLEL_MAKE` and
  2004. :term:`PARALLEL_MAKEINST` also make use of
  2005. :term:`EXTRA_OEMAKE` to pass the required flags.
  2006. :term:`EXTRA_OESCONS`
  2007. When inheriting the :ref:`ref-classes-scons` class, this
  2008. variable specifies additional configuration options you want to pass
  2009. to the ``scons`` command line.
  2010. :term:`EXTRA_OEMESON`
  2011. Additional `Meson <https://mesonbuild.com/>`__ options. See the
  2012. :ref:`ref-classes-meson` class for additional information.
  2013. In addition to standard Meson options, such options correspond to
  2014. `Meson build options <https://mesonbuild.com/Build-options.html>`__
  2015. defined in the ``meson_options.txt`` file in the sources to build.
  2016. Here is an example::
  2017. EXTRA_OEMESON = "-Dpython=disabled -Dvalgrind=disabled"
  2018. Note that any custom value for the Meson ``--buildtype`` option
  2019. should be set through the :term:`MESON_BUILDTYPE` variable.
  2020. :term:`EXTRA_USERS_PARAMS`
  2021. When inheriting the :ref:`ref-classes-extrausers`
  2022. class, this variable provides image level user and group operations.
  2023. This is a more global method of providing user and group
  2024. configuration as compared to using the
  2025. :ref:`ref-classes-useradd` class, which ties user and
  2026. group configurations to a specific recipe.
  2027. The set list of commands you can configure using the
  2028. :term:`EXTRA_USERS_PARAMS` is shown in the
  2029. :ref:`ref-classes-extrausers` class. These commands map to the normal
  2030. Unix commands of the same names::
  2031. # EXTRA_USERS_PARAMS = "\
  2032. # useradd -p '' tester; \
  2033. # groupadd developers; \
  2034. # userdel nobody; \
  2035. # groupdel -g video; \
  2036. # groupmod -g 1020 developers; \
  2037. # usermod -s /bin/sh tester; \
  2038. # "
  2039. Hardcoded passwords are supported via the ``-p`` parameters for
  2040. ``useradd`` or ``usermod``, but only hashed.
  2041. Here is an example that adds two users named "tester-jim" and "tester-sue" and assigns
  2042. passwords. First on host, create the (escaped) password hash::
  2043. printf "%q" $(mkpasswd -m sha256crypt tester01)
  2044. The resulting hash is set to a variable and used in ``useradd`` command parameters::
  2045. inherit extrausers
  2046. PASSWD = "\$X\$ABC123\$A-Long-Hash"
  2047. EXTRA_USERS_PARAMS = "\
  2048. useradd -p '${PASSWD}' tester-jim; \
  2049. useradd -p '${PASSWD}' tester-sue; \
  2050. "
  2051. Finally, here is an example that sets the root password::
  2052. inherit extrausers
  2053. EXTRA_USERS_PARAMS = "\
  2054. usermod -p '${PASSWD}' root; \
  2055. "
  2056. .. note::
  2057. From a security perspective, hardcoding a default password is not
  2058. generally a good idea or even legal in some jurisdictions. It is
  2059. recommended that you do not do this if you are building a production
  2060. image.
  2061. Additionally there is a special ``passwd-expire`` command that will
  2062. cause the password for a user to be expired and thus force changing it
  2063. on first login, for example::
  2064. EXTRA_USERS_PARAMS += " useradd myuser; passwd-expire myuser;"
  2065. .. note::
  2066. At present, ``passwd-expire`` may only work for remote logins when
  2067. using OpenSSH and not dropbear as an SSH server.
  2068. :term:`EXTRANATIVEPATH`
  2069. A list of subdirectories of
  2070. ``${``\ :term:`STAGING_BINDIR_NATIVE`\ ``}``
  2071. added to the beginning of the environment variable ``PATH``. As an
  2072. example, the following prepends
  2073. "${STAGING_BINDIR_NATIVE}/foo:${STAGING_BINDIR_NATIVE}/bar:" to
  2074. ``PATH``::
  2075. EXTRANATIVEPATH = "foo bar"
  2076. :term:`FAKEROOT`
  2077. See :term:`bitbake:FAKEROOT` in the BitBake manual.
  2078. :term:`FAKEROOTBASEENV`
  2079. See :term:`bitbake:FAKEROOTBASEENV` in the BitBake manual.
  2080. :term:`FAKEROOTCMD`
  2081. See :term:`bitbake:FAKEROOTCMD` in the BitBake manual.
  2082. :term:`FAKEROOTDIRS`
  2083. See :term:`bitbake:FAKEROOTDIRS` in the BitBake manual.
  2084. :term:`FAKEROOTENV`
  2085. See :term:`bitbake:FAKEROOTENV` in the BitBake manual.
  2086. :term:`FAKEROOTNOENV`
  2087. See :term:`bitbake:FAKEROOTNOENV` in the BitBake manual.
  2088. :term:`FEATURE_PACKAGES`
  2089. Defines one or more packages to include in an image when a specific
  2090. item is included in :term:`IMAGE_FEATURES`.
  2091. When setting the value, :term:`FEATURE_PACKAGES` should have the name of
  2092. the feature item as an override. Here is an example::
  2093. FEATURE_PACKAGES_widget = "package1 package2"
  2094. In this example, if "widget" were added to :term:`IMAGE_FEATURES`,
  2095. package1 and package2 would be included in the image.
  2096. .. note::
  2097. Packages installed by features defined through :term:`FEATURE_PACKAGES`
  2098. are often package groups. While similarly named, you should not
  2099. confuse the :term:`FEATURE_PACKAGES` variable with package groups, which
  2100. are discussed elsewhere in the documentation.
  2101. :term:`FEED_DEPLOYDIR_BASE_URI`
  2102. Points to the base URL of the server and location within the
  2103. document-root that provides the metadata and packages required by
  2104. OPKG to support runtime package management of IPK packages. You set
  2105. this variable in your ``local.conf`` file.
  2106. Consider the following example::
  2107. FEED_DEPLOYDIR_BASE_URI = "http://192.168.7.1/BOARD-dir"
  2108. This example assumes you are serving
  2109. your packages over HTTP and your databases are located in a directory
  2110. named ``BOARD-dir``, which is underneath your HTTP server's
  2111. document-root. In this case, the OpenEmbedded build system generates
  2112. a set of configuration files for you in your target that work with
  2113. the feed.
  2114. :term:`FETCHCMD`
  2115. See :term:`bitbake:FETCHCMD` in the BitBake manual.
  2116. :term:`FILE`
  2117. See :term:`bitbake:FILE` in the BitBake manual.
  2118. :term:`FILES`
  2119. The list of files and directories that are placed in a package. The
  2120. :term:`PACKAGES` variable lists the packages
  2121. generated by a recipe.
  2122. To use the :term:`FILES` variable, provide a package name override that
  2123. identifies the resulting package. Then, provide a space-separated
  2124. list of files or paths that identify the files you want included as
  2125. part of the resulting package. Here is an example::
  2126. FILES:${PN} += "${bindir}/mydir1 ${bindir}/mydir2/myfile"
  2127. .. note::
  2128. - When specifying files or paths, you can pattern match using
  2129. Python's
  2130. `glob <https://docs.python.org/3/library/glob.html>`__
  2131. syntax. For details on the syntax, see the documentation by
  2132. following the previous link.
  2133. - When specifying paths as part of the :term:`FILES` variable, it is
  2134. good practice to use appropriate path variables. For example,
  2135. use ``${sysconfdir}`` rather than ``/etc``, or ``${bindir}``
  2136. rather than ``/usr/bin``. You can find a list of these
  2137. variables at the top of the ``meta/conf/bitbake.conf`` file in
  2138. the :term:`Source Directory`. You will also
  2139. find the default values of the various ``FILES:*`` variables in
  2140. this file.
  2141. If some of the files you provide with the :term:`FILES` variable are
  2142. editable and you know they should not be overwritten during the
  2143. package update process by the Package Management System (PMS), you
  2144. can identify these files so that the PMS will not overwrite them. See
  2145. the :term:`CONFFILES` variable for information on
  2146. how to identify these files to the PMS.
  2147. :term:`FILES_SOLIBSDEV`
  2148. Defines the file specification to match
  2149. :term:`SOLIBSDEV`. In other words,
  2150. :term:`FILES_SOLIBSDEV` defines the full path name of the development
  2151. symbolic link (symlink) for shared libraries on the target platform.
  2152. The following statement from the ``bitbake.conf`` shows how it is
  2153. set::
  2154. FILES_SOLIBSDEV ?= "${base_libdir}/lib*${SOLIBSDEV} ${libdir}/lib*${SOLIBSDEV}"
  2155. :term:`FILESEXTRAPATHS`
  2156. A colon-separated list to extend the search path the OpenEmbedded build
  2157. system uses when looking for files and patches as it processes recipes
  2158. and append files. The default directories BitBake uses when it processes
  2159. recipes are initially defined by the :term:`FILESPATH` variable. You can
  2160. extend :term:`FILESPATH` variable by using :term:`FILESEXTRAPATHS`.
  2161. Best practices dictate that you accomplish this by using
  2162. :term:`FILESEXTRAPATHS` from within a ``.bbappend`` file and that you
  2163. prepend paths as follows::
  2164. FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
  2165. In the above example, the build system first
  2166. looks for files in a directory that has the same name as the
  2167. corresponding append file.
  2168. .. note::
  2169. When extending :term:`FILESEXTRAPATHS`, be sure to use the immediate
  2170. expansion (``:=``) operator. Immediate expansion makes sure that
  2171. BitBake evaluates :term:`THISDIR` at the time the
  2172. directive is encountered rather than at some later time when
  2173. expansion might result in a directory that does not contain the
  2174. files you need.
  2175. Also, include the trailing separating colon character if you are
  2176. prepending. The trailing colon character is necessary because you
  2177. are directing BitBake to extend the path by prepending directories
  2178. to the search path.
  2179. Here is another common use::
  2180. FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  2181. In this example, the build system extends the
  2182. :term:`FILESPATH` variable to include a directory named ``files`` that is
  2183. in the same directory as the corresponding append file.
  2184. This next example specifically adds three paths::
  2185. FILESEXTRAPATHS:prepend := "path_1:path_2:path_3:"
  2186. A final example shows how you can extend the search path and include
  2187. a :term:`MACHINE`-specific override, which is useful
  2188. in a BSP layer::
  2189. FILESEXTRAPATHS:prepend:intel-x86-common := "${THISDIR}/${PN}:"
  2190. The previous statement appears in the
  2191. ``linux-yocto-dev.bbappend`` file, which is found in the
  2192. :ref:`overview-manual/development-environment:yocto project source repositories` in
  2193. ``meta-intel/common/recipes-kernel/linux``. Here, the machine
  2194. override is a special :term:`PACKAGE_ARCH`
  2195. definition for multiple ``meta-intel`` machines.
  2196. .. note::
  2197. For a layer that supports a single BSP, the override could just be
  2198. the value of :term:`MACHINE`.
  2199. By prepending paths in ``.bbappend`` files, you allow multiple append
  2200. files that reside in different layers but are used for the same
  2201. recipe to correctly extend the path.
  2202. :term:`FILESOVERRIDES`
  2203. A colon-separated list to specify a subset of :term:`OVERRIDES` used by
  2204. the OpenEmbedded build system for creating :term:`FILESPATH`. The
  2205. :term:`FILESOVERRIDES` variable uses overrides to automatically extend
  2206. the :term:`FILESPATH` variable. For an example of how that works, see the
  2207. :term:`FILESPATH` variable description. Additionally, you find more
  2208. information on how overrides are handled in the
  2209. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  2210. section of the BitBake User Manual.
  2211. By default, the :term:`FILESOVERRIDES` variable is defined as::
  2212. FILESOVERRIDES = "${TRANSLATED_TARGET_ARCH}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}"
  2213. .. note::
  2214. Do not hand-edit the :term:`FILESOVERRIDES` variable. The values match up
  2215. with expected overrides and are used in an expected manner by the
  2216. build system.
  2217. :term:`FILESPATH`
  2218. A colon-separated list specifying the default set of directories the
  2219. OpenEmbedded build system uses when searching for patches and files.
  2220. During the build process, BitBake searches each directory in
  2221. :term:`FILESPATH` in the specified order when looking for files and
  2222. patches specified by each ``file://`` URI in a recipe's
  2223. :term:`SRC_URI` statements.
  2224. The default value for the :term:`FILESPATH` variable is defined in the
  2225. :ref:`ref-classes-base` class found in ``meta/classes-global`` in the
  2226. :term:`Source Directory`::
  2227. FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}", \
  2228. "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
  2229. The
  2230. :term:`FILESPATH` variable is automatically extended using the overrides
  2231. from the :term:`FILESOVERRIDES` variable.
  2232. .. note::
  2233. - Do not hand-edit the :term:`FILESPATH` variable. If you want the
  2234. build system to look in directories other than the defaults,
  2235. extend the :term:`FILESPATH` variable by using the
  2236. :term:`FILESEXTRAPATHS` variable.
  2237. - Be aware that the default :term:`FILESPATH` directories do not map
  2238. to directories in custom layers where append files
  2239. (``.bbappend``) are used. If you want the build system to find
  2240. patches or files that reside with your append files, you need
  2241. to extend the :term:`FILESPATH` variable by using the
  2242. :term:`FILESEXTRAPATHS` variable.
  2243. You can take advantage of this searching behavior in useful ways. For
  2244. example, consider a case where there is the following directory structure
  2245. for general and machine-specific configurations::
  2246. files/defconfig
  2247. files/MACHINEA/defconfig
  2248. files/MACHINEB/defconfig
  2249. Also in the example, the :term:`SRC_URI` statement contains
  2250. "file://defconfig". Given this scenario, you can set
  2251. :term:`MACHINE` to "MACHINEA" and cause the build
  2252. system to use files from ``files/MACHINEA``. Set :term:`MACHINE` to
  2253. "MACHINEB" and the build system uses files from ``files/MACHINEB``.
  2254. Finally, for any machine other than "MACHINEA" and "MACHINEB", the
  2255. build system uses files from ``files/defconfig``.
  2256. You can find out more about the patching process in the
  2257. ":ref:`overview-manual/concepts:patching`" section
  2258. in the Yocto Project Overview and Concepts Manual and the
  2259. ":ref:`dev-manual/new-recipe:patching code`" section in
  2260. the Yocto Project Development Tasks Manual. See the
  2261. :ref:`ref-tasks-patch` task as well.
  2262. :term:`FILESYSTEM_PERMS_TABLES`
  2263. Allows you to define your own file permissions settings table as part
  2264. of your configuration for the packaging process. For example, suppose
  2265. you need a consistent set of custom permissions for a set of groups
  2266. and users across an entire work project. It is best to do this in the
  2267. packages themselves but this is not always possible.
  2268. By default, the OpenEmbedded build system uses the ``fs-perms.txt``,
  2269. which is located in the ``meta/files`` folder in the :term:`Source Directory`.
  2270. If you create your own file
  2271. permissions setting table, you should place it in your layer or the
  2272. distro's layer.
  2273. You define the :term:`FILESYSTEM_PERMS_TABLES` variable in the
  2274. ``conf/local.conf`` file, which is found in the :term:`Build Directory`,
  2275. to point to your custom ``fs-perms.txt``. You can specify more than a
  2276. single file permissions setting table. The paths you specify to these
  2277. files must be defined within the :term:`BBPATH` variable.
  2278. For guidance on how to create your own file permissions settings
  2279. table file, examine the existing ``fs-perms.txt``.
  2280. :term:`FIT_ADDRESS_CELLS`
  2281. Specifies the value of the ``#address-cells`` value for the
  2282. description of the FIT image.
  2283. The default value is set to "1" by the :ref:`ref-classes-kernel-fitimage`
  2284. class, which corresponds to 32 bit addresses.
  2285. For platforms that need to set 64 bit addresses, for example in
  2286. :term:`UBOOT_LOADADDRESS` and :term:`UBOOT_ENTRYPOINT`, you need to
  2287. set this value to "2", as two 32 bit values (cells) will be needed
  2288. to represent such addresses.
  2289. Here is an example setting "0x400000000" as a load address::
  2290. FIT_ADDRESS_CELLS = "2"
  2291. UBOOT_LOADADDRESS= "0x04 0x00000000"
  2292. See `more details about #address-cells <https://elinux.org/Device_Tree_Usage#How_Addressing_Works>`__.
  2293. :term:`FIT_CONF_DEFAULT_DTB`
  2294. Specifies the default device tree binary (dtb) file for a FIT image
  2295. when multiple ones are provided.
  2296. This variable is used in the :ref:`ref-classes-kernel-fitimage` class.
  2297. :term:`FIT_DESC`
  2298. Specifies the description string encoded into a FIT image. The
  2299. default value is set by the :ref:`ref-classes-kernel-fitimage` class as
  2300. follows::
  2301. FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
  2302. :term:`FIT_GENERATE_KEYS`
  2303. Decides whether to generate the keys for signing the FIT image if
  2304. they don't already exist. The keys are created in
  2305. :term:`UBOOT_SIGN_KEYDIR`. The default value is set to "0"
  2306. by the :ref:`ref-classes-kernel-fitimage` class.
  2307. :term:`FIT_HASH_ALG`
  2308. Specifies the hash algorithm used in creating the FIT Image.
  2309. This variable is set by default to "sha256" by the
  2310. :ref:`ref-classes-kernel-fitimage` class.
  2311. :term:`FIT_KERNEL_COMP_ALG`
  2312. The compression algorithm to use for the kernel image inside the FIT Image.
  2313. At present, the only supported values are "gzip" (default), "lzo" or "none".
  2314. If you set this variable to anything other than "none" you may also need
  2315. to set :term:`FIT_KERNEL_COMP_ALG_EXTENSION`.
  2316. This variable is used in the :ref:`ref-classes-kernel-uboot` class.
  2317. :term:`FIT_KERNEL_COMP_ALG_EXTENSION`
  2318. File extension corresponding to :term:`FIT_KERNEL_COMP_ALG`. The default
  2319. value is set ".gz" by the :ref:`ref-classes-kernel-uboot` class. If you
  2320. set :term:`FIT_KERNEL_COMP_ALG` to "lzo", you may want to set this
  2321. variable to ".lzo".
  2322. :term:`FIT_KEY_GENRSA_ARGS`
  2323. Arguments to ``openssl genrsa`` for generating a RSA private key for
  2324. signing the FIT image. The default value is set to "-F4" by the
  2325. :ref:`ref-classes-kernel-fitimage` class.
  2326. :term:`FIT_KEY_REQ_ARGS`
  2327. Arguments to ``openssl req`` for generating a certificate for signing
  2328. the FIT image. The default value is "-batch -new" by the
  2329. :ref:`ref-classes-kernel-fitimage` class, "batch" for
  2330. non interactive mode and "new" for generating new keys.
  2331. :term:`FIT_KEY_SIGN_PKCS`
  2332. Format for the public key certificate used for signing the FIT image.
  2333. The default value is set to "x509" by the
  2334. :ref:`ref-classes-kernel-fitimage` class.
  2335. :term:`FIT_SIGN_ALG`
  2336. Specifies the signature algorithm used in creating the FIT Image.
  2337. This variable is set by default to "rsa2048" by the
  2338. :ref:`ref-classes-kernel-fitimage` class.
  2339. :term:`FIT_PAD_ALG`
  2340. Specifies the padding algorithm used in creating the FIT Image.
  2341. The default value is set to "pkcs-1.5" by the
  2342. :ref:`ref-classes-kernel-fitimage` class.
  2343. :term:`FIT_SIGN_INDIVIDUAL`
  2344. If set to "1", then the :ref:`ref-classes-kernel-fitimage`
  2345. class will sign the kernel, dtb and ramdisk images individually in addition
  2346. to signing the FIT image itself. This could be useful if you are
  2347. intending to verify signatures in another context than booting via
  2348. U-Boot.
  2349. This variable is set to "0" by default.
  2350. :term:`FIT_SIGN_NUMBITS`
  2351. Size of the private key used in the FIT image, in number of bits.
  2352. The default value for this variable is set to "2048"
  2353. by the :ref:`ref-classes-kernel-fitimage` class.
  2354. :term:`FONT_EXTRA_RDEPENDS`
  2355. When inheriting the :ref:`ref-classes-fontcache` class,
  2356. this variable specifies the runtime dependencies for font packages.
  2357. By default, the :term:`FONT_EXTRA_RDEPENDS` is set to "fontconfig-utils".
  2358. :term:`FONT_PACKAGES`
  2359. When inheriting the :ref:`ref-classes-fontcache` class, this variable
  2360. identifies packages containing font files that need to be cached by
  2361. Fontconfig. By default, the :ref:`ref-classes-fontcache` class assumes
  2362. that fonts are in the recipe's main package (i.e.
  2363. ``${``\ :term:`PN`\ ``}``). Use this variable if fonts you
  2364. need are in a package other than that main package.
  2365. :term:`FORCE_RO_REMOVE`
  2366. Forces the removal of the packages listed in ``ROOTFS_RO_UNNEEDED``
  2367. during the generation of the root filesystem.
  2368. Set the variable to "1" to force the removal of these packages.
  2369. :term:`FULL_OPTIMIZATION`
  2370. The options to pass in :term:`TARGET_CFLAGS` and :term:`CFLAGS` when
  2371. compiling an optimized system. This variable defaults to "-O2 -pipe
  2372. ${DEBUG_FLAGS}".
  2373. :term:`GCCPIE`
  2374. Enables Position Independent Executables (PIE) within the GNU C
  2375. Compiler (GCC). Enabling PIE in the GCC makes Return Oriented
  2376. Programming (ROP) attacks much more difficult to execute.
  2377. By default the ``security_flags.inc`` file enables PIE by setting the
  2378. variable as follows::
  2379. GCCPIE ?= "--enable-default-pie"
  2380. :term:`GCCVERSION`
  2381. Specifies the default version of the GNU C Compiler (GCC) used for
  2382. compilation. By default, :term:`GCCVERSION` is set to "8.x" in the
  2383. ``meta/conf/distro/include/tcmode-default.inc`` include file::
  2384. GCCVERSION ?= "8.%"
  2385. You can override this value by setting it in a
  2386. configuration file such as the ``local.conf``.
  2387. :term:`GDB`
  2388. The minimal command and arguments to run the GNU Debugger.
  2389. :term:`GIR_EXTRA_LIBS_PATH`
  2390. Allows to specify an extra search path for ``.so`` files
  2391. in GLib related recipes using GObject introspection,
  2392. and which do not compile without this setting.
  2393. See the ":ref:`dev-manual/gobject-introspection:enabling gobject introspection support`"
  2394. section for details.
  2395. :term:`GITDIR`
  2396. The directory in which a local copy of a Git repository is stored
  2397. when it is cloned.
  2398. :term:`GITHUB_BASE_URI`
  2399. When inheriting the :ref:`ref-classes-github-releases`
  2400. class, specifies the base URL for fetching releases for the github
  2401. project you wish to fetch sources from. The default value is as follows::
  2402. GITHUB_BASE_URI ?= "https://github.com/${BPN}/${BPN}/releases/"
  2403. :term:`GLIBC_GENERATE_LOCALES`
  2404. Specifies the list of GLIBC locales to generate should you not wish
  2405. to generate all LIBC locals, which can be time consuming.
  2406. .. note::
  2407. If you specifically remove the locale ``en_US.UTF-8``, you must set
  2408. :term:`IMAGE_LINGUAS` appropriately.
  2409. You can set :term:`GLIBC_GENERATE_LOCALES` in your ``local.conf`` file.
  2410. By default, all locales are generated::
  2411. GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 en_US.UTF-8"
  2412. :term:`GO_IMPORT`
  2413. When inheriting the :ref:`ref-classes-go` class, this mandatory variable
  2414. sets the import path for the Go package that will be created for the code
  2415. to build. If you have a ``go.mod`` file in the source directory, this
  2416. typically matches the path in the ``module`` line in this file.
  2417. Other Go programs importing this package will use this path.
  2418. Here is an example setting from the
  2419. :yocto_git:`go-helloworld_0.1.bb </poky/tree/meta/recipes-extended/go-examples/go-helloworld_0.1.bb>`
  2420. recipe::
  2421. GO_IMPORT = "golang.org/x/example"
  2422. :term:`GO_INSTALL`
  2423. When inheriting the :ref:`ref-classes-go` class, this optional variable
  2424. specifies which packages in the sources should be compiled and
  2425. installed in the Go build space by the
  2426. `go install <https://go.dev/ref/mod#go-install>`__ command.
  2427. Here is an example setting from the
  2428. :oe_git:`crucible </meta-openembedded/tree/meta-oe/recipes-support/crucible/>`
  2429. recipe::
  2430. GO_INSTALL = "\
  2431. ${GO_IMPORT}/cmd/crucible \
  2432. ${GO_IMPORT}/cmd/habtool \
  2433. "
  2434. By default, :term:`GO_INSTALL` is defined as::
  2435. GO_INSTALL ?= "${GO_IMPORT}/..."
  2436. The ``...`` wildcard means that it will catch all
  2437. packages found in the sources.
  2438. See the :term:`GO_INSTALL_FILTEROUT` variable for
  2439. filtering out unwanted packages from the ones
  2440. found from the :term:`GO_INSTALL` value.
  2441. :term:`GO_INSTALL_FILTEROUT`
  2442. When using the Go "vendor" mechanism to bring in dependencies for a Go
  2443. package, the default :term:`GO_INSTALL` setting, which uses the ``...``
  2444. wildcard, will include the vendored packages in the build, which produces
  2445. incorrect results.
  2446. There are also some Go packages that are structured poorly, so that the
  2447. ``...`` wildcard results in building example or test code that should not
  2448. be included in the build, or could fail to build.
  2449. This optional variable allows for filtering out a subset of the sources.
  2450. It defaults to excluding everything under the ``vendor`` subdirectory
  2451. under package's main directory. This is the normal location for vendored
  2452. packages, but it can be overridden by a recipe to filter out other
  2453. subdirectories if needed.
  2454. :term:`GO_WORKDIR`
  2455. When using Go Modules, the current working directory must be the directory
  2456. containing the ``go.mod`` file, or one of its subdirectories. When the
  2457. ``go`` tool is used, it will automatically look for the ``go.mod`` file
  2458. in the Go working directory or in any parent directory, but not in
  2459. subdirectories.
  2460. When using the :ref:`ref-classes-go-mod` class to use Go modules,
  2461. the optional :term:`GO_WORKDIR` variable, defaulting to the value
  2462. of :term:`GO_IMPORT`, allows to specify a different Go working directory.
  2463. :term:`GROUPADD_PARAM`
  2464. When inheriting the :ref:`ref-classes-useradd` class,
  2465. this variable specifies for a package what parameters should be
  2466. passed to the ``groupadd`` command if you wish to add a group to the
  2467. system when the package is installed.
  2468. Here is an example from the ``dbus`` recipe::
  2469. GROUPADD_PARAM:${PN} = "-r netdev"
  2470. For information on the standard Linux shell command
  2471. ``groupadd``, see https://linux.die.net/man/8/groupadd.
  2472. :term:`GROUPMEMS_PARAM`
  2473. When inheriting the :ref:`ref-classes-useradd` class,
  2474. this variable specifies for a package what parameters should be
  2475. passed to the ``groupmems`` command if you wish to modify the members
  2476. of a group when the package is installed.
  2477. For information on the standard Linux shell command ``groupmems``,
  2478. see https://linux.die.net/man/8/groupmems.
  2479. :term:`GRUB_GFXSERIAL`
  2480. Configures the GNU GRand Unified Bootloader (GRUB) to have graphics
  2481. and serial in the boot menu. Set this variable to "1" in your
  2482. ``local.conf`` or distribution configuration file to enable graphics
  2483. and serial in the menu.
  2484. See the :ref:`ref-classes-grub-efi` class for more
  2485. information on how this variable is used.
  2486. :term:`GRUB_OPTS`
  2487. Additional options to add to the GNU GRand Unified Bootloader (GRUB)
  2488. configuration. Use a semi-colon character (``;``) to separate
  2489. multiple options.
  2490. The :term:`GRUB_OPTS` variable is optional. See the
  2491. :ref:`ref-classes-grub-efi` class for more information
  2492. on how this variable is used.
  2493. :term:`GRUB_TIMEOUT`
  2494. Specifies the timeout before executing the default ``LABEL`` in the
  2495. GNU GRand Unified Bootloader (GRUB).
  2496. The :term:`GRUB_TIMEOUT` variable is optional. See the
  2497. :ref:`ref-classes-grub-efi` class for more information
  2498. on how this variable is used.
  2499. :term:`GTKIMMODULES_PACKAGES`
  2500. When inheriting the :ref:`ref-classes-gtk-immodules-cache` class,
  2501. this variable specifies the packages that contain the GTK+ input
  2502. method modules being installed when the modules are in packages other
  2503. than the main package.
  2504. :term:`HGDIR`
  2505. See :term:`bitbake:HGDIR` in the BitBake manual.
  2506. :term:`HOMEPAGE`
  2507. Website where more information about the software the recipe is
  2508. building can be found.
  2509. :term:`HOST_ARCH`
  2510. The name of the target architecture, which is normally the same as
  2511. :term:`TARGET_ARCH`. The OpenEmbedded build system
  2512. supports many architectures. Here is an example list of architectures
  2513. supported. This list is by no means complete as the architecture is
  2514. configurable:
  2515. - arm
  2516. - i586
  2517. - x86_64
  2518. - powerpc
  2519. - powerpc64
  2520. - mips
  2521. - mipsel
  2522. :term:`HOST_CC_ARCH`
  2523. Specifies architecture-specific compiler flags that are passed to the
  2524. C compiler.
  2525. Default initialization for :term:`HOST_CC_ARCH` varies depending on what
  2526. is being built:
  2527. - :term:`TARGET_CC_ARCH` when building for the
  2528. target
  2529. - :term:`BUILD_CC_ARCH` when building for the build host (i.e.
  2530. ``-native``)
  2531. - ``BUILDSDK_CC_ARCH`` when building for an SDK (i.e.
  2532. ``nativesdk-``)
  2533. :term:`HOST_OS`
  2534. Specifies the name of the target operating system, which is normally
  2535. the same as the :term:`TARGET_OS`. The variable can
  2536. be set to "linux" for ``glibc``-based systems and to "linux-musl" for
  2537. ``musl``. For ARM/EABI targets, there are also "linux-gnueabi" and
  2538. "linux-musleabi" values possible.
  2539. :term:`HOST_PREFIX`
  2540. Specifies the prefix for the cross-compile toolchain. :term:`HOST_PREFIX`
  2541. is normally the same as :term:`TARGET_PREFIX`.
  2542. :term:`HOST_SYS`
  2543. Specifies the system, including the architecture and the operating
  2544. system, for which the build is occurring in the context of the
  2545. current recipe.
  2546. The OpenEmbedded build system automatically sets this variable based
  2547. on :term:`HOST_ARCH`,
  2548. :term:`HOST_VENDOR`, and
  2549. :term:`HOST_OS` variables.
  2550. .. note::
  2551. You do not need to set the variable yourself.
  2552. Consider these two examples:
  2553. - Given a native recipe on a 32-bit x86 machine running Linux, the
  2554. value is "i686-linux".
  2555. - Given a recipe being built for a little-endian MIPS target running
  2556. Linux, the value might be "mipsel-linux".
  2557. :term:`HOST_VENDOR`
  2558. Specifies the name of the vendor. :term:`HOST_VENDOR` is normally the
  2559. same as :term:`TARGET_VENDOR`.
  2560. :term:`HOSTTOOLS`
  2561. A space-separated list (filter) of tools on the build host that
  2562. should be allowed to be called from within build tasks. Using this
  2563. filter helps reduce the possibility of host contamination. If a tool
  2564. specified in the value of :term:`HOSTTOOLS` is not found on the build
  2565. host, the OpenEmbedded build system produces an error and the build
  2566. is not started.
  2567. For additional information, see
  2568. :term:`HOSTTOOLS_NONFATAL`.
  2569. :term:`HOSTTOOLS_NONFATAL`
  2570. A space-separated list (filter) of tools on the build host that
  2571. should be allowed to be called from within build tasks. Using this
  2572. filter helps reduce the possibility of host contamination. Unlike
  2573. :term:`HOSTTOOLS`, the OpenEmbedded build system
  2574. does not produce an error if a tool specified in the value of
  2575. :term:`HOSTTOOLS_NONFATAL` is not found on the build host. Thus, you can
  2576. use :term:`HOSTTOOLS_NONFATAL` to filter optional host tools.
  2577. :term:`ICECC_CLASS_DISABLE`
  2578. Identifies user classes that you do not want the Icecream distributed
  2579. compile support to consider. This variable is used by the
  2580. :ref:`ref-classes-icecc` class. You set this variable in
  2581. your ``local.conf`` file.
  2582. When you list classes using this variable, the recipes inheriting
  2583. those classes will not benefit from distributed compilation across
  2584. remote hosts. Instead they will be built locally.
  2585. :term:`ICECC_DISABLED`
  2586. Disables or enables the ``icecc`` (Icecream) function. For more
  2587. information on this function and best practices for using this
  2588. variable, see the ":ref:`ref-classes-icecc`"
  2589. section.
  2590. Setting this variable to "1" in your ``local.conf`` disables the
  2591. function::
  2592. ICECC_DISABLED ??= "1"
  2593. To enable the function, set the variable as follows::
  2594. ICECC_DISABLED = ""
  2595. :term:`ICECC_ENV_EXEC`
  2596. Points to the ``icecc-create-env`` script that you provide. This
  2597. variable is used by the :ref:`ref-classes-icecc` class. You
  2598. set this variable in your ``local.conf`` file.
  2599. If you do not point to a script that you provide, the OpenEmbedded
  2600. build system uses the default script provided by the
  2601. :oe_git:`icecc-create-env_0.1.bb
  2602. </openembedded-core/tree/meta/recipes-devtools/icecc-create-env/icecc-create-env_0.1.bb>`
  2603. recipe, which is a modified version and not the one that comes with
  2604. ``icecream``.
  2605. :term:`ICECC_PARALLEL_MAKE`
  2606. Extra options passed to the ``make`` command during the
  2607. :ref:`ref-tasks-compile` task that specify parallel
  2608. compilation. This variable usually takes the form of "-j x", where x
  2609. represents the maximum number of parallel threads ``make`` can run.
  2610. .. note::
  2611. The options passed affect builds on all enabled machines on the
  2612. network, which are machines running the ``iceccd`` daemon.
  2613. If your enabled machines support multiple cores, coming up with the
  2614. maximum number of parallel threads that gives you the best
  2615. performance could take some experimentation since machine speed,
  2616. network lag, available memory, and existing machine loads can all
  2617. affect build time. Consequently, unlike the
  2618. :term:`PARALLEL_MAKE` variable, there is no
  2619. rule-of-thumb for setting :term:`ICECC_PARALLEL_MAKE` to achieve optimal
  2620. performance.
  2621. If you do not set :term:`ICECC_PARALLEL_MAKE`, the build system does not
  2622. use it (i.e. the system does not detect and assign the number of
  2623. cores as is done with :term:`PARALLEL_MAKE`).
  2624. :term:`ICECC_PATH`
  2625. The location of the ``icecc`` binary. You can set this variable in
  2626. your ``local.conf`` file. If your ``local.conf`` file does not define
  2627. this variable, the :ref:`ref-classes-icecc` class attempts
  2628. to define it by locating ``icecc`` using ``which``.
  2629. :term:`ICECC_RECIPE_DISABLE`
  2630. Identifies user recipes that you do not want the Icecream distributed
  2631. compile support to consider. This variable is used by the
  2632. :ref:`ref-classes-icecc` class. You set this variable in
  2633. your ``local.conf`` file.
  2634. When you list recipes using this variable, you are excluding them
  2635. from distributed compilation across remote hosts. Instead they will
  2636. be built locally.
  2637. :term:`ICECC_RECIPE_ENABLE`
  2638. Identifies user recipes that use an empty
  2639. :term:`PARALLEL_MAKE` variable that you want to
  2640. force remote distributed compilation on using the Icecream
  2641. distributed compile support. This variable is used by the
  2642. :ref:`ref-classes-icecc` class. You set this variable in
  2643. your ``local.conf`` file.
  2644. :term:`IMAGE_BASENAME`
  2645. The base name of image output files. This variable defaults to the
  2646. recipe name (``${``\ :term:`PN`\ ``}``).
  2647. :term:`IMAGE_BOOT_FILES`
  2648. A space-separated list of files installed into the boot partition
  2649. when preparing an image using the Wic tool with the
  2650. ``bootimg-partition`` source plugin. By default,
  2651. the files are
  2652. installed under the same name as the source files. To change the
  2653. installed name, separate it from the original name with a semi-colon
  2654. (;). Source files need to be located in
  2655. :term:`DEPLOY_DIR_IMAGE`. Here are two
  2656. examples::
  2657. IMAGE_BOOT_FILES = "u-boot.img uImage;kernel"
  2658. IMAGE_BOOT_FILES = "u-boot.${UBOOT_SUFFIX} ${KERNEL_IMAGETYPE}"
  2659. Alternatively, source files can be picked up using a glob pattern. In
  2660. this case, the destination file must have the same name as the base
  2661. name of the source file path. To install files into a directory
  2662. within the target location, pass its name after a semi-colon (;).
  2663. Here are two examples::
  2664. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*"
  2665. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*;boot/"
  2666. The first example
  2667. installs all files from ``${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles``
  2668. into the root of the target partition. The second example installs
  2669. the same files into a ``boot`` directory within the target partition.
  2670. You can find information on how to use the Wic tool in the
  2671. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  2672. section of the Yocto Project Development Tasks Manual. Reference
  2673. material for Wic is located in the
  2674. ":doc:`/ref-manual/kickstart`" chapter.
  2675. :term:`IMAGE_BUILDINFO_FILE`
  2676. When using the :ref:`ref-classes-image-buildinfo` class,
  2677. specifies the file in the image to write the build information into. The
  2678. default value is "``${sysconfdir}/buildinfo``".
  2679. :term:`IMAGE_BUILDINFO_VARS`
  2680. When using the :ref:`ref-classes-image-buildinfo` class,
  2681. specifies the list of variables to include in the `Build Configuration`
  2682. section of the output file (as a space-separated list). Defaults to
  2683. ":term:`DISTRO` :term:`DISTRO_VERSION`".
  2684. :term:`IMAGE_CLASSES`
  2685. A list of classes that all images should inherit. This is typically used
  2686. to enable functionality across all image recipes.
  2687. Classes specified in :term:`IMAGE_CLASSES` must be located in the
  2688. ``classes-recipe/`` or ``classes/`` subdirectories.
  2689. :term:`IMAGE_CMD`
  2690. Specifies the command to create the image file for a specific image
  2691. type, which corresponds to the value set in
  2692. :term:`IMAGE_FSTYPES`, (e.g. ``ext3``,
  2693. ``btrfs``, and so forth). When setting this variable, you should use
  2694. an override for the associated type. Here is an example::
  2695. IMAGE_CMD:jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime \
  2696. --output=${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.jffs2 \
  2697. ${EXTRA_IMAGECMD}"
  2698. You typically do not need to set this variable unless you are adding
  2699. support for a new image type. For more examples on how to set this
  2700. variable, see the :ref:`ref-classes-image_types`
  2701. class file, which is ``meta/classes-recipe/image_types.bbclass``.
  2702. :term:`IMAGE_DEVICE_TABLES`
  2703. Specifies one or more files that contain custom device tables that
  2704. are passed to the ``makedevs`` command as part of creating an image.
  2705. These files list basic device nodes that should be created under
  2706. ``/dev`` within the image. If :term:`IMAGE_DEVICE_TABLES` is not set,
  2707. ``files/device_table-minimal.txt`` is used, which is located by
  2708. :term:`BBPATH`. For details on how you should write
  2709. device table files, see ``meta/files/device_table-minimal.txt`` as an
  2710. example.
  2711. :term:`IMAGE_EFI_BOOT_FILES`
  2712. A space-separated list of files installed into the boot partition
  2713. when preparing an image using the Wic tool with the
  2714. ``bootimg-efi`` source plugin. By default,
  2715. the files are
  2716. installed under the same name as the source files. To change the
  2717. installed name, separate it from the original name with a semi-colon
  2718. (;). Source files need to be located in
  2719. :term:`DEPLOY_DIR_IMAGE`. Here are two
  2720. examples::
  2721. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE};bz2"
  2722. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE} microcode.cpio"
  2723. Alternatively, source files can be picked up using a glob pattern. In
  2724. this case, the destination file must have the same name as the base
  2725. name of the source file path. To install files into a directory
  2726. within the target location, pass its name after a semi-colon (;).
  2727. Here are two examples::
  2728. IMAGE_EFI_BOOT_FILES = "boot/loader/*"
  2729. IMAGE_EFI_BOOT_FILES = "boot/loader/*;boot/"
  2730. The first example
  2731. installs all files from ``${DEPLOY_DIR_IMAGE}/boot/loader/``
  2732. into the root of the target partition. The second example installs
  2733. the same files into a ``boot`` directory within the target partition.
  2734. You can find information on how to use the Wic tool in the
  2735. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  2736. section of the Yocto Project Development Tasks Manual. Reference
  2737. material for Wic is located in the
  2738. ":doc:`/ref-manual/kickstart`" chapter.
  2739. :term:`IMAGE_FEATURES`
  2740. The primary list of features to include in an image. Typically, you
  2741. configure this variable in an image recipe. Although you can use this
  2742. variable from your ``local.conf`` file, which is found in the
  2743. :term:`Build Directory`, best practices dictate that you do
  2744. not.
  2745. .. note::
  2746. To enable extra features from outside the image recipe, use the
  2747. :term:`EXTRA_IMAGE_FEATURES` variable.
  2748. For a list of image features that ships with the Yocto Project, see
  2749. the ":ref:`ref-features-image`" section.
  2750. For an example that shows how to customize your image by using this
  2751. variable, see the ":ref:`dev-manual/customizing-images:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  2752. section in the Yocto Project Development Tasks Manual.
  2753. :term:`IMAGE_FSTYPES`
  2754. Specifies the formats the OpenEmbedded build system uses during the
  2755. build when creating the root filesystem. For example, setting
  2756. :term:`IMAGE_FSTYPES` as follows causes the build system to create root
  2757. filesystems using two formats: ``.ext3`` and ``.tar.bz2``::
  2758. IMAGE_FSTYPES = "ext3 tar.bz2"
  2759. For the complete list of supported image formats from which you can
  2760. choose, see :term:`IMAGE_TYPES`.
  2761. .. note::
  2762. - If an image recipe uses the "inherit image" line and you are
  2763. setting :term:`IMAGE_FSTYPES` inside the recipe, you must set
  2764. :term:`IMAGE_FSTYPES` prior to using the "inherit image" line.
  2765. - Due to the way the OpenEmbedded build system processes this
  2766. variable, you cannot update its contents by using ``:append``
  2767. or ``:prepend``. You must use the ``+=`` operator to add one or
  2768. more options to the :term:`IMAGE_FSTYPES` variable.
  2769. :term:`IMAGE_INSTALL`
  2770. Used by recipes to specify the packages to install into an image
  2771. through the :ref:`ref-classes-image` class. Use the
  2772. :term:`IMAGE_INSTALL` variable with care to avoid ordering issues.
  2773. Image recipes set :term:`IMAGE_INSTALL` to specify the packages to
  2774. install into an image through :ref:`ref-classes-image`. Additionally,
  2775. there are "helper" classes such as the :ref:`ref-classes-core-image`
  2776. class which can take lists used with :term:`IMAGE_FEATURES` and turn
  2777. them into auto-generated entries in :term:`IMAGE_INSTALL` in addition
  2778. to its default contents.
  2779. When you use this variable, it is best to use it as follows::
  2780. IMAGE_INSTALL:append = " package-name"
  2781. Be sure to include the space
  2782. between the quotation character and the start of the package name or
  2783. names.
  2784. .. note::
  2785. - When working with a
  2786. :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  2787. image, do not use the :term:`IMAGE_INSTALL` variable to specify
  2788. packages for installation. Instead, use the
  2789. :term:`PACKAGE_INSTALL` variable, which
  2790. allows the initial RAM filesystem (:term:`Initramfs`) recipe to use a
  2791. fixed set of packages and not be affected by :term:`IMAGE_INSTALL`.
  2792. For information on creating an :term:`Initramfs`, see the
  2793. ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`"
  2794. section in the Yocto Project Development Tasks Manual.
  2795. - Using :term:`IMAGE_INSTALL` with the
  2796. :ref:`+= <bitbake-user-manual/bitbake-user-manual-metadata:appending (+=) and prepending (=+) with spaces>`
  2797. BitBake operator within the ``/conf/local.conf`` file or from
  2798. within an image recipe is not recommended. Use of this operator in
  2799. these ways can cause ordering issues. Since
  2800. :ref:`ref-classes-core-image` sets :term:`IMAGE_INSTALL` to a
  2801. default value using the
  2802. :ref:`?= <bitbake-user-manual/bitbake-user-manual-metadata:setting a default value (?=)>`
  2803. operator, using a ``+=`` operation against :term:`IMAGE_INSTALL`
  2804. results in unexpected behavior when used within
  2805. ``conf/local.conf``. Furthermore, the same operation from within an
  2806. image recipe may or may not succeed depending on the specific
  2807. situation. In both these cases, the behavior is contrary to how
  2808. most users expect the ``+=`` operator to work.
  2809. :term:`IMAGE_LINGUAS`
  2810. Specifies the list of locales to install into the image during the
  2811. root filesystem construction process. The OpenEmbedded build system
  2812. automatically splits locale files, which are used for localization,
  2813. into separate packages. Setting the :term:`IMAGE_LINGUAS` variable
  2814. ensures that any locale packages that correspond to packages already
  2815. selected for installation into the image are also installed. Here is
  2816. an example::
  2817. IMAGE_LINGUAS = "pt-br de-de"
  2818. In this example, the build system ensures any Brazilian Portuguese
  2819. and German locale files that correspond to packages in the image are
  2820. installed (i.e. ``*-locale-pt-br`` and ``*-locale-de-de`` as well as
  2821. ``*-locale-pt`` and ``*-locale-de``, since some software packages
  2822. only provide locale files by language and not by country-specific
  2823. language).
  2824. See the :term:`GLIBC_GENERATE_LOCALES`
  2825. variable for information on generating GLIBC locales.
  2826. :term:`IMAGE_LINK_NAME`
  2827. The name of the output image symlink (which does not include
  2828. the version part as :term:`IMAGE_NAME` does). The default value
  2829. is derived using the :term:`IMAGE_BASENAME` and
  2830. :term:`IMAGE_MACHINE_SUFFIX` variables::
  2831. IMAGE_LINK_NAME ?= "${IMAGE_BASENAME}${IMAGE_MACHINE_SUFFIX}"
  2832. .. note::
  2833. It is possible to set this to "" to disable symlink creation,
  2834. however, you also need to set :term:`IMAGE_NAME` to still have
  2835. a reasonable value e.g.::
  2836. IMAGE_LINK_NAME = ""
  2837. IMAGE_NAME = "${IMAGE_BASENAME}${IMAGE_MACHINE_SUFFIX}${IMAGE_VERSION_SUFFIX}"
  2838. :term:`IMAGE_MACHINE_SUFFIX`
  2839. Specifies the by default machine-specific suffix for image file names
  2840. (before the extension). The default value is set as follows::
  2841. IMAGE_MACHINE_SUFFIX ??= "-${MACHINE}"
  2842. The default :term:`DEPLOY_DIR_IMAGE` already has a :term:`MACHINE`
  2843. subdirectory, so you may find it unnecessary to also include this suffix
  2844. in the name of every image file. If you prefer to remove the suffix you
  2845. can set this variable to an empty string::
  2846. IMAGE_MACHINE_SUFFIX = ""
  2847. (Not to be confused with :term:`IMAGE_NAME_SUFFIX`.)
  2848. :term:`IMAGE_MANIFEST`
  2849. The manifest file for the image. This file lists all the installed
  2850. packages that make up the image. The file contains package
  2851. information on a line-per-package basis as follows::
  2852. packagename packagearch version
  2853. The :ref:`rootfs-postcommands <ref-classes-rootfs*>` class defines the manifest
  2854. file as follows::
  2855. IMAGE_MANIFEST ="${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.manifest"
  2856. The location is
  2857. derived using the :term:`IMGDEPLOYDIR`
  2858. and :term:`IMAGE_NAME` variables. You can find
  2859. information on how the image is created in the ":ref:`overview-manual/concepts:image generation`"
  2860. section in the Yocto Project Overview and Concepts Manual.
  2861. :term:`IMAGE_NAME`
  2862. The name of the output image files minus the extension. By default
  2863. this variable is set using the :term:`IMAGE_LINK_NAME`, and
  2864. :term:`IMAGE_VERSION_SUFFIX` variables::
  2865. IMAGE_NAME ?= "${IMAGE_LINK_NAME}${IMAGE_VERSION_SUFFIX}"
  2866. :term:`IMAGE_NAME_SUFFIX`
  2867. Suffix used for the image output filename --- defaults to ``".rootfs"``
  2868. to distinguish the image file from other files created during image
  2869. building; however if this suffix is redundant or not desired you can
  2870. clear the value of this variable (set the value to ""). For example,
  2871. this is typically cleared in :term:`Initramfs` image recipes.
  2872. :term:`IMAGE_OVERHEAD_FACTOR`
  2873. Defines a multiplier that the build system applies to the initial
  2874. image size for cases when the multiplier times the returned disk
  2875. usage value for the image is greater than the sum of
  2876. :term:`IMAGE_ROOTFS_SIZE` and :term:`IMAGE_ROOTFS_EXTRA_SPACE`. The result of
  2877. the multiplier applied to the initial image size creates free disk
  2878. space in the image as overhead. By default, the build process uses a
  2879. multiplier of 1.3 for this variable. This default value results in
  2880. 30% free disk space added to the image when this method is used to
  2881. determine the final generated image size. You should be aware that
  2882. post install scripts and the package management system uses disk
  2883. space inside this overhead area. Consequently, the multiplier does
  2884. not produce an image with all the theoretical free disk space. See
  2885. :term:`IMAGE_ROOTFS_SIZE` for information on how the build system
  2886. determines the overall image size.
  2887. The default 30% free disk space typically gives the image enough room
  2888. to boot and allows for basic post installs while still leaving a
  2889. small amount of free disk space. If 30% free space is inadequate, you
  2890. can increase the default value. For example, the following setting
  2891. gives you 50% free space added to the image::
  2892. IMAGE_OVERHEAD_FACTOR = "1.5"
  2893. Alternatively, you can ensure a specific amount of free disk space is
  2894. added to the image by using the :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  2895. variable.
  2896. :term:`IMAGE_PKGTYPE`
  2897. Defines the package type (i.e. DEB, RPM, IPK, or TAR) used by the
  2898. OpenEmbedded build system. The variable is defined appropriately by
  2899. the :ref:`ref-classes-package_deb`, :ref:`ref-classes-package_rpm`,
  2900. or :ref:`ref-classes-package_ipk` class.
  2901. The :ref:`ref-classes-populate-sdk-*` and :ref:`ref-classes-image`
  2902. classes use the :term:`IMAGE_PKGTYPE` for packaging up images and SDKs.
  2903. You should not set the :term:`IMAGE_PKGTYPE` manually. Rather, the
  2904. variable is set indirectly through the appropriate
  2905. :ref:`package_* <ref-classes-package>` class using the
  2906. :term:`PACKAGE_CLASSES` variable. The
  2907. OpenEmbedded build system uses the first package type (e.g. DEB, RPM,
  2908. or IPK) that appears with the variable
  2909. .. note::
  2910. Files using the ``.tar`` format are never used as a substitute
  2911. packaging format for DEB, RPM, and IPK formatted files for your image
  2912. or SDK.
  2913. :term:`IMAGE_POSTPROCESS_COMMAND`
  2914. Specifies a list of functions to call once the OpenEmbedded build
  2915. system creates the final image output files. You can specify
  2916. functions separated by semicolons::
  2917. IMAGE_POSTPROCESS_COMMAND += "function; ... "
  2918. If you need to pass the root filesystem path to a command within the
  2919. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  2920. directory that becomes the root filesystem image. See the
  2921. :term:`IMAGE_ROOTFS` variable for more
  2922. information.
  2923. :term:`IMAGE_PREPROCESS_COMMAND`
  2924. Specifies a list of functions to call before the OpenEmbedded build
  2925. system creates the final image output files. You can specify
  2926. functions separated by semicolons::
  2927. IMAGE_PREPROCESS_COMMAND += "function; ... "
  2928. If you need to pass the root filesystem path to a command within the
  2929. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  2930. directory that becomes the root filesystem image. See the
  2931. :term:`IMAGE_ROOTFS` variable for more
  2932. information.
  2933. :term:`IMAGE_ROOTFS`
  2934. The location of the root filesystem while it is under construction
  2935. (i.e. during the :ref:`ref-tasks-rootfs` task). This
  2936. variable is not configurable. Do not change it.
  2937. :term:`IMAGE_ROOTFS_ALIGNMENT`
  2938. Specifies the alignment for the output image file in Kbytes. If the
  2939. size of the image is not a multiple of this value, then the size is
  2940. rounded up to the nearest multiple of the value. The default value is
  2941. "1". See :term:`IMAGE_ROOTFS_SIZE` for
  2942. additional information.
  2943. :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  2944. Defines additional free disk space created in the image in Kbytes. By
  2945. default, this variable is set to "0". This free disk space is added
  2946. to the image after the build system determines the image size as
  2947. described in :term:`IMAGE_ROOTFS_SIZE`.
  2948. This variable is particularly useful when you want to ensure that a
  2949. specific amount of free disk space is available on a device after an
  2950. image is installed and running. For example, to be sure 5 Gbytes of
  2951. free disk space is available, set the variable as follows::
  2952. IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
  2953. For example, the Yocto Project Build Appliance specifically requests
  2954. 40 Gbytes of extra space with the line::
  2955. IMAGE_ROOTFS_EXTRA_SPACE = "41943040"
  2956. :term:`IMAGE_ROOTFS_SIZE`
  2957. Defines the size in Kbytes for the generated image. The OpenEmbedded
  2958. build system determines the final size for the generated image using
  2959. an algorithm that takes into account the initial disk space used for
  2960. the generated image, a requested size for the image, and requested
  2961. additional free disk space to be added to the image. Programatically,
  2962. the build system determines the final size of the generated image as
  2963. follows::
  2964. if (image-du * overhead) < rootfs-size:
  2965. internal-rootfs-size = rootfs-size + xspace
  2966. else:
  2967. internal-rootfs-size = (image-du * overhead) + xspace
  2968. where:
  2969. image-du = Returned value of the du command on the image.
  2970. overhead = IMAGE_OVERHEAD_FACTOR
  2971. rootfs-size = IMAGE_ROOTFS_SIZE
  2972. internal-rootfs-size = Initial root filesystem size before any modifications.
  2973. xspace = IMAGE_ROOTFS_EXTRA_SPACE
  2974. See the :term:`IMAGE_OVERHEAD_FACTOR`
  2975. and :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  2976. variables for related information.
  2977. :term:`IMAGE_TYPEDEP`
  2978. Specifies a dependency from one image type on another. Here is an
  2979. example from the :ref:`ref-classes-image-live` class::
  2980. IMAGE_TYPEDEP:live = "ext3"
  2981. In the previous example, the variable ensures that when "live" is
  2982. listed with the :term:`IMAGE_FSTYPES` variable,
  2983. the OpenEmbedded build system produces an ``ext3`` image first since
  2984. one of the components of the live image is an ``ext3`` formatted
  2985. partition containing the root filesystem.
  2986. :term:`IMAGE_TYPES`
  2987. Specifies the complete list of supported image types by default:
  2988. - btrfs
  2989. - container
  2990. - cpio
  2991. - cpio.gz
  2992. - cpio.lz4
  2993. - cpio.lzma
  2994. - cpio.xz
  2995. - cramfs
  2996. - erofs
  2997. - erofs-lz4
  2998. - erofs-lz4hc
  2999. - ext2
  3000. - ext2.bz2
  3001. - ext2.gz
  3002. - ext2.lzma
  3003. - ext3
  3004. - ext3.gz
  3005. - ext4
  3006. - ext4.gz
  3007. - f2fs
  3008. - hddimg
  3009. - iso
  3010. - jffs2
  3011. - jffs2.sum
  3012. - multiubi
  3013. - squashfs
  3014. - squashfs-lz4
  3015. - squashfs-lzo
  3016. - squashfs-xz
  3017. - tar
  3018. - tar.bz2
  3019. - tar.gz
  3020. - tar.lz4
  3021. - tar.xz
  3022. - tar.zst
  3023. - ubi
  3024. - ubifs
  3025. - wic
  3026. - wic.bz2
  3027. - wic.gz
  3028. - wic.lzma
  3029. For more information about these types of images, see
  3030. ``meta/classes-recipe/image_types*.bbclass`` in the :term:`Source Directory`.
  3031. :term:`IMAGE_VERSION_SUFFIX`
  3032. Version suffix that is part of the default :term:`IMAGE_NAME` and
  3033. :term:`KERNEL_ARTIFACT_NAME` values.
  3034. Defaults to ``"-${DATETIME}"``, however you could set this to a
  3035. version string that comes from your external build environment if
  3036. desired, and this suffix would then be used consistently across
  3037. the build artifacts.
  3038. :term:`IMGDEPLOYDIR`
  3039. When inheriting the :ref:`ref-classes-image` class directly or
  3040. through the :ref:`ref-classes-core-image` class, the
  3041. :term:`IMGDEPLOYDIR` points to a temporary work area for deployed files
  3042. that is set in the ``image`` class as follows::
  3043. IMGDEPLOYDIR = "${WORKDIR}/deploy-${PN}-image-complete"
  3044. Recipes inheriting the :ref:`ref-classes-image` class should copy
  3045. files to be deployed into :term:`IMGDEPLOYDIR`, and the class will take
  3046. care of copying them into :term:`DEPLOY_DIR_IMAGE` afterwards.
  3047. :term:`INCOMPATIBLE_LICENSE`
  3048. Specifies a space-separated list of license names (as they would
  3049. appear in :term:`LICENSE`) that should be excluded
  3050. from the build (if set globally), or from an image (if set locally
  3051. in an image recipe).
  3052. When the variable is set globally, recipes that provide no alternatives to listed
  3053. incompatible licenses are not built. Packages that are individually
  3054. licensed with the specified incompatible licenses will be deleted.
  3055. Most of the time this does not allow a feasible build (because it becomes impossible
  3056. to satisfy build time dependencies), so the recommended way to
  3057. implement license restrictions is to set the variable in specific
  3058. image recipes where the restrictions must apply. That way there
  3059. are no build time restrictions, but the license check is still
  3060. performed when the image's filesystem is assembled from packages.
  3061. There is some support for wildcards in this variable's value,
  3062. however it is restricted to specific licenses. Currently only
  3063. these wildcards are allowed and expand as follows:
  3064. - ``AGPL-3.0*"``: ``AGPL-3.0-only``, ``AGPL-3.0-or-later``
  3065. - ``GPL-3.0*``: ``GPL-3.0-only``, ``GPL-3.0-or-later``
  3066. - ``LGPL-3.0*``: ``LGPL-3.0-only``, ``LGPL-3.0-or-later``
  3067. .. note::
  3068. This functionality is only regularly tested using the following
  3069. setting::
  3070. INCOMPATIBLE_LICENSE = "GPL-3.0* LGPL-3.0* AGPL-3.0*"
  3071. Although you can use other settings, you might be required to
  3072. remove dependencies on (or provide alternatives to) components that
  3073. are required to produce a functional system image.
  3074. :term:`INCOMPATIBLE_LICENSE_EXCEPTIONS`
  3075. Specifies a space-separated list of package and license pairs that
  3076. are allowed to be used even if the license is specified in
  3077. :term:`INCOMPATIBLE_LICENSE`. The package and license pairs are
  3078. separated using a colon. Example::
  3079. INCOMPATIBLE_LICENSE_EXCEPTIONS = "gdbserver:GPL-3.0-only gdbserver:LGPL-3.0-only"
  3080. :term:`INHERIT`
  3081. Causes the named class or classes to be inherited globally. Anonymous
  3082. functions in the class or classes are not executed for the base
  3083. configuration and in each individual recipe. The OpenEmbedded build
  3084. system ignores changes to :term:`INHERIT` in individual recipes.
  3085. Classes inherited using :term:`INHERIT` must be located in the
  3086. ``classes-global/`` or ``classes/`` subdirectories.
  3087. For more information on :term:`INHERIT`, see the
  3088. :ref:`bitbake-user-manual/bitbake-user-manual-metadata:\`\`inherit\`\` configuration directive`"
  3089. section in the BitBake User Manual.
  3090. :term:`INHERIT_DISTRO`
  3091. Lists classes that will be inherited at the distribution level. It is
  3092. unlikely that you want to edit this variable.
  3093. Classes specified in :term:`INHERIT_DISTRO` must be located in the
  3094. ``classes-global/`` or ``classes/`` subdirectories.
  3095. The default value of the variable is set as follows in the
  3096. ``meta/conf/distro/defaultsetup.conf`` file::
  3097. INHERIT_DISTRO ?= "debian devshell sstate license"
  3098. :term:`INHIBIT_DEFAULT_DEPS`
  3099. Prevents the default dependencies, namely the C compiler and standard
  3100. C library (libc), from being added to :term:`DEPENDS`.
  3101. This variable is usually used within recipes that do not require any
  3102. compilation using the C compiler.
  3103. Set the variable to "1" to prevent the default dependencies from
  3104. being added.
  3105. :term:`INHIBIT_PACKAGE_DEBUG_SPLIT`
  3106. Prevents the OpenEmbedded build system from splitting out debug
  3107. information during packaging. By default, the build system splits out
  3108. debugging information during the
  3109. :ref:`ref-tasks-package` task. For more information on
  3110. how debug information is split out, see the
  3111. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  3112. variable.
  3113. To prevent the build system from splitting out debug information
  3114. during packaging, set the :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` variable as
  3115. follows::
  3116. INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
  3117. :term:`INHIBIT_PACKAGE_STRIP`
  3118. If set to "1", causes the build to not strip binaries in resulting
  3119. packages and prevents the ``-dbg`` package from containing the source
  3120. files.
  3121. By default, the OpenEmbedded build system strips binaries and puts
  3122. the debugging symbols into ``${``\ :term:`PN`\ ``}-dbg``.
  3123. Consequently, you should not set :term:`INHIBIT_PACKAGE_STRIP` when you
  3124. plan to debug in general.
  3125. :term:`INHIBIT_SYSROOT_STRIP`
  3126. If set to "1", causes the build to not strip binaries in the
  3127. resulting sysroot.
  3128. By default, the OpenEmbedded build system strips binaries in the
  3129. resulting sysroot. When you specifically set the
  3130. :term:`INHIBIT_SYSROOT_STRIP` variable to "1" in your recipe, you inhibit
  3131. this stripping.
  3132. If you want to use this variable, include the :ref:`ref-classes-staging`
  3133. class. This class uses a ``sys_strip()`` function to test for the variable
  3134. and acts accordingly.
  3135. .. note::
  3136. Use of the :term:`INHIBIT_SYSROOT_STRIP` variable occurs in rare and
  3137. special circumstances. For example, suppose you are building
  3138. bare-metal firmware by using an external GCC toolchain. Furthermore,
  3139. even if the toolchain's binaries are strippable, there are other files
  3140. needed for the build that are not strippable.
  3141. :term:`INIT_MANAGER`
  3142. Specifies the system init manager to use. Available options are:
  3143. - ``sysvinit``
  3144. - ``systemd``
  3145. - ``mdev-busybox``
  3146. With ``sysvinit``, the init manager is set to
  3147. :wikipedia:`SysVinit <Init#SysV-style>`, the traditional UNIX init
  3148. system. This is the default choice in the Poky distribution, together with
  3149. the Udev device manager (see the ":ref:`device-manager`" section).
  3150. With ``systemd``, the init manager becomes :wikipedia:`systemd <Systemd>`,
  3151. which comes with the :wikipedia:`udev <Udev>` device manager.
  3152. With ``mdev-busybox``, the init manager becomes the much simpler BusyBox
  3153. init, together with the BusyBox mdev device manager. This is the simplest
  3154. and lightest solution, and probably the best choice for low-end systems
  3155. with a rather slow CPU and a limited amount of RAM.
  3156. More concretely, this is used to include
  3157. ``conf/distro/include/init-manager-${INIT_MANAGER}.inc`` into the global
  3158. configuration. You can have a look at the
  3159. :yocto_git:`meta/conf/distro/include/init-manager-*.inc </poky/tree/meta/conf/distro/include>`
  3160. files for more information, and also the ":ref:`init-manager`"
  3161. section in the Yocto Project Development Tasks Manual.
  3162. :term:`INITRAMFS_DEPLOY_DIR_IMAGE`
  3163. Indicates the deploy directory used by :ref:`ref-tasks-bundle_initramfs`
  3164. where the :term:`INITRAMFS_IMAGE` will be fetched from. This variable is
  3165. set by default to ``${DEPLOY_DIR_IMAGE}`` in the
  3166. :ref:`ref-classes-kernel` class and it's only meant to be changed when
  3167. building an :term:`Initramfs` image from a separate multiconfig via
  3168. :term:`INITRAMFS_MULTICONFIG`.
  3169. :term:`INITRAMFS_FSTYPES`
  3170. Defines the format for the output image of an initial RAM filesystem
  3171. (:term:`Initramfs`), which is used during boot. Supported formats are the
  3172. same as those supported by the
  3173. :term:`IMAGE_FSTYPES` variable.
  3174. The default value of this variable, which is set in the
  3175. ``meta/conf/bitbake.conf`` configuration file in the
  3176. :term:`Source Directory`, is "cpio.gz". The Linux kernel's
  3177. :term:`Initramfs` mechanism, as opposed to the initial RAM filesystem
  3178. :wikipedia:`initrd <Initrd>` mechanism, expects
  3179. an optionally compressed cpio archive.
  3180. :term:`INITRAMFS_IMAGE`
  3181. Specifies the :term:`PROVIDES` name of an image
  3182. recipe that is used to build an initial RAM filesystem (:term:`Initramfs`)
  3183. image. In other words, the :term:`INITRAMFS_IMAGE` variable causes an
  3184. additional recipe to be built as a dependency to whatever root
  3185. filesystem recipe you might be using (e.g. ``core-image-sato``). The
  3186. :term:`Initramfs` image recipe you provide should set
  3187. :term:`IMAGE_FSTYPES` to
  3188. :term:`INITRAMFS_FSTYPES`.
  3189. An :term:`Initramfs` image provides a temporary root filesystem used for
  3190. early system initialization (e.g. loading of modules needed to locate
  3191. and mount the "real" root filesystem).
  3192. .. note::
  3193. See the ``meta/recipes-core/images/core-image-minimal-initramfs.bb``
  3194. recipe in the :term:`Source Directory`
  3195. for an example :term:`Initramfs` recipe. To select this sample recipe as
  3196. the one built to provide the :term:`Initramfs` image, set :term:`INITRAMFS_IMAGE`
  3197. to "core-image-minimal-initramfs".
  3198. You can also find more information by referencing the
  3199. ``meta-poky/conf/templates/default/local.conf.sample.extended``
  3200. configuration file in the Source Directory, the :ref:`ref-classes-image`
  3201. class, and the :ref:`ref-classes-kernel` class to see how to use the
  3202. :term:`INITRAMFS_IMAGE` variable.
  3203. If :term:`INITRAMFS_IMAGE` is empty, which is the default, then no
  3204. :term:`Initramfs` image is built.
  3205. For more information, you can also see the
  3206. :term:`INITRAMFS_IMAGE_BUNDLE`
  3207. variable, which allows the generated image to be bundled inside the
  3208. kernel image. Additionally, for information on creating an :term:`Initramfs`
  3209. image, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  3210. in the Yocto Project Development Tasks Manual.
  3211. :term:`INITRAMFS_IMAGE_BUNDLE`
  3212. Controls whether or not the image recipe specified by
  3213. :term:`INITRAMFS_IMAGE` is run through an
  3214. extra pass
  3215. (:ref:`ref-tasks-bundle_initramfs`) during
  3216. kernel compilation in order to build a single binary that contains
  3217. both the kernel image and the initial RAM filesystem (:term:`Initramfs`)
  3218. image. This makes use of the
  3219. :term:`CONFIG_INITRAMFS_SOURCE` kernel
  3220. feature.
  3221. .. note::
  3222. Bundling the :term:`Initramfs` with the kernel conflates the code in the
  3223. :term:`Initramfs` with the GPLv2 licensed Linux kernel binary. Thus only GPLv2
  3224. compatible software may be part of a bundled :term:`Initramfs`.
  3225. .. note::
  3226. Using an extra compilation pass to bundle the :term:`Initramfs` avoids a
  3227. circular dependency between the kernel recipe and the :term:`Initramfs`
  3228. recipe should the :term:`Initramfs` include kernel modules. Should that be
  3229. the case, the :term:`Initramfs` recipe depends on the kernel for the
  3230. kernel modules, and the kernel depends on the :term:`Initramfs` recipe
  3231. since the :term:`Initramfs` is bundled inside the kernel image.
  3232. The combined binary is deposited into the ``tmp/deploy`` directory,
  3233. which is part of the :term:`Build Directory`.
  3234. Setting the variable to "1" in a configuration file causes the
  3235. OpenEmbedded build system to generate a kernel image with the
  3236. :term:`Initramfs` specified in :term:`INITRAMFS_IMAGE` bundled within::
  3237. INITRAMFS_IMAGE_BUNDLE = "1"
  3238. By default, the :ref:`ref-classes-kernel` class sets this variable to a
  3239. null string as follows::
  3240. INITRAMFS_IMAGE_BUNDLE ?= ""
  3241. .. note::
  3242. You must set the :term:`INITRAMFS_IMAGE_BUNDLE` variable in a
  3243. configuration file. You cannot set the variable in a recipe file.
  3244. See the
  3245. :yocto_git:`local.conf.sample.extended </poky/tree/meta-poky/conf/templates/default/local.conf.sample.extended>`
  3246. file for additional information. Also, for information on creating an
  3247. :term:`Initramfs`, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  3248. in the Yocto Project Development Tasks Manual.
  3249. :term:`INITRAMFS_IMAGE_NAME`
  3250. This value needs to stay in sync with :term:`IMAGE_LINK_NAME`, but with
  3251. :term:`INITRAMFS_IMAGE` instead of :term:`IMAGE_BASENAME`. The default value
  3252. is set as follows:
  3253. INITRAMFS_IMAGE_NAME ?= "${@['${INITRAMFS_IMAGE}${IMAGE_MACHINE_SUFFIX}', ''][d.getVar('INITRAMFS_IMAGE') == '']}"
  3254. That is, if :term:`INITRAMFS_IMAGE` is set, the value of
  3255. :term:`INITRAMFS_IMAGE_NAME` will be set based upon
  3256. :term:`INITRAMFS_IMAGE` and :term:`IMAGE_MACHINE_SUFFIX`.
  3257. :term:`INITRAMFS_LINK_NAME`
  3258. The link name of the initial RAM filesystem image. This variable is
  3259. set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3260. follows::
  3261. INITRAMFS_LINK_NAME ?= "initramfs-${KERNEL_ARTIFACT_LINK_NAME}"
  3262. The value of the
  3263. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3264. file, has the following value::
  3265. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3266. See the :term:`MACHINE` variable for additional
  3267. information.
  3268. :term:`INITRAMFS_MULTICONFIG`
  3269. Defines the multiconfig to create a multiconfig dependency to be used by
  3270. the :ref:`ref-classes-kernel` class.
  3271. This allows the kernel to bundle an :term:`INITRAMFS_IMAGE` coming from
  3272. a separate multiconfig, this is meant to be used in addition to :term:`INITRAMFS_DEPLOY_DIR_IMAGE`.
  3273. For more information on how to bundle an :term:`Initramfs` image from a separate
  3274. multiconfig see the ":ref:`dev-manual/building:Bundling an Initramfs Image From a Separate Multiconfig`"
  3275. section in the Yocto Project Development Tasks Manual.
  3276. :term:`INITRAMFS_NAME`
  3277. The base name of the initial RAM filesystem image. This variable is
  3278. set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3279. follows::
  3280. INITRAMFS_NAME ?= "initramfs-${KERNEL_ARTIFACT_NAME}"
  3281. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3282. :term:`INITRD`
  3283. Indicates list of filesystem images to concatenate and use as an
  3284. initial RAM disk (``initrd``).
  3285. The :term:`INITRD` variable is an optional variable used with the
  3286. :ref:`ref-classes-image-live` class.
  3287. :term:`INITRD_IMAGE`
  3288. When building a "live" bootable image (i.e. when
  3289. :term:`IMAGE_FSTYPES` contains "live"),
  3290. :term:`INITRD_IMAGE` specifies the image recipe that should be built to
  3291. provide the initial RAM disk image. The default value is
  3292. "core-image-minimal-initramfs".
  3293. See the :ref:`ref-classes-image-live` class for more information.
  3294. :term:`INITSCRIPT_NAME`
  3295. The filename of the initialization script as installed to
  3296. ``${sysconfdir}/init.d``.
  3297. This variable is used in recipes when using :ref:`ref-classes-update-rc.d`.
  3298. The variable is mandatory.
  3299. :term:`INITSCRIPT_PACKAGES`
  3300. A list of the packages that contain initscripts. If multiple packages
  3301. are specified, you need to append the package name to the other
  3302. ``INITSCRIPT_*`` as an override.
  3303. This variable is used in recipes when using :ref:`ref-classes-update-rc.d`.
  3304. The variable is optional and defaults to the :term:`PN`
  3305. variable.
  3306. :term:`INITSCRIPT_PARAMS`
  3307. Specifies the options to pass to ``update-rc.d``. Here is an example::
  3308. INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."
  3309. In this example, the script has a runlevel of 99, starts the script
  3310. in initlevels 2 and 5, and stops the script in levels 0, 1 and 6.
  3311. The variable's default value is "defaults", which is set in the
  3312. :ref:`ref-classes-update-rc.d` class.
  3313. The value in :term:`INITSCRIPT_PARAMS` is passed through to the
  3314. ``update-rc.d`` command. For more information on valid parameters,
  3315. please see the ``update-rc.d`` manual page at
  3316. https://manpages.debian.org/buster/init-system-helpers/update-rc.d.8.en.html
  3317. :term:`INSANE_SKIP`
  3318. Specifies the QA checks to skip for a specific package within a
  3319. recipe. For example, to skip the check for symbolic link ``.so``
  3320. files in the main package of a recipe, add the following to the
  3321. recipe. The package name override must be used, which in this example
  3322. is ``${PN}``::
  3323. INSANE_SKIP:${PN} += "dev-so"
  3324. See the ":ref:`ref-classes-insane`" section for a
  3325. list of the valid QA checks you can specify using this variable.
  3326. :term:`INSTALL_TIMEZONE_FILE`
  3327. By default, the ``tzdata`` recipe packages an ``/etc/timezone`` file.
  3328. Set the :term:`INSTALL_TIMEZONE_FILE` variable to "0" at the
  3329. configuration level to disable this behavior.
  3330. :term:`IPK_FEED_URIS`
  3331. When the IPK backend is in use and package management is enabled on
  3332. the target, you can use this variable to set up ``opkg`` in the
  3333. target image to point to package feeds on a nominated server. Once
  3334. the feed is established, you can perform installations or upgrades
  3335. using the package manager at runtime.
  3336. :term:`KARCH`
  3337. Defines the kernel architecture used when assembling the
  3338. configuration. Architectures supported for this release are:
  3339. - powerpc
  3340. - i386
  3341. - x86_64
  3342. - arm
  3343. - qemu
  3344. - mips
  3345. You define the :term:`KARCH` variable in the :ref:`kernel-dev/advanced:bsp descriptions`.
  3346. :term:`KBRANCH`
  3347. A regular expression used by the build process to explicitly identify
  3348. the kernel branch that is validated, patched, and configured during a
  3349. build. You must set this variable to ensure the exact kernel branch
  3350. you want is being used by the build process.
  3351. Values for this variable are set in the kernel's recipe file and the
  3352. kernel's append file. For example, if you are using the
  3353. ``linux-yocto_4.12`` kernel, the kernel recipe file is the
  3354. ``meta/recipes-kernel/linux/linux-yocto_4.12.bb`` file. :term:`KBRANCH`
  3355. is set as follows in that kernel recipe file::
  3356. KBRANCH ?= "standard/base"
  3357. This variable is also used from the kernel's append file to identify
  3358. the kernel branch specific to a particular machine or target
  3359. hardware. Continuing with the previous kernel example, the kernel's
  3360. append file (i.e. ``linux-yocto_4.12.bbappend``) is located in the
  3361. BSP layer for a given machine. For example, the append file for the
  3362. Beaglebone, EdgeRouter, and generic versions of both 32 and 64-bit IA
  3363. machines (``meta-yocto-bsp``) is named
  3364. ``meta-yocto-bsp/recipes-kernel/linux/linux-yocto_4.12.bbappend``.
  3365. Here are the related statements from that append file::
  3366. KBRANCH:genericx86 = "standard/base"
  3367. KBRANCH:genericx86-64 = "standard/base"
  3368. KBRANCH:edgerouter = "standard/edgerouter"
  3369. KBRANCH:beaglebone = "standard/beaglebone"
  3370. The :term:`KBRANCH` statements
  3371. identify the kernel branch to use when building for each supported
  3372. BSP.
  3373. :term:`KBUILD_DEFCONFIG`
  3374. When used with the :ref:`ref-classes-kernel-yocto`
  3375. class, specifies an "in-tree" kernel configuration file for use
  3376. during a kernel build.
  3377. Typically, when using a ``defconfig`` to configure a kernel during a
  3378. build, you place the file in your layer in the same manner as you
  3379. would place patch files and configuration fragment files (i.e.
  3380. "out-of-tree"). However, if you want to use a ``defconfig`` file that
  3381. is part of the kernel tree (i.e. "in-tree"), you can use the
  3382. :term:`KBUILD_DEFCONFIG` variable and append the
  3383. :term:`KMACHINE` variable to point to the
  3384. ``defconfig`` file.
  3385. To use the variable, set it in the append file for your kernel recipe
  3386. using the following form::
  3387. KBUILD_DEFCONFIG:<machine> ?= "defconfig_file"
  3388. Here is an example from a "raspberrypi2" :term:`MACHINE` build that uses
  3389. a ``defconfig`` file named "bcm2709_defconfig"::
  3390. KBUILD_DEFCONFIG:raspberrypi2 = "bcm2709_defconfig"
  3391. As an alternative, you can use the following within your append file::
  3392. KBUILD_DEFCONFIG:pn-linux-yocto ?= "defconfig_file"
  3393. For more
  3394. information on how to use the :term:`KBUILD_DEFCONFIG` variable, see the
  3395. ":ref:`kernel-dev/common:using an "in-tree" \`\`defconfig\`\` file`"
  3396. section in the Yocto Project Linux Kernel Development Manual.
  3397. :term:`KCONFIG_MODE`
  3398. When used with the :ref:`ref-classes-kernel-yocto`
  3399. class, specifies the kernel configuration values to use for options
  3400. not specified in the provided ``defconfig`` file. Valid options are::
  3401. KCONFIG_MODE = "alldefconfig"
  3402. KCONFIG_MODE = "allnoconfig"
  3403. In ``alldefconfig`` mode the options not explicitly specified will be
  3404. assigned their Kconfig default value. In ``allnoconfig`` mode the
  3405. options not explicitly specified will be disabled in the kernel
  3406. config.
  3407. In case :term:`KCONFIG_MODE` is not set the behaviour will depend on where
  3408. the ``defconfig`` file is coming from. An "in-tree" ``defconfig`` file
  3409. will be handled in ``alldefconfig`` mode, a ``defconfig`` file placed
  3410. in ``${WORKDIR}`` through a meta-layer will be handled in
  3411. ``allnoconfig`` mode.
  3412. An "in-tree" ``defconfig`` file can be selected via the
  3413. :term:`KBUILD_DEFCONFIG` variable. :term:`KCONFIG_MODE` does not need to
  3414. be explicitly set.
  3415. A ``defconfig`` file compatible with ``allnoconfig`` mode can be
  3416. generated by copying the ``.config`` file from a working Linux kernel
  3417. build, renaming it to ``defconfig`` and placing it into the Linux
  3418. kernel ``${WORKDIR}`` through your meta-layer. :term:`KCONFIG_MODE` does
  3419. not need to be explicitly set.
  3420. A ``defconfig`` file compatible with ``alldefconfig`` mode can be
  3421. generated using the
  3422. :ref:`ref-tasks-savedefconfig`
  3423. task and placed into the Linux kernel ``${WORKDIR}`` through your
  3424. meta-layer. Explicitely set :term:`KCONFIG_MODE`::
  3425. KCONFIG_MODE = "alldefconfig"
  3426. :term:`KERNEL_ALT_IMAGETYPE`
  3427. Specifies an alternate kernel image type for creation in addition to
  3428. the kernel image type specified using the :term:`KERNEL_IMAGETYPE` and
  3429. :term:`KERNEL_IMAGETYPES` variables.
  3430. :term:`KERNEL_ARTIFACT_NAME`
  3431. Specifies the name of all of the build artifacts. You can change the
  3432. name of the artifacts by changing the :term:`KERNEL_ARTIFACT_NAME`
  3433. variable.
  3434. The value of :term:`KERNEL_ARTIFACT_NAME`, which is set in the
  3435. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file, has the
  3436. following default value::
  3437. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}${IMAGE_MACHINE_SUFFIX}${IMAGE_VERSION_SUFFIX}"
  3438. See the :term:`PKGE`, :term:`PKGV`, :term:`PKGR`, :term:`IMAGE_MACHINE_SUFFIX`
  3439. and :term:`IMAGE_VERSION_SUFFIX` variables for additional information.
  3440. :term:`KERNEL_CLASSES`
  3441. A list of classes defining kernel image types that the
  3442. :ref:`ref-classes-kernel` class should inherit. You typically
  3443. append this variable to enable extended image types. An example is
  3444. ":ref:`ref-classes-kernel-fitimage`", which enables
  3445. FIT image support and resides in ``meta/classes-recipe/kernel-fitimage.bbclass``.
  3446. You can register custom kernel image types with the
  3447. :ref:`ref-classes-kernel` class using this variable.
  3448. :term:`KERNEL_DANGLING_FEATURES_WARN_ONLY`
  3449. When kernel configuration fragments are missing for some
  3450. :term:`KERNEL_FEATURES` specified by layers or BSPs,
  3451. building and configuring the kernel stops with an error.
  3452. You can turn these errors into warnings by setting the
  3453. following in ``conf/local.conf``::
  3454. KERNEL_DANGLING_FEATURES_WARN_ONLY = "1"
  3455. You will still be warned that runtime issues may occur,
  3456. but at least the kernel configuration and build process will
  3457. be allowed to continue.
  3458. :term:`KERNEL_DEBUG_TIMESTAMPS`
  3459. If set to "1", enables timestamping functionality during building
  3460. the kernel. The default is "0" to disable this for reproducibility
  3461. reasons.
  3462. :term:`KERNEL_DEPLOY_DEPEND`
  3463. Provides a means of controlling the dependency of an image recipe
  3464. on the kernel. The default value is "virtual/kernel:do_deploy",
  3465. however for a small initramfs image or other images that do not
  3466. need the kernel, this can be set to "" in the image recipe.
  3467. :term:`KERNEL_DEVICETREE`
  3468. Specifies the name of the generated Linux kernel device tree (i.e.
  3469. the ``.dtb``) file.
  3470. .. note::
  3471. There is legacy support for specifying the full path to the device
  3472. tree. However, providing just the ``.dtb`` file is preferred.
  3473. In order to use this variable, the :ref:`ref-classes-kernel-devicetree`
  3474. class must be inherited.
  3475. :term:`KERNEL_DEVICETREE_BUNDLE`
  3476. When set to "1", this variable allows to bundle the Linux kernel
  3477. and the Device Tree Binary together in a single file.
  3478. This feature is currently only supported on the "arm" (32 bit)
  3479. architecture.
  3480. This variable is set to "0" by default by the
  3481. :ref:`ref-classes-kernel-devicetree` class.
  3482. :term:`KERNEL_DTB_LINK_NAME`
  3483. The link name of the kernel device tree binary (DTB). This variable
  3484. is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3485. follows::
  3486. KERNEL_DTB_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3487. The
  3488. value of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in
  3489. the same file, has the following value::
  3490. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3491. See the :term:`MACHINE` variable for additional
  3492. information.
  3493. :term:`KERNEL_DTB_NAME`
  3494. The base name of the kernel device tree binary (DTB). This variable
  3495. is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3496. follows::
  3497. KERNEL_DTB_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3498. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3499. :term:`KERNEL_DTBDEST`
  3500. This variable, used by the :ref:`ref-classes-kernel-devicetree`
  3501. class, allows to change the installation directory of the DTB
  3502. (Device Tree Binary) files.
  3503. It is set by default to "${KERNEL_IMAGEDEST}" by the
  3504. :ref:`ref-classes-kernel` class.
  3505. :term:`KERNEL_DTBVENDORED`
  3506. This variable, used by the :ref:`ref-classes-kernel-devicetree`,
  3507. allows to ignore vendor subdirectories when installing DTB
  3508. (Device Tree Binary) files, when it is set to "false".
  3509. To keep vendor subdirectories, set this variable to "true".
  3510. It is set by default to "false" by the :ref:`ref-classes-kernel` class.
  3511. :term:`KERNEL_DTC_FLAGS`
  3512. Specifies the ``dtc`` flags that are passed to the Linux kernel build
  3513. system when generating the device trees (via ``DTC_FLAGS`` environment
  3514. variable).
  3515. In order to use this variable, the :ref:`ref-classes-kernel-devicetree`
  3516. class must be inherited.
  3517. :term:`KERNEL_EXTRA_ARGS`
  3518. Specifies additional ``make`` command-line arguments the OpenEmbedded
  3519. build system passes on when compiling the kernel.
  3520. :term:`KERNEL_FEATURES`
  3521. Includes additional kernel metadata. In the OpenEmbedded build
  3522. system, the default Board Support Packages (BSPs)
  3523. :term:`Metadata` is provided through the
  3524. :term:`KMACHINE` and :term:`KBRANCH`
  3525. variables. You can use the :term:`KERNEL_FEATURES` variable from within
  3526. the kernel recipe or kernel append file to further add metadata for
  3527. all BSPs or specific BSPs.
  3528. The metadata you add through this variable includes config fragments
  3529. and features descriptions, which usually includes patches as well as
  3530. config fragments. You typically override the :term:`KERNEL_FEATURES`
  3531. variable for a specific machine. In this way, you can provide
  3532. validated, but optional, sets of kernel configurations and features.
  3533. For example, the following example from the ``linux-yocto-rt_4.12``
  3534. kernel recipe adds "netfilter" and "taskstats" features to all BSPs
  3535. as well as "virtio" configurations to all QEMU machines. The last two
  3536. statements add specific configurations to targeted machine types::
  3537. KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc"
  3538. KERNEL_FEATURES:append = " ${KERNEL_EXTRA_FEATURES}"
  3539. KERNEL_FEATURES:append:qemuall = " cfg/virtio.scc"
  3540. KERNEL_FEATURES:append:qemux86 = " cfg/sound.scc cfg/paravirt_kvm.scc"
  3541. KERNEL_FEATURES:append:qemux86-64 = " cfg/sound.scc"
  3542. :term:`KERNEL_FIT_LINK_NAME`
  3543. The link name of the kernel flattened image tree (FIT) image. This
  3544. variable is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass``
  3545. file as follows::
  3546. KERNEL_FIT_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3547. The value of the
  3548. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3549. file, has the following value::
  3550. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3551. See the :term:`MACHINE` variable for additional
  3552. information.
  3553. :term:`KERNEL_FIT_NAME`
  3554. The base name of the kernel flattened image tree (FIT) image. This
  3555. variable is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass``
  3556. file as follows::
  3557. KERNEL_FIT_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3558. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3559. :term:`KERNEL_IMAGE_LINK_NAME`
  3560. The link name for the kernel image. This variable is set in the
  3561. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  3562. KERNEL_IMAGE_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3563. The value of
  3564. the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3565. file, has the following value::
  3566. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3567. See the :term:`MACHINE` variable for additional
  3568. information.
  3569. :term:`KERNEL_IMAGE_MAXSIZE`
  3570. Specifies the maximum size of the kernel image file in kilobytes. If
  3571. :term:`KERNEL_IMAGE_MAXSIZE` is set, the size of the kernel image file is
  3572. checked against the set value during the
  3573. :ref:`ref-tasks-sizecheck` task. The task fails if
  3574. the kernel image file is larger than the setting.
  3575. :term:`KERNEL_IMAGE_MAXSIZE` is useful for target devices that have a
  3576. limited amount of space in which the kernel image must be stored.
  3577. By default, this variable is not set, which means the size of the
  3578. kernel image is not checked.
  3579. :term:`KERNEL_IMAGE_NAME`
  3580. The base name of the kernel image. This variable is set in the
  3581. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  3582. KERNEL_IMAGE_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3583. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3584. :term:`KERNEL_IMAGETYPE`
  3585. The type of kernel to build for a device, usually set by the machine
  3586. configuration files and defaults to "zImage". This variable is used
  3587. when building the kernel and is passed to ``make`` as the target to
  3588. build.
  3589. To build additional kernel image types, use :term:`KERNEL_IMAGETYPES`.
  3590. :term:`KERNEL_IMAGETYPES`
  3591. Lists additional types of kernel images to build for a device in addition
  3592. to image type specified in :term:`KERNEL_IMAGETYPE`. Usually set by the
  3593. machine configuration files.
  3594. :term:`KERNEL_MODULE_AUTOLOAD`
  3595. Lists kernel modules that need to be auto-loaded during boot.
  3596. .. note::
  3597. This variable replaces the deprecated :term:`module_autoload`
  3598. variable.
  3599. You can use the :term:`KERNEL_MODULE_AUTOLOAD` variable anywhere that it
  3600. can be recognized by the kernel recipe or by an out-of-tree kernel
  3601. module recipe (e.g. a machine configuration file, a distribution
  3602. configuration file, an append file for the recipe, or the recipe
  3603. itself).
  3604. Specify it as follows::
  3605. KERNEL_MODULE_AUTOLOAD += "module_name1 module_name2 module_name3"
  3606. Including :term:`KERNEL_MODULE_AUTOLOAD` causes the OpenEmbedded build
  3607. system to populate the ``/etc/modules-load.d/modname.conf`` file with
  3608. the list of modules to be auto-loaded on boot. The modules appear
  3609. one-per-line in the file. Here is an example of the most common use
  3610. case::
  3611. KERNEL_MODULE_AUTOLOAD += "module_name"
  3612. For information on how to populate the ``modname.conf`` file with
  3613. ``modprobe.d`` syntax lines, see the :term:`KERNEL_MODULE_PROBECONF` variable.
  3614. :term:`KERNEL_MODULE_PROBECONF`
  3615. Provides a list of modules for which the OpenEmbedded build system
  3616. expects to find ``module_conf_``\ modname values that specify
  3617. configuration for each of the modules. For information on how to
  3618. provide those module configurations, see the
  3619. :term:`module_conf_* <module_conf>` variable.
  3620. :term:`KERNEL_PACKAGE_NAME`
  3621. Specifies the base name of the kernel packages, such as "kernel"
  3622. in the kernel packages such as "kernel-modules", "kernel-image" and
  3623. "kernel-dbg".
  3624. The default value for this variable is set to "kernel" by the
  3625. :ref:`ref-classes-kernel` class.
  3626. :term:`KERNEL_PATH`
  3627. The location of the kernel sources. This variable is set to the value
  3628. of the :term:`STAGING_KERNEL_DIR` within the :ref:`ref-classes-module`
  3629. class. For information on how this variable is used, see the
  3630. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  3631. section in the Yocto Project Linux Kernel Development Manual.
  3632. To help maximize compatibility with out-of-tree drivers used to build
  3633. modules, the OpenEmbedded build system also recognizes and uses the
  3634. :term:`KERNEL_SRC` variable, which is identical to
  3635. the :term:`KERNEL_PATH` variable. Both variables are common variables
  3636. used by external Makefiles to point to the kernel source directory.
  3637. :term:`KERNEL_SRC`
  3638. The location of the kernel sources. This variable is set to the value
  3639. of the :term:`STAGING_KERNEL_DIR` within the :ref:`ref-classes-module`
  3640. class. For information on how this variable is used, see the
  3641. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  3642. section in the Yocto Project Linux Kernel Development Manual.
  3643. To help maximize compatibility with out-of-tree drivers used to build
  3644. modules, the OpenEmbedded build system also recognizes and uses the
  3645. :term:`KERNEL_PATH` variable, which is identical
  3646. to the :term:`KERNEL_SRC` variable. Both variables are common variables
  3647. used by external Makefiles to point to the kernel source directory.
  3648. :term:`KERNEL_VERSION`
  3649. Specifies the version of the kernel as extracted from ``version.h``
  3650. or ``utsrelease.h`` within the kernel sources. Effects of setting
  3651. this variable do not take effect until the kernel has been
  3652. configured. Consequently, attempting to refer to this variable in
  3653. contexts prior to configuration will not work.
  3654. :term:`KERNELDEPMODDEPEND`
  3655. Specifies whether the data referenced through
  3656. :term:`PKGDATA_DIR` is needed or not.
  3657. :term:`KERNELDEPMODDEPEND` does not control whether or not that data
  3658. exists, but simply whether or not it is used. If you do not need to
  3659. use the data, set the :term:`KERNELDEPMODDEPEND` variable in your
  3660. :term:`Initramfs` recipe. Setting the variable there when the data is not
  3661. needed avoids a potential dependency loop.
  3662. :term:`KFEATURE_DESCRIPTION`
  3663. Provides a short description of a configuration fragment. You use
  3664. this variable in the ``.scc`` file that describes a configuration
  3665. fragment file. Here is the variable used in a file named ``smp.scc``
  3666. to describe SMP being enabled::
  3667. define KFEATURE_DESCRIPTION "Enable SMP"
  3668. :term:`KMACHINE`
  3669. The machine as known by the kernel. Sometimes the machine name used
  3670. by the kernel does not match the machine name used by the
  3671. OpenEmbedded build system. For example, the machine name that the
  3672. OpenEmbedded build system understands as ``core2-32-intel-common``
  3673. goes by a different name in the Linux Yocto kernel. The kernel
  3674. understands that machine as ``intel-core2-32``. For cases like these,
  3675. the :term:`KMACHINE` variable maps the kernel machine name to the
  3676. OpenEmbedded build system machine name.
  3677. These mappings between different names occur in the Yocto Linux
  3678. Kernel's ``meta`` branch. As an example take a look in the
  3679. ``common/recipes-kernel/linux/linux-yocto_3.19.bbappend`` file::
  3680. LINUX_VERSION:core2-32-intel-common = "3.19.0"
  3681. COMPATIBLE_MACHINE:core2-32-intel-common = "${MACHINE}"
  3682. SRCREV_meta:core2-32-intel-common = "8897ef68b30e7426bc1d39895e71fb155d694974"
  3683. SRCREV_machine:core2-32-intel-common = "43b9eced9ba8a57add36af07736344dcc383f711"
  3684. KMACHINE:core2-32-intel-common = "intel-core2-32"
  3685. KBRANCH:core2-32-intel-common = "standard/base"
  3686. KERNEL_FEATURES:append:core2-32-intel-common = " ${KERNEL_FEATURES_INTEL_COMMON}"
  3687. The :term:`KMACHINE` statement says
  3688. that the kernel understands the machine name as "intel-core2-32".
  3689. However, the OpenEmbedded build system understands the machine as
  3690. "core2-32-intel-common".
  3691. :term:`KTYPE`
  3692. Defines the kernel type to be used in assembling the configuration.
  3693. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  3694. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  3695. section in the
  3696. Yocto Project Linux Kernel Development Manual for more information on
  3697. kernel types.
  3698. You define the :term:`KTYPE` variable in the
  3699. :ref:`kernel-dev/advanced:bsp descriptions`. The
  3700. value you use must match the value used for the
  3701. :term:`LINUX_KERNEL_TYPE` value used by the
  3702. kernel recipe.
  3703. :term:`LABELS`
  3704. Provides a list of targets for automatic configuration.
  3705. See the :ref:`ref-classes-grub-efi` class for more
  3706. information on how this variable is used.
  3707. :term:`LAYERDEPENDS`
  3708. Lists the layers, separated by spaces, on which this recipe depends.
  3709. Optionally, you can specify a specific layer version for a dependency
  3710. by adding it to the end of the layer name. Here is an example::
  3711. LAYERDEPENDS_mylayer = "anotherlayer (=3)"
  3712. In this previous example,
  3713. version 3 of "anotherlayer" is compared against
  3714. :term:`LAYERVERSION`\ ``_anotherlayer``.
  3715. An error is produced if any dependency is missing or the version
  3716. numbers (if specified) do not match exactly. This variable is used in
  3717. the ``conf/layer.conf`` file and must be suffixed with the name of
  3718. the specific layer (e.g. ``LAYERDEPENDS_mylayer``).
  3719. :term:`LAYERDIR`
  3720. When used inside the ``layer.conf`` configuration file, this variable
  3721. provides the path of the current layer. This variable is not
  3722. available outside of ``layer.conf`` and references are expanded
  3723. immediately when parsing of the file completes.
  3724. :term:`LAYERDIR_RE`
  3725. See :term:`bitbake:LAYERDIR_RE` in the BitBake manual.
  3726. :term:`LAYERRECOMMENDS`
  3727. Lists the layers, separated by spaces, recommended for use with this
  3728. layer.
  3729. Optionally, you can specify a specific layer version for a
  3730. recommendation by adding the version to the end of the layer name.
  3731. Here is an example::
  3732. LAYERRECOMMENDS_mylayer = "anotherlayer (=3)"
  3733. In this previous example, version 3 of "anotherlayer" is compared
  3734. against ``LAYERVERSION_anotherlayer``.
  3735. This variable is used in the ``conf/layer.conf`` file and must be
  3736. suffixed with the name of the specific layer (e.g.
  3737. ``LAYERRECOMMENDS_mylayer``).
  3738. :term:`LAYERSERIES_COMPAT`
  3739. See :term:`bitbake:LAYERSERIES_COMPAT` in the BitBake manual.
  3740. :term:`LAYERVERSION`
  3741. Optionally specifies the version of a layer as a single number. You
  3742. can use this within :term:`LAYERDEPENDS` for
  3743. another layer in order to depend on a specific version of the layer.
  3744. This variable is used in the ``conf/layer.conf`` file and must be
  3745. suffixed with the name of the specific layer (e.g.
  3746. ``LAYERVERSION_mylayer``).
  3747. :term:`LD`
  3748. The minimal command and arguments used to run the linker.
  3749. :term:`LDFLAGS`
  3750. Specifies the flags to pass to the linker. This variable is exported
  3751. to an environment variable and thus made visible to the software
  3752. being built during the compilation step.
  3753. Default initialization for :term:`LDFLAGS` varies depending on what is
  3754. being built:
  3755. - :term:`TARGET_LDFLAGS` when building for the
  3756. target
  3757. - :term:`BUILD_LDFLAGS` when building for the
  3758. build host (i.e. ``-native``)
  3759. - :term:`BUILDSDK_LDFLAGS` when building for
  3760. an SDK (i.e. ``nativesdk-``)
  3761. :term:`LEAD_SONAME`
  3762. Specifies the lead (or primary) compiled library file (i.e. ``.so``)
  3763. that the :ref:`ref-classes-debian` class applies its
  3764. naming policy to given a recipe that packages multiple libraries.
  3765. This variable works in conjunction with the :ref:`ref-classes-debian`
  3766. class.
  3767. :term:`LIC_FILES_CHKSUM`
  3768. Checksums of the license text in the recipe source code.
  3769. This variable tracks changes in license text of the source code
  3770. files. If the license text is changed, it will trigger a build
  3771. failure, which gives the developer an opportunity to review any
  3772. license change.
  3773. This variable must be defined for all recipes (unless
  3774. :term:`LICENSE` is set to "CLOSED").
  3775. For more information, see the ":ref:`dev-manual/licenses:tracking license changes`"
  3776. section in the Yocto Project Development Tasks Manual.
  3777. :term:`LICENSE`
  3778. The list of source licenses for the recipe. Follow these rules:
  3779. - Do not use spaces within individual license names.
  3780. - Separate license names using \| (pipe) when there is a choice
  3781. between licenses.
  3782. - Separate license names using & (ampersand) when there are
  3783. multiple licenses for different parts of the source.
  3784. - You can use spaces between license names.
  3785. - For standard licenses, use the names of the files in
  3786. ``meta/files/common-licenses/`` or the
  3787. :term:`SPDXLICENSEMAP` flag names defined in
  3788. ``meta/conf/licenses.conf``.
  3789. Here are some examples::
  3790. LICENSE = "LGPL-2.1-only | GPL-3.0-only"
  3791. LICENSE = "MPL-1.0 & LGPL-2.1-only"
  3792. LICENSE = "GPL-2.0-or-later"
  3793. The first example is from the
  3794. recipes for Qt, which the user may choose to distribute under either
  3795. the LGPL version 2.1 or GPL version 3. The second example is from
  3796. Cairo where two licenses cover different parts of the source code.
  3797. The final example is from ``sysstat``, which presents a single
  3798. license.
  3799. You can also specify licenses on a per-package basis to handle
  3800. situations where components of the output have different licenses.
  3801. For example, a piece of software whose code is licensed under GPLv2
  3802. but has accompanying documentation licensed under the GNU Free
  3803. Documentation License 1.2 could be specified as follows::
  3804. LICENSE = "GFDL-1.2 & GPL-2.0-only"
  3805. LICENSE:${PN} = "GPL-2.0.only"
  3806. LICENSE:${PN}-doc = "GFDL-1.2"
  3807. :term:`LICENSE_CREATE_PACKAGE`
  3808. Setting :term:`LICENSE_CREATE_PACKAGE` to "1" causes the OpenEmbedded
  3809. build system to create an extra package (i.e.
  3810. ``${``\ :term:`PN`\ ``}-lic``) for each recipe and to add
  3811. those packages to the
  3812. :term:`RRECOMMENDS`\ ``:${PN}``.
  3813. The ``${PN}-lic`` package installs a directory in
  3814. ``/usr/share/licenses`` named ``${PN}``, which is the recipe's base
  3815. name, and installs files in that directory that contain license and
  3816. copyright information (i.e. copies of the appropriate license files
  3817. from ``meta/common-licenses`` that match the licenses specified in
  3818. the :term:`LICENSE` variable of the recipe metadata
  3819. and copies of files marked in
  3820. :term:`LIC_FILES_CHKSUM` as containing
  3821. license text).
  3822. For related information on providing license text, see the
  3823. :term:`COPY_LIC_DIRS` variable, the
  3824. :term:`COPY_LIC_MANIFEST` variable, and the
  3825. ":ref:`dev-manual/licenses:providing license text`"
  3826. section in the Yocto Project Development Tasks Manual.
  3827. :term:`LICENSE_FLAGS`
  3828. Specifies additional flags for a recipe you must allow through
  3829. :term:`LICENSE_FLAGS_ACCEPTED` in
  3830. order for the recipe to be built. When providing multiple flags,
  3831. separate them with spaces.
  3832. This value is independent of :term:`LICENSE` and is
  3833. typically used to mark recipes that might require additional licenses
  3834. in order to be used in a commercial product. For more information,
  3835. see the
  3836. ":ref:`dev-manual/licenses:enabling commercially licensed recipes`"
  3837. section in the Yocto Project Development Tasks Manual.
  3838. :term:`LICENSE_FLAGS_ACCEPTED`
  3839. Lists license flags that when specified in
  3840. :term:`LICENSE_FLAGS` within a recipe should not
  3841. prevent that recipe from being built. For more information, see the
  3842. ":ref:`dev-manual/licenses:enabling commercially licensed recipes`"
  3843. section in the Yocto Project Development Tasks Manual.
  3844. :term:`LICENSE_PATH`
  3845. Path to additional licenses used during the build. By default, the
  3846. OpenEmbedded build system uses :term:`COMMON_LICENSE_DIR` to define the
  3847. directory that holds common license text used during the build. The
  3848. :term:`LICENSE_PATH` variable allows you to extend that location to other
  3849. areas that have additional licenses::
  3850. LICENSE_PATH += "path-to-additional-common-licenses"
  3851. :term:`LINUX_KERNEL_TYPE`
  3852. Defines the kernel type to be used in assembling the configuration.
  3853. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  3854. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  3855. section in the
  3856. Yocto Project Linux Kernel Development Manual for more information on
  3857. kernel types.
  3858. If you do not specify a :term:`LINUX_KERNEL_TYPE`, it defaults to
  3859. "standard". Together with :term:`KMACHINE`, the
  3860. :term:`LINUX_KERNEL_TYPE` variable defines the search arguments used by
  3861. the kernel tools to find the appropriate description within the
  3862. kernel :term:`Metadata` with which to build out the sources
  3863. and configuration.
  3864. :term:`LINUX_VERSION`
  3865. The Linux version from ``kernel.org`` on which the Linux kernel image
  3866. being built using the OpenEmbedded build system is based. You define
  3867. this variable in the kernel recipe. For example, the
  3868. ``linux-yocto-3.4.bb`` kernel recipe found in
  3869. ``meta/recipes-kernel/linux`` defines the variables as follows::
  3870. LINUX_VERSION ?= "3.4.24"
  3871. The :term:`LINUX_VERSION` variable is used to define :term:`PV`
  3872. for the recipe::
  3873. PV = "${LINUX_VERSION}+git${SRCPV}"
  3874. :term:`LINUX_VERSION_EXTENSION`
  3875. A string extension compiled into the version string of the Linux
  3876. kernel built with the OpenEmbedded build system. You define this
  3877. variable in the kernel recipe. For example, the linux-yocto kernel
  3878. recipes all define the variable as follows::
  3879. LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}"
  3880. Defining this variable essentially sets the Linux kernel
  3881. configuration item ``CONFIG_LOCALVERSION``, which is visible through
  3882. the ``uname`` command. Here is an example that shows the extension
  3883. assuming it was set as previously shown::
  3884. $ uname -r
  3885. 3.7.0-rc8-custom
  3886. :term:`LOG_DIR`
  3887. Specifies the directory to which the OpenEmbedded build system writes
  3888. overall log files. The default directory is ``${TMPDIR}/log``.
  3889. For the directory containing logs specific to each task, see the
  3890. :term:`T` variable.
  3891. :term:`MACHINE`
  3892. Specifies the target device for which the image is built. You define
  3893. :term:`MACHINE` in the ``local.conf`` file found in the
  3894. :term:`Build Directory`. By default, :term:`MACHINE` is set to
  3895. "qemux86", which is an x86-based architecture machine to be emulated
  3896. using QEMU::
  3897. MACHINE ?= "qemux86"
  3898. The variable corresponds to a machine configuration file of the same
  3899. name, through which machine-specific configurations are set. Thus,
  3900. when :term:`MACHINE` is set to "qemux86", the corresponding
  3901. ``qemux86.conf`` machine configuration file can be found in
  3902. the :term:`Source Directory` in
  3903. ``meta/conf/machine``.
  3904. The list of machines supported by the Yocto Project as shipped
  3905. include the following::
  3906. MACHINE ?= "qemuarm"
  3907. MACHINE ?= "qemuarm64"
  3908. MACHINE ?= "qemumips"
  3909. MACHINE ?= "qemumips64"
  3910. MACHINE ?= "qemuppc"
  3911. MACHINE ?= "qemux86"
  3912. MACHINE ?= "qemux86-64"
  3913. MACHINE ?= "genericx86"
  3914. MACHINE ?= "genericx86-64"
  3915. MACHINE ?= "beaglebone"
  3916. MACHINE ?= "edgerouter"
  3917. The last five are Yocto Project reference hardware
  3918. boards, which are provided in the ``meta-yocto-bsp`` layer.
  3919. .. note::
  3920. Adding additional Board Support Package (BSP) layers to your
  3921. configuration adds new possible settings for :term:`MACHINE`.
  3922. :term:`MACHINE_ARCH`
  3923. Specifies the name of the machine-specific architecture. This
  3924. variable is set automatically from :term:`MACHINE` or
  3925. :term:`TUNE_PKGARCH`. You should not hand-edit
  3926. the :term:`MACHINE_ARCH` variable.
  3927. :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  3928. A list of required machine-specific packages to install as part of
  3929. the image being built. The build process depends on these packages
  3930. being present. Furthermore, because this is a "machine-essential"
  3931. variable, the list of packages are essential for the machine to boot.
  3932. The impact of this variable affects images based on
  3933. ``packagegroup-core-boot``, including the ``core-image-minimal``
  3934. image.
  3935. This variable is similar to the
  3936. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS` variable with the exception
  3937. that the image being built has a build dependency on the variable's
  3938. list of packages. In other words, the image will not build if a file
  3939. in this list is not found.
  3940. As an example, suppose the machine for which you are building
  3941. requires ``example-init`` to be run during boot to initialize the
  3942. hardware. In this case, you would use the following in the machine's
  3943. ``.conf`` configuration file::
  3944. MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "example-init"
  3945. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS`
  3946. A list of recommended machine-specific packages to install as part of
  3947. the image being built. The build process does not depend on these
  3948. packages being present. However, because this is a
  3949. "machine-essential" variable, the list of packages are essential for
  3950. the machine to boot. The impact of this variable affects images based
  3951. on ``packagegroup-core-boot``, including the ``core-image-minimal``
  3952. image.
  3953. This variable is similar to the :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  3954. variable with the exception that the image being built does not have
  3955. a build dependency on the variable's list of packages. In other
  3956. words, the image will still build if a package in this list is not
  3957. found. Typically, this variable is used to handle essential kernel
  3958. modules, whose functionality may be selected to be built into the
  3959. kernel rather than as a module, in which case a package will not be
  3960. produced.
  3961. Consider an example where you have a custom kernel where a specific
  3962. touchscreen driver is required for the machine to be usable. However,
  3963. the driver can be built as a module or into the kernel depending on
  3964. the kernel configuration. If the driver is built as a module, you
  3965. want it to be installed. But, when the driver is built into the
  3966. kernel, you still want the build to succeed. This variable sets up a
  3967. "recommends" relationship so that in the latter case, the build will
  3968. not fail due to the missing package. To accomplish this, assuming the
  3969. package for the module was called ``kernel-module-ab123``, you would
  3970. use the following in the machine's ``.conf`` configuration file::
  3971. MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "kernel-module-ab123"
  3972. .. note::
  3973. In this example, the ``kernel-module-ab123`` recipe needs to
  3974. explicitly set its :term:`PACKAGES` variable to ensure that BitBake
  3975. does not use the kernel recipe's :term:`PACKAGES_DYNAMIC` variable to
  3976. satisfy the dependency.
  3977. Some examples of these machine essentials are flash, screen,
  3978. keyboard, mouse, or touchscreen drivers (depending on the machine).
  3979. :term:`MACHINE_EXTRA_RDEPENDS`
  3980. A list of machine-specific packages to install as part of the image
  3981. being built that are not essential for the machine to boot. However,
  3982. the build process for more fully-featured images depends on the
  3983. packages being present.
  3984. This variable affects all images based on ``packagegroup-base``,
  3985. which does not include the ``core-image-minimal`` or
  3986. ``core-image-full-cmdline`` images.
  3987. The variable is similar to the :term:`MACHINE_EXTRA_RRECOMMENDS` variable
  3988. with the exception that the image being built has a build dependency
  3989. on the variable's list of packages. In other words, the image will
  3990. not build if a file in this list is not found.
  3991. An example is a machine that has WiFi capability but is not essential
  3992. for the machine to boot the image. However, if you are building a
  3993. more fully-featured image, you want to enable the WiFi. The package
  3994. containing the firmware for the WiFi hardware is always expected to
  3995. exist, so it is acceptable for the build process to depend upon
  3996. finding the package. In this case, assuming the package for the
  3997. firmware was called ``wifidriver-firmware``, you would use the
  3998. following in the ``.conf`` file for the machine::
  3999. MACHINE_EXTRA_RDEPENDS += "wifidriver-firmware"
  4000. :term:`MACHINE_EXTRA_RRECOMMENDS`
  4001. A list of machine-specific packages to install as part of the image
  4002. being built that are not essential for booting the machine. The image
  4003. being built has no build dependency on this list of packages.
  4004. This variable affects only images based on ``packagegroup-base``,
  4005. which does not include the ``core-image-minimal`` or
  4006. ``core-image-full-cmdline`` images.
  4007. This variable is similar to the :term:`MACHINE_EXTRA_RDEPENDS` variable
  4008. with the exception that the image being built does not have a build
  4009. dependency on the variable's list of packages. In other words, the
  4010. image will build if a file in this list is not found.
  4011. An example is a machine that has WiFi capability but is not essential
  4012. For the machine to boot the image. However, if you are building a
  4013. more fully-featured image, you want to enable WiFi. In this case, the
  4014. package containing the WiFi kernel module will not be produced if the
  4015. WiFi driver is built into the kernel, in which case you still want
  4016. the build to succeed instead of failing as a result of the package
  4017. not being found. To accomplish this, assuming the package for the
  4018. module was called ``kernel-module-examplewifi``, you would use the
  4019. following in the ``.conf`` file for the machine::
  4020. MACHINE_EXTRA_RRECOMMENDS += "kernel-module-examplewifi"
  4021. :term:`MACHINE_FEATURES`
  4022. Specifies the list of hardware features the
  4023. :term:`MACHINE` is capable of supporting. For related
  4024. information on enabling features, see the
  4025. :term:`DISTRO_FEATURES`,
  4026. :term:`COMBINED_FEATURES`, and
  4027. :term:`IMAGE_FEATURES` variables.
  4028. For a list of hardware features supported by the Yocto Project as
  4029. shipped, see the ":ref:`ref-features-machine`" section.
  4030. :term:`MACHINE_FEATURES_BACKFILL`
  4031. A list of space-separated features to be added to
  4032. :term:`MACHINE_FEATURES` if not also present in
  4033. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`.
  4034. This variable is set in the ``meta/conf/bitbake.conf`` file. It is not
  4035. intended to be user-configurable. It is best to just reference the
  4036. variable to see which machine features are being
  4037. :ref:`backfilled <ref-features-backfill>` for all machine configurations.
  4038. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`
  4039. A list of space-separated features from :term:`MACHINE_FEATURES_BACKFILL`
  4040. that should not be :ref:`backfilled <ref-features-backfill>` (i.e. added
  4041. to :term:`MACHINE_FEATURES`) during the build.
  4042. This corresponds to an opt-out mechanism. When new default machine
  4043. features are introduced, machine definition maintainers can review
  4044. (`consider`) them and decide to exclude them from the
  4045. :ref:`backfilled <ref-features-backfill>` features. Therefore, the
  4046. combination of :term:`MACHINE_FEATURES_BACKFILL` and
  4047. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED` makes it possible to
  4048. add new default features without breaking existing machine definitions.
  4049. :term:`MACHINEOVERRIDES`
  4050. A colon-separated list of overrides that apply to the current
  4051. machine. By default, this list includes the value of
  4052. :term:`MACHINE`.
  4053. You can extend :term:`MACHINEOVERRIDES` to add extra overrides that
  4054. should apply to a machine. For example, all machines emulated in QEMU
  4055. (e.g. ``qemuarm``, ``qemux86``, and so forth) include a file named
  4056. ``meta/conf/machine/include/qemu.inc`` that prepends the following
  4057. override to :term:`MACHINEOVERRIDES`::
  4058. MACHINEOVERRIDES =. "qemuall:"
  4059. This
  4060. override allows variables to be overridden for all machines emulated
  4061. in QEMU, like in the following example from the ``connman-conf``
  4062. recipe::
  4063. SRC_URI:append:qemuall = " file://wired.config \
  4064. file://wired-setup \
  4065. "
  4066. The underlying mechanism behind
  4067. :term:`MACHINEOVERRIDES` is simply that it is included in the default
  4068. value of :term:`OVERRIDES`.
  4069. :term:`MAINTAINER`
  4070. The email address of the distribution maintainer.
  4071. :term:`MESON_BUILDTYPE`
  4072. Value of the Meson ``--buildtype`` argument used by the
  4073. :ref:`ref-classes-meson` class. It defaults to ``debug`` if
  4074. :term:`DEBUG_BUILD` is set to "1", and ``plain`` otherwise.
  4075. See `Meson build options <https://mesonbuild.com/Builtin-options.html>`__
  4076. for the values you could set in a recipe. Values such as ``plain``,
  4077. ``debug``, ``debugoptimized``, ``release`` and ``minsize`` allow
  4078. you to specify the inclusion of debugging symbols and the compiler
  4079. optimizations (none, performance or size).
  4080. :term:`METADATA_BRANCH`
  4081. The branch currently checked out for the OpenEmbedded-Core layer (path
  4082. determined by :term:`COREBASE`).
  4083. :term:`METADATA_REVISION`
  4084. The revision currently checked out for the OpenEmbedded-Core layer (path
  4085. determined by :term:`COREBASE`).
  4086. :term:`MIME_XDG_PACKAGES`
  4087. The current implementation of the :ref:`ref-classes-mime-xdg`
  4088. class cannot detect ``.desktop`` files installed through absolute
  4089. symbolic links. Use this setting to make the class create post-install
  4090. and post-remove scripts for these packages anyway, to invoke the
  4091. ``update-destop-database`` command.
  4092. :term:`MIRRORS`
  4093. Specifies additional paths from which the OpenEmbedded build system
  4094. gets source code. When the build system searches for source code, it
  4095. first tries the local download directory. If that location fails, the
  4096. build system tries locations defined by
  4097. :term:`PREMIRRORS`, the upstream source, and then
  4098. locations specified by :term:`MIRRORS` in that order.
  4099. Assuming your distribution (:term:`DISTRO`) is "poky",
  4100. the default value for :term:`MIRRORS` is defined in the
  4101. ``conf/distro/poky.conf`` file in the ``meta-poky`` Git repository.
  4102. :term:`MLPREFIX`
  4103. Specifies a prefix has been added to :term:`PN` to create a
  4104. special version of a recipe or package (i.e. a Multilib version). The
  4105. variable is used in places where the prefix needs to be added to or
  4106. removed from a name (e.g. the :term:`BPN` variable).
  4107. :term:`MLPREFIX` gets set when a prefix has been added to :term:`PN`.
  4108. .. note::
  4109. The "ML" in :term:`MLPREFIX` stands for "MultiLib". This representation
  4110. is historical and comes from a time when ":ref:`ref-classes-nativesdk`"
  4111. was a suffix rather than a prefix on the recipe name. When
  4112. ":ref:`ref-classes-nativesdk`" was turned into a prefix, it made sense
  4113. to set :term:`MLPREFIX` for it as well.
  4114. To help understand when :term:`MLPREFIX` might be needed, consider when
  4115. :term:`BBCLASSEXTEND` is used to provide a :ref:`ref-classes-nativesdk`
  4116. version of a recipe in addition to the target version. If that recipe
  4117. declares build-time dependencies on tasks in other recipes by using
  4118. :term:`DEPENDS`, then a dependency on "foo" will automatically get
  4119. rewritten to a dependency on "nativesdk-foo". However, dependencies like
  4120. the following will not get rewritten automatically::
  4121. do_foo[depends] += "recipe:do_foo"
  4122. If you want such a dependency to also get transformed, you can do the
  4123. following::
  4124. do_foo[depends] += "${MLPREFIX}recipe:do_foo"
  4125. :term:`module_autoload`
  4126. This variable has been replaced by the :term:`KERNEL_MODULE_AUTOLOAD`
  4127. variable. You should replace all occurrences of :term:`module_autoload`
  4128. with additions to :term:`KERNEL_MODULE_AUTOLOAD`, for example::
  4129. module_autoload_rfcomm = "rfcomm"
  4130. should now be replaced with::
  4131. KERNEL_MODULE_AUTOLOAD += "rfcomm"
  4132. See the :term:`KERNEL_MODULE_AUTOLOAD` variable for more information.
  4133. :term:`module_conf`
  4134. Specifies `modprobe.d <https://linux.die.net/man/5/modprobe.d>`__
  4135. syntax lines for inclusion in the ``/etc/modprobe.d/modname.conf``
  4136. file.
  4137. You can use this variable anywhere that it can be recognized by the
  4138. kernel recipe or out-of-tree kernel module recipe (e.g. a machine
  4139. configuration file, a distribution configuration file, an append file
  4140. for the recipe, or the recipe itself). If you use this variable, you
  4141. must also be sure to list the module name in the
  4142. :term:`KERNEL_MODULE_PROBECONF`
  4143. variable.
  4144. Here is the general syntax::
  4145. module_conf_module_name = "modprobe.d-syntax"
  4146. You must use the kernel module name override.
  4147. Run ``man modprobe.d`` in the shell to find out more information on
  4148. the exact syntax you want to provide with :term:`module_conf`.
  4149. Including :term:`module_conf` causes the OpenEmbedded build system to
  4150. populate the ``/etc/modprobe.d/modname.conf`` file with
  4151. ``modprobe.d`` syntax lines. Here is an example that adds the options
  4152. ``arg1`` and ``arg2`` to a module named ``mymodule``::
  4153. module_conf_mymodule = "options mymodule arg1=val1 arg2=val2"
  4154. For information on how to specify kernel modules to auto-load on
  4155. boot, see the :term:`KERNEL_MODULE_AUTOLOAD` variable.
  4156. :term:`MODULE_TARBALL_DEPLOY`
  4157. Controls creation of the ``modules-*.tgz`` file. Set this variable to
  4158. "0" to disable creation of this file, which contains all of the
  4159. kernel modules resulting from a kernel build.
  4160. :term:`MODULE_TARBALL_LINK_NAME`
  4161. The link name of the kernel module tarball. This variable is set in
  4162. the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  4163. MODULE_TARBALL_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  4164. The value
  4165. of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the
  4166. same file, has the following value::
  4167. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  4168. See the :term:`MACHINE` variable for additional information.
  4169. :term:`MODULE_TARBALL_NAME`
  4170. The base name of the kernel module tarball. This variable is set in
  4171. the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  4172. MODULE_TARBALL_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  4173. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  4174. :term:`MOUNT_BASE`
  4175. On non-systemd systems (where ``udev-extraconf`` is being used),
  4176. specifies the base directory for auto-mounting filesystems. The
  4177. default value is "/run/media".
  4178. :term:`MULTIMACH_TARGET_SYS`
  4179. Uniquely identifies the type of the target system for which packages
  4180. are being built. This variable allows output for different types of
  4181. target systems to be put into different subdirectories of the same
  4182. output directory.
  4183. The default value of this variable is::
  4184. ${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}
  4185. Some classes (e.g. :ref:`ref-classes-cross-canadian`) modify the
  4186. :term:`MULTIMACH_TARGET_SYS` value.
  4187. See the :term:`STAMP` variable for an example. See the
  4188. :term:`STAGING_DIR_TARGET` variable for more information.
  4189. :term:`NATIVELSBSTRING`
  4190. A string identifying the host distribution. Strings consist of the
  4191. host distributor ID followed by the release, as reported by the
  4192. ``lsb_release`` tool or as read from ``/etc/lsb-release``. For
  4193. example, when running a build on Ubuntu 12.10, the value is
  4194. "Ubuntu-12.10". If this information is unable to be determined, the
  4195. value resolves to "Unknown".
  4196. This variable is used by default to isolate native shared state
  4197. packages for different distributions (e.g. to avoid problems with
  4198. ``glibc`` version incompatibilities). Additionally, the variable is
  4199. checked against
  4200. :term:`SANITY_TESTED_DISTROS` if that
  4201. variable is set.
  4202. :term:`NM`
  4203. The minimal command and arguments to run ``nm``.
  4204. :term:`NO_GENERIC_LICENSE`
  4205. Avoids QA errors when you use a non-common, non-CLOSED license in a
  4206. recipe. There are packages, such as the linux-firmware package, with many
  4207. licenses that are not in any way common. Also, new licenses are added
  4208. occasionally to avoid introducing a lot of common license files,
  4209. which are only applicable to a specific package.
  4210. :term:`NO_GENERIC_LICENSE` is used to allow copying a license that does
  4211. not exist in common licenses.
  4212. The following example shows how to add :term:`NO_GENERIC_LICENSE` to a
  4213. recipe::
  4214. NO_GENERIC_LICENSE[license_name] = "license_file_in_fetched_source"
  4215. Here is an example that
  4216. uses the ``LICENSE.Abilis.txt`` file as the license from the fetched
  4217. source::
  4218. NO_GENERIC_LICENSE[Firmware-Abilis] = "LICENSE.Abilis.txt"
  4219. :term:`NO_RECOMMENDATIONS`
  4220. Prevents installation of all "recommended-only" packages.
  4221. Recommended-only packages are packages installed only through the
  4222. :term:`RRECOMMENDS` variable). Setting the
  4223. :term:`NO_RECOMMENDATIONS` variable to "1" turns this feature on::
  4224. NO_RECOMMENDATIONS = "1"
  4225. You can set this variable globally in your ``local.conf`` file or you
  4226. can attach it to a specific image recipe by using the recipe name
  4227. override::
  4228. NO_RECOMMENDATIONS:pn-target_image = "1"
  4229. It is important to realize that if you choose to not install packages
  4230. using this variable and some other packages are dependent on them
  4231. (i.e. listed in a recipe's :term:`RDEPENDS`
  4232. variable), the OpenEmbedded build system ignores your request and
  4233. will install the packages to avoid dependency errors.
  4234. .. note::
  4235. Some recommended packages might be required for certain system
  4236. functionality, such as kernel modules. It is up to you to add
  4237. packages with the :term:`IMAGE_INSTALL` variable.
  4238. This variable is only supported when using the IPK and RPM
  4239. packaging backends. DEB is not supported.
  4240. See the :term:`BAD_RECOMMENDATIONS` and
  4241. the :term:`PACKAGE_EXCLUDE` variables for
  4242. related information.
  4243. :term:`NOAUTOPACKAGEDEBUG`
  4244. Disables auto package from splitting ``.debug`` files. If a recipe
  4245. requires ``FILES:${PN}-dbg`` to be set manually, the
  4246. :term:`NOAUTOPACKAGEDEBUG` can be defined allowing you to define the
  4247. content of the debug package. For example::
  4248. NOAUTOPACKAGEDEBUG = "1"
  4249. FILES:${PN}-dev = "${includedir}/${QT_DIR_NAME}/Qt/*"
  4250. FILES:${PN}-dbg = "/usr/src/debug/"
  4251. FILES:${QT_BASE_NAME}-demos-doc = "${docdir}/${QT_DIR_NAME}/qch/qt.qch"
  4252. :term:`NON_MULTILIB_RECIPES`
  4253. A list of recipes that should not be built for multilib. OE-Core's
  4254. ``multilib.conf`` file defines a reasonable starting point for this
  4255. list with::
  4256. NON_MULTILIB_RECIPES = "grub grub-efi make-mod-scripts ovmf u-boot"
  4257. :term:`OBJCOPY`
  4258. The minimal command and arguments to run ``objcopy``.
  4259. :term:`OBJDUMP`
  4260. The minimal command and arguments to run ``objdump``.
  4261. :term:`OE_BINCONFIG_EXTRA_MANGLE`
  4262. When inheriting the :ref:`ref-classes-binconfig` class,
  4263. this variable specifies additional arguments passed to the "sed"
  4264. command. The sed command alters any paths in configuration scripts
  4265. that have been set up during compilation. Inheriting this class
  4266. results in all paths in these scripts being changed to point into the
  4267. ``sysroots/`` directory so that all builds that use the script will
  4268. use the correct directories for the cross compiling layout.
  4269. See the ``meta/classes-recipe/binconfig.bbclass`` in the
  4270. :term:`Source Directory` for details on how this class
  4271. applies these additional sed command arguments.
  4272. :term:`OECMAKE_GENERATOR`
  4273. A variable for the :ref:`ref-classes-cmake` class, allowing to choose
  4274. which back-end will be generated by CMake to build an application.
  4275. By default, this variable is set to ``Ninja``, which is faster than GNU
  4276. make, but if building is broken with Ninja, a recipe can use this
  4277. variable to use GNU make instead::
  4278. OECMAKE_GENERATOR = "Unix Makefiles"
  4279. :term:`OE_IMPORTS`
  4280. An internal variable used to tell the OpenEmbedded build system what
  4281. Python modules to import for every Python function run by the system.
  4282. .. note::
  4283. Do not set this variable. It is for internal use only.
  4284. :term:`OE_INIT_ENV_SCRIPT`
  4285. The name of the build environment setup script for the purposes of
  4286. setting up the environment within the extensible SDK. The default
  4287. value is "oe-init-build-env".
  4288. If you use a custom script to set up your build environment, set the
  4289. :term:`OE_INIT_ENV_SCRIPT` variable to its name.
  4290. :term:`OE_TERMINAL`
  4291. Controls how the OpenEmbedded build system spawns interactive
  4292. terminals on the host development system (e.g. using the BitBake
  4293. command with the ``-c devshell`` command-line option). For more
  4294. information, see the ":ref:`dev-manual/development-shell:using a development shell`" section in
  4295. the Yocto Project Development Tasks Manual.
  4296. You can use the following values for the :term:`OE_TERMINAL` variable:
  4297. - auto
  4298. - gnome
  4299. - xfce
  4300. - rxvt
  4301. - screen
  4302. - konsole
  4303. - none
  4304. :term:`OEROOT`
  4305. The directory from which the top-level build environment setup script
  4306. is sourced. The Yocto Project provides a top-level build environment
  4307. setup script: :ref:`structure-core-script`. When you run this
  4308. script, the :term:`OEROOT` variable resolves to the directory that
  4309. contains the script.
  4310. For additional information on how this variable is used, see the
  4311. initialization script.
  4312. :term:`OEQA_REPRODUCIBLE_TEST_TARGET`
  4313. Set build target for build reproducibility testing. By default
  4314. all available recipes are compiled with "bitbake world", see also :term:`EXCLUDE_FROM_WORLD`
  4315. and :doc:`/test-manual/reproducible-builds`.
  4316. :term:`OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS`
  4317. Set build targets which can be rebuilt using :ref:`shared state <overview-manual/concepts:shared state cache>`
  4318. when running build reproducibility tests. See :doc:`/test-manual/reproducible-builds`.
  4319. :term:`OLDEST_KERNEL`
  4320. Declares the oldest version of the Linux kernel that the produced
  4321. binaries must support. This variable is passed into the build of the
  4322. Embedded GNU C Library (``glibc``).
  4323. The default for this variable comes from the
  4324. ``meta/conf/bitbake.conf`` configuration file. You can override this
  4325. default by setting the variable in a custom distribution
  4326. configuration file.
  4327. :term:`OVERLAYFS_ETC_DEVICE`
  4328. When the :ref:`ref-classes-overlayfs-etc` class is
  4329. inherited, specifies the device to be mounted for the read/write
  4330. layer of ``/etc``. There is no default, so you must set this if you
  4331. wish to enable :ref:`ref-classes-overlayfs-etc`, for
  4332. example, assuming ``/dev/mmcblk0p2`` was the desired device::
  4333. OVERLAYFS_ETC_DEVICE = "/dev/mmcblk0p2"
  4334. :term:`OVERLAYFS_ETC_EXPOSE_LOWER`
  4335. When the :ref:`ref-classes-overlayfs-etc` class is
  4336. inherited, if set to "1" then a read-only access to the original
  4337. ``/etc`` content will be provided as a ``lower/`` subdirectory of
  4338. :term:`OVERLAYFS_ETC_MOUNT_POINT`. The default value is "0".
  4339. :term:`OVERLAYFS_ETC_FSTYPE`
  4340. When the :ref:`ref-classes-overlayfs-etc` class is
  4341. inherited, specifies the file system type for the read/write
  4342. layer of ``/etc``. There is no default, so you must set this if you
  4343. wish to enable :ref:`ref-classes-overlayfs-etc`,
  4344. for example, assuming the file system is ext4::
  4345. OVERLAYFS_ETC_FSTYPE = "ext4"
  4346. :term:`OVERLAYFS_ETC_MOUNT_OPTIONS`
  4347. When the :ref:`ref-classes-overlayfs-etc` class is
  4348. inherited, specifies the mount options for the read-write layer.
  4349. The default value is "defaults".
  4350. :term:`OVERLAYFS_ETC_MOUNT_POINT`
  4351. When the :ref:`ref-classes-overlayfs-etc` class is
  4352. inherited, specifies the parent mount path for the filesystem layers.
  4353. There is no default, so you must set this if you wish to enable
  4354. :ref:`ref-classes-overlayfs-etc`, for example if the desired path is
  4355. "/data"::
  4356. OVERLAYFS_ETC_MOUNT_POINT = "/data"
  4357. :term:`OVERLAYFS_ETC_USE_ORIG_INIT_NAME`
  4358. When the :ref:`ref-classes-overlayfs-etc` class is inherited, controls
  4359. how the generated init will be named. For more information, see the
  4360. :ref:`ref-classes-overlayfs-etc` class documentation. The default value
  4361. is "1".
  4362. :term:`OVERLAYFS_MOUNT_POINT`
  4363. When inheriting the :ref:`ref-classes-overlayfs` class,
  4364. specifies mount point(s) to be used. For example::
  4365. OVERLAYFS_MOUNT_POINT[data] = "/data"
  4366. The assumes you have a ``data.mount`` systemd unit defined elsewhere in
  4367. your BSP (e.g. in ``systemd-machine-units`` recipe) and it is installed
  4368. into the image. For more information see :ref:`ref-classes-overlayfs`.
  4369. .. note::
  4370. Although the :ref:`ref-classes-overlayfs` class is
  4371. inherited by individual recipes, :term:`OVERLAYFS_MOUNT_POINT`
  4372. should be set in your machine configuration.
  4373. :term:`OVERLAYFS_QA_SKIP`
  4374. When inheriting the :ref:`ref-classes-overlayfs` class,
  4375. provides the ability to disable QA checks for particular overlayfs
  4376. mounts. For example::
  4377. OVERLAYFS_QA_SKIP[data] = "mount-configured"
  4378. .. note::
  4379. Although the :ref:`ref-classes-overlayfs` class is
  4380. inherited by individual recipes, :term:`OVERLAYFS_QA_SKIP`
  4381. should be set in your machine configuration.
  4382. :term:`OVERLAYFS_WRITABLE_PATHS`
  4383. When inheriting the :ref:`ref-classes-overlayfs` class,
  4384. specifies writable paths used at runtime for the recipe. For
  4385. example::
  4386. OVERLAYFS_WRITABLE_PATHS[data] = "/usr/share/my-custom-application"
  4387. :term:`OVERRIDES`
  4388. A colon-separated list of overrides that currently apply. Overrides
  4389. are a BitBake mechanism that allows variables to be selectively
  4390. overridden at the end of parsing. The set of overrides in
  4391. :term:`OVERRIDES` represents the "state" during building, which includes
  4392. the current recipe being built, the machine for which it is being
  4393. built, and so forth.
  4394. As an example, if the string "an-override" appears as an element in
  4395. the colon-separated list in :term:`OVERRIDES`, then the following
  4396. assignment will override ``FOO`` with the value "overridden" at the
  4397. end of parsing::
  4398. FOO:an-override = "overridden"
  4399. See the
  4400. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  4401. section in the BitBake User Manual for more information on the
  4402. overrides mechanism.
  4403. The default value of :term:`OVERRIDES` includes the values of the
  4404. :term:`CLASSOVERRIDE`,
  4405. :term:`MACHINEOVERRIDES`, and
  4406. :term:`DISTROOVERRIDES` variables. Another
  4407. important override included by default is ``pn-${PN}``. This override
  4408. allows variables to be set for a single recipe within configuration
  4409. (``.conf``) files. Here is an example::
  4410. FOO:pn-myrecipe = "myrecipe-specific value"
  4411. .. note::
  4412. An easy way to see what overrides apply is to search for :term:`OVERRIDES`
  4413. in the output of the ``bitbake -e`` command. See the
  4414. ":ref:`dev-manual/debugging:viewing variable values`" section in the Yocto
  4415. Project Development Tasks Manual for more information.
  4416. :term:`P`
  4417. The recipe name and version. :term:`P` is comprised of the following::
  4418. ${PN}-${PV}
  4419. :term:`P4DIR`
  4420. See :term:`bitbake:P4DIR` in the BitBake manual.
  4421. :term:`PACKAGE_ADD_METADATA`
  4422. This variable defines additional metadata to add to packages.
  4423. You may find you need to inject additional metadata into packages.
  4424. This variable allows you to do that by setting the injected data as
  4425. the value. Multiple fields can be added by splitting the content with
  4426. the literal separator "\n".
  4427. The suffixes '_IPK', '_DEB', or '_RPM' can be applied to the variable
  4428. to do package type specific settings. It can also be made package
  4429. specific by using the package name as a suffix.
  4430. You can find out more about applying this variable in the
  4431. ":ref:`dev-manual/packages:adding custom metadata to packages`"
  4432. section in the Yocto Project Development Tasks Manual.
  4433. :term:`PACKAGE_ARCH`
  4434. The architecture of the resulting package or packages.
  4435. By default, the value of this variable is set to
  4436. :term:`TUNE_PKGARCH` when building for the
  4437. target, :term:`BUILD_ARCH` when building for the
  4438. build host, and "${SDK_ARCH}-${SDKPKGSUFFIX}" when building for the
  4439. SDK.
  4440. .. note::
  4441. See :term:`SDK_ARCH` for more information.
  4442. However, if your recipe's output packages are built specific to the
  4443. target machine rather than generally for the architecture of the
  4444. machine, you should set :term:`PACKAGE_ARCH` to the value of
  4445. :term:`MACHINE_ARCH` in the recipe as follows::
  4446. PACKAGE_ARCH = "${MACHINE_ARCH}"
  4447. :term:`PACKAGE_ARCHS`
  4448. Specifies a list of architectures compatible with the target machine.
  4449. This variable is set automatically and should not normally be
  4450. hand-edited. Entries are separated using spaces and listed in order
  4451. of priority. The default value for :term:`PACKAGE_ARCHS` is "all any
  4452. noarch ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}".
  4453. :term:`PACKAGE_BEFORE_PN`
  4454. Enables easily adding packages to :term:`PACKAGES` before ``${PN}`` so
  4455. that those added packages can pick up files that would normally be
  4456. included in the default package.
  4457. :term:`PACKAGE_CLASSES`
  4458. This variable, which is set in the ``local.conf`` configuration file
  4459. found in the ``conf`` folder of the
  4460. :term:`Build Directory`, specifies the package manager the
  4461. OpenEmbedded build system uses when packaging data.
  4462. You can provide one or more of the following arguments for the
  4463. variable::
  4464. PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk"
  4465. The build system uses only the first argument in the list as the
  4466. package manager when creating your image or SDK. However, packages
  4467. will be created using any additional packaging classes you specify.
  4468. For example, if you use the following in your ``local.conf`` file::
  4469. PACKAGE_CLASSES ?= "package_ipk"
  4470. The OpenEmbedded build system uses
  4471. the IPK package manager to create your image or SDK.
  4472. For information on packaging and build performance effects as a
  4473. result of the package manager in use, see the
  4474. ":ref:`ref-classes-package`" section.
  4475. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  4476. Determines how to split up and package debug and source information
  4477. when creating debugging packages to be used with the GNU Project
  4478. Debugger (GDB). In general, based on the value of this variable,
  4479. you can combine the source and debug info in a single package,
  4480. you can break out the source into a separate package that can be
  4481. installed independently, or you can choose to not have the source
  4482. packaged at all.
  4483. The possible values of :term:`PACKAGE_DEBUG_SPLIT_STYLE` variable:
  4484. - "``.debug``": All debugging and source info is placed in a single
  4485. ``*-dbg`` package; debug symbol files are placed next to the
  4486. binary in a ``.debug`` directory so that, if a binary is installed
  4487. into ``/bin``, the corresponding debug symbol file is installed
  4488. in ``/bin/.debug``. Source files are installed in the same ``*-dbg``
  4489. package under ``/usr/src/debug``.
  4490. - "``debug-file-directory``": As above, all debugging and source info
  4491. is placed in a single ``*-dbg`` package; debug symbol files are
  4492. placed entirely under the directory ``/usr/lib/debug`` and separated
  4493. by the path from where the binary is installed, so that if a binary
  4494. is installed in ``/bin``, the corresponding debug symbols are installed
  4495. in ``/usr/lib/debug/bin``, and so on. As above, source is installed
  4496. in the same package under ``/usr/src/debug``.
  4497. - "``debug-with-srcpkg``": Debugging info is placed in the standard
  4498. ``*-dbg`` package as with the ``.debug`` value, while source is
  4499. placed in a separate ``*-src`` package, which can be installed
  4500. independently. This is the default setting for this variable,
  4501. as defined in Poky's ``bitbake.conf`` file.
  4502. - "``debug-without-src``": The same behavior as with the ``.debug``
  4503. setting, but no source is packaged at all.
  4504. .. note::
  4505. Much of the above package splitting can be overridden via
  4506. use of the :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` variable.
  4507. You can find out more about debugging using GDB by reading the
  4508. ":ref:`dev-manual/debugging:debugging with the gnu project debugger (gdb) remotely`" section
  4509. in the Yocto Project Development Tasks Manual.
  4510. :term:`PACKAGE_EXCLUDE`
  4511. Lists packages that should not be installed into an image. For
  4512. example::
  4513. PACKAGE_EXCLUDE = "package_name package_name package_name ..."
  4514. You can set this variable globally in your ``local.conf`` file or you
  4515. can attach it to a specific image recipe by using the recipe name
  4516. override::
  4517. PACKAGE_EXCLUDE:pn-target_image = "package_name"
  4518. If you choose to not install a package using this variable and some
  4519. other package is dependent on it (i.e. listed in a recipe's
  4520. :term:`RDEPENDS` variable), the OpenEmbedded build
  4521. system generates a fatal installation error. Because the build system
  4522. halts the process with a fatal error, you can use the variable with
  4523. an iterative development process to remove specific components from a
  4524. system.
  4525. This variable is supported only when using the IPK and RPM
  4526. packaging backends. DEB is not supported.
  4527. See the :term:`NO_RECOMMENDATIONS` and the
  4528. :term:`BAD_RECOMMENDATIONS` variables for
  4529. related information.
  4530. :term:`PACKAGE_EXCLUDE_COMPLEMENTARY`
  4531. Prevents specific packages from being installed when you are
  4532. installing complementary packages.
  4533. You might find that you want to prevent installing certain packages
  4534. when you are installing complementary packages. For example, if you
  4535. are using :term:`IMAGE_FEATURES` to install
  4536. ``dev-pkgs``, you might not want to install all packages from a
  4537. particular multilib. If you find yourself in this situation, you can
  4538. use the :term:`PACKAGE_EXCLUDE_COMPLEMENTARY` variable to specify regular
  4539. expressions to match the packages you want to exclude.
  4540. :term:`PACKAGE_EXTRA_ARCHS`
  4541. Specifies the list of architectures compatible with the device CPU.
  4542. This variable is useful when you build for several different devices
  4543. that use miscellaneous processors such as XScale and ARM926-EJS.
  4544. :term:`PACKAGE_FEED_ARCHS`
  4545. Optionally specifies the package architectures used as part of the
  4546. package feed URIs during the build. When used, the
  4547. :term:`PACKAGE_FEED_ARCHS` variable is appended to the final package feed
  4548. URI, which is constructed using the
  4549. :term:`PACKAGE_FEED_URIS` and
  4550. :term:`PACKAGE_FEED_BASE_PATHS`
  4551. variables.
  4552. .. note::
  4553. You can use the :term:`PACKAGE_FEED_ARCHS`
  4554. variable to allow specific package architectures. If you do
  4555. not need to allow specific architectures, which is a common
  4556. case, you can omit this variable. Omitting the variable results in
  4557. all available architectures for the current machine being included
  4558. into remote package feeds.
  4559. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4560. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4561. defined in your ``local.conf`` file::
  4562. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4563. https://example.com/packagerepos/updates"
  4564. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4565. PACKAGE_FEED_ARCHS = "all core2-64"
  4566. Given these settings, the resulting package feeds are as follows:
  4567. .. code-block:: none
  4568. https://example.com/packagerepos/release/rpm/all
  4569. https://example.com/packagerepos/release/rpm/core2-64
  4570. https://example.com/packagerepos/release/rpm-dev/all
  4571. https://example.com/packagerepos/release/rpm-dev/core2-64
  4572. https://example.com/packagerepos/updates/rpm/all
  4573. https://example.com/packagerepos/updates/rpm/core2-64
  4574. https://example.com/packagerepos/updates/rpm-dev/all
  4575. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4576. :term:`PACKAGE_FEED_BASE_PATHS`
  4577. Specifies the base path used when constructing package feed URIs. The
  4578. :term:`PACKAGE_FEED_BASE_PATHS` variable makes up the middle portion of a
  4579. package feed URI used by the OpenEmbedded build system. The base path
  4580. lies between the :term:`PACKAGE_FEED_URIS`
  4581. and :term:`PACKAGE_FEED_ARCHS` variables.
  4582. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4583. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4584. defined in your ``local.conf`` file::
  4585. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4586. https://example.com/packagerepos/updates"
  4587. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4588. PACKAGE_FEED_ARCHS = "all core2-64"
  4589. Given these settings, the resulting package feeds are as follows:
  4590. .. code-block:: none
  4591. https://example.com/packagerepos/release/rpm/all
  4592. https://example.com/packagerepos/release/rpm/core2-64
  4593. https://example.com/packagerepos/release/rpm-dev/all
  4594. https://example.com/packagerepos/release/rpm-dev/core2-64
  4595. https://example.com/packagerepos/updates/rpm/all
  4596. https://example.com/packagerepos/updates/rpm/core2-64
  4597. https://example.com/packagerepos/updates/rpm-dev/all
  4598. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4599. :term:`PACKAGE_FEED_URIS`
  4600. Specifies the front portion of the package feed URI used by the
  4601. OpenEmbedded build system. Each final package feed URI is comprised
  4602. of :term:`PACKAGE_FEED_URIS`,
  4603. :term:`PACKAGE_FEED_BASE_PATHS`, and
  4604. :term:`PACKAGE_FEED_ARCHS` variables.
  4605. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4606. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4607. defined in your ``local.conf`` file::
  4608. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4609. https://example.com/packagerepos/updates"
  4610. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4611. PACKAGE_FEED_ARCHS = "all core2-64"
  4612. Given these settings, the resulting package feeds are as follows:
  4613. .. code-block:: none
  4614. https://example.com/packagerepos/release/rpm/all
  4615. https://example.com/packagerepos/release/rpm/core2-64
  4616. https://example.com/packagerepos/release/rpm-dev/all
  4617. https://example.com/packagerepos/release/rpm-dev/core2-64
  4618. https://example.com/packagerepos/updates/rpm/all
  4619. https://example.com/packagerepos/updates/rpm/core2-64
  4620. https://example.com/packagerepos/updates/rpm-dev/all
  4621. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4622. :term:`PACKAGE_INSTALL`
  4623. The final list of packages passed to the package manager for
  4624. installation into the image.
  4625. Because the package manager controls actual installation of all
  4626. packages, the list of packages passed using :term:`PACKAGE_INSTALL` is
  4627. not the final list of packages that are actually installed. This
  4628. variable is internal to the image construction code. Consequently, in
  4629. general, you should use the
  4630. :term:`IMAGE_INSTALL` variable to specify
  4631. packages for installation. The exception to this is when working with
  4632. the :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  4633. image. When working with an initial RAM filesystem (:term:`Initramfs`) image,
  4634. use the :term:`PACKAGE_INSTALL` variable. For information on creating an
  4635. :term:`Initramfs`, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  4636. in the Yocto Project Development Tasks Manual.
  4637. :term:`PACKAGE_INSTALL_ATTEMPTONLY`
  4638. Specifies a list of packages the OpenEmbedded build system attempts
  4639. to install when creating an image. If a listed package fails to
  4640. install, the build system does not generate an error. This variable
  4641. is generally not user-defined.
  4642. :term:`PACKAGE_PREPROCESS_FUNCS`
  4643. Specifies a list of functions run to pre-process the
  4644. :term:`PKGD` directory prior to splitting the files out
  4645. to individual packages.
  4646. :term:`PACKAGE_WRITE_DEPS`
  4647. Specifies a list of dependencies for post-installation and
  4648. pre-installation scripts on native/cross tools. If your
  4649. post-installation or pre-installation script can execute at root filesystem
  4650. creation time rather than on the target but depends on a native tool
  4651. in order to execute, you need to list the tools in
  4652. :term:`PACKAGE_WRITE_DEPS`.
  4653. For information on running post-installation scripts, see the
  4654. ":ref:`dev-manual/new-recipe:post-installation scripts`"
  4655. section in the Yocto Project Development Tasks Manual.
  4656. :term:`PACKAGECONFIG`
  4657. This variable provides a means of enabling or disabling features of a
  4658. recipe on a per-recipe basis. :term:`PACKAGECONFIG` blocks are defined in
  4659. recipes when you specify features and then arguments that define
  4660. feature behaviors. Here is the basic block structure (broken over
  4661. multiple lines for readability)::
  4662. PACKAGECONFIG ??= "f1 f2 f3 ..."
  4663. PACKAGECONFIG[f1] = "\
  4664. --with-f1, \
  4665. --without-f1, \
  4666. build-deps-for-f1, \
  4667. runtime-deps-for-f1, \
  4668. runtime-recommends-for-f1, \
  4669. packageconfig-conflicts-for-f1"
  4670. PACKAGECONFIG[f2] = "\
  4671. ... and so on and so on ...
  4672. The :term:`PACKAGECONFIG` variable itself specifies a space-separated
  4673. list of the features to enable. Following the features, you can
  4674. determine the behavior of each feature by providing up to six
  4675. order-dependent arguments, which are separated by commas. You can
  4676. omit any argument you like but must retain the separating commas. The
  4677. order is important and specifies the following:
  4678. #. Extra arguments that should be added to the configure script
  4679. argument list (:term:`EXTRA_OECONF` or
  4680. :term:`PACKAGECONFIG_CONFARGS`) if
  4681. the feature is enabled.
  4682. #. Extra arguments that should be added to :term:`EXTRA_OECONF` or
  4683. :term:`PACKAGECONFIG_CONFARGS` if the feature is disabled.
  4684. #. Additional build dependencies (:term:`DEPENDS`)
  4685. that should be added if the feature is enabled.
  4686. #. Additional runtime dependencies (:term:`RDEPENDS`)
  4687. that should be added if the feature is enabled.
  4688. #. Additional runtime recommendations
  4689. (:term:`RRECOMMENDS`) that should be added if
  4690. the feature is enabled.
  4691. #. Any conflicting (that is, mutually exclusive) :term:`PACKAGECONFIG`
  4692. settings for this feature.
  4693. Consider the following :term:`PACKAGECONFIG` block taken from the
  4694. ``librsvg`` recipe. In this example the feature is ``gtk``, which has
  4695. three arguments that determine the feature's behavior::
  4696. PACKAGECONFIG[gtk] = "--with-gtk3,--without-gtk3,gtk+3"
  4697. The
  4698. ``--with-gtk3`` and ``gtk+3`` arguments apply only if the feature is
  4699. enabled. In this case, ``--with-gtk3`` is added to the configure
  4700. script argument list and ``gtk+3`` is added to :term:`DEPENDS`. On the
  4701. other hand, if the feature is disabled say through a ``.bbappend``
  4702. file in another layer, then the second argument ``--without-gtk3`` is
  4703. added to the configure script instead.
  4704. The basic :term:`PACKAGECONFIG` structure previously described holds true
  4705. regardless of whether you are creating a block or changing a block.
  4706. When creating a block, use the structure inside your recipe.
  4707. If you want to change an existing :term:`PACKAGECONFIG` block, you can do
  4708. so one of two ways:
  4709. - *Append file:* Create an append file named
  4710. ``recipename.bbappend`` in your layer and override the value of
  4711. :term:`PACKAGECONFIG`. You can either completely override the
  4712. variable::
  4713. PACKAGECONFIG = "f4 f5"
  4714. Or, you can just append the variable::
  4715. PACKAGECONFIG:append = " f4"
  4716. - *Configuration file:* This method is identical to changing the
  4717. block through an append file except you edit your ``local.conf``
  4718. or ``mydistro.conf`` file. As with append files previously
  4719. described, you can either completely override the variable::
  4720. PACKAGECONFIG:pn-recipename = "f4 f5"
  4721. Or, you can just amend the variable::
  4722. PACKAGECONFIG:append:pn-recipename = " f4"
  4723. :term:`PACKAGECONFIG_CONFARGS`
  4724. A space-separated list of configuration options generated from the
  4725. :term:`PACKAGECONFIG` setting.
  4726. Classes such as :ref:`ref-classes-autotools` and :ref:`ref-classes-cmake`
  4727. use :term:`PACKAGECONFIG_CONFARGS` to pass :term:`PACKAGECONFIG` options
  4728. to ``configure`` and ``cmake``, respectively. If you are using
  4729. :term:`PACKAGECONFIG` but not a class that handles the
  4730. :ref:`ref-tasks-configure` task, then you need to use
  4731. :term:`PACKAGECONFIG_CONFARGS` appropriately.
  4732. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY`
  4733. For recipes inheriting the :ref:`ref-classes-packagegroup` class, setting
  4734. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY` to "1" specifies that the
  4735. normal complementary packages (i.e. ``-dev``, ``-dbg``, and so forth)
  4736. should not be automatically created by the ``packagegroup`` recipe,
  4737. which is the default behavior.
  4738. :term:`PACKAGES`
  4739. The list of packages the recipe creates. The default value is the
  4740. following::
  4741. ${PN}-src ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}
  4742. During packaging, the :ref:`ref-tasks-package` task
  4743. goes through :term:`PACKAGES` and uses the :term:`FILES`
  4744. variable corresponding to each package to assign files to the
  4745. package. If a file matches the :term:`FILES` variable for more than one
  4746. package in :term:`PACKAGES`, it will be assigned to the earliest
  4747. (leftmost) package.
  4748. Packages in the variable's list that are empty (i.e. where none of
  4749. the patterns in ``FILES:``\ pkg match any files installed by the
  4750. :ref:`ref-tasks-install` task) are not generated,
  4751. unless generation is forced through the
  4752. :term:`ALLOW_EMPTY` variable.
  4753. :term:`PACKAGES_DYNAMIC`
  4754. A promise that your recipe satisfies runtime dependencies for
  4755. optional modules that are found in other recipes.
  4756. :term:`PACKAGES_DYNAMIC` does not actually satisfy the dependencies, it
  4757. only states that they should be satisfied. For example, if a hard,
  4758. runtime dependency (:term:`RDEPENDS`) of another
  4759. package is satisfied at build time through the :term:`PACKAGES_DYNAMIC`
  4760. variable, but a package with the module name is never actually
  4761. produced, then the other package will be broken. Thus, if you attempt
  4762. to include that package in an image, you will get a dependency
  4763. failure from the packaging system during the
  4764. :ref:`ref-tasks-rootfs` task.
  4765. Typically, if there is a chance that such a situation can occur and
  4766. the package that is not created is valid without the dependency being
  4767. satisfied, then you should use :term:`RRECOMMENDS`
  4768. (a soft runtime dependency) instead of :term:`RDEPENDS`.
  4769. For an example of how to use the :term:`PACKAGES_DYNAMIC` variable when
  4770. you are splitting packages, see the
  4771. ":ref:`dev-manual/packages:handling optional module packaging`"
  4772. section in the Yocto Project Development Tasks Manual.
  4773. :term:`PACKAGESPLITFUNCS`
  4774. Specifies a list of functions run to perform additional splitting of
  4775. files into individual packages. Recipes can either prepend to this
  4776. variable or prepend to the ``populate_packages`` function in order to
  4777. perform additional package splitting. In either case, the function
  4778. should set :term:`PACKAGES`,
  4779. :term:`FILES`, :term:`RDEPENDS` and
  4780. other packaging variables appropriately in order to perform the
  4781. desired splitting.
  4782. :term:`PARALLEL_MAKE`
  4783. Extra options passed to the build tool command (``make``,
  4784. ``ninja`` or more specific build engines, like the Go language one)
  4785. during the :ref:`ref-tasks-compile` task, to specify parallel compilation
  4786. on the local build host. This variable is usually in the form "-j x",
  4787. where x represents the maximum number of parallel threads such engines
  4788. can run.
  4789. .. note::
  4790. For software compiled by ``make``, in order for :term:`PARALLEL_MAKE`
  4791. to be effective, ``make`` must be called with
  4792. ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy
  4793. way to ensure this is to use the ``oe_runmake`` function.
  4794. By default, the OpenEmbedded build system automatically sets this
  4795. variable to be equal to the number of cores the build system uses.
  4796. .. note::
  4797. If the software being built experiences dependency issues during
  4798. the :ref:`ref-tasks-compile` task that result in race conditions, you can clear
  4799. the :term:`PARALLEL_MAKE` variable within the recipe as a workaround. For
  4800. information on addressing race conditions, see the
  4801. ":ref:`dev-manual/debugging:debugging parallel make races`"
  4802. section in the Yocto Project Development Tasks Manual.
  4803. For single socket systems (i.e. one CPU), you should not have to
  4804. override this variable to gain optimal parallelism during builds.
  4805. However, if you have very large systems that employ multiple physical
  4806. CPUs, you might want to make sure the :term:`PARALLEL_MAKE` variable is
  4807. not set higher than "-j 20".
  4808. For more information on speeding up builds, see the
  4809. ":ref:`dev-manual/speeding-up-build:speeding up a build`"
  4810. section in the Yocto Project Development Tasks Manual.
  4811. :term:`PARALLEL_MAKEINST`
  4812. Extra options passed to the build tool install command
  4813. (``make install``, ``ninja install`` or more specific ones)
  4814. during the :ref:`ref-tasks-install` task in order to specify
  4815. parallel installation. This variable defaults to the value of
  4816. :term:`PARALLEL_MAKE`.
  4817. .. note::
  4818. For software compiled by ``make``, in order for :term:`PARALLEL_MAKEINST`
  4819. to be effective, ``make`` must be called with
  4820. ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy
  4821. way to ensure this is to use the ``oe_runmake`` function.
  4822. If the software being built experiences dependency issues during
  4823. the :ref:`ref-tasks-install` task that result in race conditions, you can
  4824. clear the :term:`PARALLEL_MAKEINST` variable within the recipe as a
  4825. workaround. For information on addressing race conditions, see the
  4826. ":ref:`dev-manual/debugging:debugging parallel make races`"
  4827. section in the Yocto Project Development Tasks Manual.
  4828. :term:`PATCHRESOLVE`
  4829. Determines the action to take when a patch fails. You can set this
  4830. variable to one of two values: "noop" and "user".
  4831. The default value of "noop" causes the build to simply fail when the
  4832. OpenEmbedded build system cannot successfully apply a patch. Setting
  4833. the value to "user" causes the build system to launch a shell and
  4834. places you in the right location so that you can manually resolve the
  4835. conflicts.
  4836. Set this variable in your ``local.conf`` file.
  4837. :term:`PATCHTOOL`
  4838. Specifies the utility used to apply patches for a recipe during the
  4839. :ref:`ref-tasks-patch` task. You can specify one of
  4840. three utilities: "patch", "quilt", or "git". The default utility used
  4841. is "quilt" except for the quilt-native recipe itself. Because the
  4842. quilt tool is not available at the time quilt-native is being
  4843. patched, it uses "patch".
  4844. If you wish to use an alternative patching tool, set the variable in
  4845. the recipe using one of the following::
  4846. PATCHTOOL = "patch"
  4847. PATCHTOOL = "quilt"
  4848. PATCHTOOL = "git"
  4849. :term:`PE`
  4850. The epoch of the recipe. By default, this variable is unset. The
  4851. variable is used to make upgrades possible when the versioning scheme
  4852. changes in some backwards incompatible way.
  4853. :term:`PE` is the default value of the :term:`PKGE` variable.
  4854. :term:`PEP517_WHEEL_PATH`
  4855. When used by recipes that inherit the :ref:`ref-classes-python_pep517`
  4856. class, denotes the path to ``dist/`` (short for distribution) where the
  4857. binary archive ``wheel`` is built.
  4858. :term:`PERSISTENT_DIR`
  4859. See :term:`bitbake:PERSISTENT_DIR` in the BitBake manual.
  4860. :term:`PF`
  4861. Specifies the recipe or package name and includes all version and
  4862. revision numbers (i.e. ``glibc-2.13-r20+svnr15508/`` and
  4863. ``bash-4.2-r1/``). This variable is comprised of the following:
  4864. ${:term:`PN`}-${:term:`EXTENDPE`}${:term:`PV`}-${:term:`PR`}
  4865. :term:`PIXBUF_PACKAGES`
  4866. When inheriting the :ref:`ref-classes-pixbufcache`
  4867. class, this variable identifies packages that contain the pixbuf
  4868. loaders used with ``gdk-pixbuf``. By default, the
  4869. :ref:`ref-classes-pixbufcache` class assumes that
  4870. the loaders are in the recipe's main package (i.e.
  4871. ``${``\ :term:`PN`\ ``}``). Use this variable if the
  4872. loaders you need are in a package other than that main package.
  4873. :term:`PKG`
  4874. The name of the resulting package created by the OpenEmbedded build
  4875. system.
  4876. .. note::
  4877. When using the :term:`PKG` variable, you must use a package name override.
  4878. For example, when the :ref:`ref-classes-debian` class renames the output
  4879. package, it does so by setting ``PKG:packagename``.
  4880. :term:`PKG_CONFIG_PATH`
  4881. The path to ``pkg-config`` files for the current build context.
  4882. ``pkg-config`` reads this variable from the environment.
  4883. :term:`PKGD`
  4884. Points to the destination directory for files to be packaged before
  4885. they are split into individual packages. This directory defaults to
  4886. the following::
  4887. ${WORKDIR}/package
  4888. Do not change this default.
  4889. :term:`PKGDATA_DIR`
  4890. Points to a shared, global-state directory that holds data generated
  4891. during the packaging process. During the packaging process, the
  4892. :ref:`ref-tasks-packagedata` task packages data
  4893. for each recipe and installs it into this temporary, shared area.
  4894. This directory defaults to the following, which you should not
  4895. change::
  4896. ${STAGING_DIR_HOST}/pkgdata
  4897. For examples of how this data is used, see the
  4898. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  4899. section in the Yocto Project Overview and Concepts Manual and the
  4900. ":ref:`dev-manual/debugging:viewing package information with \`\`oe-pkgdata-util\`\``"
  4901. section in the Yocto Project Development Tasks Manual. For more
  4902. information on the shared, global-state directory, see
  4903. :term:`STAGING_DIR_HOST`.
  4904. :term:`PKGDEST`
  4905. Points to the parent directory for files to be packaged after they
  4906. have been split into individual packages. This directory defaults to
  4907. the following::
  4908. ${WORKDIR}/packages-split
  4909. Under this directory, the build system creates directories for each
  4910. package specified in :term:`PACKAGES`. Do not change
  4911. this default.
  4912. :term:`PKGDESTWORK`
  4913. Points to a temporary work area where the
  4914. :ref:`ref-tasks-package` task saves package metadata.
  4915. The :term:`PKGDESTWORK` location defaults to the following::
  4916. ${WORKDIR}/pkgdata
  4917. Do not change this default.
  4918. The :ref:`ref-tasks-packagedata` task copies the
  4919. package metadata from :term:`PKGDESTWORK` to
  4920. :term:`PKGDATA_DIR` to make it available globally.
  4921. :term:`PKGE`
  4922. The epoch of the package(s) built by the recipe. By default, :term:`PKGE`
  4923. is set to :term:`PE`.
  4924. :term:`PKGR`
  4925. The revision of the package(s) built by the recipe. By default,
  4926. :term:`PKGR` is set to :term:`PR`.
  4927. :term:`PKGV`
  4928. The version of the package(s) built by the recipe. By default,
  4929. :term:`PKGV` is set to :term:`PV`.
  4930. :term:`PN`
  4931. This variable can have two separate functions depending on the
  4932. context: a recipe name or a resulting package name.
  4933. :term:`PN` refers to a recipe name in the context of a file used by the
  4934. OpenEmbedded build system as input to create a package. The name is
  4935. normally extracted from the recipe file name. For example, if the
  4936. recipe is named ``expat_2.0.1.bb``, then the default value of :term:`PN`
  4937. will be "expat".
  4938. The variable refers to a package name in the context of a file
  4939. created or produced by the OpenEmbedded build system.
  4940. If applicable, the :term:`PN` variable also contains any special suffix
  4941. or prefix. For example, using ``bash`` to build packages for the
  4942. native machine, :term:`PN` is ``bash-native``. Using ``bash`` to build
  4943. packages for the target and for Multilib, :term:`PN` would be ``bash``
  4944. and ``lib64-bash``, respectively.
  4945. :term:`POPULATE_SDK_POST_HOST_COMMAND`
  4946. Specifies a list of functions to call once the OpenEmbedded build
  4947. system has created the host part of the SDK. You can specify
  4948. functions separated by semicolons::
  4949. POPULATE_SDK_POST_HOST_COMMAND += "function; ... "
  4950. If you need to pass the SDK path to a command within a function, you
  4951. can use ``${SDK_DIR}``, which points to the parent directory used by
  4952. the OpenEmbedded build system when creating SDK output. See the
  4953. :term:`SDK_DIR` variable for more information.
  4954. :term:`POPULATE_SDK_POST_TARGET_COMMAND`
  4955. Specifies a list of functions to call once the OpenEmbedded build
  4956. system has created the target part of the SDK. You can specify
  4957. functions separated by semicolons::
  4958. POPULATE_SDK_POST_TARGET_COMMAND += "function; ... "
  4959. If you need to pass the SDK path to a command within a function, you
  4960. can use ``${SDK_DIR}``, which points to the parent directory used by
  4961. the OpenEmbedded build system when creating SDK output. See the
  4962. :term:`SDK_DIR` variable for more information.
  4963. :term:`PR`
  4964. The revision of the recipe. The default value for this variable is
  4965. "r0". Subsequent revisions of the recipe conventionally have the
  4966. values "r1", "r2", and so forth. When :term:`PV` increases,
  4967. :term:`PR` is conventionally reset to "r0".
  4968. .. note::
  4969. The OpenEmbedded build system does not need the aid of :term:`PR`
  4970. to know when to rebuild a recipe. The build system uses the task
  4971. :ref:`input checksums <overview-manual/concepts:checksums (signatures)>` along with the
  4972. :ref:`stamp <structure-build-tmp-stamps>` and
  4973. :ref:`overview-manual/concepts:shared state cache`
  4974. mechanisms.
  4975. The :term:`PR` variable primarily becomes significant when a package
  4976. manager dynamically installs packages on an already built image. In
  4977. this case, :term:`PR`, which is the default value of
  4978. :term:`PKGR`, helps the package manager distinguish which
  4979. package is the most recent one in cases where many packages have the
  4980. same :term:`PV` (i.e. :term:`PKGV`). A component having many packages with
  4981. the same :term:`PV` usually means that the packages all install the same
  4982. upstream version, but with later (:term:`PR`) version packages including
  4983. packaging fixes.
  4984. .. note::
  4985. :term:`PR` does not need to be increased for changes that do not change the
  4986. package contents or metadata.
  4987. Because manually managing :term:`PR` can be cumbersome and error-prone,
  4988. an automated solution exists. See the
  4989. ":ref:`dev-manual/packages:working with a pr service`" section
  4990. in the Yocto Project Development Tasks Manual for more information.
  4991. :term:`PREFERRED_PROVIDER`
  4992. If multiple recipes provide the same item, this variable determines
  4993. which recipe is preferred and thus provides the item (i.e. the
  4994. preferred provider). You should always suffix this variable with the
  4995. name of the provided item. And, you should define the variable using
  4996. the preferred recipe's name (:term:`PN`). Here is a common
  4997. example::
  4998. PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
  4999. In the previous example, multiple recipes are providing "virtual/kernel".
  5000. The :term:`PREFERRED_PROVIDER` variable is set with the name (:term:`PN`) of
  5001. the recipe you prefer to provide "virtual/kernel".
  5002. Following are more examples::
  5003. PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86"
  5004. PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
  5005. For more
  5006. information, see the ":ref:`dev-manual/new-recipe:using virtual providers`"
  5007. section in the Yocto Project Development Tasks Manual.
  5008. .. note::
  5009. If you use a ``virtual/\*`` item with :term:`PREFERRED_PROVIDER`, then any
  5010. recipe that :term:`PROVIDES` that item but is not selected (defined)
  5011. by :term:`PREFERRED_PROVIDER` is prevented from building, which is usually
  5012. desirable since this mechanism is designed to select between mutually
  5013. exclusive alternative providers.
  5014. :term:`PREFERRED_PROVIDERS`
  5015. See :term:`bitbake:PREFERRED_PROVIDERS` in the BitBake manual.
  5016. :term:`PREFERRED_VERSION`
  5017. If there are multiple versions of a recipe available, this variable
  5018. determines which version should be given preference. You must always
  5019. suffix the variable with the :term:`PN` you want to select (`python` in
  5020. the first example below), and you should specify the :term:`PV`
  5021. accordingly (`3.4.0` in the example).
  5022. The :term:`PREFERRED_VERSION` variable supports limited wildcard use
  5023. through the "``%``" character. You can use the character to match any
  5024. number of characters, which can be useful when specifying versions
  5025. that contain long revision numbers that potentially change. Here are
  5026. two examples::
  5027. PREFERRED_VERSION_python = "3.4.0"
  5028. PREFERRED_VERSION_linux-yocto = "5.0%"
  5029. .. note::
  5030. The use of the "%" character is limited in that it only works at the end of the
  5031. string. You cannot use the wildcard character in any other
  5032. location of the string.
  5033. The specified version is matched against :term:`PV`, which
  5034. does not necessarily match the version part of the recipe's filename.
  5035. For example, consider two recipes ``foo_1.2.bb`` and ``foo_git.bb``
  5036. where ``foo_git.bb`` contains the following assignment::
  5037. PV = "1.1+git${SRCPV}"
  5038. In this case, the correct way to select
  5039. ``foo_git.bb`` is by using an assignment such as the following::
  5040. PREFERRED_VERSION_foo = "1.1+git%"
  5041. Compare that previous example
  5042. against the following incorrect example, which does not work::
  5043. PREFERRED_VERSION_foo = "git"
  5044. Sometimes the :term:`PREFERRED_VERSION` variable can be set by
  5045. configuration files in a way that is hard to change. You can use
  5046. :term:`OVERRIDES` to set a machine-specific
  5047. override. Here is an example::
  5048. PREFERRED_VERSION_linux-yocto:qemux86 = "5.0%"
  5049. Although not recommended, worst case, you can also use the
  5050. "forcevariable" override, which is the strongest override possible.
  5051. Here is an example::
  5052. PREFERRED_VERSION_linux-yocto:forcevariable = "5.0%"
  5053. .. note::
  5054. The ``:forcevariable`` override is not handled specially. This override
  5055. only works because the default value of :term:`OVERRIDES` includes "forcevariable".
  5056. If a recipe with the specified version is not available, a warning
  5057. message will be shown. See :term:`REQUIRED_VERSION` if you want this
  5058. to be an error instead.
  5059. :term:`PREMIRRORS`
  5060. Specifies additional paths from which the OpenEmbedded build system
  5061. gets source code. When the build system searches for source code, it
  5062. first tries the local download directory. If that location fails, the
  5063. build system tries locations defined by :term:`PREMIRRORS`, the upstream
  5064. source, and then locations specified by
  5065. :term:`MIRRORS` in that order.
  5066. Assuming your distribution (:term:`DISTRO`) is "poky",
  5067. the default value for :term:`PREMIRRORS` is defined in the
  5068. ``conf/distro/poky.conf`` file in the ``meta-poky`` Git repository.
  5069. Typically, you could add a specific server for the build system to
  5070. attempt before any others by adding something like the following to
  5071. the ``local.conf`` configuration file in the
  5072. :term:`Build Directory`::
  5073. PREMIRRORS:prepend = "\
  5074. git://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5075. ftp://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5076. http://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5077. https://.*/.* &YOCTO_DL_URL;/mirror/sources/"
  5078. These changes cause the
  5079. build system to intercept Git, FTP, HTTP, and HTTPS requests and
  5080. direct them to the ``http://`` sources mirror. You can use
  5081. ``file://`` URLs to point to local directories or network shares as
  5082. well.
  5083. :term:`PRIORITY`
  5084. Indicates the importance of a package.
  5085. :term:`PRIORITY` is considered to be part of the distribution policy
  5086. because the importance of any given recipe depends on the purpose for
  5087. which the distribution is being produced. Thus, :term:`PRIORITY` is not
  5088. normally set within recipes.
  5089. You can set :term:`PRIORITY` to "required", "standard", "extra", and
  5090. "optional", which is the default.
  5091. :term:`PRIVATE_LIBS`
  5092. Specifies libraries installed within a recipe that should be ignored
  5093. by the OpenEmbedded build system's shared library resolver. This
  5094. variable is typically used when software being built by a recipe has
  5095. its own private versions of a library normally provided by another
  5096. recipe. In this case, you would not want the package containing the
  5097. private libraries to be set as a dependency on other unrelated
  5098. packages that should instead depend on the package providing the
  5099. standard version of the library.
  5100. Libraries specified in this variable should be specified by their
  5101. file name. For example, from the Firefox recipe in meta-browser::
  5102. PRIVATE_LIBS = "libmozjs.so \
  5103. libxpcom.so \
  5104. libnspr4.so \
  5105. libxul.so \
  5106. libmozalloc.so \
  5107. libplc4.so \
  5108. libplds4.so"
  5109. For more information, see the
  5110. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5111. section in the Yocto Project Overview and Concepts Manual.
  5112. :term:`PROVIDES`
  5113. A list of aliases by which a particular recipe can be known. By
  5114. default, a recipe's own :term:`PN` is implicitly already in its
  5115. :term:`PROVIDES` list and therefore does not need to mention that it
  5116. provides itself. If a recipe uses :term:`PROVIDES`, the additional
  5117. aliases are synonyms for the recipe and can be useful for satisfying
  5118. dependencies of other recipes during the build as specified by
  5119. :term:`DEPENDS`.
  5120. Consider the following example :term:`PROVIDES` statement from the recipe
  5121. file ``eudev_3.2.9.bb``::
  5122. PROVIDES += "udev"
  5123. The :term:`PROVIDES` statement
  5124. results in the "eudev" recipe also being available as simply "udev".
  5125. .. note::
  5126. A recipe's own recipe name (:term:`PN`) is always implicitly prepended
  5127. to :term:`PROVIDES`, so while using "+=" in the above example may not be
  5128. strictly necessary it is recommended to avoid confusion.
  5129. In addition to providing recipes under alternate names, the
  5130. :term:`PROVIDES` mechanism is also used to implement virtual targets. A
  5131. virtual target is a name that corresponds to some particular
  5132. functionality (e.g. a Linux kernel). Recipes that provide the
  5133. functionality in question list the virtual target in :term:`PROVIDES`.
  5134. Recipes that depend on the functionality in question can include the
  5135. virtual target in :term:`DEPENDS` to leave the choice of provider open.
  5136. Conventionally, virtual targets have names on the form
  5137. "virtual/function" (e.g. "virtual/kernel"). The slash is simply part
  5138. of the name and has no syntactical significance.
  5139. The :term:`PREFERRED_PROVIDER` variable is
  5140. used to select which particular recipe provides a virtual target.
  5141. .. note::
  5142. A corresponding mechanism for virtual runtime dependencies
  5143. (packages) exists. However, the mechanism does not depend on any
  5144. special functionality beyond ordinary variable assignments. For
  5145. example, ``VIRTUAL-RUNTIME_dev_manager`` refers to the package of
  5146. the component that manages the ``/dev`` directory.
  5147. Setting the "preferred provider" for runtime dependencies is as
  5148. simple as using the following assignment in a configuration file::
  5149. VIRTUAL-RUNTIME_dev_manager = "udev"
  5150. :term:`PRSERV_HOST`
  5151. The network based :term:`PR` service host and port.
  5152. The ``conf/templates/default/local.conf.sample.extended`` configuration
  5153. file in the :term:`Source Directory` shows how the :term:`PRSERV_HOST`
  5154. variable is set::
  5155. PRSERV_HOST = "localhost:0"
  5156. You must
  5157. set the variable if you want to automatically start a local :ref:`PR
  5158. service <dev-manual/packages:working with a pr service>`. You can
  5159. set :term:`PRSERV_HOST` to other values to use a remote PR service.
  5160. :term:`PSEUDO_IGNORE_PATHS`
  5161. A comma-separated (without spaces) list of path prefixes that should be ignored
  5162. by pseudo when monitoring and recording file operations, in order to avoid
  5163. problems with files being written to outside of the pseudo context and
  5164. reduce pseudo's overhead. A path is ignored if it matches any prefix in the list
  5165. and can include partial directory (or file) names.
  5166. :term:`PTEST_ENABLED`
  5167. Specifies whether or not :ref:`Package
  5168. Test <dev-manual/packages:testing packages with ptest>` (ptest)
  5169. functionality is enabled when building a recipe. You should not set
  5170. this variable directly. Enabling and disabling building Package Tests
  5171. at build time should be done by adding "ptest" to (or removing it
  5172. from) :term:`DISTRO_FEATURES`.
  5173. :term:`PV`
  5174. The version of the recipe. The version is normally extracted from the
  5175. recipe filename. For example, if the recipe is named
  5176. ``expat_2.0.1.bb``, then the default value of :term:`PV` will be "2.0.1".
  5177. :term:`PV` is generally not overridden within a recipe unless it is
  5178. building an unstable (i.e. development) version from a source code
  5179. repository (e.g. Git or Subversion).
  5180. :term:`PV` is the default value of the :term:`PKGV` variable.
  5181. :term:`PYPI_PACKAGE`
  5182. When inheriting the :ref:`ref-classes-pypi` class, specifies the
  5183. `PyPI <https://pypi.org/>`__ package name to be built. The default value
  5184. is set based upon :term:`BPN` (stripping any "python-" or "python3-"
  5185. prefix off if present), however for some packages it will need to be set
  5186. explicitly if that will not match the package name (e.g. where the
  5187. package name has a prefix, underscores, uppercase letters etc.)
  5188. :term:`PYTHON_ABI`
  5189. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  5190. class, denotes the Application Binary Interface (ABI) currently in use
  5191. for Python. By default, the ABI is "m". You do not have to set this
  5192. variable as the OpenEmbedded build system sets it for you.
  5193. The OpenEmbedded build system uses the ABI to construct directory
  5194. names used when installing the Python headers and libraries in
  5195. sysroot (e.g. ``.../python3.3m/...``).
  5196. :term:`PYTHON_PN`
  5197. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  5198. class, specifies the major Python version being built. For Python 3.x,
  5199. :term:`PYTHON_PN` would be "python3". You do not have to set this
  5200. variable as the OpenEmbedded build system automatically sets it for you.
  5201. The variable allows recipes to use common infrastructure such as the
  5202. following::
  5203. DEPENDS += "${PYTHON_PN}-native"
  5204. In the previous example,
  5205. the version of the dependency is :term:`PYTHON_PN`.
  5206. :term:`QA_EMPTY_DIRS`
  5207. Specifies a list of directories that are expected to be empty when
  5208. packaging; if ``empty-dirs`` appears in :term:`ERROR_QA` or
  5209. :term:`WARN_QA` these will be checked and an error or warning
  5210. (respectively) will be produced.
  5211. The default :term:`QA_EMPTY_DIRS` value is set in
  5212. :ref:`insane.bbclass <ref-classes-insane>`.
  5213. :term:`QA_EMPTY_DIRS_RECOMMENDATION`
  5214. Specifies a recommendation for why a directory must be empty,
  5215. which will be included in the error message if a specific directory
  5216. is found to contain files. Must be overridden with the directory
  5217. path to match on.
  5218. If no recommendation is specified for a directory, then the default
  5219. "but it is expected to be empty" will be used.
  5220. An example message shows if files were present in '/dev'::
  5221. QA_EMPTY_DIRS_RECOMMENDATION:/dev = "but all devices must be created at runtime"
  5222. :term:`RANLIB`
  5223. The minimal command and arguments to run ``ranlib``.
  5224. :term:`RCONFLICTS`
  5225. The list of packages that conflict with packages. Note that packages
  5226. will not be installed if conflicting packages are not first removed.
  5227. Like all package-controlling variables, you must always use them in
  5228. conjunction with a package name override. Here is an example::
  5229. RCONFLICTS:${PN} = "another_conflicting_package_name"
  5230. BitBake, which the OpenEmbedded build system uses, supports
  5231. specifying versioned dependencies. Although the syntax varies
  5232. depending on the packaging format, BitBake hides these differences
  5233. from you. Here is the general syntax to specify versions with the
  5234. :term:`RCONFLICTS` variable::
  5235. RCONFLICTS:${PN} = "package (operator version)"
  5236. For ``operator``, you can specify the following:
  5237. - =
  5238. - <
  5239. - >
  5240. - <=
  5241. - >=
  5242. For example, the following sets up a dependency on version 1.2 or
  5243. greater of the package ``foo``::
  5244. RCONFLICTS:${PN} = "foo (>= 1.2)"
  5245. :term:`RDEPENDS`
  5246. Lists runtime dependencies of a package. These dependencies are other
  5247. packages that must be installed in order for the package to function
  5248. correctly. As an example, the following assignment declares that the
  5249. package ``foo`` needs the packages ``bar`` and ``baz`` to be
  5250. installed::
  5251. RDEPENDS:foo = "bar baz"
  5252. The most common types of package
  5253. runtime dependencies are automatically detected and added. Therefore,
  5254. most recipes do not need to set :term:`RDEPENDS`. For more information,
  5255. see the
  5256. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5257. section in the Yocto Project Overview and Concepts Manual.
  5258. The practical effect of the above :term:`RDEPENDS` assignment is that
  5259. ``bar`` and ``baz`` will be declared as dependencies inside the
  5260. package ``foo`` when it is written out by one of the
  5261. :ref:`do_package_write_* <ref-tasks-package_write_deb>` tasks.
  5262. Exactly how this is done depends on which package format is used,
  5263. which is determined by
  5264. :term:`PACKAGE_CLASSES`. When the
  5265. corresponding package manager installs the package, it will know to
  5266. also install the packages on which it depends.
  5267. To ensure that the packages ``bar`` and ``baz`` get built, the
  5268. previous :term:`RDEPENDS` assignment also causes a task dependency to be
  5269. added. This dependency is from the recipe's
  5270. :ref:`ref-tasks-build` (not to be confused with
  5271. :ref:`ref-tasks-compile`) task to the
  5272. :ref:`do_package_write_* <ref-tasks-package_write_deb>` task of the recipes that build ``bar`` and
  5273. ``baz``.
  5274. The names of the packages you list within :term:`RDEPENDS` must be the
  5275. names of other packages --- they cannot be recipe names. Although
  5276. package names and recipe names usually match, the important point
  5277. here is that you are providing package names within the :term:`RDEPENDS`
  5278. variable. For an example of the default list of packages created from
  5279. a recipe, see the :term:`PACKAGES` variable.
  5280. Because the :term:`RDEPENDS` variable applies to packages being built,
  5281. you should always use the variable in a form with an attached package
  5282. name (remember that a single recipe can build multiple packages). For
  5283. example, suppose you are building a development package that depends
  5284. on the ``perl`` package. In this case, you would use the following
  5285. :term:`RDEPENDS` statement::
  5286. RDEPENDS:${PN}-dev += "perl"
  5287. In the example,
  5288. the development package depends on the ``perl`` package. Thus, the
  5289. :term:`RDEPENDS` variable has the ``${PN}-dev`` package name as part of
  5290. the variable.
  5291. .. note::
  5292. ``RDEPENDS:${PN}-dev`` includes ``${``\ :term:`PN`\ ``}``
  5293. by default. This default is set in the BitBake configuration file
  5294. (``meta/conf/bitbake.conf``). Be careful not to accidentally remove
  5295. ``${PN}`` when modifying ``RDEPENDS:${PN}-dev``. Use the "+=" operator
  5296. rather than the "=" operator.
  5297. The package names you use with :term:`RDEPENDS` must appear as they would
  5298. in the :term:`PACKAGES` variable. The :term:`PKG` variable
  5299. allows a different name to be used for the final package (e.g. the
  5300. :ref:`ref-classes-debian` class uses this to rename
  5301. packages), but this final package name cannot be used with
  5302. :term:`RDEPENDS`, which makes sense as :term:`RDEPENDS` is meant to be
  5303. independent of the package format used.
  5304. BitBake, which the OpenEmbedded build system uses, supports
  5305. specifying versioned dependencies. Although the syntax varies
  5306. depending on the packaging format, BitBake hides these differences
  5307. from you. Here is the general syntax to specify versions with the
  5308. :term:`RDEPENDS` variable::
  5309. RDEPENDS:${PN} = "package (operator version)"
  5310. For ``operator``, you can specify the following:
  5311. - =
  5312. - <
  5313. - >
  5314. - <=
  5315. - >=
  5316. For version, provide the version number.
  5317. .. note::
  5318. You can use :term:`EXTENDPKGV` to provide a full package version
  5319. specification.
  5320. For example, the following sets up a dependency on version 1.2 or
  5321. greater of the package ``foo``::
  5322. RDEPENDS:${PN} = "foo (>= 1.2)"
  5323. For information on build-time dependencies, see the :term:`DEPENDS`
  5324. variable. You can also see the
  5325. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:tasks`" and
  5326. ":ref:`bitbake-user-manual/bitbake-user-manual-execution:dependencies`" sections in the
  5327. BitBake User Manual for additional information on tasks and dependencies.
  5328. :term:`RECIPE_NO_UPDATE_REASON`
  5329. If a recipe should not be replaced by a more recent upstream version,
  5330. putting the reason why in this variable in a recipe allows
  5331. ``devtool check-upgrade-status`` command to display it, as explained
  5332. in the ":ref:`ref-manual/devtool-reference:checking on the upgrade status of a recipe`"
  5333. section.
  5334. :term:`REPODIR`
  5335. See :term:`bitbake:REPODIR` in the BitBake manual.
  5336. :term:`REQUIRED_DISTRO_FEATURES`
  5337. When inheriting the :ref:`ref-classes-features_check`
  5338. class, this variable identifies distribution features that must exist
  5339. in the current configuration in order for the OpenEmbedded build
  5340. system to build the recipe. In other words, if the
  5341. :term:`REQUIRED_DISTRO_FEATURES` variable lists a feature that does not
  5342. appear in :term:`DISTRO_FEATURES` within the current configuration, then
  5343. the recipe will be skipped, and if the build system attempts to build
  5344. the recipe then an error will be triggered.
  5345. :term:`REQUIRED_VERSION`
  5346. If there are multiple versions of a recipe available, this variable
  5347. determines which version should be given preference.
  5348. :term:`REQUIRED_VERSION` works in exactly the same manner as
  5349. :term:`PREFERRED_VERSION`, except that if the specified version is not
  5350. available then an error message is shown and the build fails
  5351. immediately.
  5352. If both :term:`REQUIRED_VERSION` and :term:`PREFERRED_VERSION` are set
  5353. for the same recipe, the :term:`REQUIRED_VERSION` value applies.
  5354. :term:`RM_WORK_EXCLUDE`
  5355. With :ref:`ref-classes-rm-work` enabled, this variable
  5356. specifies a list of recipes whose work directories should not be removed.
  5357. See the ":ref:`ref-classes-rm-work`" section for more details.
  5358. :term:`ROOT_HOME`
  5359. Defines the root home directory. By default, this directory is set as
  5360. follows in the BitBake configuration file::
  5361. ROOT_HOME ??= "/home/root"
  5362. .. note::
  5363. This default value is likely used because some embedded solutions
  5364. prefer to have a read-only root filesystem and prefer to keep
  5365. writeable data in one place.
  5366. You can override the default by setting the variable in any layer or
  5367. in the ``local.conf`` file. Because the default is set using a "weak"
  5368. assignment (i.e. "??="), you can use either of the following forms to
  5369. define your override::
  5370. ROOT_HOME = "/root"
  5371. ROOT_HOME ?= "/root"
  5372. These
  5373. override examples use ``/root``, which is probably the most commonly
  5374. used override.
  5375. :term:`ROOTFS`
  5376. Indicates a filesystem image to include as the root filesystem.
  5377. The :term:`ROOTFS` variable is an optional variable used with the
  5378. :ref:`ref-classes-image-live` class.
  5379. :term:`ROOTFS_POSTINSTALL_COMMAND`
  5380. Specifies a list of functions to call after the OpenEmbedded build
  5381. system has installed packages. You can specify functions separated by
  5382. semicolons::
  5383. ROOTFS_POSTINSTALL_COMMAND += "function; ... "
  5384. If you need to pass the root filesystem path to a command within a
  5385. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5386. directory that becomes the root filesystem image. See the
  5387. :term:`IMAGE_ROOTFS` variable for more
  5388. information.
  5389. :term:`ROOTFS_POSTPROCESS_COMMAND`
  5390. Specifies a list of functions to call once the OpenEmbedded build
  5391. system has created the root filesystem. You can specify functions
  5392. separated by semicolons::
  5393. ROOTFS_POSTPROCESS_COMMAND += "function; ... "
  5394. If you need to pass the root filesystem path to a command within a
  5395. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5396. directory that becomes the root filesystem image. See the
  5397. :term:`IMAGE_ROOTFS` variable for more
  5398. information.
  5399. :term:`ROOTFS_POSTUNINSTALL_COMMAND`
  5400. Specifies a list of functions to call after the OpenEmbedded build
  5401. system has removed unnecessary packages. When runtime package
  5402. management is disabled in the image, several packages are removed
  5403. including ``base-passwd``, ``shadow``, and ``update-alternatives``.
  5404. You can specify functions separated by semicolons::
  5405. ROOTFS_POSTUNINSTALL_COMMAND += "function; ... "
  5406. If you need to pass the root filesystem path to a command within a
  5407. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5408. directory that becomes the root filesystem image. See the
  5409. :term:`IMAGE_ROOTFS` variable for more
  5410. information.
  5411. :term:`ROOTFS_PREPROCESS_COMMAND`
  5412. Specifies a list of functions to call before the OpenEmbedded build
  5413. system has created the root filesystem. You can specify functions
  5414. separated by semicolons::
  5415. ROOTFS_PREPROCESS_COMMAND += "function; ... "
  5416. If you need to pass the root filesystem path to a command within a
  5417. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5418. directory that becomes the root filesystem image. See the
  5419. :term:`IMAGE_ROOTFS` variable for more
  5420. information.
  5421. :term:`RPROVIDES`
  5422. A list of package name aliases that a package also provides. These
  5423. aliases are useful for satisfying runtime dependencies of other
  5424. packages both during the build and on the target (as specified by
  5425. :term:`RDEPENDS`).
  5426. .. note::
  5427. A package's own name is implicitly already in its :term:`RPROVIDES` list.
  5428. As with all package-controlling variables, you must always use the
  5429. variable in conjunction with a package name override. Here is an
  5430. example::
  5431. RPROVIDES:${PN} = "widget-abi-2"
  5432. :term:`RRECOMMENDS`
  5433. A list of packages that extends the usability of a package being
  5434. built. The package being built does not depend on this list of
  5435. packages in order to successfully build, but rather uses them for
  5436. extended usability. To specify runtime dependencies for packages, see
  5437. the :term:`RDEPENDS` variable.
  5438. The package manager will automatically install the :term:`RRECOMMENDS`
  5439. list of packages when installing the built package. However, you can
  5440. prevent listed packages from being installed by using the
  5441. :term:`BAD_RECOMMENDATIONS`,
  5442. :term:`NO_RECOMMENDATIONS`, and
  5443. :term:`PACKAGE_EXCLUDE` variables.
  5444. Packages specified in :term:`RRECOMMENDS` need not actually be produced.
  5445. However, there must be a recipe providing each package, either
  5446. through the :term:`PACKAGES` or
  5447. :term:`PACKAGES_DYNAMIC` variables or the
  5448. :term:`RPROVIDES` variable, or an error will occur
  5449. during the build. If such a recipe does exist and the package is not
  5450. produced, the build continues without error.
  5451. Because the :term:`RRECOMMENDS` variable applies to packages being built,
  5452. you should always attach an override to the variable to specify the
  5453. particular package whose usability is being extended. For example,
  5454. suppose you are building a development package that is extended to
  5455. support wireless functionality. In this case, you would use the
  5456. following::
  5457. RRECOMMENDS:${PN}-dev += "wireless_package_name"
  5458. In the
  5459. example, the package name (``${PN}-dev``) must appear as it would in
  5460. the :term:`PACKAGES` namespace before any renaming of the output package
  5461. by classes such as :ref:`ref-classes-debian`.
  5462. BitBake, which the OpenEmbedded build system uses, supports
  5463. specifying versioned recommends. Although the syntax varies depending
  5464. on the packaging format, BitBake hides these differences from you.
  5465. Here is the general syntax to specify versions with the
  5466. :term:`RRECOMMENDS` variable::
  5467. RRECOMMENDS:${PN} = "package (operator version)"
  5468. For ``operator``, you can specify the following:
  5469. - =
  5470. - <
  5471. - >
  5472. - <=
  5473. - >=
  5474. For example, the following sets up a recommend on version 1.2 or
  5475. greater of the package ``foo``::
  5476. RRECOMMENDS:${PN} = "foo (>= 1.2)"
  5477. :term:`RREPLACES`
  5478. A list of packages replaced by a package. The package manager uses
  5479. this variable to determine which package should be installed to
  5480. replace other package(s) during an upgrade. In order to also have the
  5481. other package(s) removed at the same time, you must add the name of
  5482. the other package to the :term:`RCONFLICTS` variable.
  5483. As with all package-controlling variables, you must use this variable
  5484. in conjunction with a package name override. Here is an example::
  5485. RREPLACES:${PN} = "other_package_being_replaced"
  5486. BitBake, which the OpenEmbedded build system uses, supports
  5487. specifying versioned replacements. Although the syntax varies
  5488. depending on the packaging format, BitBake hides these differences
  5489. from you. Here is the general syntax to specify versions with the
  5490. :term:`RREPLACES` variable::
  5491. RREPLACES:${PN} = "package (operator version)"
  5492. For ``operator``, you can specify the following:
  5493. - =
  5494. - <
  5495. - >
  5496. - <=
  5497. - >=
  5498. For example, the following sets up a replacement using version 1.2
  5499. or greater of the package ``foo``::
  5500. RREPLACES:${PN} = "foo (>= 1.2)"
  5501. :term:`RSUGGESTS`
  5502. A list of additional packages that you can suggest for installation
  5503. by the package manager at the time a package is installed. Not all
  5504. package managers support this functionality.
  5505. As with all package-controlling variables, you must always use this
  5506. variable in conjunction with a package name override. Here is an
  5507. example::
  5508. RSUGGESTS:${PN} = "useful_package another_package"
  5509. :term:`RUST_CHANNEL`
  5510. Specifies which version of Rust to build - "stable", "beta" or "nightly".
  5511. The default value is "stable". Set this at your own risk, as values other
  5512. than "stable" are not guaranteed to work at a given time.
  5513. :term:`S`
  5514. The location in the :term:`Build Directory` where
  5515. unpacked recipe source code resides. By default, this directory is
  5516. ``${``\ :term:`WORKDIR`\ ``}/${``\ :term:`BPN`\ ``}-${``\ :term:`PV`\ ``}``,
  5517. where ``${BPN}`` is the base recipe name and ``${PV}`` is the recipe
  5518. version. If the source tarball extracts the code to a directory named
  5519. anything other than ``${BPN}-${PV}``, or if the source code is
  5520. fetched from an SCM such as Git or Subversion, then you must set
  5521. :term:`S` in the recipe so that the OpenEmbedded build system knows where
  5522. to find the unpacked source.
  5523. As an example, assume a :term:`Source Directory`
  5524. top-level folder named ``poky`` and a default :term:`Build Directory` at
  5525. ``poky/build``. In this case, the work directory the build system
  5526. uses to keep the unpacked recipe for ``db`` is the following::
  5527. poky/build/tmp/work/qemux86-poky-linux/db/5.1.19-r3/db-5.1.19
  5528. The unpacked source code resides in the ``db-5.1.19`` folder.
  5529. This next example assumes a Git repository. By default, Git
  5530. repositories are cloned to ``${WORKDIR}/git`` during
  5531. :ref:`ref-tasks-fetch`. Since this path is different
  5532. from the default value of :term:`S`, you must set it specifically so the
  5533. source can be located::
  5534. SRC_URI = "git://path/to/repo.git;branch=main"
  5535. S = "${WORKDIR}/git"
  5536. :term:`SANITY_REQUIRED_UTILITIES`
  5537. Specifies a list of command-line utilities that should be checked for
  5538. during the initial sanity checking process when running BitBake. If
  5539. any of the utilities are not installed on the build host, then
  5540. BitBake immediately exits with an error.
  5541. :term:`SANITY_TESTED_DISTROS`
  5542. A list of the host distribution identifiers that the build system has
  5543. been tested against. Identifiers consist of the host distributor ID
  5544. followed by the release, as reported by the ``lsb_release`` tool or
  5545. as read from ``/etc/lsb-release``. Separate the list items with
  5546. explicit newline characters (``\n``). If :term:`SANITY_TESTED_DISTROS` is
  5547. not empty and the current value of
  5548. :term:`NATIVELSBSTRING` does not appear in the
  5549. list, then the build system reports a warning that indicates the
  5550. current host distribution has not been tested as a build host.
  5551. :term:`SDK_ARCH`
  5552. The target architecture for the SDK. Typically, you do not directly
  5553. set this variable. Instead, use :term:`SDKMACHINE`.
  5554. :term:`SDK_ARCHIVE_TYPE`
  5555. Specifies the type of archive to create for the SDK. Valid values:
  5556. - ``tar.xz`` (default)
  5557. - ``zip``
  5558. Only one archive type can be specified.
  5559. :term:`SDK_BUILDINFO_FILE`
  5560. When using the :ref:`ref-classes-image-buildinfo` class,
  5561. specifies the file in the SDK to write the build information into. The
  5562. default value is "``/buildinfo``".
  5563. :term:`SDK_CUSTOM_TEMPLATECONF`
  5564. When building the extensible SDK, if :term:`SDK_CUSTOM_TEMPLATECONF` is set to
  5565. "1" and a ``conf/templateconf.cfg`` file exists in the :term:`Build Directory`
  5566. (:term:`TOPDIR`) then this will be copied into the SDK.
  5567. :term:`SDK_DEPLOY`
  5568. The directory set up and used by the
  5569. :ref:`populate_sdk_base <ref-classes-populate-sdk>` class to which the
  5570. SDK is deployed. The :ref:`populate_sdk_base <ref-classes-populate-sdk>`
  5571. class defines :term:`SDK_DEPLOY` as follows::
  5572. SDK_DEPLOY = "${TMPDIR}/deploy/sdk"
  5573. :term:`SDK_DIR`
  5574. The parent directory used by the OpenEmbedded build system when
  5575. creating SDK output. The
  5576. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class defines
  5577. the variable as follows::
  5578. SDK_DIR = "${WORKDIR}/sdk"
  5579. .. note::
  5580. The :term:`SDK_DIR` directory is a temporary directory as it is part of
  5581. :term:`WORKDIR`. The final output directory is :term:`SDK_DEPLOY`.
  5582. :term:`SDK_EXT_TYPE`
  5583. Controls whether or not shared state artifacts are copied into the
  5584. extensible SDK. The default value of "full" copies all of the
  5585. required shared state artifacts into the extensible SDK. The value
  5586. "minimal" leaves these artifacts out of the SDK.
  5587. .. note::
  5588. If you set the variable to "minimal", you need to ensure
  5589. :term:`SSTATE_MIRRORS` is set in the SDK's configuration to enable the
  5590. artifacts to be fetched as needed.
  5591. :term:`SDK_HOST_MANIFEST`
  5592. The manifest file for the host part of the SDK. This file lists all
  5593. the installed packages that make up the host part of the SDK. The
  5594. file contains package information on a line-per-package basis as
  5595. follows::
  5596. packagename packagearch version
  5597. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  5598. defines the manifest file as follows::
  5599. SDK_HOST_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.host.manifest"
  5600. The location is derived using the :term:`SDK_DEPLOY` and
  5601. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  5602. :term:`SDK_INCLUDE_PKGDATA`
  5603. When set to "1", specifies to include the packagedata for all recipes
  5604. in the "world" target in the extensible SDK. Including this data
  5605. allows the ``devtool search`` command to find these recipes in search
  5606. results, as well as allows the ``devtool add`` command to map
  5607. dependencies more effectively.
  5608. .. note::
  5609. Enabling the :term:`SDK_INCLUDE_PKGDATA`
  5610. variable significantly increases build time because all of world
  5611. needs to be built. Enabling the variable also slightly increases
  5612. the size of the extensible SDK.
  5613. :term:`SDK_INCLUDE_TOOLCHAIN`
  5614. When set to "1", specifies to include the toolchain in the extensible
  5615. SDK. Including the toolchain is useful particularly when
  5616. :term:`SDK_EXT_TYPE` is set to "minimal" to keep
  5617. the SDK reasonably small but you still want to provide a usable
  5618. toolchain. For example, suppose you want to use the toolchain from an
  5619. IDE or from other tools and you do not want to perform additional
  5620. steps to install the toolchain.
  5621. The :term:`SDK_INCLUDE_TOOLCHAIN` variable defaults to "0" if
  5622. :term:`SDK_EXT_TYPE` is set to "minimal", and defaults to "1" if
  5623. :term:`SDK_EXT_TYPE` is set to "full".
  5624. :term:`SDK_NAME`
  5625. The base name for SDK output files. The name is derived from the
  5626. :term:`DISTRO`, :term:`TCLIBC`,
  5627. :term:`SDK_ARCH`,
  5628. :term:`IMAGE_BASENAME`, and
  5629. :term:`TUNE_PKGARCH` variables::
  5630. SDK_NAME = "${DISTRO}-${TCLIBC}-${SDK_ARCH}-${IMAGE_BASENAME}-${TUNE_PKGARCH}"
  5631. :term:`SDK_OS`
  5632. Specifies the operating system for which the SDK will be built. The
  5633. default value is the value of :term:`BUILD_OS`.
  5634. :term:`SDK_OUTPUT`
  5635. The location used by the OpenEmbedded build system when creating SDK
  5636. output. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>`
  5637. class defines the variable as follows::
  5638. SDK_DIR = "${WORKDIR}/sdk"
  5639. SDK_OUTPUT = "${SDK_DIR}/image"
  5640. SDK_DEPLOY = "${DEPLOY_DIR}/sdk"
  5641. .. note::
  5642. The :term:`SDK_OUTPUT` directory is a temporary directory as it is part of
  5643. :term:`WORKDIR` by way of :term:`SDK_DIR`. The final output directory is
  5644. :term:`SDK_DEPLOY`.
  5645. :term:`SDK_PACKAGE_ARCHS`
  5646. Specifies a list of architectures compatible with the SDK machine.
  5647. This variable is set automatically and should not normally be
  5648. hand-edited. Entries are separated using spaces and listed in order
  5649. of priority. The default value for :term:`SDK_PACKAGE_ARCHS` is "all any
  5650. noarch ${SDK_ARCH}-${SDKPKGSUFFIX}".
  5651. :term:`SDK_POSTPROCESS_COMMAND`
  5652. Specifies a list of functions to call once the OpenEmbedded build
  5653. system creates the SDK. You can specify functions separated by
  5654. semicolons: SDK_POSTPROCESS_COMMAND += "function; ... "
  5655. If you need to pass an SDK path to a command within a function, you
  5656. can use ``${SDK_DIR}``, which points to the parent directory used by
  5657. the OpenEmbedded build system when creating SDK output. See the
  5658. :term:`SDK_DIR` variable for more information.
  5659. :term:`SDK_PREFIX`
  5660. The toolchain binary prefix used for
  5661. :ref:`ref-classes-nativesdk` recipes. The
  5662. OpenEmbedded build system uses the :term:`SDK_PREFIX` value to set the
  5663. :term:`TARGET_PREFIX` when building
  5664. ``nativesdk`` recipes. The default value is "${SDK_SYS}-".
  5665. :term:`SDK_RECRDEP_TASKS`
  5666. A list of shared state tasks added to the extensible SDK. By default,
  5667. the following tasks are added:
  5668. - :ref:`ref-tasks-populate_lic`
  5669. - :ref:`ref-tasks-package_qa`
  5670. - :ref:`ref-tasks-populate_sysroot`
  5671. - :ref:`ref-tasks-deploy`
  5672. Despite the default value of "" for the
  5673. :term:`SDK_RECRDEP_TASKS` variable, the above four tasks are always added
  5674. to the SDK. To specify tasks beyond these four, you need to use the
  5675. :term:`SDK_RECRDEP_TASKS` variable (e.g. you are defining additional
  5676. tasks that are needed in order to build
  5677. :term:`SDK_TARGETS`).
  5678. :term:`SDK_SYS`
  5679. Specifies the system, including the architecture and the operating
  5680. system, for which the SDK will be built.
  5681. The OpenEmbedded build system automatically sets this variable based
  5682. on :term:`SDK_ARCH`,
  5683. :term:`SDK_VENDOR`, and
  5684. :term:`SDK_OS`. You do not need to set the :term:`SDK_SYS`
  5685. variable yourself.
  5686. :term:`SDK_TARGET_MANIFEST`
  5687. The manifest file for the target part of the SDK. This file lists all
  5688. the installed packages that make up the target part of the SDK. The
  5689. file contains package information on a line-per-package basis as
  5690. follows::
  5691. packagename packagearch version
  5692. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  5693. defines the manifest file as follows::
  5694. SDK_TARGET_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.target.manifest"
  5695. The location is derived using the :term:`SDK_DEPLOY` and
  5696. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  5697. :term:`SDK_TARGETS`
  5698. A list of targets to install from shared state as part of the
  5699. standard or extensible SDK installation. The default value is "${PN}"
  5700. (i.e. the image from which the SDK is built).
  5701. The :term:`SDK_TARGETS` variable is an internal variable and typically
  5702. would not be changed.
  5703. :term:`SDK_TITLE`
  5704. The title to be printed when running the SDK installer. By default,
  5705. this title is based on the :term:`DISTRO_NAME` or
  5706. :term:`DISTRO` variable and is set in the
  5707. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  5708. follows::
  5709. SDK_TITLE ??= "${@d.getVar('DISTRO_NAME') or d.getVar('DISTRO')} SDK"
  5710. For the default distribution "poky",
  5711. :term:`SDK_TITLE` is set to "Poky (Yocto Project Reference Distro)".
  5712. For information on how to change this default title, see the
  5713. ":ref:`sdk-manual/appendix-customizing:changing the extensible sdk installer title`"
  5714. section in the Yocto Project Application Development and the
  5715. Extensible Software Development Kit (eSDK) manual.
  5716. :term:`SDK_TOOLCHAIN_LANGS`
  5717. Specifies programming languages to support in the SDK, as a
  5718. space-separated list. Currently supported items are ``rust`` and ``go``.
  5719. :term:`SDK_UPDATE_URL`
  5720. An optional URL for an update server for the extensible SDK. If set,
  5721. the value is used as the default update server when running
  5722. ``devtool sdk-update`` within the extensible SDK.
  5723. :term:`SDK_VENDOR`
  5724. Specifies the name of the SDK vendor.
  5725. :term:`SDK_VERSION`
  5726. Specifies the version of the SDK. The Poky distribution configuration file
  5727. (``/meta-poky/conf/distro/poky.conf``) sets the default
  5728. :term:`SDK_VERSION` as follows::
  5729. SDK_VERSION = "${@d.getVar('DISTRO_VERSION').replace('snapshot-${METADATA_REVISION}', 'snapshot')}"
  5730. For additional information, see the
  5731. :term:`DISTRO_VERSION` and
  5732. :term:`METADATA_REVISION` variables.
  5733. :term:`SDK_ZIP_OPTIONS`
  5734. Specifies extra options to pass to the ``zip`` command when zipping the SDK
  5735. (i.e. when :term:`SDK_ARCHIVE_TYPE` is set to "zip"). The default value is
  5736. "-y".
  5737. :term:`SDKEXTPATH`
  5738. The default installation directory for the Extensible SDK. By
  5739. default, this directory is based on the :term:`DISTRO`
  5740. variable and is set in the
  5741. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  5742. follows::
  5743. SDKEXTPATH ??= "~/${@d.getVar('DISTRO')}_sdk"
  5744. For the
  5745. default distribution "poky", the :term:`SDKEXTPATH` is set to "poky_sdk".
  5746. For information on how to change this default directory, see the
  5747. ":ref:`sdk-manual/appendix-customizing:changing the default sdk installation directory`"
  5748. section in the Yocto Project Application Development and the
  5749. Extensible Software Development Kit (eSDK) manual.
  5750. :term:`SDKIMAGE_FEATURES`
  5751. Equivalent to :term:`IMAGE_FEATURES`. However, this variable applies to
  5752. the SDK generated from an image using the following command::
  5753. $ bitbake -c populate_sdk imagename
  5754. :term:`SDKMACHINE`
  5755. The machine for which the SDK is built. In other words, the SDK is built
  5756. such that it runs on the target you specify with the :term:`SDKMACHINE`
  5757. value. The value points to a corresponding ``.conf`` file under
  5758. ``conf/machine-sdk/`` in the enabled layers, for example ``aarch64``,
  5759. ``i586``, ``i686``, ``ppc64``, ``ppc64le``, and ``x86_64`` are
  5760. :oe_git:`available in OpenEmbedded-Core </openembedded-core/tree/meta/conf/machine-sdk>`.
  5761. The variable defaults to :term:`BUILD_ARCH` so that SDKs are built for the
  5762. architecture of the build machine.
  5763. .. note::
  5764. You cannot set the :term:`SDKMACHINE`
  5765. variable in your distribution configuration file. If you do, the
  5766. configuration will not take effect.
  5767. :term:`SDKPATH`
  5768. Defines the path offered to the user for installation of the SDK that
  5769. is generated by the OpenEmbedded build system. The path appears as
  5770. the default location for installing the SDK when you run the SDK's
  5771. installation script. You can override the offered path when you run
  5772. the script.
  5773. :term:`SDKTARGETSYSROOT`
  5774. The full path to the sysroot used for cross-compilation within an SDK
  5775. as it will be when installed into the default
  5776. :term:`SDKPATH`.
  5777. :term:`SECTION`
  5778. The section in which packages should be categorized. Package
  5779. management utilities can make use of this variable.
  5780. :term:`SELECTED_OPTIMIZATION`
  5781. Specifies the optimization flags passed to the C compiler when
  5782. building for the target. The flags are passed through the default
  5783. value of the :term:`TARGET_CFLAGS` variable.
  5784. The :term:`SELECTED_OPTIMIZATION` variable takes the value of
  5785. :term:`FULL_OPTIMIZATION` unless :term:`DEBUG_BUILD` = "1", in which
  5786. case the value of :term:`DEBUG_OPTIMIZATION` is used.
  5787. :term:`SERIAL_CONSOLES`
  5788. Defines a serial console (TTY) to enable using
  5789. :wikipedia:`getty <Getty_(Unix)>`. Provide a value that specifies the
  5790. baud rate followed by the TTY device name separated by a semicolon.
  5791. Use spaces to separate multiple devices::
  5792. SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1"
  5793. :term:`SERIAL_CONSOLES_CHECK`
  5794. Specifies serial consoles, which must be listed in
  5795. :term:`SERIAL_CONSOLES`, to check against
  5796. ``/proc/console`` before enabling them using getty. This variable
  5797. allows aliasing in the format: <device>:<alias>. If a device was
  5798. listed as "sclp_line0" in ``/dev/`` and "ttyS0" was listed in
  5799. ``/proc/console``, you would do the following::
  5800. SERIAL_CONSOLES_CHECK = "slcp_line0:ttyS0"
  5801. This variable is currently only supported with SysVinit (i.e. not
  5802. with systemd). Note that :term:`SERIAL_CONSOLES_CHECK` also requires
  5803. ``/etc/inittab`` to be writable when used with SysVinit. This makes it
  5804. incompatible with customizations such as the following::
  5805. EXTRA_IMAGE_FEATURES += "read-only-rootfs"
  5806. :term:`SETUPTOOLS_BUILD_ARGS`
  5807. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  5808. class, this variable can be used to specify additional arguments to be
  5809. passed to ``setup.py build`` in the ``setuptools3_do_compile()`` task.
  5810. :term:`SETUPTOOLS_INSTALL_ARGS`
  5811. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  5812. class, this variable can be used to specify additional arguments to be
  5813. passed to ``setup.py install`` in the ``setuptools3_do_install()`` task.
  5814. :term:`SETUPTOOLS_SETUP_PATH`
  5815. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  5816. class, this variable should be used to specify the directory in which
  5817. the ``setup.py`` file is located if it is not at the root of the source
  5818. tree (as specified by :term:`S`). For example, in a recipe where the
  5819. sources are fetched from a Git repository and ``setup.py`` is in a
  5820. ``python/pythonmodule`` subdirectory, you would have this::
  5821. S = "${WORKDIR}/git"
  5822. SETUPTOOLS_SETUP_PATH = "${S}/python/pythonmodule"
  5823. :term:`SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS`
  5824. A list of recipe dependencies that should not be used to determine
  5825. signatures of tasks from one recipe when they depend on tasks from
  5826. another recipe. For example::
  5827. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "intone->mplayer2"
  5828. In the previous example, ``intone`` depends on ``mplayer2``.
  5829. You can use the special token ``"*"`` on the left-hand side of the
  5830. dependency to match all recipes except the one on the right-hand
  5831. side. Here is an example::
  5832. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "*->quilt-native"
  5833. In the previous example, all recipes except ``quilt-native`` ignore
  5834. task signatures from the ``quilt-native`` recipe when determining
  5835. their task signatures.
  5836. Use of this variable is one mechanism to remove dependencies that
  5837. affect task signatures and thus force rebuilds when a recipe changes.
  5838. .. note::
  5839. If you add an inappropriate dependency for a recipe relationship,
  5840. the software might break during runtime if the interface of the
  5841. second recipe was changed after the first recipe had been built.
  5842. :term:`SIGGEN_EXCLUDERECIPES_ABISAFE`
  5843. A list of recipes that are completely stable and will never change.
  5844. The ABI for the recipes in the list are presented by output from the
  5845. tasks run to build the recipe. Use of this variable is one way to
  5846. remove dependencies from one recipe on another that affect task
  5847. signatures and thus force rebuilds when the recipe changes.
  5848. .. note::
  5849. If you add an inappropriate variable to this list, the software
  5850. might break at runtime if the interface of the recipe was changed
  5851. after the other had been built.
  5852. :term:`SITEINFO_BITS`
  5853. Specifies the number of bits for the target system CPU. The value
  5854. should be either "32" or "64".
  5855. :term:`SITEINFO_ENDIANNESS`
  5856. Specifies the endian byte order of the target system. The value
  5857. should be either "le" for little-endian or "be" for big-endian.
  5858. :term:`SKIP_FILEDEPS`
  5859. Enables removal of all files from the "Provides" section of an RPM
  5860. package. Removal of these files is required for packages containing
  5861. prebuilt binaries and libraries such as ``libstdc++`` and ``glibc``.
  5862. To enable file removal, set the variable to "1" in your
  5863. ``conf/local.conf`` configuration file in your:
  5864. :term:`Build Directory`::
  5865. SKIP_FILEDEPS = "1"
  5866. :term:`SKIP_RECIPE`
  5867. Used to prevent the OpenEmbedded build system from building a given
  5868. recipe. Specify the :term:`PN` value as a variable flag (``varflag``)
  5869. and provide a reason, which will be reported when attempting to
  5870. build the recipe.
  5871. To prevent a recipe from being built, use the :term:`SKIP_RECIPE`
  5872. variable in your ``local.conf`` file or distribution configuration.
  5873. Here is an example which prevents ``myrecipe`` from being built::
  5874. SKIP_RECIPE[myrecipe] = "Not supported by our organization."
  5875. :term:`SOC_FAMILY`
  5876. A colon-separated list grouping together machines based upon the same
  5877. family of SoC (System On Chip). You typically set this variable in a
  5878. common ``.inc`` file that you include in the configuration files of all
  5879. the machines.
  5880. .. note::
  5881. You must include ``conf/machine/include/soc-family.inc`` for this
  5882. variable to appear in :term:`MACHINEOVERRIDES`.
  5883. :term:`SOLIBS`
  5884. Defines the suffix for shared libraries used on the target platform.
  5885. By default, this suffix is ".so.*" for all Linux-based systems and is
  5886. defined in the ``meta/conf/bitbake.conf`` configuration file.
  5887. You will see this variable referenced in the default values of
  5888. ``FILES:${PN}``.
  5889. :term:`SOLIBSDEV`
  5890. Defines the suffix for the development symbolic link (symlink) for
  5891. shared libraries on the target platform. By default, this suffix is
  5892. ".so" for Linux-based systems and is defined in the
  5893. ``meta/conf/bitbake.conf`` configuration file.
  5894. You will see this variable referenced in the default values of
  5895. ``FILES:${PN}-dev``.
  5896. :term:`SOURCE_DATE_EPOCH`
  5897. This defines a date expressed in number of seconds since
  5898. the UNIX EPOCH (01 Jan 1970 00:00:00 UTC), which is used by
  5899. multiple build systems to force a timestamp in built binaries.
  5900. Many upstream projects already support this variable.
  5901. You will find more details in the `official specifications
  5902. <https://reproducible-builds.org/specs/source-date-epoch/>`__.
  5903. A value for each recipe is computed from the sources by
  5904. :oe_git:`meta/lib/oe/reproducible.py </openembedded-core/tree/meta/lib/oe/reproducible.py>`.
  5905. If a recipe wishes to override the default behavior, it should set its
  5906. own :term:`SOURCE_DATE_EPOCH` value::
  5907. SOURCE_DATE_EPOCH = "1613559011"
  5908. :term:`SOURCE_MIRROR_FETCH`
  5909. When you are fetching files to create a mirror of sources (i.e.
  5910. creating a source mirror), setting :term:`SOURCE_MIRROR_FETCH` to "1" in
  5911. your ``local.conf`` configuration file ensures the source for all
  5912. recipes are fetched regardless of whether or not a recipe is
  5913. compatible with the configuration. A recipe is considered
  5914. incompatible with the currently configured machine when either or
  5915. both the :term:`COMPATIBLE_MACHINE`
  5916. variable and :term:`COMPATIBLE_HOST` variables
  5917. specify compatibility with a machine other than that of the current
  5918. machine or host.
  5919. .. note::
  5920. Do not set the :term:`SOURCE_MIRROR_FETCH`
  5921. variable unless you are creating a source mirror. In other words,
  5922. do not set the variable during a normal build.
  5923. :term:`SOURCE_MIRROR_URL`
  5924. Defines your own :term:`PREMIRRORS` from which to
  5925. first fetch source before attempting to fetch from the upstream
  5926. specified in :term:`SRC_URI`.
  5927. To use this variable, you must globally inherit the
  5928. :ref:`ref-classes-own-mirrors` class and then provide
  5929. the URL to your mirrors. Here is the general syntax::
  5930. INHERIT += "own-mirrors"
  5931. SOURCE_MIRROR_URL = "http://example.com/my_source_mirror"
  5932. .. note::
  5933. You can specify only a single URL in :term:`SOURCE_MIRROR_URL`.
  5934. :term:`SPDX_ARCHIVE_PACKAGED`
  5935. This option allows to add to :term:`SPDX` output compressed archives
  5936. of the files in the generated target packages.
  5937. Such archives are available in
  5938. ``tmp/deploy/spdx/MACHINE/packages/packagename.tar.zst``
  5939. under the :term:`Build Directory`.
  5940. Enable this option as follows::
  5941. SPDX_ARCHIVE_PACKAGED = "1"
  5942. According to our tests on release 4.1 "langdale", building
  5943. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling this
  5944. option multiplied the size of the ``tmp/deploy/spdx`` directory by a
  5945. factor of 13 (+1.6 GiB for this image), compared to just using the
  5946. :ref:`ref-classes-create-spdx` class with no option.
  5947. Note that this option doesn't increase the size of :term:`SPDX`
  5948. files in ``tmp/deploy/images/MACHINE``.
  5949. :term:`SPDX_ARCHIVE_SOURCES`
  5950. This option allows to add to :term:`SPDX` output compressed archives
  5951. of the sources for packages installed on the target. It currently
  5952. only works when :term:`SPDX_INCLUDE_SOURCES` is set.
  5953. This is one way of fulfilling "source code access" license
  5954. requirements.
  5955. Such source archives are available in
  5956. ``tmp/deploy/spdx/MACHINE/recipes/recipe-packagename.tar.zst``
  5957. under the :term:`Build Directory`.
  5958. Enable this option as follows::
  5959. SPDX_INCLUDE_SOURCES = "1"
  5960. SPDX_ARCHIVE_SOURCES = "1"
  5961. According to our tests on release 4.1 "langdale", building
  5962. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling
  5963. these options multiplied the size of the ``tmp/deploy/spdx``
  5964. directory by a factor of 11 (+1.4 GiB for this image),
  5965. compared to just using the :ref:`ref-classes-create-spdx`
  5966. class with no option.
  5967. Note that using this option only marginally increases the size
  5968. of the :term:`SPDX` output in ``tmp/deploy/images/MACHINE/``
  5969. (+ 0.07\% with the tested image), compared to just enabling
  5970. :term:`SPDX_INCLUDE_SOURCES`.
  5971. :term:`SPDX_CUSTOM_ANNOTATION_VARS`
  5972. This option allows to associate `SPDX annotations
  5973. <https://spdx.github.io/spdx-spec/v2.3/annotations/>`__ to a recipe,
  5974. using the values of variables in the recipe::
  5975. ANNOTATION1 = "First annotation for recipe"
  5976. ANNOTATION2 = "Second annotation for recipe"
  5977. SPDX_CUSTOM_ANNOTATION_VARS = "ANNOTATION1 ANNOTATION2"
  5978. This will add a new block to the recipe ``.sdpx.json`` output::
  5979. "annotations": [
  5980. {
  5981. "annotationDate": "2023-04-18T08:32:12Z",
  5982. "annotationType": "OTHER",
  5983. "annotator": "Tool: oe-spdx-creator - 1.0",
  5984. "comment": "ANNOTATION1=First annotation for recipe"
  5985. },
  5986. {
  5987. "annotationDate": "2023-04-18T08:32:12Z",
  5988. "annotationType": "OTHER",
  5989. "annotator": "Tool: oe-spdx-creator - 1.0",
  5990. "comment": "ANNOTATION2=Second annotation for recipe"
  5991. }
  5992. ],
  5993. :term:`SPDX_INCLUDE_SOURCES`
  5994. This option allows to add a description of the source files used to build
  5995. the host tools and the target packages, to the ``spdx.json`` files in
  5996. ``tmp/deploy/spdx/MACHINE/recipes/`` under the :term:`Build Directory`.
  5997. As a consequence, the ``spdx.json`` files under the ``by-namespace`` and
  5998. ``packages`` subdirectories in ``tmp/deploy/spdx/MACHINE`` are also
  5999. modified to include references to such source file descriptions.
  6000. Enable this option as follows::
  6001. SPDX_INCLUDE_SOURCES = "1"
  6002. According to our tests on release 4.1 "langdale", building
  6003. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling
  6004. this option multiplied the total size of the ``tmp/deploy/spdx``
  6005. directory by a factor of 3 (+291 MiB for this image),
  6006. and the size of the ``IMAGE-MACHINE.spdx.tar.zst`` in
  6007. ``tmp/deploy/images/MACHINE`` by a factor of 130 (+15 MiB for this
  6008. image), compared to just using the :ref:`ref-classes-create-spdx` class
  6009. with no option.
  6010. :term:`SPDX_PRETTY`
  6011. This option makes the SPDX output more human-readable, using
  6012. identation and newlines, instead of the default output in a
  6013. single line::
  6014. SPDX_PRETTY = "1"
  6015. The generated SPDX files are approximately 20% bigger, but
  6016. this option is recommended if you want to inspect the SPDX
  6017. output files with a text editor.
  6018. :term:`SPDXLICENSEMAP`
  6019. Maps commonly used license names to their SPDX counterparts found in
  6020. ``meta/files/common-licenses/``. For the default :term:`SPDXLICENSEMAP`
  6021. mappings, see the ``meta/conf/licenses.conf`` file.
  6022. For additional information, see the :term:`LICENSE`
  6023. variable.
  6024. :term:`SPECIAL_PKGSUFFIX`
  6025. A list of prefixes for :term:`PN` used by the OpenEmbedded
  6026. build system to create variants of recipes or packages. The list
  6027. specifies the prefixes to strip off during certain circumstances such
  6028. as the generation of the :term:`BPN` variable.
  6029. :term:`SPL_BINARY`
  6030. The file type for the Secondary Program Loader (SPL). Some devices
  6031. use an SPL from which to boot (e.g. the BeagleBone development
  6032. board). For such cases, you can declare the file type of the SPL
  6033. binary in the ``u-boot.inc`` include file, which is used in the
  6034. U-Boot recipe.
  6035. The SPL file type is set to "null" by default in the ``u-boot.inc``
  6036. file as follows::
  6037. # Some versions of u-boot build an SPL (Second Program Loader) image that
  6038. # should be packaged along with the u-boot binary as well as placed in the
  6039. # deploy directory. For those versions they can set the following variables
  6040. # to allow packaging the SPL.
  6041. SPL_BINARY ?= ""
  6042. SPL_BINARYNAME ?= "${@os.path.basename(d.getVar("SPL_BINARY"))}"
  6043. SPL_IMAGE ?= "${SPL_BINARYNAME}-${MACHINE}-${PV}-${PR}"
  6044. SPL_SYMLINK ?= "${SPL_BINARYNAME}-${MACHINE}"
  6045. The :term:`SPL_BINARY` variable helps form
  6046. various ``SPL_*`` variables used by the OpenEmbedded build system.
  6047. See the BeagleBone machine configuration example in the
  6048. ":ref:`dev-manual/layers:adding a layer using the \`\`bitbake-layers\`\` script`"
  6049. section in the Yocto Project Board Support Package Developer's Guide
  6050. for additional information.
  6051. :term:`SPL_MKIMAGE_DTCOPTS`
  6052. Options for the device tree compiler passed to ``mkimage -D`` feature
  6053. while creating a FIT image with the :ref:`ref-classes-uboot-sign`
  6054. class. If :term:`SPL_MKIMAGE_DTCOPTS` is not set then the
  6055. :ref:`ref-classes-uboot-sign` class will not pass the ``-D`` option
  6056. to ``mkimage``.
  6057. The default value is set to "" by the :ref:`ref-classes-uboot-config`
  6058. class.
  6059. :term:`SPL_SIGN_ENABLE`
  6060. Enable signing of the U-Boot FIT image. The default value is "0".
  6061. This variable is used by the :ref:`ref-classes-uboot-sign` class.
  6062. :term:`SPL_SIGN_KEYDIR`
  6063. Location of the directory containing the RSA key and certificate used for
  6064. signing the U-Boot FIT image, used by the :ref:`ref-classes-uboot-sign`
  6065. class.
  6066. :term:`SPL_SIGN_KEYNAME`
  6067. The name of keys used by the :ref:`ref-classes-kernel-fitimage` class
  6068. for signing U-Boot FIT image stored in the :term:`SPL_SIGN_KEYDIR`
  6069. directory. If we have for example a ``dev.key`` key and a ``dev.crt``
  6070. certificate stored in the :term:`SPL_SIGN_KEYDIR` directory, you will
  6071. have to set :term:`SPL_SIGN_KEYNAME` to ``dev``.
  6072. :term:`SPLASH`
  6073. This variable, used by the :ref:`ref-classes-image` class, allows
  6074. to choose splashscreen applications. Set it to the names of packages
  6075. for such applications to use. This variable is set by default to
  6076. ``psplash``.
  6077. :term:`SPLASH_IMAGES`
  6078. This variable, used by the ``psplash`` recipe, allows to customize
  6079. the default splashscreen image.
  6080. Specified images in PNG format are converted to ``.h`` files by the recipe,
  6081. and are included in the ``psplash`` binary, so you won't find them in
  6082. the root filesystem.
  6083. To make such a change, it is recommended to customize the
  6084. ``psplash`` recipe in a custom layer. Here is an example structure for
  6085. an ``ACME`` board::
  6086. meta-acme/recipes-core/psplash
  6087. ├── files
  6088. │   └── logo-acme.png
  6089. └── psplash_%.bbappend
  6090. And here are the contents of the ``psplash_%.bbappend`` file in
  6091. this example::
  6092. SPLASH_IMAGES = "file://logo-acme.png;outsuffix=default"
  6093. FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  6094. You could even add specific configuration options for ``psplash``,
  6095. for example::
  6096. EXTRA_OECONF += "--disable-startup-msg --enable-img-fullscreen"
  6097. For information on append files, see the
  6098. ":ref:`dev-manual/layers:appending other layers metadata with your layer`"
  6099. section.
  6100. :term:`SRCREV_FORMAT`
  6101. See :term:`bitbake:SRCREV_FORMAT` in the BitBake manual.
  6102. :term:`SRC_URI`
  6103. See the BitBake manual for the initial description for this variable:
  6104. :term:`bitbake:SRC_URI`.
  6105. The following features are added by OpenEmbedded and the Yocto Project.
  6106. There are standard and recipe-specific options. Here are standard ones:
  6107. - ``apply`` --- whether to apply the patch or not. The default
  6108. action is to apply the patch.
  6109. - ``striplevel`` --- which striplevel to use when applying the
  6110. patch. The default level is 1.
  6111. - ``patchdir`` --- specifies the directory in which the patch should
  6112. be applied. The default is ``${``\ :term:`S`\ ``}``.
  6113. Here are options specific to recipes building code from a revision
  6114. control system:
  6115. - ``mindate`` --- apply the patch only if
  6116. :term:`SRCDATE` is equal to or greater than
  6117. ``mindate``.
  6118. - ``maxdate`` --- apply the patch only if :term:`SRCDATE` is not later
  6119. than ``maxdate``.
  6120. - ``minrev`` --- apply the patch only if :term:`SRCREV` is equal to or
  6121. greater than ``minrev``.
  6122. - ``maxrev`` --- apply the patch only if :term:`SRCREV` is not later
  6123. than ``maxrev``.
  6124. - ``rev`` --- apply the patch only if :term:`SRCREV` is equal to
  6125. ``rev``.
  6126. - ``notrev`` --- apply the patch only if :term:`SRCREV` is not equal to
  6127. ``rev``.
  6128. .. note::
  6129. If you want the build system to pick up files specified through
  6130. a :term:`SRC_URI` statement from your append file, you need to be
  6131. sure to extend the :term:`FILESPATH` variable by also using the
  6132. :term:`FILESEXTRAPATHS` variable from within your append file.
  6133. :term:`SRC_URI_OVERRIDES_PACKAGE_ARCH`
  6134. By default, the OpenEmbedded build system automatically detects
  6135. whether :term:`SRC_URI` contains files that are machine-specific. If so,
  6136. the build system automatically changes :term:`PACKAGE_ARCH`. Setting this
  6137. variable to "0" disables this behavior.
  6138. :term:`SRCDATE`
  6139. The date of the source code used to build the package. This variable
  6140. applies only if the source was fetched from a Source Code Manager
  6141. (SCM).
  6142. :term:`SRCPV`
  6143. Returns the version string of the current package. This string is
  6144. used to help define the value of :term:`PV`.
  6145. The :term:`SRCPV` variable is defined in the ``meta/conf/bitbake.conf``
  6146. configuration file in the :term:`Source Directory` as
  6147. follows::
  6148. SRCPV = "${@bb.fetch2.get_srcrev(d)}"
  6149. Recipes that need to define :term:`PV` do so with the help of the
  6150. :term:`SRCPV`. For example, the ``ofono`` recipe (``ofono_git.bb``)
  6151. located in ``meta/recipes-connectivity`` in the Source Directory
  6152. defines :term:`PV` as follows::
  6153. PV = "0.12-git${SRCPV}"
  6154. :term:`SRCREV`
  6155. The revision of the source code used to build the package. This
  6156. variable applies to Subversion, Git, Mercurial, and Bazaar only. Note
  6157. that if you want to build a fixed revision and you want to avoid
  6158. performing a query on the remote repository every time BitBake parses
  6159. your recipe, you should specify a :term:`SRCREV` that is a full revision
  6160. identifier (e.g. the full SHA hash in git) and not just a tag.
  6161. .. note::
  6162. For information on limitations when inheriting the latest revision
  6163. of software using :term:`SRCREV`, see the :term:`AUTOREV` variable
  6164. description and the
  6165. ":ref:`dev-manual/packages:automatically incrementing a package version number`"
  6166. section, which is in the Yocto Project Development Tasks Manual.
  6167. :term:`SRCTREECOVEREDTASKS`
  6168. A list of tasks that are typically not relevant (and therefore skipped)
  6169. when building using the :ref:`ref-classes-externalsrc`
  6170. class. The default value as set in that class file is the set of tasks
  6171. that are rarely needed when using external source::
  6172. SRCTREECOVEREDTASKS ?= "do_patch do_unpack do_fetch"
  6173. The notable exception is when processing external kernel source as
  6174. defined in the :ref:`ref-classes-kernel-yocto` class file (formatted for
  6175. aesthetics)::
  6176. SRCTREECOVEREDTASKS += "\
  6177. do_validate_branches \
  6178. do_kernel_configcheck \
  6179. do_kernel_checkout \
  6180. do_fetch \
  6181. do_unpack \
  6182. do_patch \
  6183. "
  6184. See the associated :term:`EXTERNALSRC` and :term:`EXTERNALSRC_BUILD`
  6185. variables for more information.
  6186. :term:`SSTATE_DIR`
  6187. The directory for the shared state cache.
  6188. :term:`SSTATE_EXCLUDEDEPS_SYSROOT`
  6189. This variable allows to specify indirect dependencies to exclude
  6190. from sysroots, for example to avoid the situations when a dependency on
  6191. any ``-native`` recipe will pull in all dependencies of that recipe
  6192. in the recipe sysroot. This behaviour might not always be wanted,
  6193. for example when that ``-native`` recipe depends on build tools
  6194. that are not relevant for the current recipe.
  6195. This way, irrelevant dependencies are ignored, which could have
  6196. prevented the reuse of prebuilt artifacts stored in the Shared
  6197. State Cache.
  6198. :term:`SSTATE_EXCLUDEDEPS_SYSROOT` is evaluated as two regular
  6199. expressions of recipe and dependency to ignore. An example
  6200. is the rule in :oe_git:`meta/conf/layer.conf </openembedded-core/tree/meta/conf/layer.conf>`::
  6201. # Nothing needs to depend on libc-initial
  6202. # base-passwd/shadow-sysroot don't need their dependencies
  6203. SSTATE_EXCLUDEDEPS_SYSROOT += "\
  6204. .*->.*-initial.* \
  6205. .*(base-passwd|shadow-sysroot)->.* \
  6206. "
  6207. The ``->`` substring represents the dependency between
  6208. the two regular expressions.
  6209. :term:`SSTATE_MIRROR_ALLOW_NETWORK`
  6210. If set to "1", allows fetches from mirrors that are specified in
  6211. :term:`SSTATE_MIRRORS` to work even when
  6212. fetching from the network is disabled by setting :term:`BB_NO_NETWORK` to
  6213. "1". Using the :term:`SSTATE_MIRROR_ALLOW_NETWORK` variable is useful if
  6214. you have set :term:`SSTATE_MIRRORS` to point to an internal server for
  6215. your shared state cache, but you want to disable any other fetching
  6216. from the network.
  6217. :term:`SSTATE_MIRRORS`
  6218. Configures the OpenEmbedded build system to search other mirror
  6219. locations for prebuilt cache data objects before building out the
  6220. data. This variable works like fetcher :term:`MIRRORS`
  6221. and :term:`PREMIRRORS` and points to the cache
  6222. locations to check for the shared state (sstate) objects.
  6223. You can specify a filesystem directory or a remote URL such as HTTP
  6224. or FTP. The locations you specify need to contain the shared state
  6225. cache (sstate-cache) results from previous builds. The sstate-cache
  6226. you point to can also be from builds on other machines.
  6227. When pointing to sstate build artifacts on another machine that uses
  6228. a different GCC version for native builds, you must configure
  6229. :term:`SSTATE_MIRRORS` with a regular expression that maps local search
  6230. paths to server paths. The paths need to take into account
  6231. :term:`NATIVELSBSTRING` set by the :ref:`ref-classes-uninative` class.
  6232. For example, the following maps the local search path ``universal-4.9``
  6233. to the server-provided path server_url_sstate_path::
  6234. SSTATE_MIRRORS ?= "file://universal-4.9/(.*) https://server_url_sstate_path/universal-4.8/\1"
  6235. If a mirror uses the same structure as
  6236. :term:`SSTATE_DIR`, you need to add "PATH" at the
  6237. end as shown in the examples below. The build system substitutes the
  6238. correct path within the directory structure::
  6239. SSTATE_MIRRORS ?= "\
  6240. file://.* https://someserver.tld/share/sstate/PATH;downloadfilename=PATH \
  6241. file://.* file:///some-local-dir/sstate/PATH"
  6242. :term:`SSTATE_SCAN_FILES`
  6243. Controls the list of files the OpenEmbedded build system scans for
  6244. hardcoded installation paths. The variable uses a space-separated
  6245. list of filenames (not paths) with standard wildcard characters
  6246. allowed.
  6247. During a build, the OpenEmbedded build system creates a shared state
  6248. (sstate) object during the first stage of preparing the sysroots.
  6249. That object is scanned for hardcoded paths for original installation
  6250. locations. The list of files that are scanned for paths is controlled
  6251. by the :term:`SSTATE_SCAN_FILES` variable. Typically, recipes add files
  6252. they want to be scanned to the value of :term:`SSTATE_SCAN_FILES` rather
  6253. than the variable being comprehensively set. The
  6254. :ref:`ref-classes-sstate` class specifies the default list of files.
  6255. For details on the process, see the :ref:`ref-classes-staging` class.
  6256. :term:`STAGING_BASE_LIBDIR_NATIVE`
  6257. Specifies the path to the ``/lib`` subdirectory of the sysroot
  6258. directory for the build host.
  6259. :term:`STAGING_BASELIBDIR`
  6260. Specifies the path to the ``/lib`` subdirectory of the sysroot
  6261. directory for the target for which the current recipe is being built
  6262. (:term:`STAGING_DIR_HOST`).
  6263. :term:`STAGING_BINDIR`
  6264. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  6265. directory for the target for which the current recipe is being built
  6266. (:term:`STAGING_DIR_HOST`).
  6267. :term:`STAGING_BINDIR_CROSS`
  6268. Specifies the path to the directory containing binary configuration
  6269. scripts. These scripts provide configuration information for other
  6270. software that wants to make use of libraries or include files
  6271. provided by the software associated with the script.
  6272. .. note::
  6273. This style of build configuration has been largely replaced by
  6274. ``pkg-config``. Consequently, if ``pkg-config`` is supported by the
  6275. library to which you are linking, it is recommended you use
  6276. ``pkg-config`` instead of a provided configuration script.
  6277. :term:`STAGING_BINDIR_NATIVE`
  6278. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  6279. directory for the build host.
  6280. :term:`STAGING_DATADIR`
  6281. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  6282. directory for the target for which the current recipe is being built
  6283. (:term:`STAGING_DIR_HOST`).
  6284. :term:`STAGING_DATADIR_NATIVE`
  6285. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  6286. directory for the build host.
  6287. :term:`STAGING_DIR`
  6288. Helps construct the ``recipe-sysroots`` directory, which is used
  6289. during packaging.
  6290. For information on how staging for recipe-specific sysroots occurs,
  6291. see the :ref:`ref-tasks-populate_sysroot`
  6292. task, the ":ref:`sdk-manual/extensible:sharing files between recipes`"
  6293. section in the Yocto Project Development Tasks Manual, the
  6294. ":ref:`overview-manual/concepts:configuration, compilation, and staging`"
  6295. section in the Yocto Project Overview and Concepts Manual, and the
  6296. :term:`SYSROOT_DIRS` variable.
  6297. .. note::
  6298. Recipes should never write files directly under the :term:`STAGING_DIR`
  6299. directory because the OpenEmbedded build system manages the
  6300. directory automatically. Instead, files should be installed to
  6301. ``${``\ :term:`D`\ ``}`` within your recipe's :ref:`ref-tasks-install`
  6302. task and then the OpenEmbedded build system will stage a subset of
  6303. those files into the sysroot.
  6304. :term:`STAGING_DIR_HOST`
  6305. Specifies the path to the sysroot directory for the system on which
  6306. the component is built to run (the system that hosts the component).
  6307. For most recipes, this sysroot is the one in which that recipe's
  6308. :ref:`ref-tasks-populate_sysroot` task copies
  6309. files. Exceptions include ``-native`` recipes, where the
  6310. :ref:`ref-tasks-populate_sysroot` task instead uses
  6311. :term:`STAGING_DIR_NATIVE`. Depending on
  6312. the type of recipe and the build target, :term:`STAGING_DIR_HOST` can
  6313. have the following values:
  6314. - For recipes building for the target machine, the value is
  6315. "${:term:`STAGING_DIR`}/${:term:`MACHINE`}".
  6316. - For native recipes building for the build host, the value is empty
  6317. given the assumption that when building for the build host, the
  6318. build host's own directories should be used.
  6319. .. note::
  6320. ``-native`` recipes are not installed into host paths like such
  6321. as ``/usr``. Rather, these recipes are installed into
  6322. :term:`STAGING_DIR_NATIVE`. When compiling ``-native`` recipes,
  6323. standard build environment variables such as
  6324. :term:`CPPFLAGS` and
  6325. :term:`CFLAGS` are set up so that both host paths
  6326. and :term:`STAGING_DIR_NATIVE` are searched for libraries and
  6327. headers using, for example, GCC's ``-isystem`` option.
  6328. Thus, the emphasis is that the ``STAGING_DIR*`` variables
  6329. should be viewed as input variables by tasks such as
  6330. :ref:`ref-tasks-configure`,
  6331. :ref:`ref-tasks-compile`, and
  6332. :ref:`ref-tasks-install`. Having the real system
  6333. root correspond to :term:`STAGING_DIR_HOST` makes conceptual sense
  6334. for ``-native`` recipes, as they make use of host headers and
  6335. libraries.
  6336. :term:`STAGING_DIR_NATIVE`
  6337. Specifies the path to the sysroot directory used when building
  6338. components that run on the build host itself.
  6339. :term:`STAGING_DIR_TARGET`
  6340. Specifies the path to the sysroot used for the system for which the
  6341. component generates code. For components that do not generate code,
  6342. which is the majority, :term:`STAGING_DIR_TARGET` is set to match
  6343. :term:`STAGING_DIR_HOST`.
  6344. Some recipes build binaries that can run on the target system but those
  6345. binaries in turn generate code for another different system (e.g.
  6346. :ref:`ref-classes-cross-canadian` recipes). Using terminology from GNU,
  6347. the primary system is referred to as the "HOST" and the secondary, or
  6348. different, system is referred to as the "TARGET". Thus, the binaries
  6349. run on the "HOST" system and generate binaries for the "TARGET"
  6350. system. The :term:`STAGING_DIR_HOST` variable points to the sysroot used
  6351. for the "HOST" system, while :term:`STAGING_DIR_TARGET` points to the
  6352. sysroot used for the "TARGET" system.
  6353. :term:`STAGING_ETCDIR_NATIVE`
  6354. Specifies the path to the ``/etc`` subdirectory of the sysroot
  6355. directory for the build host.
  6356. :term:`STAGING_EXECPREFIXDIR`
  6357. Specifies the path to the ``/usr`` subdirectory of the sysroot
  6358. directory for the target for which the current recipe is being built
  6359. (:term:`STAGING_DIR_HOST`).
  6360. :term:`STAGING_INCDIR`
  6361. Specifies the path to the ``/usr/include`` subdirectory of the
  6362. sysroot directory for the target for which the current recipe being
  6363. built (:term:`STAGING_DIR_HOST`).
  6364. :term:`STAGING_INCDIR_NATIVE`
  6365. Specifies the path to the ``/usr/include`` subdirectory of the
  6366. sysroot directory for the build host.
  6367. :term:`STAGING_KERNEL_BUILDDIR`
  6368. Points to the directory containing the kernel build artifacts.
  6369. Recipes building software that needs to access kernel build artifacts
  6370. (e.g. ``systemtap-uprobes``) can look in the directory specified with
  6371. the :term:`STAGING_KERNEL_BUILDDIR` variable to find these artifacts
  6372. after the kernel has been built.
  6373. :term:`STAGING_KERNEL_DIR`
  6374. The directory with kernel headers that are required to build
  6375. out-of-tree modules.
  6376. :term:`STAGING_LIBDIR`
  6377. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  6378. directory for the target for which the current recipe is being built
  6379. (:term:`STAGING_DIR_HOST`).
  6380. :term:`STAGING_LIBDIR_NATIVE`
  6381. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  6382. directory for the build host.
  6383. :term:`STAMP`
  6384. Specifies the base path used to create recipe stamp files. The path
  6385. to an actual stamp file is constructed by evaluating this string and
  6386. then appending additional information. Currently, the default
  6387. assignment for :term:`STAMP` as set in the ``meta/conf/bitbake.conf``
  6388. file is::
  6389. STAMP = "${STAMPS_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}"
  6390. For information on how BitBake uses stamp files to determine if a
  6391. task should be rerun, see the
  6392. ":ref:`overview-manual/concepts:stamp files and the rerunning of tasks`"
  6393. section in the Yocto Project Overview and Concepts Manual.
  6394. See :term:`STAMPS_DIR`,
  6395. :term:`MULTIMACH_TARGET_SYS`,
  6396. :term:`PN`, :term:`EXTENDPE`,
  6397. :term:`PV`, and :term:`PR` for related variable
  6398. information.
  6399. :term:`STAMPCLEAN`
  6400. See :term:`bitbake:STAMPCLEAN` in the BitBake manual.
  6401. :term:`STAMPS_DIR`
  6402. Specifies the base directory in which the OpenEmbedded build system
  6403. places stamps. The default directory is ``${TMPDIR}/stamps``.
  6404. :term:`STRIP`
  6405. The minimal command and arguments to run ``strip``, which is used to
  6406. strip symbols.
  6407. :term:`SUMMARY`
  6408. The short (72 characters or less) summary of the binary package for
  6409. packaging systems such as ``opkg``, ``rpm``, or ``dpkg``. By default,
  6410. :term:`SUMMARY` is used to define the
  6411. :term:`DESCRIPTION` variable if :term:`DESCRIPTION` is
  6412. not set in the recipe.
  6413. :term:`SVNDIR`
  6414. The directory in which files checked out of a Subversion system are
  6415. stored.
  6416. :term:`SYSLINUX_DEFAULT_CONSOLE`
  6417. Specifies the kernel boot default console. If you want to use a
  6418. console other than the default, set this variable in your recipe as
  6419. follows where "X" is the console number you want to use::
  6420. SYSLINUX_DEFAULT_CONSOLE = "console=ttyX"
  6421. The :ref:`ref-classes-syslinux` class initially sets
  6422. this variable to null but then checks for a value later.
  6423. :term:`SYSLINUX_OPTS`
  6424. Lists additional options to add to the syslinux file. You need to set
  6425. this variable in your recipe. If you want to list multiple options,
  6426. separate the options with a semicolon character (``;``).
  6427. The :ref:`ref-classes-syslinux` class uses this variable
  6428. to create a set of options.
  6429. :term:`SYSLINUX_SERIAL`
  6430. Specifies the alternate serial port or turns it off. To turn off
  6431. serial, set this variable to an empty string in your recipe. The
  6432. variable's default value is set in the
  6433. :ref:`ref-classes-syslinux` class as follows::
  6434. SYSLINUX_SERIAL ?= "0 115200"
  6435. The class checks for and uses the variable as needed.
  6436. :term:`SYSLINUX_SERIAL_TTY`
  6437. Specifies the alternate console=tty... kernel boot argument. The
  6438. variable's default value is set in the :ref:`ref-classes-syslinux`
  6439. class as follows::
  6440. SYSLINUX_SERIAL_TTY ?= "console=ttyS0,115200"
  6441. The class checks for and uses the variable as needed.
  6442. :term:`SYSLINUX_SPLASH`
  6443. An ``.LSS`` file used as the background for the VGA boot menu when
  6444. you use the boot menu. You need to set this variable in your recipe.
  6445. The :ref:`ref-classes-syslinux` class checks for this
  6446. variable and if found, the OpenEmbedded build system installs the
  6447. splash screen.
  6448. :term:`SYSROOT_DESTDIR`
  6449. Points to the temporary directory under the work directory (default
  6450. "``${``\ :term:`WORKDIR`\ ``}/sysroot-destdir``")
  6451. where the files populated into the sysroot are assembled during the
  6452. :ref:`ref-tasks-populate_sysroot` task.
  6453. :term:`SYSROOT_DIRS`
  6454. Directories that are staged into the sysroot by the
  6455. :ref:`ref-tasks-populate_sysroot` task. By
  6456. default, the following directories are staged::
  6457. SYSROOT_DIRS = " \
  6458. ${includedir} \
  6459. ${libdir} \
  6460. ${base_libdir} \
  6461. ${nonarch_base_libdir} \
  6462. ${datadir} \
  6463. /sysroot-only \
  6464. "
  6465. :term:`SYSROOT_DIRS_IGNORE`
  6466. Directories that are not staged into the sysroot by the
  6467. :ref:`ref-tasks-populate_sysroot` task. You
  6468. can use this variable to exclude certain subdirectories of
  6469. directories listed in :term:`SYSROOT_DIRS` from
  6470. staging. By default, the following directories are not staged::
  6471. SYSROOT_DIRS_IGNORE = " \
  6472. ${mandir} \
  6473. ${docdir} \
  6474. ${infodir} \
  6475. ${datadir}/X11/locale \
  6476. ${datadir}/applications \
  6477. ${datadir}/bash-completion \
  6478. ${datadir}/fonts \
  6479. ${datadir}/gtk-doc/html \
  6480. ${datadir}/installed-tests \
  6481. ${datadir}/locale \
  6482. ${datadir}/pixmaps \
  6483. ${datadir}/terminfo \
  6484. ${libdir}/${BPN}/ptest \
  6485. "
  6486. :term:`SYSROOT_DIRS_NATIVE`
  6487. Extra directories staged into the sysroot by the
  6488. :ref:`ref-tasks-populate_sysroot` task for
  6489. ``-native`` recipes, in addition to those specified in
  6490. :term:`SYSROOT_DIRS`. By default, the following
  6491. extra directories are staged::
  6492. SYSROOT_DIRS_NATIVE = " \
  6493. ${bindir} \
  6494. ${sbindir} \
  6495. ${base_bindir} \
  6496. ${base_sbindir} \
  6497. ${libexecdir} \
  6498. ${sysconfdir} \
  6499. ${localstatedir} \
  6500. "
  6501. .. note::
  6502. Programs built by ``-native`` recipes run directly from the sysroot
  6503. (:term:`STAGING_DIR_NATIVE`), which is why additional directories
  6504. containing program executables and supporting files need to be staged.
  6505. :term:`SYSROOT_PREPROCESS_FUNCS`
  6506. A list of functions to execute after files are staged into the
  6507. sysroot. These functions are usually used to apply additional
  6508. processing on the staged files, or to stage additional files.
  6509. :term:`SYSTEMD_AUTO_ENABLE`
  6510. When inheriting the :ref:`ref-classes-systemd` class,
  6511. this variable specifies whether the specified service in
  6512. :term:`SYSTEMD_SERVICE` should start
  6513. automatically or not. By default, the service is enabled to
  6514. automatically start at boot time. The default setting is in the
  6515. :ref:`ref-classes-systemd` class as follows::
  6516. SYSTEMD_AUTO_ENABLE ??= "enable"
  6517. You can disable the service by setting the variable to "disable".
  6518. :term:`SYSTEMD_BOOT_CFG`
  6519. When :term:`EFI_PROVIDER` is set to
  6520. "systemd-boot", the :term:`SYSTEMD_BOOT_CFG` variable specifies the
  6521. configuration file that should be used. By default, the
  6522. :ref:`ref-classes-systemd-boot` class sets the
  6523. :term:`SYSTEMD_BOOT_CFG` as follows::
  6524. SYSTEMD_BOOT_CFG ?= "${S}/loader.conf"
  6525. For information on Systemd-boot, see the `Systemd-boot
  6526. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6527. :term:`SYSTEMD_BOOT_ENTRIES`
  6528. When :term:`EFI_PROVIDER` is set to
  6529. "systemd-boot", the :term:`SYSTEMD_BOOT_ENTRIES` variable specifies a
  6530. list of entry files (``*.conf``) to install that contain one boot
  6531. entry per file. By default, the :ref:`ref-classes-systemd-boot` class
  6532. sets the :term:`SYSTEMD_BOOT_ENTRIES` as follows::
  6533. SYSTEMD_BOOT_ENTRIES ?= ""
  6534. For information on Systemd-boot, see the `Systemd-boot
  6535. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6536. :term:`SYSTEMD_BOOT_TIMEOUT`
  6537. When :term:`EFI_PROVIDER` is set to
  6538. "systemd-boot", the :term:`SYSTEMD_BOOT_TIMEOUT` variable specifies the
  6539. boot menu timeout in seconds. By default, the
  6540. :ref:`ref-classes-systemd-boot` class sets the
  6541. :term:`SYSTEMD_BOOT_TIMEOUT` as follows::
  6542. SYSTEMD_BOOT_TIMEOUT ?= "10"
  6543. For information on Systemd-boot, see the `Systemd-boot
  6544. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6545. :term:`SYSTEMD_DEFAULT_TARGET`
  6546. This variable allows to set the default unit that systemd starts at bootup.
  6547. Usually, this is either ``multi-user.target`` or ``graphical.target``.
  6548. This works by creating a ``default.target`` symbolic link to the chosen systemd
  6549. target file.
  6550. See `systemd's documentation
  6551. <https://www.freedesktop.org/software/systemd/man/systemd.special.html>`__
  6552. for details.
  6553. For example, this variable is used in the :oe_git:`core-image-minimal-xfce.bb
  6554. </meta-openembedded/tree/meta-xfce/recipes-core/images/core-image-minimal-xfce.bb>`
  6555. recipe::
  6556. SYSTEMD_DEFAULT_TARGET = "graphical.target"
  6557. :term:`SYSTEMD_PACKAGES`
  6558. When inheriting the :ref:`ref-classes-systemd` class,
  6559. this variable locates the systemd unit files when they are not found
  6560. in the main recipe's package. By default, the :term:`SYSTEMD_PACKAGES`
  6561. variable is set such that the systemd unit files are assumed to
  6562. reside in the recipes main package::
  6563. SYSTEMD_PACKAGES ?= "${PN}"
  6564. If these unit files are not in this recipe's main package, you need
  6565. to use :term:`SYSTEMD_PACKAGES` to list the package or packages in which
  6566. the build system can find the systemd unit files.
  6567. :term:`SYSTEMD_SERVICE`
  6568. When inheriting the :ref:`ref-classes-systemd` class,
  6569. this variable specifies the systemd service name for a package.
  6570. Multiple services can be specified, each one separated by a space.
  6571. When you specify this file in your recipe, use a package name
  6572. override to indicate the package to which the value applies. Here is
  6573. an example from the connman recipe::
  6574. SYSTEMD_SERVICE:${PN} = "connman.service"
  6575. The package overrides that can be specified are directly related to the value of
  6576. :term:`SYSTEMD_PACKAGES`. Overrides not included in :term:`SYSTEMD_PACKAGES`
  6577. will be silently ignored.
  6578. :term:`SYSVINIT_ENABLED_GETTYS`
  6579. When using :ref:`SysVinit <dev-manual/new-recipe:enabling system services>`,
  6580. specifies a space-separated list of the virtual terminals that should
  6581. run a :wikipedia:`getty <Getty_(Unix)>` (allowing login), assuming
  6582. :term:`USE_VT` is not set to "0".
  6583. The default value for :term:`SYSVINIT_ENABLED_GETTYS` is "1" (i.e. only
  6584. run a getty on the first virtual terminal).
  6585. :term:`T`
  6586. This variable points to a directory were BitBake places temporary
  6587. files, which consist mostly of task logs and scripts, when building a
  6588. particular recipe. The variable is typically set as follows::
  6589. T = "${WORKDIR}/temp"
  6590. The :term:`WORKDIR` is the directory into which
  6591. BitBake unpacks and builds the recipe. The default ``bitbake.conf``
  6592. file sets this variable.
  6593. The :term:`T` variable is not to be confused with the
  6594. :term:`TMPDIR` variable, which points to the root of
  6595. the directory tree where BitBake places the output of an entire
  6596. build.
  6597. :term:`TARGET_ARCH`
  6598. The target machine's architecture. The OpenEmbedded build system
  6599. supports many architectures. Here is an example list of architectures
  6600. supported. This list is by no means complete as the architecture is
  6601. configurable:
  6602. - arm
  6603. - i586
  6604. - x86_64
  6605. - powerpc
  6606. - powerpc64
  6607. - mips
  6608. - mipsel
  6609. For additional information on machine architectures, see the
  6610. :term:`TUNE_ARCH` variable.
  6611. :term:`TARGET_AS_ARCH`
  6612. Specifies architecture-specific assembler flags for the target
  6613. system. :term:`TARGET_AS_ARCH` is initialized from
  6614. :term:`TUNE_ASARGS` by default in the BitBake
  6615. configuration file (``meta/conf/bitbake.conf``)::
  6616. TARGET_AS_ARCH = "${TUNE_ASARGS}"
  6617. :term:`TARGET_CC_ARCH`
  6618. Specifies architecture-specific C compiler flags for the target
  6619. system. :term:`TARGET_CC_ARCH` is initialized from
  6620. :term:`TUNE_CCARGS` by default.
  6621. .. note::
  6622. It is a common workaround to append :term:`LDFLAGS` to
  6623. :term:`TARGET_CC_ARCH` in recipes that build software for the target that
  6624. would not otherwise respect the exported :term:`LDFLAGS` variable.
  6625. :term:`TARGET_CC_KERNEL_ARCH`
  6626. This is a specific kernel compiler flag for a CPU or Application
  6627. Binary Interface (ABI) tune. The flag is used rarely and only for
  6628. cases where a userspace :term:`TUNE_CCARGS` is not
  6629. compatible with the kernel compilation. The :term:`TARGET_CC_KERNEL_ARCH`
  6630. variable allows the kernel (and associated modules) to use a
  6631. different configuration. See the
  6632. ``meta/conf/machine/include/arm/feature-arm-thumb.inc`` file in the
  6633. :term:`Source Directory` for an example.
  6634. :term:`TARGET_CFLAGS`
  6635. Specifies the flags to pass to the C compiler when building for the
  6636. target. When building in the target context,
  6637. :term:`CFLAGS` is set to the value of this variable by
  6638. default.
  6639. Additionally, the SDK's environment setup script sets the :term:`CFLAGS`
  6640. variable in the environment to the :term:`TARGET_CFLAGS` value so that
  6641. executables built using the SDK also have the flags applied.
  6642. :term:`TARGET_CPPFLAGS`
  6643. Specifies the flags to pass to the C pre-processor (i.e. to both the
  6644. C and the C++ compilers) when building for the target. When building
  6645. in the target context, :term:`CPPFLAGS` is set to the
  6646. value of this variable by default.
  6647. Additionally, the SDK's environment setup script sets the
  6648. :term:`CPPFLAGS` variable in the environment to the :term:`TARGET_CPPFLAGS`
  6649. value so that executables built using the SDK also have the flags
  6650. applied.
  6651. :term:`TARGET_CXXFLAGS`
  6652. Specifies the flags to pass to the C++ compiler when building for the
  6653. target. When building in the target context,
  6654. :term:`CXXFLAGS` is set to the value of this variable
  6655. by default.
  6656. Additionally, the SDK's environment setup script sets the
  6657. :term:`CXXFLAGS` variable in the environment to the :term:`TARGET_CXXFLAGS`
  6658. value so that executables built using the SDK also have the flags
  6659. applied.
  6660. :term:`TARGET_FPU`
  6661. Specifies the method for handling FPU code. For FPU-less targets,
  6662. which include most ARM CPUs, the variable must be set to "soft". If
  6663. not, the kernel emulation gets used, which results in a performance
  6664. penalty.
  6665. :term:`TARGET_LD_ARCH`
  6666. Specifies architecture-specific linker flags for the target system.
  6667. :term:`TARGET_LD_ARCH` is initialized from
  6668. :term:`TUNE_LDARGS` by default in the BitBake
  6669. configuration file (``meta/conf/bitbake.conf``)::
  6670. TARGET_LD_ARCH = "${TUNE_LDARGS}"
  6671. :term:`TARGET_LDFLAGS`
  6672. Specifies the flags to pass to the linker when building for the
  6673. target. When building in the target context,
  6674. :term:`LDFLAGS` is set to the value of this variable
  6675. by default.
  6676. Additionally, the SDK's environment setup script sets the
  6677. :term:`LDFLAGS` variable in the environment to the
  6678. :term:`TARGET_LDFLAGS` value so that executables built using the SDK also
  6679. have the flags applied.
  6680. :term:`TARGET_OS`
  6681. Specifies the target's operating system. The variable can be set to
  6682. "linux" for glibc-based systems (GNU C Library) and to "linux-musl"
  6683. for musl libc. For ARM/EABI targets, the possible values are
  6684. "linux-gnueabi" and "linux-musleabi".
  6685. :term:`TARGET_PREFIX`
  6686. Specifies the prefix used for the toolchain binary target tools.
  6687. Depending on the type of recipe and the build target,
  6688. :term:`TARGET_PREFIX` is set as follows:
  6689. - For recipes building for the target machine, the value is
  6690. "${:term:`TARGET_SYS`}-".
  6691. - For native recipes, the build system sets the variable to the
  6692. value of :term:`BUILD_PREFIX`.
  6693. - For native SDK recipes (:ref:`ref-classes-nativesdk`),
  6694. the build system sets the variable to the value of :term:`SDK_PREFIX`.
  6695. :term:`TARGET_SYS`
  6696. Specifies the system, including the architecture and the operating
  6697. system, for which the build is occurring in the context of the
  6698. current recipe.
  6699. The OpenEmbedded build system automatically sets this variable based
  6700. on :term:`TARGET_ARCH`,
  6701. :term:`TARGET_VENDOR`, and
  6702. :term:`TARGET_OS` variables.
  6703. .. note::
  6704. You do not need to set the :term:`TARGET_SYS` variable yourself.
  6705. Consider these two examples:
  6706. - Given a native recipe on a 32-bit, x86 machine running Linux, the
  6707. value is "i686-linux".
  6708. - Given a recipe being built for a little-endian, MIPS target
  6709. running Linux, the value might be "mipsel-linux".
  6710. :term:`TARGET_VENDOR`
  6711. Specifies the name of the target vendor.
  6712. :term:`TCLIBC`
  6713. Specifies the GNU standard C library (``libc``) variant to use during
  6714. the build process.
  6715. You can select "glibc", "musl", "newlib", or "baremetal".
  6716. :term:`TCLIBCAPPEND`
  6717. Specifies a suffix to be appended onto the :term:`TMPDIR` value. The
  6718. suffix identifies the ``libc`` variant for building. When you are
  6719. building for multiple variants with the same :term:`Build Directory`,
  6720. this mechanism ensures that output for different ``libc`` variants is
  6721. kept separate to avoid potential conflicts.
  6722. In the ``defaultsetup.conf`` file, the default value of
  6723. :term:`TCLIBCAPPEND` is "-${TCLIBC}". However, distros such as poky,
  6724. which normally only support one ``libc`` variant, set
  6725. :term:`TCLIBCAPPEND` to "" in their distro configuration file resulting
  6726. in no suffix being applied.
  6727. :term:`TCMODE`
  6728. Specifies the toolchain selector. :term:`TCMODE` controls the
  6729. characteristics of the generated packages and images by telling the
  6730. OpenEmbedded build system which toolchain profile to use. By default,
  6731. the OpenEmbedded build system builds its own internal toolchain. The
  6732. variable's default value is "default", which uses that internal
  6733. toolchain.
  6734. .. note::
  6735. If :term:`TCMODE` is set to a value other than "default", then it is your
  6736. responsibility to ensure that the toolchain is compatible with the
  6737. default toolchain. Using older or newer versions of these
  6738. components might cause build problems. See
  6739. :doc:`Release Information </migration-guides/index>` for your
  6740. version of the Yocto Project, to find the specific components with
  6741. which the toolchain must be compatible.
  6742. The :term:`TCMODE` variable is similar to :term:`TCLIBC`,
  6743. which controls the variant of the GNU standard C library (``libc``)
  6744. used during the build process: ``glibc`` or ``musl``.
  6745. With additional layers, it is possible to use a pre-compiled external
  6746. toolchain. One example is the Sourcery G++ Toolchain. The support for
  6747. this toolchain resides in the separate Mentor Graphics
  6748. ``meta-sourcery`` layer at
  6749. https://github.com/MentorEmbedded/meta-sourcery/.
  6750. The layer's ``README`` file contains information on how to use the
  6751. Sourcery G++ Toolchain as an external toolchain. You will have to
  6752. add the layer to your ``bblayers.conf`` file and then set the
  6753. :term:`EXTERNAL_TOOLCHAIN` variable in your ``local.conf`` file to
  6754. the location of the toolchain.
  6755. The fundamentals used for this example apply to any external
  6756. toolchain. You can use ``meta-sourcery`` as a template for adding
  6757. support for other external toolchains.
  6758. In addition to toolchain configuration, you will also need a
  6759. corresponding toolchain recipe file. This recipe file needs to package
  6760. up any pre-built objects in the toolchain such as ``libgcc``,
  6761. ``libstdcc++``, any locales, and ``libc``.
  6762. :term:`TC_CXX_RUNTIME`
  6763. Specifies the C/C++ STL and runtime variant to use during
  6764. the build process. Default value is 'gnu'
  6765. You can select "gnu", "llvm", or "android".
  6766. :term:`TEMPLATECONF`
  6767. Specifies the directory used by the build system to find templates
  6768. from which to build the ``bblayers.conf`` and ``local.conf`` files.
  6769. Use this variable if you wish to customize such files, and the default
  6770. BitBake targets shown when sourcing the ``oe-init-build-env`` script.
  6771. For details, see the
  6772. :ref:`dev-manual/custom-template-configuration-directory:creating a custom template configuration directory`
  6773. section in the Yocto Project Development Tasks manual.
  6774. .. note::
  6775. You must set this variable in the external environment in order
  6776. for it to work.
  6777. :term:`TEST_EXPORT_DIR`
  6778. The location the OpenEmbedded build system uses to export tests when
  6779. the :term:`TEST_EXPORT_ONLY` variable is set
  6780. to "1".
  6781. The :term:`TEST_EXPORT_DIR` variable defaults to
  6782. ``"${TMPDIR}/testimage/${PN}"``.
  6783. :term:`TEST_EXPORT_ONLY`
  6784. Specifies to export the tests only. Set this variable to "1" if you
  6785. do not want to run the tests but you want them to be exported in a
  6786. manner that you to run them outside of the build system.
  6787. :term:`TEST_LOG_DIR`
  6788. Holds the SSH log and the boot log for QEMU machines. The
  6789. :term:`TEST_LOG_DIR` variable defaults to ``"${WORKDIR}/testimage"``.
  6790. .. note::
  6791. Actual test results reside in the task log (``log.do_testimage``),
  6792. which is in the ``${WORKDIR}/temp/`` directory.
  6793. :term:`TEST_POWERCONTROL_CMD`
  6794. For automated hardware testing, specifies the command to use to
  6795. control the power of the target machine under test. Typically, this
  6796. command would point to a script that performs the appropriate action
  6797. (e.g. interacting with a web-enabled power strip). The specified
  6798. command should expect to receive as the last argument "off", "on" or
  6799. "cycle" specifying to power off, on, or cycle (power off and then
  6800. power on) the device, respectively.
  6801. :term:`TEST_POWERCONTROL_EXTRA_ARGS`
  6802. For automated hardware testing, specifies additional arguments to
  6803. pass through to the command specified in
  6804. :term:`TEST_POWERCONTROL_CMD`. Setting
  6805. :term:`TEST_POWERCONTROL_EXTRA_ARGS` is optional. You can use it if you
  6806. wish, for example, to separate the machine-specific and
  6807. non-machine-specific parts of the arguments.
  6808. :term:`TEST_QEMUBOOT_TIMEOUT`
  6809. The time in seconds allowed for an image to boot before automated
  6810. runtime tests begin to run against an image. The default timeout
  6811. period to allow the boot process to reach the login prompt is 500
  6812. seconds. You can specify a different value in the ``local.conf``
  6813. file.
  6814. For more information on testing images, see the
  6815. ":ref:`dev-manual/runtime-testing:performing automated runtime testing`"
  6816. section in the Yocto Project Development Tasks Manual.
  6817. :term:`TEST_SERIALCONTROL_CMD`
  6818. For automated hardware testing, specifies the command to use to
  6819. connect to the serial console of the target machine under test. This
  6820. command simply needs to connect to the serial console and forward
  6821. that connection to standard input and output as any normal terminal
  6822. program does.
  6823. For example, to use the Picocom terminal program on serial device
  6824. ``/dev/ttyUSB0`` at 115200bps, you would set the variable as follows::
  6825. TEST_SERIALCONTROL_CMD = "picocom /dev/ttyUSB0 -b 115200"
  6826. :term:`TEST_SERIALCONTROL_EXTRA_ARGS`
  6827. For automated hardware testing, specifies additional arguments to
  6828. pass through to the command specified in
  6829. :term:`TEST_SERIALCONTROL_CMD`. Setting
  6830. :term:`TEST_SERIALCONTROL_EXTRA_ARGS` is optional. You can use it if you
  6831. wish, for example, to separate the machine-specific and
  6832. non-machine-specific parts of the command.
  6833. :term:`TEST_SERVER_IP`
  6834. The IP address of the build machine (host machine). This IP address
  6835. is usually automatically detected. However, if detection fails, this
  6836. variable needs to be set to the IP address of the build machine (i.e.
  6837. where the build is taking place).
  6838. .. note::
  6839. The :term:`TEST_SERVER_IP` variable is only used for a small number of
  6840. tests such as the "dnf" test suite, which needs to download packages
  6841. from ``WORKDIR/oe-rootfs-repo``.
  6842. :term:`TEST_SUITES`
  6843. An ordered list of tests (modules) to run against an image when
  6844. performing automated runtime testing.
  6845. The OpenEmbedded build system provides a core set of tests that can
  6846. be used against images.
  6847. .. note::
  6848. Currently, there is only support for running these tests under
  6849. QEMU.
  6850. Tests include ``ping``, ``ssh``, ``df`` among others. You can add
  6851. your own tests to the list of tests by appending :term:`TEST_SUITES` as
  6852. follows::
  6853. TEST_SUITES:append = " mytest"
  6854. Alternatively, you can
  6855. provide the "auto" option to have all applicable tests run against
  6856. the image::
  6857. TEST_SUITES:append = " auto"
  6858. Using this option causes the
  6859. build system to automatically run tests that are applicable to the
  6860. image. Tests that are not applicable are skipped.
  6861. The order in which tests are run is important. Tests that depend on
  6862. another test must appear later in the list than the test on which
  6863. they depend. For example, if you append the list of tests with two
  6864. tests (``test_A`` and ``test_B``) where ``test_B`` is dependent on
  6865. ``test_A``, then you must order the tests as follows::
  6866. TEST_SUITES = "test_A test_B"
  6867. For more information on testing images, see the
  6868. ":ref:`dev-manual/runtime-testing:performing automated runtime testing`"
  6869. section in the Yocto Project Development Tasks Manual.
  6870. :term:`TEST_TARGET`
  6871. Specifies the target controller to use when running tests against a
  6872. test image. The default controller to use is "qemu"::
  6873. TEST_TARGET = "qemu"
  6874. A target controller is a class that defines how an image gets
  6875. deployed on a target and how a target is started. A layer can extend
  6876. the controllers by adding a module in the layer's
  6877. ``/lib/oeqa/controllers`` directory and by inheriting the
  6878. ``BaseTarget`` class, which is an abstract class that cannot be used
  6879. as a value of :term:`TEST_TARGET`.
  6880. You can provide the following arguments with :term:`TEST_TARGET`:
  6881. - *"qemu":* Boots a QEMU image and runs the tests. See the
  6882. ":ref:`dev-manual/runtime-testing:enabling runtime tests on qemu`" section
  6883. in the Yocto Project Development Tasks Manual for more
  6884. information.
  6885. - *"simpleremote":* Runs the tests on target hardware that is
  6886. already up and running. The hardware can be on the network or it
  6887. can be a device running an image on QEMU. You must also set
  6888. :term:`TEST_TARGET_IP` when you use
  6889. "simpleremote".
  6890. .. note::
  6891. This argument is defined in
  6892. ``meta/lib/oeqa/controllers/simpleremote.py``.
  6893. For information on running tests on hardware, see the
  6894. ":ref:`dev-manual/runtime-testing:enabling runtime tests on hardware`"
  6895. section in the Yocto Project Development Tasks Manual.
  6896. :term:`TEST_TARGET_IP`
  6897. The IP address of your hardware under test. The :term:`TEST_TARGET_IP`
  6898. variable has no effect when :term:`TEST_TARGET` is
  6899. set to "qemu".
  6900. When you specify the IP address, you can also include a port. Here is
  6901. an example::
  6902. TEST_TARGET_IP = "192.168.1.4:2201"
  6903. Specifying a port is
  6904. useful when SSH is started on a non-standard port or in cases when
  6905. your hardware under test is behind a firewall or network that is not
  6906. directly accessible from your host and you need to do port address
  6907. translation.
  6908. :term:`TESTIMAGE_AUTO`
  6909. Automatically runs the series of automated tests for images when an
  6910. image is successfully built. Setting :term:`TESTIMAGE_AUTO` to "1" causes
  6911. any image that successfully builds to automatically boot under QEMU.
  6912. Using the variable also adds in dependencies so that any SDK for
  6913. which testing is requested is automatically built first.
  6914. These tests are written in Python making use of the ``unittest``
  6915. module, and the majority of them run commands on the target system
  6916. over ``ssh``. You can set this variable to "1" in your ``local.conf``
  6917. file in the :term:`Build Directory` to have the
  6918. OpenEmbedded build system automatically run these tests after an
  6919. image successfully builds:
  6920. TESTIMAGE_AUTO = "1"
  6921. For more information
  6922. on enabling, running, and writing these tests, see the
  6923. ":ref:`dev-manual/runtime-testing:performing automated runtime testing`"
  6924. section in the Yocto Project Development Tasks Manual and the
  6925. ":ref:`ref-classes-testimage`" section.
  6926. :term:`THISDIR`
  6927. The directory in which the file BitBake is currently parsing is
  6928. located. Do not manually set this variable.
  6929. :term:`TIME`
  6930. The time the build was started. Times appear using the hour, minute,
  6931. and second (HMS) format (e.g. "140159" for one minute and fifty-nine
  6932. seconds past 1400 hours).
  6933. :term:`TMPDIR`
  6934. This variable is the base directory the OpenEmbedded build system
  6935. uses for all build output and intermediate files (other than the
  6936. shared state cache). By default, the :term:`TMPDIR` variable points to
  6937. ``tmp`` within the :term:`Build Directory`.
  6938. If you want to establish this directory in a location other than the
  6939. default, you can uncomment and edit the following statement in the
  6940. ``conf/local.conf`` file in the :term:`Source Directory`::
  6941. #TMPDIR = "${TOPDIR}/tmp"
  6942. An example use for this scenario is to set :term:`TMPDIR` to a local disk,
  6943. which does not use NFS, while having the :term:`Build Directory` use NFS.
  6944. The filesystem used by :term:`TMPDIR` must have standard filesystem
  6945. semantics (i.e. mixed-case files are unique, POSIX file locking, and
  6946. persistent inodes). Due to various issues with NFS and bugs in some
  6947. implementations, NFS does not meet this minimum requirement.
  6948. Consequently, :term:`TMPDIR` cannot be on NFS.
  6949. :term:`TOOLCHAIN_HOST_TASK`
  6950. This variable lists packages the OpenEmbedded build system uses when
  6951. building an SDK, which contains a cross-development environment. The
  6952. packages specified by this variable are part of the toolchain set
  6953. that runs on the :term:`SDKMACHINE`, and each
  6954. package should usually have the prefix ``nativesdk-``. For example,
  6955. consider the following command when building an SDK::
  6956. $ bitbake -c populate_sdk imagename
  6957. In this case, a default list of packages is
  6958. set in this variable, but you can add additional packages to the
  6959. list. See the
  6960. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  6961. in the Yocto Project Application Development and the Extensible
  6962. Software Development Kit (eSDK) manual for more information.
  6963. For background information on cross-development toolchains in the
  6964. Yocto Project development environment, see the
  6965. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  6966. section in the Yocto Project Overview and Concepts Manual. For
  6967. information on setting up a cross-development environment, see the
  6968. :doc:`/sdk-manual/index` manual.
  6969. Note that this variable applies to building an SDK, not an eSDK,
  6970. in which case the :term:`TOOLCHAIN_HOST_TASK_ESDK` setting should be
  6971. used instead.
  6972. :term:`TOOLCHAIN_HOST_TASK_ESDK`
  6973. This variable allows to extend what is installed in the host
  6974. portion of an eSDK. This is similar to :term:`TOOLCHAIN_HOST_TASK`
  6975. applying to SDKs.
  6976. :term:`TOOLCHAIN_OUTPUTNAME`
  6977. This variable defines the name used for the toolchain output. The
  6978. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class sets
  6979. the :term:`TOOLCHAIN_OUTPUTNAME` variable as follows::
  6980. TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${SDK_VERSION}"
  6981. See
  6982. the :term:`SDK_NAME` and
  6983. :term:`SDK_VERSION` variables for additional
  6984. information.
  6985. :term:`TOOLCHAIN_TARGET_TASK`
  6986. This variable lists packages the OpenEmbedded build system uses when
  6987. it creates the target part of an SDK (i.e. the part built for the
  6988. target hardware), which includes libraries and headers. Use this
  6989. variable to add individual packages to the part of the SDK that runs
  6990. on the target. See the
  6991. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  6992. in the Yocto Project Application Development and the Extensible
  6993. Software Development Kit (eSDK) manual for more information.
  6994. For background information on cross-development toolchains in the
  6995. Yocto Project development environment, see the
  6996. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  6997. section in the Yocto Project Overview and Concepts Manual. For
  6998. information on setting up a cross-development environment, see the
  6999. :doc:`/sdk-manual/index` manual.
  7000. :term:`TOPDIR`
  7001. See :term:`bitbake:TOPDIR` in the BitBake manual.
  7002. :term:`TRANSLATED_TARGET_ARCH`
  7003. A sanitized version of :term:`TARGET_ARCH`. This
  7004. variable is used where the architecture is needed in a value where
  7005. underscores are not allowed, for example within package filenames. In
  7006. this case, dash characters replace any underscore characters used in
  7007. :term:`TARGET_ARCH`.
  7008. Do not edit this variable.
  7009. :term:`TUNE_ARCH`
  7010. The GNU canonical architecture for a specific architecture (i.e.
  7011. ``arm``, ``armeb``, ``mips``, ``mips64``, and so forth). BitBake uses
  7012. this value to setup configuration.
  7013. :term:`TUNE_ARCH` definitions are specific to a given architecture. The
  7014. definitions can be a single static definition, or can be dynamically
  7015. adjusted. You can see details for a given CPU family by looking at
  7016. the architecture's ``README`` file. For example, the
  7017. ``meta/conf/machine/include/mips/README`` file in the
  7018. :term:`Source Directory` provides information for
  7019. :term:`TUNE_ARCH` specific to the ``mips`` architecture.
  7020. :term:`TUNE_ARCH` is tied closely to
  7021. :term:`TARGET_ARCH`, which defines the target
  7022. machine's architecture. The BitBake configuration file
  7023. (``meta/conf/bitbake.conf``) sets :term:`TARGET_ARCH` as follows::
  7024. TARGET_ARCH = "${TUNE_ARCH}"
  7025. The following list, which is by no means complete since architectures
  7026. are configurable, shows supported machine architectures:
  7027. - arm
  7028. - i586
  7029. - x86_64
  7030. - powerpc
  7031. - powerpc64
  7032. - mips
  7033. - mipsel
  7034. :term:`TUNE_ASARGS`
  7035. Specifies architecture-specific assembler flags for the target
  7036. system. The set of flags is based on the selected tune features.
  7037. :term:`TUNE_ASARGS` is set using the tune include files, which are
  7038. typically under ``meta/conf/machine/include/`` and are influenced
  7039. through :term:`TUNE_FEATURES`. For example, the
  7040. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  7041. for the x86 architecture as follows::
  7042. TUNE_ASARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-x32", "", d)}"
  7043. .. note::
  7044. Board Support Packages (BSPs) select the tune. The selected tune,
  7045. in turn, affects the tune variables themselves (i.e. the tune can
  7046. supply its own set of flags).
  7047. :term:`TUNE_CCARGS`
  7048. Specifies architecture-specific C compiler flags for the target
  7049. system. The set of flags is based on the selected tune features.
  7050. :term:`TUNE_CCARGS` is set using the tune include files, which are
  7051. typically under ``meta/conf/machine/include/`` and are influenced
  7052. through :term:`TUNE_FEATURES`.
  7053. .. note::
  7054. Board Support Packages (BSPs) select the tune. The selected tune,
  7055. in turn, affects the tune variables themselves (i.e. the tune can
  7056. supply its own set of flags).
  7057. :term:`TUNE_FEATURES`
  7058. Features used to "tune" a compiler for optimal use given a specific
  7059. processor. The features are defined within the tune files and allow
  7060. arguments (i.e. ``TUNE_*ARGS``) to be dynamically generated based on
  7061. the features.
  7062. The OpenEmbedded build system verifies the features to be sure they
  7063. are not conflicting and that they are supported.
  7064. The BitBake configuration file (``meta/conf/bitbake.conf``) defines
  7065. :term:`TUNE_FEATURES` as follows::
  7066. TUNE_FEATURES ??= "${TUNE_FEATURES:tune-${DEFAULTTUNE}}"
  7067. See the :term:`DEFAULTTUNE` variable for more information.
  7068. :term:`TUNE_LDARGS`
  7069. Specifies architecture-specific linker flags for the target system.
  7070. The set of flags is based on the selected tune features.
  7071. :term:`TUNE_LDARGS` is set using the tune include files, which are
  7072. typically under ``meta/conf/machine/include/`` and are influenced
  7073. through :term:`TUNE_FEATURES`. For example, the
  7074. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  7075. for the x86 architecture as follows::
  7076. TUNE_LDARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-m elf32_x86_64", "", d)}"
  7077. .. note::
  7078. Board Support Packages (BSPs) select the tune. The selected tune,
  7079. in turn, affects the tune variables themselves (i.e. the tune can
  7080. supply its own set of flags).
  7081. :term:`TUNE_PKGARCH`
  7082. The package architecture understood by the packaging system to define
  7083. the architecture, ABI, and tuning of output packages. The specific
  7084. tune is defined using the "_tune" override as follows::
  7085. TUNE_PKGARCH:tune-tune = "tune"
  7086. These tune-specific package architectures are defined in the machine
  7087. include files. Here is an example of the "core2-32" tuning as used in
  7088. the ``meta/conf/machine/include/x86/tune-core2.inc`` file::
  7089. TUNE_PKGARCH:tune-core2-32 = "core2-32"
  7090. :term:`TUNECONFLICTS[feature]`
  7091. Specifies CPU or Application Binary Interface (ABI) tuning features
  7092. that conflict with feature.
  7093. Known tuning conflicts are specified in the machine include files in
  7094. the :term:`Source Directory`. Here is an example from
  7095. the ``meta/conf/machine/include/mips/arch-mips.inc`` include file
  7096. that lists the "o32" and "n64" features as conflicting with the "n32"
  7097. feature::
  7098. TUNECONFLICTS[n32] = "o32 n64"
  7099. :term:`TUNEVALID[feature]`
  7100. Specifies a valid CPU or Application Binary Interface (ABI) tuning
  7101. feature. The specified feature is stored as a flag. Valid features
  7102. are specified in the machine include files (e.g.
  7103. ``meta/conf/machine/include/arm/arch-arm.inc``). Here is an example
  7104. from that file::
  7105. TUNEVALID[bigendian] = "Enable big-endian mode."
  7106. See the machine include files in the :term:`Source Directory`
  7107. for these features.
  7108. :term:`UBOOT_CONFIG`
  7109. Configures the :term:`UBOOT_MACHINE` and can
  7110. also define :term:`IMAGE_FSTYPES` for individual
  7111. cases.
  7112. Following is an example from the ``meta-fsl-arm`` layer. ::
  7113. UBOOT_CONFIG ??= "sd"
  7114. UBOOT_CONFIG[sd] = "mx6qsabreauto_config,sdcard"
  7115. UBOOT_CONFIG[eimnor] = "mx6qsabreauto_eimnor_config"
  7116. UBOOT_CONFIG[nand] = "mx6qsabreauto_nand_config,ubifs"
  7117. UBOOT_CONFIG[spinor] = "mx6qsabreauto_spinor_config"
  7118. In this example, "sd" is selected as the configuration of the possible four for the
  7119. :term:`UBOOT_MACHINE`. The "sd" configuration defines
  7120. "mx6qsabreauto_config" as the value for :term:`UBOOT_MACHINE`, while the
  7121. "sdcard" specifies the :term:`IMAGE_FSTYPES` to use for the U-Boot image.
  7122. For more information on how the :term:`UBOOT_CONFIG` is handled, see the
  7123. :ref:`ref-classes-uboot-config` class.
  7124. :term:`UBOOT_DTB_LOADADDRESS`
  7125. Specifies the load address for the dtb image used by U-Boot. During FIT
  7126. image creation, the :term:`UBOOT_DTB_LOADADDRESS` variable is used in
  7127. :ref:`ref-classes-kernel-fitimage` class to specify the load address to be
  7128. used in creating the dtb sections of Image Tree Source for the FIT image.
  7129. :term:`UBOOT_DTBO_LOADADDRESS`
  7130. Specifies the load address for the dtbo image used by U-Boot. During FIT
  7131. image creation, the :term:`UBOOT_DTBO_LOADADDRESS` variable is used in
  7132. :ref:`ref-classes-kernel-fitimage` class to specify the load address to be
  7133. used in creating the dtbo sections of Image Tree Source for the FIT image.
  7134. :term:`UBOOT_ENTRYPOINT`
  7135. Specifies the entry point for the U-Boot image. During U-Boot image
  7136. creation, the :term:`UBOOT_ENTRYPOINT` variable is passed as a
  7137. command-line parameter to the ``uboot-mkimage`` utility.
  7138. To pass a 64 bit address for FIT image creation, you will need to set:
  7139. - The :term:`FIT_ADDRESS_CELLS` variable for FIT image creation.
  7140. - The :term:`UBOOT_FIT_ADDRESS_CELLS` variable for U-Boot FIT image creation.
  7141. This variable is used by the :ref:`ref-classes-kernel-fitimage`,
  7142. :ref:`ref-classes-kernel-uimage`, :ref:`ref-classes-kernel`,
  7143. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  7144. classes.
  7145. :term:`UBOOT_FIT_ADDRESS_CELLS`
  7146. Specifies the value of the ``#address-cells`` value for the
  7147. description of the U-Boot FIT image.
  7148. The default value is set to "1" by the :ref:`ref-classes-uboot-sign`
  7149. class, which corresponds to 32 bit addresses.
  7150. For platforms that need to set 64 bit addresses in
  7151. :term:`UBOOT_LOADADDRESS` and :term:`UBOOT_ENTRYPOINT`, you need to
  7152. set this value to "2", as two 32 bit values (cells) will be needed
  7153. to represent such addresses.
  7154. Here is an example setting "0x400000000" as a load address::
  7155. UBOOT_FIT_ADDRESS_CELLS = "2"
  7156. UBOOT_LOADADDRESS= "0x04 0x00000000"
  7157. See `more details about #address-cells <https://elinux.org/Device_Tree_Usage#How_Addressing_Works>`__.
  7158. :term:`UBOOT_FIT_DESC`
  7159. Specifies the description string encoded into a U-Boot fitImage. The default
  7160. value is set by the :ref:`ref-classes-uboot-sign` class as follows::
  7161. UBOOT_FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
  7162. :term:`UBOOT_FIT_GENERATE_KEYS`
  7163. Decides whether to generate the keys for signing the U-Boot fitImage if
  7164. they don't already exist. The keys are created in :term:`SPL_SIGN_KEYDIR`.
  7165. The default value is "0".
  7166. Enable this as follows::
  7167. UBOOT_FIT_GENERATE_KEYS = "1"
  7168. This variable is used in the :ref:`ref-classes-uboot-sign` class.
  7169. :term:`UBOOT_FIT_HASH_ALG`
  7170. Specifies the hash algorithm used in creating the U-Boot FIT Image.
  7171. It is set by default to ``sha256`` by the :ref:`ref-classes-uboot-sign`
  7172. class.
  7173. :term:`UBOOT_FIT_KEY_GENRSA_ARGS`
  7174. Arguments to ``openssl genrsa`` for generating a RSA private key for
  7175. signing the U-Boot FIT image. The default value of this variable
  7176. is set to "-F4" by the :ref:`ref-classes-uboot-sign` class.
  7177. :term:`UBOOT_FIT_KEY_REQ_ARGS`
  7178. Arguments to ``openssl req`` for generating a certificate for signing
  7179. the U-Boot FIT image. The default value is "-batch -new" by the
  7180. :ref:`ref-classes-uboot-sign` class, "batch" for
  7181. non interactive mode and "new" for generating new keys.
  7182. :term:`UBOOT_FIT_KEY_SIGN_PKCS`
  7183. Format for the public key certificate used for signing the U-Boot FIT
  7184. image. The default value is set to "x509" by the
  7185. :ref:`ref-classes-uboot-sign` class.
  7186. :term:`UBOOT_FIT_SIGN_ALG`
  7187. Specifies the signature algorithm used in creating the U-Boot FIT Image.
  7188. This variable is set by default to "rsa2048" by the
  7189. :ref:`ref-classes-uboot-sign` class.
  7190. :term:`UBOOT_FIT_SIGN_NUMBITS`
  7191. Size of the private key used in signing the U-Boot FIT image, in number
  7192. of bits. The default value for this variable is set to "2048"
  7193. by the :ref:`ref-classes-uboot-sign` class.
  7194. :term:`UBOOT_FITIMAGE_ENABLE`
  7195. This variable allows to generate a FIT image for U-Boot, which is one
  7196. of the ways to implement a verified boot process.
  7197. Its default value is "0", so set it to "1" to enable this functionality::
  7198. UBOOT_FITIMAGE_ENABLE = "1"
  7199. See the :ref:`ref-classes-uboot-sign` class for details.
  7200. :term:`UBOOT_LOADADDRESS`
  7201. Specifies the load address for the U-Boot image. During U-Boot image
  7202. creation, the :term:`UBOOT_LOADADDRESS` variable is passed as a
  7203. command-line parameter to the ``uboot-mkimage`` utility.
  7204. To pass a 64 bit address, you will also need to set:
  7205. - The :term:`FIT_ADDRESS_CELLS` variable for FIT image creation.
  7206. - The :term:`UBOOT_FIT_ADDRESS_CELLS` variable for U-Boot FIT image creation.
  7207. This variable is used by the :ref:`ref-classes-kernel-fitimage`,
  7208. :ref:`ref-classes-kernel-uimage`, :ref:`ref-classes-kernel`,
  7209. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  7210. classes.
  7211. :term:`UBOOT_LOCALVERSION`
  7212. Appends a string to the name of the local version of the U-Boot
  7213. image. For example, assuming the version of the U-Boot image built
  7214. was "2013.10", the full version string reported by U-Boot would be
  7215. "2013.10-yocto" given the following statement::
  7216. UBOOT_LOCALVERSION = "-yocto"
  7217. :term:`UBOOT_MACHINE`
  7218. Specifies the value passed on the ``make`` command line when building
  7219. a U-Boot image. The value indicates the target platform
  7220. configuration. You typically set this variable from the machine
  7221. configuration file (i.e. ``conf/machine/machine_name.conf``).
  7222. Please see the "Selection of Processor Architecture and Board Type"
  7223. section in the U-Boot README for valid values for this variable.
  7224. :term:`UBOOT_MAKE_TARGET`
  7225. Specifies the target called in the ``Makefile``. The default target
  7226. is "all".
  7227. :term:`UBOOT_MKIMAGE`
  7228. Specifies the name of the mkimage command as used by the
  7229. :ref:`ref-classes-kernel-fitimage` class to assemble
  7230. the FIT image. This can be used to substitute an alternative command, wrapper
  7231. script or function if desired. The default is "uboot-mkimage".
  7232. :term:`UBOOT_MKIMAGE_DTCOPTS`
  7233. Options for the device tree compiler passed to ``mkimage -D`` feature
  7234. while creating a FIT image with the :ref:`ref-classes-kernel-fitimage`
  7235. class. If :term:`UBOOT_MKIMAGE_DTCOPTS` is not set then the
  7236. :ref:`ref-classes-kernel-fitimage` class will not pass the ``-D`` option
  7237. to ``mkimage``.
  7238. This variable is also used by the :ref:`ref-classes-uboot-sign` class.
  7239. :term:`UBOOT_MKIMAGE_KERNEL_TYPE`
  7240. Specifies the type argument for the kernel as passed to ``uboot-mkimage``.
  7241. The default value is "kernel".
  7242. :term:`UBOOT_MKIMAGE_SIGN`
  7243. Specifies the name of the mkimage command as used by the
  7244. :ref:`ref-classes-kernel-fitimage` class to sign
  7245. the FIT image after it has been assembled (if enabled). This can be used
  7246. to substitute an alternative command, wrapper script or function if
  7247. desired. The default is "${:term:`UBOOT_MKIMAGE`}".
  7248. :term:`UBOOT_MKIMAGE_SIGN_ARGS`
  7249. Optionally specifies additional arguments for the
  7250. :ref:`ref-classes-kernel-fitimage` class to pass to the
  7251. mkimage command when signing the FIT image.
  7252. :term:`UBOOT_RD_ENTRYPOINT`
  7253. Specifies the entrypoint for the RAM disk image. During FIT image
  7254. creation, the :term:`UBOOT_RD_ENTRYPOINT` variable is used in
  7255. :ref:`ref-classes-kernel-fitimage` class to specify the entrypoint to be
  7256. used in creating the Image Tree Source for the FIT image.
  7257. :term:`UBOOT_RD_LOADADDRESS`
  7258. Specifies the load address for the RAM disk image. During FIT image
  7259. creation, the :term:`UBOOT_RD_LOADADDRESS` variable is used in
  7260. :ref:`ref-classes-kernel-fitimage` class to specify the load address to
  7261. be used in creating the Image Tree Source for the FIT image.
  7262. :term:`UBOOT_SIGN_ENABLE`
  7263. Enable signing of FIT image. The default value is "0".
  7264. This variable is used by the :ref:`ref-classes-kernel-fitimage`,
  7265. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  7266. classes.
  7267. :term:`UBOOT_SIGN_KEYDIR`
  7268. Location of the directory containing the RSA key and certificate used for
  7269. signing FIT image, used by the :ref:`ref-classes-kernel-fitimage` and
  7270. :ref:`ref-classes-uboot-sign` classes.
  7271. :term:`UBOOT_SIGN_KEYNAME`
  7272. The name of keys used by the :ref:`ref-classes-kernel-fitimage` class
  7273. for signing U-Boot FIT image stored in the :term:`UBOOT_SIGN_KEYDIR`
  7274. directory. If we have for example a ``dev.key`` key and a ``dev.crt``
  7275. certificate stored in the :term:`UBOOT_SIGN_KEYDIR` directory, you will
  7276. have to set :term:`UBOOT_SIGN_KEYNAME` to ``dev``.
  7277. :term:`UBOOT_SUFFIX`
  7278. Points to the generated U-Boot extension. For example, ``u-boot.sb``
  7279. has a ``.sb`` extension.
  7280. The default U-Boot extension is ``.bin``
  7281. :term:`UBOOT_TARGET`
  7282. Specifies the target used for building U-Boot. The target is passed
  7283. directly as part of the "make" command (e.g. SPL and AIS). If you do
  7284. not specifically set this variable, the OpenEmbedded build process
  7285. passes and uses "all" for the target during the U-Boot building
  7286. process.
  7287. :term:`UNKNOWN_CONFIGURE_OPT_IGNORE`
  7288. Specifies a list of options that, if reported by the configure script
  7289. as being invalid, should not generate a warning during the
  7290. :ref:`ref-tasks-configure` task. Normally, invalid
  7291. configure options are simply not passed to the configure script (e.g.
  7292. should be removed from :term:`EXTRA_OECONF` or
  7293. :term:`PACKAGECONFIG_CONFARGS`).
  7294. However, there are common options that are passed to all
  7295. configure scripts at a class level, but might not be valid for some
  7296. configure scripts. Therefore warnings about these options are useless.
  7297. For these cases, the options are added to :term:`UNKNOWN_CONFIGURE_OPT_IGNORE`.
  7298. The configure arguments check that uses
  7299. :term:`UNKNOWN_CONFIGURE_OPT_IGNORE` is part of the
  7300. :ref:`ref-classes-insane` class and is only enabled if the
  7301. recipe inherits the :ref:`ref-classes-autotools` class.
  7302. :term:`UPDATERCPN`
  7303. For recipes inheriting the
  7304. :ref:`ref-classes-update-rc.d` class, :term:`UPDATERCPN`
  7305. specifies the package that contains the initscript that is enabled.
  7306. The default value is "${PN}". Given that almost all recipes that
  7307. install initscripts package them in the main package for the recipe,
  7308. you rarely need to set this variable in individual recipes.
  7309. :term:`UPSTREAM_CHECK_COMMITS`
  7310. You can perform a per-recipe check for what the latest upstream
  7311. source code version is by calling ``devtool latest-version recipe``. If
  7312. the recipe source code is provided from Git repositories, but
  7313. releases are not identified by Git tags, set :term:`UPSTREAM_CHECK_COMMITS`
  7314. to ``1`` in the recipe, and the OpenEmbedded build system
  7315. will compare the latest commit with the one currently specified
  7316. by the recipe (:term:`SRCREV`)::
  7317. UPSTREAM_CHECK_COMMITS = "1"
  7318. :term:`UPSTREAM_CHECK_GITTAGREGEX`
  7319. You can perform a per-recipe check for what the latest upstream
  7320. source code version is by calling ``devtool latest-version recipe``. If
  7321. the recipe source code is provided from Git repositories, the
  7322. OpenEmbedded build system determines the latest upstream version by
  7323. picking the latest tag from the list of all repository tags.
  7324. You can use the :term:`UPSTREAM_CHECK_GITTAGREGEX` variable to provide a
  7325. regular expression to filter only the relevant tags should the
  7326. default filter not work correctly::
  7327. UPSTREAM_CHECK_GITTAGREGEX = "git_tag_regex"
  7328. :term:`UPSTREAM_CHECK_REGEX`
  7329. Use the :term:`UPSTREAM_CHECK_REGEX` variable to specify a different
  7330. regular expression instead of the default one when the package
  7331. checking system is parsing the page found using
  7332. :term:`UPSTREAM_CHECK_URI`::
  7333. UPSTREAM_CHECK_REGEX = "package_regex"
  7334. :term:`UPSTREAM_CHECK_URI`
  7335. You can perform a per-recipe check for what the latest upstream
  7336. source code version is by calling ``devtool latest-version recipe``. If
  7337. the source code is provided from tarballs, the latest version is
  7338. determined by fetching the directory listing where the tarball is and
  7339. attempting to find a later tarball. When this approach does not work,
  7340. you can use :term:`UPSTREAM_CHECK_URI` to provide a different URI that
  7341. contains the link to the latest tarball::
  7342. UPSTREAM_CHECK_URI = "recipe_url"
  7343. :term:`UPSTREAM_VERSION_UNKNOWN`
  7344. You can perform a per-recipe check for what the latest upstream
  7345. source code version is by calling ``devtool latest-version recipe``.
  7346. If no combination of the :term:`UPSTREAM_CHECK_URI`, :term:`UPSTREAM_CHECK_REGEX`,
  7347. :term:`UPSTREAM_CHECK_GITTAGREGEX` and :term:`UPSTREAM_CHECK_COMMITS` variables in
  7348. the recipe allows to determine what the latest upstream version is,
  7349. you can set :term:`UPSTREAM_VERSION_UNKNOWN` to ``1`` in the recipe
  7350. to acknowledge that the check cannot be performed::
  7351. UPSTREAM_VERSION_UNKNOWN = "1"
  7352. :term:`USE_DEVFS`
  7353. Determines if ``devtmpfs`` is used for ``/dev`` population. The
  7354. default value used for :term:`USE_DEVFS` is "1" when no value is
  7355. specifically set. Typically, you would set :term:`USE_DEVFS` to "0" for a
  7356. statically populated ``/dev`` directory.
  7357. See the ":ref:`dev-manual/device-manager:selecting a device manager`" section in
  7358. the Yocto Project Development Tasks Manual for information on how to
  7359. use this variable.
  7360. :term:`USE_VT`
  7361. When using
  7362. :ref:`SysVinit <dev-manual/new-recipe:enabling system services>`,
  7363. determines whether or not to run a :wikipedia:`getty <Getty_(Unix)>`
  7364. on any virtual terminals in order to enable logging in through those
  7365. terminals.
  7366. The default value used for :term:`USE_VT` is "1" when no default value is
  7367. specifically set. Typically, you would set :term:`USE_VT` to "0" in the
  7368. machine configuration file for machines that do not have a graphical
  7369. display attached and therefore do not need virtual terminal
  7370. functionality.
  7371. :term:`USER_CLASSES`
  7372. A list of classes to globally inherit. These classes are used by the
  7373. OpenEmbedded build system to enable extra features.
  7374. Classes inherited using :term:`USER_CLASSES` must be located in the
  7375. ``classes-global/`` or ``classes/`` subdirectories.
  7376. The default list is set in your ``local.conf`` file::
  7377. USER_CLASSES ?= "buildstats"
  7378. For more information, see
  7379. ``meta-poky/conf/templates/default/local.conf.sample`` in the
  7380. :term:`Source Directory`.
  7381. :term:`USERADD_ERROR_DYNAMIC`
  7382. If set to ``error``, forces the OpenEmbedded build system to produce
  7383. an error if the user identification (``uid``) and group
  7384. identification (``gid``) values are not defined in any of the files
  7385. listed in :term:`USERADD_UID_TABLES` and
  7386. :term:`USERADD_GID_TABLES`. If set to
  7387. ``warn``, a warning will be issued instead.
  7388. The default behavior for the build system is to dynamically apply
  7389. ``uid`` and ``gid`` values. Consequently, the
  7390. :term:`USERADD_ERROR_DYNAMIC` variable is by default not set. If you plan
  7391. on using statically assigned ``gid`` and ``uid`` values, you should
  7392. set the :term:`USERADD_ERROR_DYNAMIC` variable in your ``local.conf``
  7393. file as follows::
  7394. USERADD_ERROR_DYNAMIC = "error"
  7395. Overriding the
  7396. default behavior implies you are going to also take steps to set
  7397. static ``uid`` and ``gid`` values through use of the
  7398. :term:`USERADDEXTENSION`,
  7399. :term:`USERADD_UID_TABLES`, and
  7400. :term:`USERADD_GID_TABLES` variables.
  7401. .. note::
  7402. There is a difference in behavior between setting
  7403. :term:`USERADD_ERROR_DYNAMIC` to ``error`` and setting it to ``warn``.
  7404. When it is set to ``warn``, the build system will report a warning for
  7405. every undefined ``uid`` and ``gid`` in any recipe. But when it is set
  7406. to ``error``, it will only report errors for recipes that are actually
  7407. built.
  7408. This saves you from having to add static IDs for recipes that you
  7409. know will never be built.
  7410. :term:`USERADD_GID_TABLES`
  7411. Specifies a password file to use for obtaining static group
  7412. identification (``gid``) values when the OpenEmbedded build system
  7413. adds a group to the system during package installation.
  7414. When applying static group identification (``gid``) values, the
  7415. OpenEmbedded build system looks in :term:`BBPATH` for a
  7416. ``files/group`` file and then applies those ``uid`` values. Set the
  7417. variable as follows in your ``local.conf`` file::
  7418. USERADD_GID_TABLES = "files/group"
  7419. .. note::
  7420. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  7421. causes the build system to use static ``gid`` values.
  7422. :term:`USERADD_PACKAGES`
  7423. When inheriting the :ref:`ref-classes-useradd` class,
  7424. this variable specifies the individual packages within the recipe
  7425. that require users and/or groups to be added.
  7426. You must set this variable if the recipe inherits the class. For
  7427. example, the following enables adding a user for the main package in
  7428. a recipe::
  7429. USERADD_PACKAGES = "${PN}"
  7430. .. note::
  7431. It follows that if you are going to use the :term:`USERADD_PACKAGES`
  7432. variable, you need to set one or more of the :term:`USERADD_PARAM`,
  7433. :term:`GROUPADD_PARAM`, or :term:`GROUPMEMS_PARAM` variables.
  7434. :term:`USERADD_PARAM`
  7435. When inheriting the :ref:`ref-classes-useradd` class,
  7436. this variable specifies for a package what parameters should pass to
  7437. the ``useradd`` command if you add a user to the system when the
  7438. package is installed.
  7439. Here is an example from the ``dbus`` recipe::
  7440. USERADD_PARAM:${PN} = "--system --home ${localstatedir}/lib/dbus \
  7441. --no-create-home --shell /bin/false \
  7442. --user-group messagebus"
  7443. For information on the
  7444. standard Linux shell command ``useradd``, see
  7445. https://linux.die.net/man/8/useradd.
  7446. :term:`USERADD_UID_TABLES`
  7447. Specifies a password file to use for obtaining static user
  7448. identification (``uid``) values when the OpenEmbedded build system
  7449. adds a user to the system during package installation.
  7450. When applying static user identification (``uid``) values, the
  7451. OpenEmbedded build system looks in :term:`BBPATH` for a
  7452. ``files/passwd`` file and then applies those ``uid`` values. Set the
  7453. variable as follows in your ``local.conf`` file::
  7454. USERADD_UID_TABLES = "files/passwd"
  7455. .. note::
  7456. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  7457. causes the build system to use static ``uid`` values.
  7458. :term:`USERADDEXTENSION`
  7459. When set to "useradd-staticids", causes the OpenEmbedded build system
  7460. to base all user and group additions on a static ``passwd`` and
  7461. ``group`` files found in :term:`BBPATH`.
  7462. To use static user identification (``uid``) and group identification
  7463. (``gid``) values, set the variable as follows in your ``local.conf``
  7464. file: USERADDEXTENSION = "useradd-staticids"
  7465. .. note::
  7466. Setting this variable to use static ``uid`` and ``gid``
  7467. values causes the OpenEmbedded build system to employ the
  7468. :ref:`ref-classes-useradd` class.
  7469. If you use static ``uid`` and ``gid`` information, you must also
  7470. specify the ``files/passwd`` and ``files/group`` files by setting the
  7471. :term:`USERADD_UID_TABLES` and
  7472. :term:`USERADD_GID_TABLES` variables.
  7473. Additionally, you should also set the
  7474. :term:`USERADD_ERROR_DYNAMIC` variable.
  7475. :term:`VOLATILE_LOG_DIR`
  7476. Specifies the persistence of the target's ``/var/log`` directory,
  7477. which is used to house postinstall target log files.
  7478. By default, :term:`VOLATILE_LOG_DIR` is set to "yes", which means the
  7479. file is not persistent. You can override this setting by setting the
  7480. variable to "no" to make the log directory persistent.
  7481. :term:`VOLATILE_TMP_DIR`
  7482. Specifies the persistence of the target's ``/tmp`` directory.
  7483. By default, :term:`VOLATILE_TMP_DIR` is set to "yes", in which case
  7484. ``/tmp`` links to a directory which resides in RAM in a ``tmpfs``
  7485. filesystem.
  7486. If instead, you want the ``/tmp`` directory to be persistent, set the
  7487. variable to "no" to make it a regular directory in the root filesystem.
  7488. This supports both sysvinit and systemd based systems.
  7489. :term:`WARN_QA`
  7490. Specifies the quality assurance checks whose failures are reported as
  7491. warnings by the OpenEmbedded build system. You set this variable in
  7492. your distribution configuration file. For a list of the checks you
  7493. can control with this variable, see the
  7494. ":ref:`ref-classes-insane`" section.
  7495. :term:`WATCHDOG_TIMEOUT`
  7496. Specifies the timeout in seconds used by the ``watchdog`` recipe and
  7497. also by ``systemd`` during reboot. The default is 60 seconds.
  7498. :term:`WIRELESS_DAEMON`
  7499. For ``connman`` and ``packagegroup-base``, specifies the wireless
  7500. daemon to use. The default is "wpa-supplicant" (note that the value
  7501. uses a dash and not an underscore).
  7502. :term:`WKS_FILE`
  7503. Specifies the location of the Wic kickstart file that is used by the
  7504. OpenEmbedded build system to create a partitioned image
  7505. (``image.wic``). For information on how to create a partitioned
  7506. image, see the
  7507. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  7508. section in the Yocto Project Development Tasks Manual. For details on
  7509. the kickstart file format, see the ":doc:`/ref-manual/kickstart`" Chapter.
  7510. :term:`WKS_FILE_DEPENDS`
  7511. When placed in the recipe that builds your image, this variable lists
  7512. build-time dependencies. The :term:`WKS_FILE_DEPENDS` variable is only
  7513. applicable when Wic images are active (i.e. when
  7514. :term:`IMAGE_FSTYPES` contains entries related
  7515. to Wic). If your recipe does not create Wic images, the variable has
  7516. no effect.
  7517. The :term:`WKS_FILE_DEPENDS` variable is similar to the
  7518. :term:`DEPENDS` variable. When you use the variable in
  7519. your recipe that builds the Wic image, dependencies you list in the
  7520. :term:`WKS_FILE_DEPENDS` variable are added to the :term:`DEPENDS` variable.
  7521. With the :term:`WKS_FILE_DEPENDS` variable, you have the possibility to
  7522. specify a list of additional dependencies (e.g. native tools,
  7523. bootloaders, and so forth), that are required to build Wic images.
  7524. Following is an example::
  7525. WKS_FILE_DEPENDS = "some-native-tool"
  7526. In the
  7527. previous example, some-native-tool would be replaced with an actual
  7528. native tool on which the build would depend.
  7529. :term:`WKS_FILES`
  7530. Specifies a list of candidate Wic kickstart files to be used by the
  7531. OpenEmbedded build system to create a partitioned image. Only the
  7532. first one that is found, from left to right, will be used.
  7533. This is only useful when there are multiple ``.wks`` files that can be
  7534. used to produce an image. A typical case is when multiple layers are
  7535. used for different hardware platforms, each supplying a different
  7536. ``.wks`` file. In this case, you specify all possible ones through
  7537. :term:`WKS_FILES`.
  7538. If only one ``.wks`` file is used, set :term:`WKS_FILE` instead.
  7539. :term:`WORKDIR`
  7540. The pathname of the work directory in which the OpenEmbedded build
  7541. system builds a recipe. This directory is located within the
  7542. :term:`TMPDIR` directory structure and is specific to
  7543. the recipe being built and the system for which it is being built.
  7544. The :term:`WORKDIR` directory is defined as follows::
  7545. ${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}
  7546. The actual directory depends on several things:
  7547. - :term:`TMPDIR`: The top-level build output directory
  7548. - :term:`MULTIMACH_TARGET_SYS`: The target system identifier
  7549. - :term:`PN`: The recipe name
  7550. - :term:`EXTENDPE`: The epoch --- if :term:`PE` is not specified, which
  7551. is usually the case for most recipes, then :term:`EXTENDPE` is blank.
  7552. - :term:`PV`: The recipe version
  7553. - :term:`PR`: The recipe revision
  7554. As an example, assume a Source Directory top-level folder name
  7555. ``poky``, a default :term:`Build Directory` at ``poky/build``, and a
  7556. ``qemux86-poky-linux`` machine target system. Furthermore, suppose
  7557. your recipe is named ``foo_1.3.0-r0.bb``. In this case, the work
  7558. directory the build system uses to build the package would be as
  7559. follows::
  7560. poky/build/tmp/work/qemux86-poky-linux/foo/1.3.0-r0
  7561. :term:`XSERVER`
  7562. Specifies the packages that should be installed to provide an X
  7563. server and drivers for the current machine, assuming your image
  7564. directly includes ``packagegroup-core-x11-xserver`` or, perhaps
  7565. indirectly, includes "x11-base" in
  7566. :term:`IMAGE_FEATURES`.
  7567. The default value of :term:`XSERVER`, if not specified in the machine
  7568. configuration, is "xserver-xorg xf86-video-fbdev xf86-input-evdev".
  7569. :term:`XZ_THREADS`
  7570. Specifies the number of parallel threads that should be used when
  7571. using xz compression.
  7572. By default this scales with core count, but is never set less than 2
  7573. to ensure that multi-threaded mode is always used so that the output
  7574. file contents are deterministic. Builds will work with a value of 1
  7575. but the output will differ compared to the output from the compression
  7576. generated when more than one thread is used.
  7577. On systems where many tasks run in parallel, setting a limit to this
  7578. can be helpful in controlling system resource usage.
  7579. :term:`XZ_MEMLIMIT`
  7580. Specifies the maximum memory the xz compression should use as a percentage
  7581. of system memory. If unconstrained the xz compressor can use large amounts of
  7582. memory and become problematic with parallelism elsewhere in the build.
  7583. "50%" has been found to be a good value.
  7584. :term:`ZSTD_THREADS`
  7585. Specifies the number of parallel threads that should be used when
  7586. using ZStandard compression.
  7587. By default this scales with core count, but is never set less than 2
  7588. to ensure that multi-threaded mode is always used so that the output
  7589. file contents are deterministic. Builds will work with a value of 1
  7590. but the output will differ compared to the output from the compression
  7591. generated when more than one thread is used.
  7592. On systems where many tasks run in parallel, setting a limit to this
  7593. can be helpful in controlling system resource usage.