variables.rst 422 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840
  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
  99. :ref:`features_check <ref-classes-features_check>`
  100. class, this variable identifies a list of distribution features where
  101. at least one must be enabled in the current configuration in order
  102. for the OpenEmbedded build system to build the recipe. In other words,
  103. if none of the features listed in :term:`ANY_OF_DISTRO_FEATURES`
  104. appear in :term:`DISTRO_FEATURES` within the current configuration, then
  105. the recipe will be skipped, and if the build system attempts to build
  106. the recipe then an error will be triggered.
  107. :term:`APPEND`
  108. An override list of append strings for each target specified with
  109. :term:`LABELS`.
  110. See the :ref:`grub-efi <ref-classes-grub-efi>` class for more
  111. information on how this variable is used.
  112. :term:`AR`
  113. The minimal command and arguments used to run ``ar``.
  114. :term:`ARCHIVER_MODE`
  115. When used with the :ref:`archiver <ref-classes-archiver>` class,
  116. determines the type of information used to create a released archive.
  117. You can use this variable to create archives of patched source,
  118. original source, configured source, and so forth by employing the
  119. following variable flags (varflags)::
  120. ARCHIVER_MODE[src] = "original" # Uses original (unpacked) source files.
  121. ARCHIVER_MODE[src] = "patched" # Uses patched source files. This is the default.
  122. ARCHIVER_MODE[src] = "configured" # Uses configured source files.
  123. ARCHIVER_MODE[diff] = "1" # Uses patches between do_unpack and do_patch.
  124. ARCHIVER_MODE[diff-exclude] ?= "file file ..." # Lists files and directories to exclude from diff.
  125. ARCHIVER_MODE[dumpdata] = "1" # Uses environment data.
  126. ARCHIVER_MODE[recipe] = "1" # Uses recipe and include files.
  127. ARCHIVER_MODE[srpm] = "1" # Uses RPM package files.
  128. For information on how the variable works, see the
  129. ``meta/classes/archiver.bbclass`` file in the :term:`Source Directory`.
  130. :term:`AS`
  131. Minimal command and arguments needed to run the assembler.
  132. :term:`ASSUME_PROVIDED`
  133. Lists recipe names (:term:`PN` values) BitBake does not
  134. attempt to build. Instead, BitBake assumes these recipes have already
  135. been built.
  136. In OpenEmbedded-Core, :term:`ASSUME_PROVIDED` mostly specifies native
  137. tools that should not be built. An example is ``git-native``, which
  138. when specified, allows for the Git binary from the host to be used
  139. rather than building ``git-native``.
  140. :term:`ASSUME_SHLIBS`
  141. Provides additional ``shlibs`` provider mapping information, which
  142. adds to or overwrites the information provided automatically by the
  143. system. Separate multiple entries using spaces.
  144. As an example, use the following form to add an ``shlib`` provider of
  145. shlibname in packagename with the optional version::
  146. shlibname:packagename[_version]
  147. Here is an example that adds a shared library named ``libEGL.so.1``
  148. as being provided by the ``libegl-implementation`` package::
  149. ASSUME_SHLIBS = "libEGL.so.1:libegl-implementation"
  150. :term:`AUTHOR`
  151. The email address used to contact the original author or authors in
  152. order to send patches and forward bugs.
  153. :term:`AUTO_LIBNAME_PKGS`
  154. When the :ref:`debian <ref-classes-debian>` class is inherited,
  155. which is the default behavior, :term:`AUTO_LIBNAME_PKGS` specifies which
  156. packages should be checked for libraries and renamed according to
  157. Debian library package naming.
  158. The default value is "${PACKAGES}", which causes the debian class to
  159. act on all packages that are 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
  167. have a kernel recipe that inherits the
  168. :ref:`kernel <ref-classes-kernel>` class and you use the previous
  169. statement. In this example, ``${SRCPV}`` does not automatically get
  170. into :term:`PV`. Consequently, you need to change :term:`PV` in your recipe
  171. so that it does contain ``${SRCPV}``.
  172. For more information see the
  173. ":ref:`dev-manual/packages:automatically incrementing a package version number`"
  174. section in the Yocto Project Development Tasks Manual.
  175. :term:`AUTO_SYSLINUXMENU`
  176. Enables creating an automatic menu for the syslinux bootloader. You
  177. must set this variable in your recipe. The
  178. :ref:`syslinux <ref-classes-syslinux>` class checks this variable.
  179. :term:`AUTOTOOLS_SCRIPT_PATH`
  180. When using the :ref:`ref-classes-autotools` class, the
  181. :term:`AUTOTOOLS_SCRIPT_PATH` variable stores the location of the
  182. different scripts used by the Autotools build system. The default
  183. value for this variable is :term:`S`.
  184. :term:`AVAILTUNES`
  185. The list of defined CPU and Application Binary Interface (ABI)
  186. tunings (i.e. "tunes") available for use by the OpenEmbedded build
  187. system.
  188. The list simply presents the tunes that are available. Not all tunes
  189. may be compatible with a particular machine configuration, or with
  190. each other in a
  191. :ref:`Multilib <dev-manual/libraries:combining multiple versions of library files into one image>`
  192. configuration.
  193. To add a tune to the list, be sure to append it with spaces using the
  194. "+=" BitBake operator. Do not simply replace the list by using the
  195. "=" operator. See the
  196. ":ref:`bitbake:bitbake-user-manual/bitbake-user-manual-metadata:basic syntax`" section in the BitBake
  197. User Manual for more information.
  198. :term:`AZ_SAS`
  199. Azure Storage Shared Access Signature, when using the
  200. :ref:`Azure Storage fetcher (az://) <bitbake:bitbake-user-manual/bitbake-user-manual-fetching:fetchers>`
  201. This variable can be defined to be used by the fetcher to authenticate
  202. and gain access to non-public artifacts.
  203. ::
  204. AZ_SAS = ""se=2021-01-01&sp=r&sv=2018-11-09&sr=c&skoid=<skoid>&sig=<signature>""
  205. For more information see Microsoft's Azure Storage documentation at
  206. https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview
  207. :term:`B`
  208. The directory within the :term:`Build Directory` in
  209. which the OpenEmbedded build system places generated objects during a
  210. recipe's build process. By default, this directory is the same as the
  211. :term:`S` directory, which is defined as::
  212. S = "${WORKDIR}/${BP}"
  213. You can separate the (:term:`S`) directory and the directory pointed to
  214. by the :term:`B` variable. Most Autotools-based recipes support
  215. separating these directories. The build system defaults to using
  216. separate directories for ``gcc`` and some kernel recipes.
  217. :term:`BAD_RECOMMENDATIONS`
  218. Lists "recommended-only" packages to not install. Recommended-only
  219. packages are packages installed only through the
  220. :term:`RRECOMMENDS` variable. You can prevent any
  221. of these "recommended" packages from being installed by listing them
  222. with the :term:`BAD_RECOMMENDATIONS` variable::
  223. BAD_RECOMMENDATIONS = "package_name package_name package_name ..."
  224. You can set this variable globally in your ``local.conf`` file or you
  225. can attach it to a specific image recipe by using the recipe name
  226. override::
  227. BAD_RECOMMENDATIONS:pn-target_image = "package_name"
  228. It is important to realize that if you choose to not install packages
  229. using this variable and some other packages are dependent on them
  230. (i.e. listed in a recipe's :term:`RDEPENDS`
  231. variable), the OpenEmbedded build system ignores your request and
  232. will install the packages to avoid dependency errors.
  233. This variable is supported only when using the IPK and RPM
  234. packaging backends. DEB is not supported.
  235. See the :term:`NO_RECOMMENDATIONS` and the
  236. :term:`PACKAGE_EXCLUDE` variables for related
  237. information.
  238. :term:`BASE_LIB`
  239. The library directory name for the CPU or Application Binary
  240. Interface (ABI) tune. The :term:`BASE_LIB` applies only in the Multilib
  241. context. See the ":ref:`dev-manual/libraries:combining multiple versions of library files into one image`"
  242. section in the Yocto Project Development Tasks Manual for information
  243. on Multilib.
  244. The :term:`BASE_LIB` variable is defined in the machine include files in
  245. the :term:`Source Directory`. If Multilib is not
  246. being used, the value defaults to "lib".
  247. :term:`BASE_WORKDIR`
  248. Points to the base of the work directory for all recipes. The default
  249. value is "${TMPDIR}/work".
  250. :term:`BB_ALLOWED_NETWORKS`
  251. Specifies a space-delimited list of hosts that the fetcher is allowed
  252. to use to obtain the required source code. Here are
  253. considerations surrounding this variable:
  254. - This host list is only used if :term:`BB_NO_NETWORK` is either not set
  255. or set to "0".
  256. - There is limited support for wildcard matching against the beginning of
  257. host names. For example, the following setting matches
  258. ``git.gnu.org``, ``ftp.gnu.org``, and ``foo.git.gnu.org``.
  259. ::
  260. BB_ALLOWED_NETWORKS = "*.gnu.org"
  261. .. note::
  262. The use of the "``*``" character only works at the beginning of
  263. a host name and it must be isolated from the remainder of the
  264. host name. You cannot use the wildcard character in any other
  265. location of the name or combined with the front part of the
  266. name.
  267. For example, ``*.foo.bar`` is supported, while ``*aa.foo.bar``
  268. is not.
  269. - Mirrors not in the host list are skipped and logged in debug.
  270. - Attempts to access networks not in the host list cause a failure.
  271. Using :term:`BB_ALLOWED_NETWORKS` in conjunction with
  272. :term:`PREMIRRORS` is very useful. Adding the host
  273. you want to use to :term:`PREMIRRORS` results in the source code being
  274. fetched from an allowed location and avoids raising an error when a
  275. host that is not allowed is in a :term:`SRC_URI`
  276. statement. This is because the fetcher does not attempt to use the
  277. host listed in :term:`SRC_URI` after a successful fetch from the
  278. :term:`PREMIRRORS` occurs.
  279. :term:`BB_DANGLINGAPPENDS_WARNONLY`
  280. Defines how BitBake handles situations where an append file
  281. (``.bbappend``) has no corresponding recipe file (``.bb``). This
  282. condition often occurs when layers get out of sync (e.g. ``oe-core``
  283. bumps a recipe version and the old recipe no longer exists and the
  284. other layer has not been updated to the new version of the recipe
  285. yet).
  286. The default fatal behavior is safest because it is the sane reaction
  287. given something is out of sync. It is important to realize when your
  288. changes are no longer being applied.
  289. You can change the default behavior by setting this variable to "1",
  290. "yes", or "true" in your ``local.conf`` file, which is located in the
  291. :term:`Build Directory`: Here is an example::
  292. BB_DANGLINGAPPENDS_WARNONLY = "1"
  293. :term:`BB_DISKMON_DIRS`
  294. Monitors disk space and available inodes during the build and allows
  295. you to control the build based on these parameters.
  296. Disk space monitoring is disabled by default. To enable monitoring,
  297. add the :term:`BB_DISKMON_DIRS` variable to your ``conf/local.conf`` file
  298. found in the :term:`Build Directory`. Use the
  299. following form:
  300. .. code-block:: none
  301. BB_DISKMON_DIRS = "action,dir,threshold [...]"
  302. where:
  303. action is:
  304. ABORT: Immediately stop the build when
  305. a threshold is broken.
  306. STOPTASKS: Stop the build after the currently
  307. executing tasks have finished when
  308. a threshold is broken.
  309. WARN: Issue a warning but continue the
  310. build when a threshold is broken.
  311. Subsequent warnings are issued as
  312. defined by the BB_DISKMON_WARNINTERVAL
  313. variable, which must be defined in
  314. the conf/local.conf file.
  315. dir is:
  316. Any directory you choose. You can specify one or
  317. more directories to monitor by separating the
  318. groupings with a space. If two directories are
  319. on the same device, only the first directory
  320. is monitored.
  321. threshold is:
  322. Either the minimum available disk space,
  323. the minimum number of free inodes, or
  324. both. You must specify at least one. To
  325. omit one or the other, simply omit the value.
  326. Specify the threshold using G, M, K for Gbytes,
  327. Mbytes, and Kbytes, respectively. If you do
  328. not specify G, M, or K, Kbytes is assumed by
  329. default. Do not use GB, MB, or KB.
  330. Here are some examples::
  331. BB_DISKMON_DIRS = "ABORT,${TMPDIR},1G,100K WARN,${SSTATE_DIR},1G,100K"
  332. BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},1G"
  333. BB_DISKMON_DIRS = "ABORT,${TMPDIR},,100K"
  334. The first example works only if you also provide the
  335. :term:`BB_DISKMON_WARNINTERVAL`
  336. variable in the ``conf/local.conf``. This example causes the build
  337. system to immediately stop when either the disk space in
  338. ``${TMPDIR}`` drops below 1 Gbyte or the available free inodes drops
  339. below 100 Kbytes. Because two directories are provided with the
  340. variable, the build system also issue a warning when the disk space
  341. in the ``${SSTATE_DIR}`` directory drops below 1 Gbyte or the number
  342. of free inodes drops below 100 Kbytes. Subsequent warnings are issued
  343. during intervals as defined by the :term:`BB_DISKMON_WARNINTERVAL`
  344. variable.
  345. The second example stops the build after all currently executing
  346. tasks complete when the minimum disk space in the ``${TMPDIR}``
  347. directory drops below 1 Gbyte. No disk monitoring occurs for the free
  348. inodes in this case.
  349. The final example immediately stops the build when the number of
  350. free inodes in the ``${TMPDIR}`` directory drops below 100 Kbytes. No
  351. disk space monitoring for the directory itself occurs in this case.
  352. :term:`BB_DISKMON_WARNINTERVAL`
  353. Defines the disk space and free inode warning intervals. To set these
  354. intervals, define the variable in your ``conf/local.conf`` file in
  355. the :term:`Build Directory`.
  356. If you are going to use the :term:`BB_DISKMON_WARNINTERVAL` variable, you
  357. must also use the :term:`BB_DISKMON_DIRS`
  358. variable and define its action as "WARN". During the build,
  359. subsequent warnings are issued each time disk space or number of free
  360. inodes further reduces by the respective interval.
  361. If you do not provide a :term:`BB_DISKMON_WARNINTERVAL` variable and you
  362. do use :term:`BB_DISKMON_DIRS` with the "WARN" action, the disk
  363. monitoring interval defaults to the following::
  364. BB_DISKMON_WARNINTERVAL = "50M,5K"
  365. When specifying the variable in your configuration file, use the
  366. following form:
  367. .. code-block:: none
  368. BB_DISKMON_WARNINTERVAL = "disk_space_interval,disk_inode_interval"
  369. where:
  370. disk_space_interval is:
  371. An interval of memory expressed in either
  372. G, M, or K for Gbytes, Mbytes, or Kbytes,
  373. respectively. You cannot use GB, MB, or KB.
  374. disk_inode_interval is:
  375. An interval of free inodes expressed in either
  376. G, M, or K for Gbytes, Mbytes, or Kbytes,
  377. respectively. You cannot use GB, MB, or KB.
  378. Here is an example::
  379. BB_DISKMON_DIRS = "WARN,${SSTATE_DIR},1G,100K"
  380. BB_DISKMON_WARNINTERVAL = "50M,5K"
  381. These variables cause the
  382. OpenEmbedded build system to issue subsequent warnings each time the
  383. available disk space further reduces by 50 Mbytes or the number of
  384. free inodes further reduces by 5 Kbytes in the ``${SSTATE_DIR}``
  385. directory. Subsequent warnings based on the interval occur each time
  386. a respective interval is reached beyond the initial warning (i.e. 1
  387. Gbytes and 100 Kbytes).
  388. :term:`BB_GENERATE_MIRROR_TARBALLS`
  389. Causes tarballs of the source control repositories (e.g. Git
  390. repositories), including metadata, to be placed in the
  391. :term:`DL_DIR` directory.
  392. For performance reasons, creating and placing tarballs of these
  393. repositories is not the default action by the OpenEmbedded build
  394. system.
  395. ::
  396. BB_GENERATE_MIRROR_TARBALLS = "1"
  397. Set this variable in your
  398. ``local.conf`` file in the :term:`Build Directory`.
  399. Once you have the tarballs containing your source files, you can
  400. clean up your :term:`DL_DIR` directory by deleting any Git or other
  401. source control work directories.
  402. :term:`BB_NUMBER_THREADS`
  403. The maximum number of tasks BitBake should run in parallel at any one
  404. time. The OpenEmbedded build system automatically configures this
  405. variable to be equal to the number of cores on the build system. For
  406. example, a system with a dual core processor that also uses
  407. hyper-threading causes the :term:`BB_NUMBER_THREADS` variable to default
  408. to "4".
  409. For single socket systems (i.e. one CPU), you should not have to
  410. override this variable to gain optimal parallelism during builds.
  411. However, if you have very large systems that employ multiple physical
  412. CPUs, you might want to make sure the :term:`BB_NUMBER_THREADS` variable
  413. is not set higher than "20".
  414. For more information on speeding up builds, see the
  415. ":ref:`dev-manual/speeding-up-build:speeding up a build`"
  416. section in the Yocto Project Development Tasks Manual.
  417. :term:`BB_SERVER_TIMEOUT`
  418. Specifies the time (in seconds) after which to unload the BitBake
  419. server due to inactivity. Set :term:`BB_SERVER_TIMEOUT` to determine how
  420. long the BitBake server stays resident between invocations.
  421. For example, the following statement in your ``local.conf`` file
  422. instructs the server to be unloaded after 20 seconds of inactivity::
  423. BB_SERVER_TIMEOUT = "20"
  424. If you want the server to never be unloaded,
  425. set :term:`BB_SERVER_TIMEOUT` to "-1".
  426. :term:`BBCLASSEXTEND`
  427. Allows you to extend a recipe so that it builds variants of the
  428. software. There are common variants for recipes as "natives" like
  429. ``quilt-native``, which is a copy of Quilt built to run on the build
  430. system; "crosses" such as ``gcc-cross``, which is a compiler built to
  431. run on the build machine but produces binaries that run on the target
  432. :term:`MACHINE`; "nativesdk", which targets the SDK
  433. machine instead of :term:`MACHINE`; and "mulitlibs" in the form
  434. "``multilib:``\ multilib_name".
  435. To build a different variant of the recipe with a minimal amount of
  436. code, it usually is as simple as adding the following to your recipe::
  437. BBCLASSEXTEND =+ "native nativesdk"
  438. BBCLASSEXTEND =+ "multilib:multilib_name"
  439. .. note::
  440. Internally, the :term:`BBCLASSEXTEND` mechanism generates recipe
  441. variants by rewriting variable values and applying overrides such
  442. as ``:class-native``. For example, to generate a native version of
  443. a recipe, a :term:`DEPENDS` on "foo" is rewritten
  444. to a :term:`DEPENDS` on "foo-native".
  445. Even when using :term:`BBCLASSEXTEND`, the recipe is only parsed once.
  446. Parsing once adds some limitations. For example, it is not
  447. possible to include a different file depending on the variant,
  448. since ``include`` statements are processed when the recipe is
  449. parsed.
  450. :term:`BBFILE_COLLECTIONS`
  451. Lists the names of configured layers. These names are used to find
  452. the other ``BBFILE_*`` variables. Typically, each layer will append
  453. its name to this variable in its ``conf/layer.conf`` file.
  454. :term:`BBFILE_PATTERN`
  455. Variable that expands to match files from
  456. :term:`BBFILES` in a particular layer. This variable
  457. is used in the ``conf/layer.conf`` file and must be suffixed with the
  458. name of the specific layer (e.g. ``BBFILE_PATTERN_emenlow``).
  459. :term:`BBFILE_PRIORITY`
  460. Assigns the priority for recipe files in each layer.
  461. This variable is useful in situations where the same recipe appears
  462. in more than one layer. Setting this variable allows you to
  463. prioritize a layer against other layers that contain the same recipe
  464. --- effectively letting you control the precedence for the multiple
  465. layers. The precedence established through this variable stands
  466. regardless of a recipe's version (:term:`PV` variable). For
  467. example, a layer that has a recipe with a higher :term:`PV` value but for
  468. which the :term:`BBFILE_PRIORITY` is set to have a lower precedence still
  469. has a lower precedence.
  470. A larger value for the :term:`BBFILE_PRIORITY` variable results in a
  471. higher precedence. For example, the value 6 has a higher precedence
  472. than the value 5. If not specified, the :term:`BBFILE_PRIORITY` variable
  473. is set based on layer dependencies (see the :term:`LAYERDEPENDS` variable
  474. for more information. The default priority, if unspecified for a
  475. layer with no dependencies, is the lowest defined priority + 1 (or 1
  476. if no priorities are defined).
  477. .. tip::
  478. You can use the command ``bitbake-layers show-layers``
  479. to list all configured layers along with their priorities.
  480. :term:`BBFILES`
  481. A space-separated list of recipe files BitBake uses to build
  482. software.
  483. When specifying recipe files, you can pattern match using Python's
  484. `glob <https://docs.python.org/3/library/glob.html>`_ syntax.
  485. For details on the syntax, see the documentation by following the
  486. previous link.
  487. :term:`BBFILES_DYNAMIC`
  488. Activates content when identified layers are present. You identify
  489. the layers by the collections that the layers define.
  490. Use the :term:`BBFILES_DYNAMIC` variable to avoid ``.bbappend`` files
  491. whose corresponding ``.bb`` file is in a layer that attempts to
  492. modify other layers through ``.bbappend`` but does not want to
  493. introduce a hard dependency on those other layers.
  494. Use the following form for :term:`BBFILES_DYNAMIC`:
  495. ``collection_name:filename_pattern``.
  496. The following example identifies two collection names and two
  497. filename patterns::
  498. BBFILES_DYNAMIC += " \
  499. clang-layer:${LAYERDIR}/bbappends/meta-clang/*/*/*.bbappend \
  500. core:${LAYERDIR}/bbappends/openembedded-core/meta/*/*/*.bbappend \
  501. "
  502. This next example shows an error message that occurs because invalid
  503. entries are found, which cause parsing to fail:
  504. .. code-block:: none
  505. ERROR: BBFILES_DYNAMIC entries must be of the form <collection name>:<filename pattern>, not:
  506. /work/my-layer/bbappends/meta-security-isafw/*/*/*.bbappend
  507. /work/my-layer/bbappends/openembedded-core/meta/*/*/*.bbappend
  508. :term:`BBINCLUDELOGS`
  509. Variable that controls how BitBake displays logs on build failure.
  510. :term:`BBINCLUDELOGS_LINES`
  511. If :term:`BBINCLUDELOGS` is set, specifies the
  512. maximum number of lines from the task log file to print when
  513. reporting a failed task. If you do not set :term:`BBINCLUDELOGS_LINES`,
  514. the entire log is printed.
  515. :term:`BBLAYERS`
  516. Lists the layers to enable during the build. This variable is defined
  517. in the ``bblayers.conf`` configuration file in the :term:`Build Directory`.
  518. Here is an example::
  519. BBLAYERS = " \
  520. /home/scottrif/poky/meta \
  521. /home/scottrif/poky/meta-poky \
  522. /home/scottrif/poky/meta-yocto-bsp \
  523. /home/scottrif/poky/meta-mykernel \
  524. "
  525. This example enables four layers, one of which is a custom,
  526. user-defined layer named ``meta-mykernel``.
  527. :term:`BBMASK`
  528. Prevents BitBake from processing recipes and recipe append files.
  529. You can use the :term:`BBMASK` variable to "hide" these ``.bb`` and
  530. ``.bbappend`` files. BitBake ignores any recipe or recipe append
  531. files that match any of the expressions. It is as if BitBake does not
  532. see them at all. Consequently, matching files are not parsed or
  533. otherwise used by BitBake.
  534. The values you provide are passed to Python's regular expression
  535. compiler. Consequently, the syntax follows Python's Regular
  536. Expression (re) syntax. The expressions are compared against the full
  537. paths to the files. For complete syntax information, see Python's
  538. documentation at https://docs.python.org/3/library/re.html#regular-expression-syntax.
  539. The following example uses a complete regular expression to tell
  540. BitBake to ignore all recipe and recipe append files in the
  541. ``meta-ti/recipes-misc/`` directory::
  542. BBMASK = "meta-ti/recipes-misc/"
  543. If you want to mask out multiple directories or recipes, you can
  544. specify multiple regular expression fragments. This next example
  545. masks out multiple directories and individual recipes::
  546. BBMASK += "/meta-ti/recipes-misc/ meta-ti/recipes-ti/packagegroup/"
  547. BBMASK += "/meta-oe/recipes-support/"
  548. BBMASK += "/meta-foo/.*/openldap"
  549. BBMASK += "opencv.*\.bbappend"
  550. BBMASK += "lzma"
  551. .. note::
  552. When specifying a directory name, use the trailing slash character
  553. to ensure you match just that directory name.
  554. :term:`BBMULTICONFIG`
  555. Specifies each additional separate configuration when you are
  556. building targets with multiple configurations. Use this variable in
  557. your ``conf/local.conf`` configuration file. Specify a
  558. multiconfigname for each configuration file you are using. For
  559. example, the following line specifies three configuration files::
  560. BBMULTICONFIG = "configA configB configC"
  561. Each configuration file you
  562. use must reside in the :term:`Build Directory`
  563. ``conf/multiconfig`` directory (e.g.
  564. ``build_directory/conf/multiconfig/configA.conf``).
  565. For information on how to use :term:`BBMULTICONFIG` in an environment
  566. that supports building targets with multiple configurations, see the
  567. ":ref:`dev-manual/building:building images for multiple targets using multiple configurations`"
  568. section in the Yocto Project Development Tasks Manual.
  569. :term:`BBPATH`
  570. Used by BitBake to locate ``.bbclass`` and configuration files. This
  571. variable is analogous to the ``PATH`` variable.
  572. .. note::
  573. If you run BitBake from a directory outside of the
  574. :term:`Build Directory`, you must be sure to set :term:`BBPATH`
  575. to point to the Build Directory. Set the variable as you would any
  576. environment variable and then run BitBake::
  577. $ BBPATH = "build_directory"
  578. $ export BBPATH
  579. $ bitbake target
  580. :term:`BBSERVER`
  581. If defined in the BitBake environment, :term:`BBSERVER` points to the
  582. BitBake remote server.
  583. Use the following format to export the variable to the BitBake
  584. environment::
  585. export BBSERVER=localhost:$port
  586. By default, :term:`BBSERVER` also appears in :term:`BB_BASEHASH_IGNORE_VARS`.
  587. Consequently, :term:`BBSERVER` is excluded from checksum and dependency
  588. data.
  589. :term:`BINCONFIG`
  590. When inheriting the
  591. :ref:`binconfig-disabled <ref-classes-binconfig-disabled>` class,
  592. this variable specifies binary configuration scripts to disable in
  593. favor of using ``pkg-config`` to query the information. The
  594. :ref:`binconfig-disabled <ref-classes-binconfig-disabled>` class will modify the specified scripts to
  595. return an error so that calls to them can be easily found and
  596. replaced.
  597. To add multiple scripts, separate them by spaces. Here is an example
  598. from the ``libpng`` recipe::
  599. BINCONFIG = "${bindir}/libpng-config ${bindir}/libpng16-config"
  600. :term:`BINCONFIG_GLOB`
  601. When inheriting the :ref:`binconfig <ref-classes-binconfig>` class,
  602. this variable specifies a wildcard for configuration scripts that
  603. need editing. The scripts are edited to correct any paths that have
  604. been set up during compilation so that they are correct for use when
  605. installed into the sysroot and called by the build processes of other
  606. recipes.
  607. .. note::
  608. The :term:`BINCONFIG_GLOB` variable uses
  609. `shell globbing <https://tldp.org/LDP/abs/html/globbingref.html>`__,
  610. which is recognition and expansion of wildcards during pattern
  611. matching. Shell globbing is very similar to
  612. `fnmatch <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__
  613. and `glob <https://docs.python.org/3/library/glob.html>`__.
  614. For more information on how this variable works, see
  615. ``meta/classes/binconfig.bbclass`` in the :term:`Source Directory`.
  616. You can also find general
  617. information on the class in the
  618. ":ref:`ref-classes-binconfig`" section.
  619. :term:`BP`
  620. The base recipe name and version but without any special recipe name
  621. suffix (i.e. ``-native``, ``lib64-``, and so forth). :term:`BP` is
  622. comprised of the following::
  623. ${BPN}-${PV}
  624. :term:`BPN`
  625. This variable is a version of the :term:`PN` variable with
  626. common prefixes and suffixes removed, such as ``nativesdk-``,
  627. ``-cross``, ``-native``, and multilib's ``lib64-`` and ``lib32-``.
  628. The exact lists of prefixes and suffixes removed are specified by the
  629. :term:`MLPREFIX` and
  630. :term:`SPECIAL_PKGSUFFIX` variables,
  631. respectively.
  632. :term:`BUGTRACKER`
  633. Specifies a URL for an upstream bug tracking website for a recipe.
  634. The OpenEmbedded build system does not use this variable. Rather, the
  635. variable is a useful pointer in case a bug in the software being
  636. built needs to be manually reported.
  637. :term:`BUILD_ARCH`
  638. Specifies the architecture of the build host (e.g. ``i686``). The
  639. OpenEmbedded build system sets the value of :term:`BUILD_ARCH` from the
  640. machine name reported by the ``uname`` command.
  641. :term:`BUILD_AS_ARCH`
  642. Specifies the architecture-specific assembler flags for the build
  643. host. By default, the value of :term:`BUILD_AS_ARCH` is empty.
  644. :term:`BUILD_CC_ARCH`
  645. Specifies the architecture-specific C compiler flags for the build
  646. host. By default, the value of :term:`BUILD_CC_ARCH` is empty.
  647. :term:`BUILD_CCLD`
  648. Specifies the linker command to be used for the build host when the C
  649. compiler is being used as the linker. By default, :term:`BUILD_CCLD`
  650. points to GCC and passes as arguments the value of
  651. :term:`BUILD_CC_ARCH`, assuming
  652. :term:`BUILD_CC_ARCH` is set.
  653. :term:`BUILD_CFLAGS`
  654. Specifies the flags to pass to the C compiler when building for the
  655. build host. When building in the ``-native`` context,
  656. :term:`CFLAGS` is set to the value of this variable by
  657. default.
  658. :term:`BUILD_CPPFLAGS`
  659. Specifies the flags to pass to the C preprocessor (i.e. to both the C
  660. and the C++ compilers) when building for the build host. When
  661. building in the ``-native`` context, :term:`CPPFLAGS`
  662. is set to the value of this variable by default.
  663. :term:`BUILD_CXXFLAGS`
  664. Specifies the flags to pass to the C++ compiler when building for the
  665. build host. When building in the ``-native`` context,
  666. :term:`CXXFLAGS` is set to the value of this variable
  667. by default.
  668. :term:`BUILD_FC`
  669. Specifies the Fortran compiler command for the build host. By
  670. default, :term:`BUILD_FC` points to Gfortran and passes as arguments the
  671. value of :term:`BUILD_CC_ARCH`, assuming
  672. :term:`BUILD_CC_ARCH` is set.
  673. :term:`BUILD_LD`
  674. Specifies the linker command for the build host. By default,
  675. :term:`BUILD_LD` points to the GNU linker (ld) and passes as arguments
  676. the value of :term:`BUILD_LD_ARCH`, assuming
  677. :term:`BUILD_LD_ARCH` is set.
  678. :term:`BUILD_LD_ARCH`
  679. Specifies architecture-specific linker flags for the build host. By
  680. default, the value of :term:`BUILD_LD_ARCH` is empty.
  681. :term:`BUILD_LDFLAGS`
  682. Specifies the flags to pass to the linker when building for the build
  683. host. When building in the ``-native`` context,
  684. :term:`LDFLAGS` is set to the value of this variable
  685. by default.
  686. :term:`BUILD_OPTIMIZATION`
  687. Specifies the optimization flags passed to the C compiler when
  688. building for the build host or the SDK. The flags are passed through
  689. the :term:`BUILD_CFLAGS` and
  690. :term:`BUILDSDK_CFLAGS` default values.
  691. The default value of the :term:`BUILD_OPTIMIZATION` variable is "-O2
  692. -pipe".
  693. :term:`BUILD_OS`
  694. Specifies the operating system in use on the build host (e.g.
  695. "linux"). The OpenEmbedded build system sets the value of
  696. :term:`BUILD_OS` from the OS reported by the ``uname`` command --- the
  697. first word, converted to lower-case characters.
  698. :term:`BUILD_PREFIX`
  699. The toolchain binary prefix used for native recipes. The OpenEmbedded
  700. build system uses the :term:`BUILD_PREFIX` value to set the
  701. :term:`TARGET_PREFIX` when building for
  702. ``native`` recipes.
  703. :term:`BUILD_STRIP`
  704. Specifies the command to be used to strip debugging symbols from
  705. binaries produced for the build host. By default, :term:`BUILD_STRIP`
  706. points to
  707. ``${``\ :term:`BUILD_PREFIX`\ ``}strip``.
  708. :term:`BUILD_SYS`
  709. Specifies the system, including the architecture and the operating
  710. system, to use when building for the build host (i.e. when building
  711. ``native`` recipes).
  712. The OpenEmbedded build system automatically sets this variable based
  713. on :term:`BUILD_ARCH`,
  714. :term:`BUILD_VENDOR`, and
  715. :term:`BUILD_OS`. You do not need to set the
  716. :term:`BUILD_SYS` variable yourself.
  717. :term:`BUILD_VENDOR`
  718. Specifies the vendor name to use when building for the build host.
  719. The default value is an empty string ("").
  720. :term:`BUILDDIR`
  721. Points to the location of the :term:`Build Directory`.
  722. You can define this directory indirectly through the
  723. :ref:`structure-core-script` script by passing in a Build
  724. Directory path when you run the script. If you run the script and do
  725. not provide a Build Directory path, the :term:`BUILDDIR` defaults to
  726. ``build`` in the current directory.
  727. :term:`BUILDHISTORY_COMMIT`
  728. When inheriting the :ref:`buildhistory <ref-classes-buildhistory>`
  729. class, this variable specifies whether or not to commit the build
  730. history output in a local Git repository. If set to "1", this local
  731. repository will be maintained automatically by the :ref:`buildhistory <ref-classes-buildhistory>`
  732. class and a commit will be created on every build for changes to each
  733. top-level subdirectory of the build history output (images, packages,
  734. and sdk). If you want to track changes to build history over time,
  735. you should set this value to "1".
  736. By default, the :ref:`buildhistory <ref-classes-buildhistory>` class does not commit the build
  737. history output in a local Git repository::
  738. BUILDHISTORY_COMMIT ?= "0"
  739. :term:`BUILDHISTORY_COMMIT_AUTHOR`
  740. When inheriting the :ref:`buildhistory <ref-classes-buildhistory>`
  741. class, this variable specifies the author to use for each Git commit.
  742. In order for the :term:`BUILDHISTORY_COMMIT_AUTHOR` variable to work, the
  743. :term:`BUILDHISTORY_COMMIT` variable must
  744. be set to "1".
  745. Git requires that the value you provide for the
  746. :term:`BUILDHISTORY_COMMIT_AUTHOR` variable takes the form of "name
  747. email@host". Providing an email address or host that is not valid
  748. does not produce an error.
  749. By default, the :ref:`buildhistory <ref-classes-buildhistory>` class sets the variable as follows::
  750. BUILDHISTORY_COMMIT_AUTHOR ?= "buildhistory <buildhistory@${DISTRO}>"
  751. :term:`BUILDHISTORY_DIR`
  752. When inheriting the :ref:`buildhistory <ref-classes-buildhistory>`
  753. class, this variable specifies the directory in which build history
  754. information is kept. For more information on how the variable works,
  755. see the :ref:`ref-classes-buildhistory` class.
  756. By default, the :ref:`buildhistory <ref-classes-buildhistory>` class sets the directory as follows::
  757. BUILDHISTORY_DIR ?= "${TOPDIR}/buildhistory"
  758. :term:`BUILDHISTORY_FEATURES`
  759. When inheriting the :ref:`buildhistory <ref-classes-buildhistory>`
  760. class, this variable specifies the build history features to be
  761. enabled. For more information on how build history works, see the
  762. ":ref:`dev-manual/build-quality:maintaining build output quality`"
  763. section in the Yocto Project Development Tasks Manual.
  764. You can specify these features in the form of a space-separated list:
  765. - *image:* Analysis of the contents of images, which includes the
  766. list of installed packages among other things.
  767. - *package:* Analysis of the contents of individual packages.
  768. - *sdk:* Analysis of the contents of the software development kit
  769. (SDK).
  770. - *task:* Save output file signatures for
  771. :ref:`shared state <overview-manual/concepts:shared state cache>`
  772. (sstate) tasks.
  773. This saves one file per task and lists the SHA-256 checksums for
  774. each file staged (i.e. the output of the task).
  775. By default, the :ref:`buildhistory <ref-classes-buildhistory>` class enables the following
  776. features::
  777. BUILDHISTORY_FEATURES ?= "image package sdk"
  778. :term:`BUILDHISTORY_IMAGE_FILES`
  779. When inheriting the :ref:`buildhistory <ref-classes-buildhistory>`
  780. class, this variable specifies a list of paths to files copied from
  781. the image contents into the build history directory under an
  782. "image-files" directory in the directory for the image, so that you
  783. can track the contents of each file. The default is to copy
  784. ``/etc/passwd`` and ``/etc/group``, which allows you to monitor for
  785. changes in user and group entries. You can modify the list to include
  786. any file. Specifying an invalid path does not produce an error.
  787. Consequently, you can include files that might not always be present.
  788. By default, the :ref:`buildhistory <ref-classes-buildhistory>` class provides paths to the
  789. following files::
  790. BUILDHISTORY_IMAGE_FILES ?= "/etc/passwd /etc/group"
  791. :term:`BUILDHISTORY_PATH_PREFIX_STRIP`
  792. When inheriting the :ref:`buildhistory <ref-classes-buildhistory>`
  793. class, this variable specifies a common path prefix that should be
  794. stripped off the beginning of paths in the task signature list when the
  795. ``task`` feature is active in :term:`BUILDHISTORY_FEATURES`. This can be
  796. useful when build history is populated from multiple sources that may not
  797. all use the same top level directory.
  798. By default, the :ref:`buildhistory <ref-classes-buildhistory>` class sets the variable as follows::
  799. BUILDHISTORY_PATH_PREFIX_STRIP ?= ""
  800. In this case, no prefixes will be stripped.
  801. :term:`BUILDHISTORY_PUSH_REPO`
  802. When inheriting the :ref:`buildhistory <ref-classes-buildhistory>`
  803. class, this variable optionally specifies a remote repository to
  804. which build history pushes Git changes. In order for
  805. :term:`BUILDHISTORY_PUSH_REPO` to work,
  806. :term:`BUILDHISTORY_COMMIT` must be set to
  807. "1".
  808. The repository should correspond to a remote address that specifies a
  809. repository as understood by Git, or alternatively to a remote name
  810. that you have set up manually using ``git remote`` within the local
  811. repository.
  812. By default, the :ref:`buildhistory <ref-classes-buildhistory>` class sets the variable as follows::
  813. BUILDHISTORY_PUSH_REPO ?= ""
  814. :term:`BUILDSDK_CFLAGS`
  815. Specifies the flags to pass to the C compiler when building for the
  816. SDK. When building in the ``nativesdk-`` context,
  817. :term:`CFLAGS` is set to the value of this variable by
  818. default.
  819. :term:`BUILDSDK_CPPFLAGS`
  820. Specifies the flags to pass to the C pre-processor (i.e. to both the
  821. C and the C++ compilers) when building for the SDK. When building in
  822. the ``nativesdk-`` context, :term:`CPPFLAGS` is set
  823. to the value of this variable by default.
  824. :term:`BUILDSDK_CXXFLAGS`
  825. Specifies the flags to pass to the C++ compiler when building for the
  826. SDK. When building in the ``nativesdk-`` context,
  827. :term:`CXXFLAGS` is set to the value of this variable
  828. by default.
  829. :term:`BUILDSDK_LDFLAGS`
  830. Specifies the flags to pass to the linker when building for the SDK.
  831. When building in the ``nativesdk-`` context,
  832. :term:`LDFLAGS` is set to the value of this variable
  833. by default.
  834. :term:`BUILDSTATS_BASE`
  835. Points to the location of the directory that holds build statistics
  836. when you use and enable the
  837. :ref:`buildstats <ref-classes-buildstats>` class. The
  838. :term:`BUILDSTATS_BASE` directory defaults to
  839. ``${``\ :term:`TMPDIR`\ ``}/buildstats/``.
  840. :term:`BUSYBOX_SPLIT_SUID`
  841. For the BusyBox recipe, specifies whether to split the output
  842. executable file into two parts: one for features that require
  843. ``setuid root``, and one for the remaining features (i.e. those that
  844. do not require ``setuid root``).
  845. The :term:`BUSYBOX_SPLIT_SUID` variable defaults to "1", which results in
  846. splitting the output executable file. Set the variable to "0" to get
  847. a single output executable file.
  848. :term:`CACHE`
  849. Specifies the directory BitBake uses to store a cache of the
  850. :term:`Metadata` so it does not need to be parsed every time
  851. BitBake is started.
  852. :term:`CC`
  853. The minimal command and arguments used to run the C compiler.
  854. :term:`CFLAGS`
  855. Specifies the flags to pass to the C compiler. This variable is
  856. exported to an environment variable and thus made visible to the
  857. software being built during the compilation step.
  858. Default initialization for :term:`CFLAGS` varies depending on what is
  859. being built:
  860. - :term:`TARGET_CFLAGS` when building for the
  861. target
  862. - :term:`BUILD_CFLAGS` when building for the
  863. build host (i.e. ``-native``)
  864. - :term:`BUILDSDK_CFLAGS` when building for
  865. an SDK (i.e. ``nativesdk-``)
  866. :term:`CLASSOVERRIDE`
  867. An internal variable specifying the special class override that
  868. should currently apply (e.g. "class-target", "class-native", and so
  869. forth). The classes that use this variable (e.g.
  870. :ref:`native <ref-classes-native>`,
  871. :ref:`nativesdk <ref-classes-nativesdk>`, and so forth) set the
  872. variable to appropriate values.
  873. .. note::
  874. :term:`CLASSOVERRIDE` gets its default "class-target" value from the
  875. ``bitbake.conf`` file.
  876. As an example, the following override allows you to install extra
  877. files, but only when building for the target::
  878. do_install:append:class-target() {
  879. install my-extra-file ${D}${sysconfdir}
  880. }
  881. Here is an example where ``FOO`` is set to
  882. "native" when building for the build host, and to "other" when not
  883. building for the build host::
  884. FOO:class-native = "native"
  885. FOO = "other"
  886. The underlying mechanism behind :term:`CLASSOVERRIDE` is simply
  887. that it is included in the default value of
  888. :term:`OVERRIDES`.
  889. :term:`CLEANBROKEN`
  890. If set to "1" within a recipe, :term:`CLEANBROKEN` specifies that the
  891. ``make clean`` command does not work for the software being built.
  892. Consequently, the OpenEmbedded build system will not try to run
  893. ``make clean`` during the :ref:`ref-tasks-configure`
  894. task, which is the default behavior.
  895. :term:`COMBINED_FEATURES`
  896. Provides a list of hardware features that are enabled in both
  897. :term:`MACHINE_FEATURES` and
  898. :term:`DISTRO_FEATURES`. This select list of
  899. features contains features that make sense to be controlled both at
  900. the machine and distribution configuration level. For example, the
  901. "bluetooth" feature requires hardware support but should also be
  902. optional at the distribution level, in case the hardware supports
  903. Bluetooth but you do not ever intend to use it.
  904. :term:`COMMERCIAL_AUDIO_PLUGINS`
  905. This variable is specific to the :yocto_git:`GStreamer recipes
  906. </poky/tree/meta/recipes-multimedia/gstreamer/gstreamer1.0-meta-base.bb>`.
  907. It allows to build the GStreamer `"ugly"
  908. <https://github.com/GStreamer/gst-plugins-ugly>`__ and
  909. `"bad" <https://github.com/GStreamer/gst-plugins-bad>`__ audio plugins.
  910. See the :ref:`dev-manual/licenses:other variables related to commercial licenses`
  911. section for usage details.
  912. :term:`COMMERCIAL_VIDEO_PLUGINS`
  913. This variable is specific to the :yocto_git:`GStreamer recipes
  914. </poky/tree/meta/recipes-multimedia/gstreamer/gstreamer1.0-meta-base.bb>`.
  915. It allows to build the GStreamer `"ugly"
  916. <https://github.com/GStreamer/gst-plugins-ugly>`__ and
  917. `"bad" <https://github.com/GStreamer/gst-plugins-bad>`__ video plugins.
  918. See the :ref:`dev-manual/licenses:other variables related to commercial licenses`
  919. section for usage details.
  920. :term:`COMMON_LICENSE_DIR`
  921. Points to ``meta/files/common-licenses`` in the
  922. :term:`Source Directory`, which is where generic license
  923. files reside.
  924. :term:`COMPATIBLE_HOST`
  925. A regular expression that resolves to one or more hosts (when the
  926. recipe is native) or one or more targets (when the recipe is
  927. non-native) with which a recipe is compatible. The regular expression
  928. is matched against :term:`HOST_SYS`. You can use the
  929. variable to stop recipes from being built for classes of systems with
  930. which the recipes are not compatible. Stopping these builds is
  931. particularly useful with kernels. The variable also helps to increase
  932. parsing speed since the build system skips parsing recipes not
  933. compatible with the current system.
  934. :term:`COMPATIBLE_MACHINE`
  935. A regular expression that resolves to one or more target machines
  936. with which a recipe is compatible. The regular expression is matched
  937. against :term:`MACHINEOVERRIDES`. You can use
  938. the variable to stop recipes from being built for machines with which
  939. the recipes are not compatible. Stopping these builds is particularly
  940. useful with kernels. The variable also helps to increase parsing
  941. speed since the build system skips parsing recipes not compatible
  942. with the current machine.
  943. If one wants to have a recipe only available for some architectures
  944. (here ``aarch64`` and ``mips64``), the following can be used::
  945. COMPATIBLE_MACHINE = "^$"
  946. COMPATIBLE_MACHINE:arch64 = "^(aarch64)$"
  947. COMPATIBLE_MACHINE:mips64 = "^(mips64)$"
  948. The first line means "match all machines whose :term:`MACHINEOVERRIDES`
  949. contains the empty string", which will always be none.
  950. The second is for matching all machines whose :term:`MACHINEOVERRIDES`
  951. contains one override which is exactly ``aarch64``.
  952. The third is for matching all machines whose :term:`MACHINEOVERRIDES`
  953. contains one override which is exactly ``mips64``.
  954. The same could be achieved with::
  955. COMPATIBLE_MACHINE = "^(aarch64|mips64)$"
  956. .. note::
  957. When :term:`COMPATIBLE_MACHINE` is set in a recipe inherits from
  958. native, the recipe is always skipped. All native recipes must be
  959. entirely target independent and should not rely on :term:`MACHINE`.
  960. :term:`COMPLEMENTARY_GLOB`
  961. Defines wildcards to match when installing a list of complementary
  962. packages for all the packages explicitly (or implicitly) installed in
  963. an image.
  964. .. note::
  965. The :term:`COMPLEMENTARY_GLOB` variable uses Unix filename pattern matching
  966. (`fnmatch <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__),
  967. which is similar to the Unix style pathname pattern expansion
  968. (`glob <https://docs.python.org/3/library/glob.html>`__).
  969. The resulting list of complementary packages is associated with an
  970. item that can be added to
  971. :term:`IMAGE_FEATURES`. An example usage of
  972. this is the "dev-pkgs" item that when added to :term:`IMAGE_FEATURES`
  973. will install -dev packages (containing headers and other development
  974. files) for every package in the image.
  975. To add a new feature item pointing to a wildcard, use a variable flag
  976. to specify the feature item name and use the value to specify the
  977. wildcard. Here is an example::
  978. COMPLEMENTARY_GLOB[dev-pkgs] = '*-dev'
  979. :term:`COMPONENTS_DIR`
  980. Stores sysroot components for each recipe. The OpenEmbedded build
  981. system uses :term:`COMPONENTS_DIR` when constructing recipe-specific
  982. sysroots for other recipes.
  983. The default is
  984. "``${``\ :term:`STAGING_DIR`\ ``}-components``."
  985. (i.e.
  986. "``${``\ :term:`TMPDIR`\ ``}/sysroots-components``").
  987. :term:`CONF_VERSION`
  988. Tracks the version of the local configuration file (i.e.
  989. ``local.conf``). The value for :term:`CONF_VERSION` increments each time
  990. ``build/conf/`` compatibility changes.
  991. :term:`CONFFILES`
  992. Identifies editable or configurable files that are part of a package.
  993. If the Package Management System (PMS) is being used to update
  994. packages on the target system, it is possible that configuration
  995. files you have changed after the original installation and that you
  996. now want to remain unchanged are overwritten. In other words,
  997. editable files might exist in the package that you do not want reset
  998. as part of the package update process. You can use the :term:`CONFFILES`
  999. variable to list the files in the package that you wish to prevent
  1000. the PMS from overwriting during this update process.
  1001. To use the :term:`CONFFILES` variable, provide a package name override
  1002. that identifies the resulting package. Then, provide a
  1003. space-separated list of files. Here is an example::
  1004. CONFFILES:${PN} += "${sysconfdir}/file1 \
  1005. ${sysconfdir}/file2 ${sysconfdir}/file3"
  1006. There is a relationship between the :term:`CONFFILES` and :term:`FILES`
  1007. variables. The files listed within :term:`CONFFILES` must be a subset of
  1008. the files listed within :term:`FILES`. Because the configuration files
  1009. you provide with :term:`CONFFILES` are simply being identified so that
  1010. the PMS will not overwrite them, it makes sense that the files must
  1011. already be included as part of the package through the :term:`FILES`
  1012. variable.
  1013. .. note::
  1014. When specifying paths as part of the :term:`CONFFILES` variable, it is
  1015. good practice to use appropriate path variables.
  1016. For example, ``${sysconfdir}`` rather than ``/etc`` or ``${bindir}``
  1017. rather than ``/usr/bin``. You can find a list of these variables at
  1018. the top of the ``meta/conf/bitbake.conf`` file in the
  1019. :term:`Source Directory`.
  1020. :term:`CONFIG_INITRAMFS_SOURCE`
  1021. Identifies the initial RAM filesystem (initramfs) source files. The
  1022. OpenEmbedded build system receives and uses this kernel Kconfig
  1023. variable as an environment variable. By default, the variable is set
  1024. to null ("").
  1025. The :term:`CONFIG_INITRAMFS_SOURCE` can be either a single cpio archive
  1026. with a ``.cpio`` suffix or a space-separated list of directories and
  1027. files for building the initramfs image. A cpio archive should contain
  1028. a filesystem archive to be used as an initramfs image. Directories
  1029. should contain a filesystem layout to be included in the initramfs
  1030. image. Files should contain entries according to the format described
  1031. by the ``usr/gen_init_cpio`` program in the kernel tree.
  1032. If you specify multiple directories and files, the initramfs image
  1033. will be the aggregate of all of them.
  1034. For information on creating an :term:`Initramfs`, see the
  1035. ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  1036. in the Yocto Project Development Tasks Manual.
  1037. :term:`CONFIG_SITE`
  1038. A list of files that contains ``autoconf`` test results relevant to
  1039. the current build. This variable is used by the Autotools utilities
  1040. when running ``configure``.
  1041. :term:`CONFIGURE_FLAGS`
  1042. The minimal arguments for GNU configure.
  1043. :term:`CONFIGURE_SCRIPT`
  1044. When using the :ref:`ref-classes-autotools` class, the
  1045. :term:`CONFIGURE_SCRIPT` variable stores the location of the ``configure``
  1046. script for the Autotools build system. The default definition for this
  1047. variable is::
  1048. CONFIGURE_SCRIPT ?= "${AUTOTOOLS_SCRIPT_PATH}/configure"
  1049. Where :term:`AUTOTOOLS_SCRIPT_PATH` is the location of the of the
  1050. Autotools build system scripts, which defaults to :term:`S`.
  1051. :term:`CONFLICT_DISTRO_FEATURES`
  1052. When inheriting the
  1053. :ref:`features_check <ref-classes-features_check>`
  1054. class, this variable identifies distribution features that would be
  1055. in conflict should the recipe be built. In other words, if the
  1056. :term:`CONFLICT_DISTRO_FEATURES` variable lists a feature that also
  1057. appears in :term:`DISTRO_FEATURES` within the current configuration, then
  1058. the recipe will be skipped, and if the build system attempts to build
  1059. the recipe then an error will be triggered.
  1060. :term:`CONVERSION_CMD`
  1061. This variable is used for storing image conversion commands.
  1062. Image conversion can convert an image into different objects like:
  1063. - Compressed version of the image
  1064. - Checksums for the image
  1065. An example of :term:`CONVERSION_CMD` from :ref:`image-types
  1066. <ref-classes-image_types>` class is::
  1067. CONVERSION_CMD:lzo = "lzop -9 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
  1068. :term:`COPY_LIC_DIRS`
  1069. If set to "1" along with the
  1070. :term:`COPY_LIC_MANIFEST` variable, the
  1071. OpenEmbedded build system copies into the image the license files,
  1072. which are located in ``/usr/share/common-licenses``, for each
  1073. package. The license files are placed in directories within the image
  1074. itself during build time.
  1075. .. note::
  1076. The :term:`COPY_LIC_DIRS` does not offer a path for adding licenses for
  1077. newly installed packages to an image, which might be most suitable for
  1078. read-only filesystems that cannot be upgraded. See the
  1079. :term:`LICENSE_CREATE_PACKAGE` variable for additional information.
  1080. You can also reference the ":ref:`dev-manual/licenses:providing license text`"
  1081. section in the Yocto Project Development Tasks Manual for
  1082. information on providing license text.
  1083. :term:`COPY_LIC_MANIFEST`
  1084. If set to "1", the OpenEmbedded build system copies the license
  1085. manifest for the image to
  1086. ``/usr/share/common-licenses/license.manifest`` within the image
  1087. itself during build time.
  1088. .. note::
  1089. The :term:`COPY_LIC_MANIFEST` does not offer a path for adding licenses for
  1090. newly installed packages to an image, which might be most suitable for
  1091. read-only filesystems that cannot be upgraded. See the
  1092. :term:`LICENSE_CREATE_PACKAGE` variable for additional information.
  1093. You can also reference the ":ref:`dev-manual/licenses:providing license text`"
  1094. section in the Yocto Project Development Tasks Manual for
  1095. information on providing license text.
  1096. :term:`COPYLEFT_LICENSE_EXCLUDE`
  1097. A space-separated list of licenses to exclude from the source
  1098. archived by the :ref:`archiver <ref-classes-archiver>` class. In
  1099. other words, if a license in a recipe's
  1100. :term:`LICENSE` value is in the value of
  1101. :term:`COPYLEFT_LICENSE_EXCLUDE`, then its source is not archived by the
  1102. class.
  1103. .. note::
  1104. The :term:`COPYLEFT_LICENSE_EXCLUDE` variable takes precedence over the
  1105. :term:`COPYLEFT_LICENSE_INCLUDE` variable.
  1106. The default value, which is "CLOSED Proprietary", for
  1107. :term:`COPYLEFT_LICENSE_EXCLUDE` is set by the
  1108. :ref:`copyleft_filter <ref-classes-copyleft_filter>` class, which
  1109. is inherited by the :ref:`archiver <ref-classes-archiver>` class.
  1110. :term:`COPYLEFT_LICENSE_INCLUDE`
  1111. A space-separated list of licenses to include in the source archived
  1112. by the :ref:`archiver <ref-classes-archiver>` class. In other
  1113. words, if a license in a recipe's :term:`LICENSE`
  1114. value is in the value of :term:`COPYLEFT_LICENSE_INCLUDE`, then its
  1115. source is archived by the class.
  1116. The default value is set by the
  1117. :ref:`copyleft_filter <ref-classes-copyleft_filter>` class, which
  1118. is inherited by the :ref:`archiver <ref-classes-archiver>` class. The default value includes
  1119. "GPL*", "LGPL*", and "AGPL*".
  1120. :term:`COPYLEFT_PN_EXCLUDE`
  1121. A list of recipes to exclude in the source archived by the
  1122. :ref:`archiver <ref-classes-archiver>` class. The
  1123. :term:`COPYLEFT_PN_EXCLUDE` variable overrides the license inclusion and
  1124. exclusion caused through the
  1125. :term:`COPYLEFT_LICENSE_INCLUDE` and
  1126. :term:`COPYLEFT_LICENSE_EXCLUDE`
  1127. variables, respectively.
  1128. The default value, which is "" indicating to not explicitly exclude
  1129. any recipes by name, for :term:`COPYLEFT_PN_EXCLUDE` is set by the
  1130. :ref:`copyleft_filter <ref-classes-copyleft_filter>` class, which
  1131. is inherited by the :ref:`archiver <ref-classes-archiver>` class.
  1132. :term:`COPYLEFT_PN_INCLUDE`
  1133. A list of recipes to include in the source archived by the
  1134. :ref:`archiver <ref-classes-archiver>` class. The
  1135. :term:`COPYLEFT_PN_INCLUDE` variable overrides the license inclusion and
  1136. exclusion caused through the
  1137. :term:`COPYLEFT_LICENSE_INCLUDE` and
  1138. :term:`COPYLEFT_LICENSE_EXCLUDE`
  1139. variables, respectively.
  1140. The default value, which is "" indicating to not explicitly include
  1141. any recipes by name, for :term:`COPYLEFT_PN_INCLUDE` is set by the
  1142. :ref:`copyleft_filter <ref-classes-copyleft_filter>` class, which
  1143. is inherited by the :ref:`archiver <ref-classes-archiver>` class.
  1144. :term:`COPYLEFT_RECIPE_TYPES`
  1145. A space-separated list of recipe types to include in the source
  1146. archived by the :ref:`archiver <ref-classes-archiver>` class.
  1147. Recipe types are ``target``, ``native``, ``nativesdk``, ``cross``,
  1148. ``crosssdk``, and ``cross-canadian``.
  1149. The default value, which is "target*", for :term:`COPYLEFT_RECIPE_TYPES`
  1150. is set by the :ref:`copyleft_filter <ref-classes-copyleft_filter>`
  1151. class, which is inherited by the :ref:`archiver <ref-classes-archiver>` class.
  1152. :term:`CORE_IMAGE_EXTRA_INSTALL`
  1153. Specifies the list of packages to be added to the image. You should
  1154. only set this variable in the ``local.conf`` configuration file found
  1155. in the :term:`Build Directory`.
  1156. This variable replaces ``POKY_EXTRA_INSTALL``, which is no longer
  1157. supported.
  1158. :term:`COREBASE`
  1159. Specifies the parent directory of the OpenEmbedded-Core Metadata
  1160. layer (i.e. ``meta``).
  1161. It is an important distinction that :term:`COREBASE` points to the parent
  1162. of this layer and not the layer itself. Consider an example where you
  1163. have cloned the Poky Git repository and retained the ``poky`` name
  1164. for your local copy of the repository. In this case, :term:`COREBASE`
  1165. points to the ``poky`` folder because it is the parent directory of
  1166. the ``poky/meta`` layer.
  1167. :term:`COREBASE_FILES`
  1168. Lists files from the :term:`COREBASE` directory that
  1169. should be copied other than the layers listed in the
  1170. ``bblayers.conf`` file. The :term:`COREBASE_FILES` variable allows
  1171. to copy metadata from the OpenEmbedded build system
  1172. into the extensible SDK.
  1173. Explicitly listing files in :term:`COREBASE` is needed because it
  1174. typically contains build directories and other files that should not
  1175. normally be copied into the extensible SDK. Consequently, the value
  1176. of :term:`COREBASE_FILES` is used in order to only copy the files that
  1177. are actually needed.
  1178. :term:`CPP`
  1179. The minimal command and arguments used to run the C preprocessor.
  1180. :term:`CPPFLAGS`
  1181. Specifies the flags to pass to the C pre-processor (i.e. to both the
  1182. C and the C++ compilers). This variable is exported to an environment
  1183. variable and thus made visible to the software being built during the
  1184. compilation step.
  1185. Default initialization for :term:`CPPFLAGS` varies depending on what is
  1186. being built:
  1187. - :term:`TARGET_CPPFLAGS` when building for
  1188. the target
  1189. - :term:`BUILD_CPPFLAGS` when building for the
  1190. build host (i.e. ``-native``)
  1191. - :term:`BUILDSDK_CPPFLAGS` when building
  1192. for an SDK (i.e. ``nativesdk-``)
  1193. :term:`CROSS_COMPILE`
  1194. The toolchain binary prefix for the target tools. The
  1195. :term:`CROSS_COMPILE` variable is the same as the
  1196. :term:`TARGET_PREFIX` variable.
  1197. .. note::
  1198. The OpenEmbedded build system sets the :term:`CROSS_COMPILE`
  1199. variable only in certain contexts (e.g. when building for kernel
  1200. and kernel module recipes).
  1201. :term:`CVE_CHECK_CREATE_MANIFEST`
  1202. Specifies whether to create a CVE manifest to place in the deploy
  1203. directory. The default is "1".
  1204. :term:`CVE_CHECK_IGNORE`
  1205. The list of CVE IDs which are ignored. Here is
  1206. an example from the :oe_layerindex:`Python3 recipe</layerindex/recipe/23823>`::
  1207. # This is windows only issue.
  1208. CVE_CHECK_IGNORE += "CVE-2020-15523"
  1209. :term:`CVE_CHECK_MANIFEST_JSON`
  1210. Specifies the path to the CVE manifest in JSON format. See
  1211. :term:`CVE_CHECK_CREATE_MANIFEST`.
  1212. :term:`CVE_CHECK_REPORT_PATCHED`
  1213. Specifies whether or not the :ref:`ref-classes-cve-check`
  1214. class should report patched or ignored CVEs. The default is "1", but you
  1215. may wish to set it to "0" if you do not need patched or ignored CVEs in
  1216. the logs.
  1217. :term:`CVE_CHECK_SHOW_WARNINGS`
  1218. Specifies whether or not the :ref:`cve-check <ref-classes-cve-check>`
  1219. class should generate warning messages on the console when unpatched
  1220. CVEs are found. The default is "1", but you may wish to set it to "0" if
  1221. you are already examining/processing the logs after the build has
  1222. completed and thus do not need the warning messages.
  1223. :term:`CVE_CHECK_SKIP_RECIPE`
  1224. The list of package names (:term:`PN`) for which
  1225. CVEs (Common Vulnerabilities and Exposures) are ignored.
  1226. :term:`CVE_DB_UPDATE_INTERVAL`
  1227. Specifies the CVE database update interval in seconds, as used by
  1228. ``cve-update-db-native``. The default value is "86400" i.e. once a day
  1229. (24*60*60). If the value is set to "0" then the update will be forced
  1230. every time. Alternatively, a negative value e.g. "-1" will disable
  1231. updates entirely.
  1232. :term:`CVE_PRODUCT`
  1233. In a recipe, defines the name used to match the recipe name
  1234. against the name in the upstream `NIST CVE database <https://nvd.nist.gov/>`__.
  1235. The default is ${:term:`BPN`} (except for recipes that inherit the
  1236. :ref:`pypi <ref-classes-pypi>` class where it is set based upon
  1237. :term:`PYPI_PACKAGE`). If it does not match the name in the NIST CVE
  1238. database or matches with multiple entries in the database, the default
  1239. value needs to be changed.
  1240. Here is an example from the :oe_layerindex:`Berkeley DB recipe </layerindex/recipe/544>`::
  1241. CVE_PRODUCT = "oracle_berkeley_db berkeley_db"
  1242. Sometimes the product name is not specific enough, for example
  1243. "tar" has been matching CVEs for the GNU ``tar`` package and also
  1244. the ``node-tar`` node.js extension. To avoid this problem, use the
  1245. vendor name as a prefix. The syntax for this is::
  1246. CVE_PRODUCT = "vendor:package"
  1247. :term:`CVE_VERSION`
  1248. In a recipe, defines the version used to match the recipe version
  1249. against the version in the `NIST CVE database <https://nvd.nist.gov/>`__
  1250. when usign :ref:`cve-check <ref-classes-cve-check>`.
  1251. The default is ${:term:`PV`} but if recipes use custom version numbers
  1252. which do not map to upstream software component release versions and the versions
  1253. used in the CVE database, then this variable can be used to set the
  1254. version number for :ref:`cve-check <ref-classes-cve-check>`. Example::
  1255. CVE_VERSION = "2.39"
  1256. :term:`CVSDIR`
  1257. The directory in which files checked out under the CVS system are
  1258. stored.
  1259. :term:`CXX`
  1260. The minimal command and arguments used to run the C++ compiler.
  1261. :term:`CXXFLAGS`
  1262. Specifies the flags to pass to the C++ compiler. This variable is
  1263. exported to an environment variable and thus made visible to the
  1264. software being built during the compilation step.
  1265. Default initialization for :term:`CXXFLAGS` varies depending on what is
  1266. being built:
  1267. - :term:`TARGET_CXXFLAGS` when building for
  1268. the target
  1269. - :term:`BUILD_CXXFLAGS` when building for the
  1270. build host (i.e. ``-native``)
  1271. - :term:`BUILDSDK_CXXFLAGS` when building
  1272. for an SDK (i.e. ``nativesdk-``)
  1273. :term:`D`
  1274. The destination directory. The location in the :term:`Build Directory`
  1275. where components are installed by the
  1276. :ref:`ref-tasks-install` task. This location defaults
  1277. to::
  1278. ${WORKDIR}/image
  1279. .. note::
  1280. Tasks that read from or write to this directory should run under
  1281. :ref:`fakeroot <overview-manual/concepts:fakeroot and pseudo>`.
  1282. :term:`DATE`
  1283. The date the build was started. Dates appear using the year, month,
  1284. and day (YMD) format (e.g. "20150209" for February 9th, 2015).
  1285. :term:`DATETIME`
  1286. The date and time on which the current build started. The format is
  1287. suitable for timestamps.
  1288. :term:`DEBIAN_NOAUTONAME`
  1289. When the :ref:`debian <ref-classes-debian>` class is inherited,
  1290. which is the default behavior, :term:`DEBIAN_NOAUTONAME` specifies a
  1291. particular package should not be renamed according to Debian library
  1292. package naming. You must use the package name as an override when you
  1293. set this variable. Here is an example from the ``fontconfig`` recipe::
  1294. DEBIAN_NOAUTONAME:fontconfig-utils = "1"
  1295. :term:`DEBIANNAME`
  1296. When the :ref:`debian <ref-classes-debian>` class is inherited,
  1297. which is the default behavior, :term:`DEBIANNAME` allows you to override
  1298. the library name for an individual package. Overriding the library
  1299. name in these cases is rare. You must use the package name as an
  1300. override when you set this variable. Here is an example from the
  1301. ``dbus`` recipe::
  1302. DEBIANNAME:${PN} = "dbus-1"
  1303. :term:`DEBUG_BUILD`
  1304. Specifies to build packages with debugging information. This
  1305. influences the value of the :term:`SELECTED_OPTIMIZATION` variable.
  1306. :term:`DEBUG_OPTIMIZATION`
  1307. The options to pass in :term:`TARGET_CFLAGS` and :term:`CFLAGS` when
  1308. compiling a system for debugging. This variable defaults to "-O
  1309. -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe".
  1310. :term:`DEBUG_PREFIX_MAP`
  1311. Allows to set C compiler options, such as ``-fdebug-prefix-map``,
  1312. ``-fmacro-prefix-map``, and ``-ffile-prefix-map``, which allow to
  1313. replace build-time paths by install-time ones in the debugging sections
  1314. of binaries. This makes compiler output files location independent,
  1315. at the cost of having to pass an extra command to tell the debugger
  1316. where source files are.
  1317. This is used by the Yocto Project to guarantee
  1318. :doc:`/test-manual/reproducible-builds` even when the source code of
  1319. a package uses the ``__FILE__`` or ``assert()`` macros. See the
  1320. `reproducible-builds.org <https://reproducible-builds.org/docs/build-path/>`__
  1321. website for details.
  1322. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  1323. not intended to be user-configurable.
  1324. :term:`DEFAULT_PREFERENCE`
  1325. Specifies a weak bias for recipe selection priority.
  1326. The most common usage of this is variable is to set it to "-1" within
  1327. a recipe for a development version of a piece of software. Using the
  1328. variable in this way causes the stable version of the recipe to build
  1329. by default in the absence of :term:`PREFERRED_VERSION` being used to
  1330. build the development version.
  1331. .. note::
  1332. The bias provided by :term:`DEFAULT_PREFERENCE` is weak and is overridden
  1333. by :term:`BBFILE_PRIORITY` if that variable is different between two
  1334. layers that contain different versions of the same recipe.
  1335. :term:`DEFAULTTUNE`
  1336. The default CPU and Application Binary Interface (ABI) tunings (i.e.
  1337. the "tune") used by the OpenEmbedded build system. The
  1338. :term:`DEFAULTTUNE` helps define
  1339. :term:`TUNE_FEATURES`.
  1340. The default tune is either implicitly or explicitly set by the
  1341. machine (:term:`MACHINE`). However, you can override
  1342. the setting using available tunes as defined with
  1343. :term:`AVAILTUNES`.
  1344. :term:`DEPENDS`
  1345. Lists a recipe's build-time dependencies. These are dependencies on
  1346. other recipes whose contents (e.g. headers and shared libraries) are
  1347. needed by the recipe at build time.
  1348. As an example, consider a recipe ``foo`` that contains the following
  1349. assignment::
  1350. DEPENDS = "bar"
  1351. The practical effect of the previous
  1352. assignment is that all files installed by bar will be available in
  1353. the appropriate staging sysroot, given by the
  1354. :term:`STAGING_DIR* <STAGING_DIR>` variables, by the time the
  1355. :ref:`ref-tasks-configure` task for ``foo`` runs.
  1356. This mechanism is implemented by having ``do_configure`` depend on
  1357. the :ref:`ref-tasks-populate_sysroot` task of
  1358. each recipe listed in :term:`DEPENDS`, through a
  1359. ``[``\ :ref:`deptask <bitbake:bitbake-user-manual/bitbake-user-manual-metadata:variable flags>`\ ``]``
  1360. declaration in the :ref:`base <ref-classes-base>` class.
  1361. .. note::
  1362. It seldom is necessary to reference, for example, :term:`STAGING_DIR_HOST`
  1363. explicitly. The standard classes and build-related variables are
  1364. configured to automatically use the appropriate staging sysroots.
  1365. As another example, :term:`DEPENDS` can also be used to add utilities
  1366. that run on the build machine during the build. For example, a recipe
  1367. that makes use of a code generator built by the recipe ``codegen``
  1368. might have the following::
  1369. DEPENDS = "codegen-native"
  1370. For more
  1371. information, see the :ref:`native <ref-classes-native>` class and
  1372. the :term:`EXTRANATIVEPATH` variable.
  1373. .. note::
  1374. - :term:`DEPENDS` is a list of recipe names. Or, to be more precise,
  1375. it is a list of :term:`PROVIDES` names, which
  1376. usually match recipe names. Putting a package name such as
  1377. "foo-dev" in :term:`DEPENDS` does not make sense. Use "foo"
  1378. instead, as this will put files from all the packages that make
  1379. up ``foo``, which includes those from ``foo-dev``, into the
  1380. sysroot.
  1381. - One recipe having another recipe in :term:`DEPENDS` does not by
  1382. itself add any runtime dependencies between the packages
  1383. produced by the two recipes. However, as explained in the
  1384. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  1385. section in the Yocto Project Overview and Concepts Manual,
  1386. runtime dependencies will often be added automatically, meaning
  1387. :term:`DEPENDS` alone is sufficient for most recipes.
  1388. - Counterintuitively, :term:`DEPENDS` is often necessary even for
  1389. recipes that install precompiled components. For example, if
  1390. ``libfoo`` is a precompiled library that links against
  1391. ``libbar``, then linking against ``libfoo`` requires both
  1392. ``libfoo`` and ``libbar`` to be available in the sysroot.
  1393. Without a :term:`DEPENDS` from the recipe that installs ``libfoo``
  1394. to the recipe that installs ``libbar``, other recipes might
  1395. fail to link against ``libfoo``.
  1396. For information on runtime dependencies, see the
  1397. :term:`RDEPENDS` variable. You can also see the
  1398. ":ref:`bitbake:bitbake-user-manual/bitbake-user-manual-metadata:tasks`" and
  1399. ":ref:`bitbake:bitbake-user-manual/bitbake-user-manual-execution:dependencies`" sections in the
  1400. BitBake User Manual for additional information on tasks and
  1401. dependencies.
  1402. :term:`DEPLOY_DIR`
  1403. Points to the general area that the OpenEmbedded build system uses to
  1404. place images, packages, SDKs, and other output files that are ready
  1405. to be used outside of the build system. By default, this directory
  1406. resides within the :term:`Build Directory` as
  1407. ``${TMPDIR}/deploy``.
  1408. For more information on the structure of the Build Directory, see
  1409. ":ref:`ref-manual/structure:the build directory --- ``build/```" section.
  1410. For more detail on the contents of the ``deploy`` directory, see the
  1411. ":ref:`overview-manual/concepts:images`",
  1412. ":ref:`overview-manual/concepts:package feeds`", and
  1413. ":ref:`overview-manual/concepts:application development sdk`" sections all in the
  1414. Yocto Project Overview and Concepts Manual.
  1415. :term:`DEPLOY_DIR_DEB`
  1416. Points to the area that the OpenEmbedded build system uses to place
  1417. Debian packages that are ready to be used outside of the build
  1418. system. This variable applies only when
  1419. :term:`PACKAGE_CLASSES` contains
  1420. "package_deb".
  1421. The BitBake configuration file initially defines the
  1422. :term:`DEPLOY_DIR_DEB` variable as a sub-folder of
  1423. :term:`DEPLOY_DIR`::
  1424. DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb"
  1425. The :ref:`package_deb <ref-classes-package_deb>` class uses the
  1426. :term:`DEPLOY_DIR_DEB` variable to make sure the
  1427. :ref:`ref-tasks-package_write_deb` task
  1428. writes Debian packages into the appropriate folder. For more
  1429. information on how packaging works, see the
  1430. ":ref:`overview-manual/concepts:package feeds`" section
  1431. in the Yocto Project Overview and Concepts Manual.
  1432. :term:`DEPLOY_DIR_IMAGE`
  1433. Points to the area that the OpenEmbedded build system uses to place
  1434. images and other associated output files that are ready to be
  1435. deployed onto the target machine. The directory is machine-specific
  1436. as it contains the ``${MACHINE}`` name. By default, this directory
  1437. resides within the :term:`Build Directory` as
  1438. ``${DEPLOY_DIR}/images/${MACHINE}/``.
  1439. It must not be used directly in recipes when deploying files. Instead,
  1440. it's only useful when a recipe needs to "read" a file already deployed
  1441. by a dependency. So, it should be filled with the contents of
  1442. :term:`DEPLOYDIR` by the :ref:`deploy <ref-classes-deploy>` class or
  1443. with the contents of :term:`IMGDEPLOYDIR` by the :ref:`image
  1444. <ref-classes-image>` class.
  1445. For more information on the structure of the Build Directory, see
  1446. ":ref:`ref-manual/structure:the build directory --- ``build/```" section.
  1447. For more detail on the contents of the ``deploy`` directory, see the
  1448. ":ref:`overview-manual/concepts:images`" and
  1449. ":ref:`overview-manual/concepts:application development sdk`" sections both in
  1450. the Yocto Project Overview and Concepts Manual.
  1451. :term:`DEPLOY_DIR_IPK`
  1452. Points to the area that the OpenEmbedded build system uses to place
  1453. IPK packages that are ready to be used outside of the build system.
  1454. This variable applies only when
  1455. :term:`PACKAGE_CLASSES` contains
  1456. "package_ipk".
  1457. The BitBake configuration file initially defines this variable as a
  1458. sub-folder of :term:`DEPLOY_DIR`::
  1459. DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk"
  1460. The :ref:`package_ipk <ref-classes-package_ipk>` class uses the
  1461. :term:`DEPLOY_DIR_IPK` variable to make sure the
  1462. :ref:`ref-tasks-package_write_ipk` task
  1463. writes IPK packages into the appropriate folder. For more information
  1464. on how packaging works, see the
  1465. ":ref:`overview-manual/concepts:package feeds`" section
  1466. in the Yocto Project Overview and Concepts Manual.
  1467. :term:`DEPLOY_DIR_RPM`
  1468. Points to the area that the OpenEmbedded build system uses to place
  1469. RPM packages that are ready to be used outside of the build system.
  1470. This variable applies only when
  1471. :term:`PACKAGE_CLASSES` contains
  1472. "package_rpm".
  1473. The BitBake configuration file initially defines this variable as a
  1474. sub-folder of :term:`DEPLOY_DIR`::
  1475. DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm"
  1476. The :ref:`package_rpm <ref-classes-package_rpm>` class uses the
  1477. :term:`DEPLOY_DIR_RPM` variable to make sure the
  1478. :ref:`ref-tasks-package_write_rpm` task
  1479. writes RPM packages into the appropriate folder. For more information
  1480. on how packaging works, see the
  1481. ":ref:`overview-manual/concepts:package feeds`" section
  1482. in the Yocto Project Overview and Concepts Manual.
  1483. :term:`DEPLOY_DIR_TAR`
  1484. Points to the area that the OpenEmbedded build system uses to place
  1485. tarballs that are ready to be used outside of the build system. This
  1486. variable applies only when
  1487. :term:`PACKAGE_CLASSES` contains
  1488. "package_tar".
  1489. The BitBake configuration file initially defines this variable as a
  1490. sub-folder of :term:`DEPLOY_DIR`::
  1491. DEPLOY_DIR_TAR = "${DEPLOY_DIR}/tar"
  1492. The :ref:`package_tar <ref-classes-package_tar>` class uses the
  1493. :term:`DEPLOY_DIR_TAR` variable to make sure the
  1494. :ref:`ref-tasks-package_write_tar` task
  1495. writes TAR packages into the appropriate folder. For more information
  1496. on how packaging works, see the
  1497. ":ref:`overview-manual/concepts:package feeds`" section
  1498. in the Yocto Project Overview and Concepts Manual.
  1499. :term:`DEPLOYDIR`
  1500. When inheriting the :ref:`deploy <ref-classes-deploy>` class, the
  1501. :term:`DEPLOYDIR` points to a temporary work area for deployed files that
  1502. is set in the :ref:`deploy <ref-classes-deploy>` class as follows::
  1503. DEPLOYDIR = "${WORKDIR}/deploy-${PN}"
  1504. Recipes inheriting the :ref:`deploy <ref-classes-deploy>` class should copy files to be
  1505. deployed into :term:`DEPLOYDIR`, and the class will take care of copying
  1506. them into :term:`DEPLOY_DIR_IMAGE`
  1507. afterwards.
  1508. :term:`DESCRIPTION`
  1509. The package description used by package managers. If not set,
  1510. :term:`DESCRIPTION` takes the value of the :term:`SUMMARY`
  1511. variable.
  1512. :term:`DISTRO`
  1513. The short name of the distribution. For information on the long name
  1514. of the distribution, see the :term:`DISTRO_NAME`
  1515. variable.
  1516. The :term:`DISTRO` variable corresponds to a distribution configuration
  1517. file whose root name is the same as the variable's argument and whose
  1518. filename extension is ``.conf``. For example, the distribution
  1519. configuration file for the Poky distribution is named ``poky.conf``
  1520. and resides in the ``meta-poky/conf/distro`` directory of the
  1521. :term:`Source Directory`.
  1522. Within that ``poky.conf`` file, the :term:`DISTRO` variable is set as
  1523. follows::
  1524. DISTRO = "poky"
  1525. Distribution configuration files are located in a ``conf/distro``
  1526. directory within the :term:`Metadata` that contains the
  1527. distribution configuration. The value for :term:`DISTRO` must not contain
  1528. spaces, and is typically all lower-case.
  1529. .. note::
  1530. If the :term:`DISTRO` variable is blank, a set of default configurations
  1531. are used, which are specified within
  1532. ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.
  1533. :term:`DISTRO_CODENAME`
  1534. Specifies a codename for the distribution being built.
  1535. :term:`DISTRO_EXTRA_RDEPENDS`
  1536. Specifies a list of distro-specific packages to add to all images.
  1537. This variable takes effect through ``packagegroup-base`` so the
  1538. variable only really applies to the more full-featured images that
  1539. include ``packagegroup-base``. You can use this variable to keep
  1540. distro policy out of generic images. As with all other distro
  1541. variables, you set this variable in the distro ``.conf`` file.
  1542. :term:`DISTRO_EXTRA_RRECOMMENDS`
  1543. Specifies a list of distro-specific packages to add to all images if
  1544. the packages exist. The packages might not exist or be empty (e.g.
  1545. kernel modules). The list of packages are automatically installed but
  1546. you can remove them.
  1547. :term:`DISTRO_FEATURES`
  1548. The software support you want in your distribution for various
  1549. features. You define your distribution features in the distribution
  1550. configuration file.
  1551. In most cases, the presence or absence of a feature in
  1552. :term:`DISTRO_FEATURES` is translated to the appropriate option supplied
  1553. to the configure script during the
  1554. :ref:`ref-tasks-configure` task for recipes that
  1555. optionally support the feature. For example, specifying "x11" in
  1556. :term:`DISTRO_FEATURES`, causes every piece of software built for the
  1557. target that can optionally support X11 to have its X11 support
  1558. enabled.
  1559. Two more examples are Bluetooth and NFS support. For a more complete
  1560. list of features that ships with the Yocto Project and that you can
  1561. provide with this variable, see the ":ref:`ref-features-distro`" section.
  1562. :term:`DISTRO_FEATURES_BACKFILL`
  1563. Features to be added to :term:`DISTRO_FEATURES` if not also present in
  1564. :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`.
  1565. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  1566. not intended to be user-configurable. It is best to just reference
  1567. the variable to see which distro features are being backfilled for
  1568. all distro configurations. See the ":ref:`ref-features-backfill`" section
  1569. for more information.
  1570. :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`
  1571. Features from :term:`DISTRO_FEATURES_BACKFILL` that should not be
  1572. backfilled (i.e. added to :term:`DISTRO_FEATURES`) during the build. See
  1573. the ":ref:`ref-features-backfill`" section for more information.
  1574. :term:`DISTRO_FEATURES_DEFAULT`
  1575. A convenience variable that gives you the default list of distro
  1576. features with the exception of any features specific to the C library
  1577. (``libc``).
  1578. When creating a custom distribution, you might find it useful to be
  1579. able to reuse the default
  1580. :term:`DISTRO_FEATURES` options without the
  1581. need to write out the full set. Here is an example that uses
  1582. :term:`DISTRO_FEATURES_DEFAULT` from a custom distro configuration file::
  1583. DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} myfeature"
  1584. :term:`DISTRO_FEATURES_FILTER_NATIVE`
  1585. Specifies a list of features that if present in the target
  1586. :term:`DISTRO_FEATURES` value should be
  1587. included in :term:`DISTRO_FEATURES` when building native recipes. This
  1588. variable is used in addition to the features filtered using the
  1589. :term:`DISTRO_FEATURES_NATIVE`
  1590. variable.
  1591. :term:`DISTRO_FEATURES_FILTER_NATIVESDK`
  1592. Specifies a list of features that if present in the target
  1593. :term:`DISTRO_FEATURES` value should be
  1594. included in :term:`DISTRO_FEATURES` when building nativesdk recipes. This
  1595. variable is used in addition to the features filtered using the
  1596. :term:`DISTRO_FEATURES_NATIVESDK`
  1597. variable.
  1598. :term:`DISTRO_FEATURES_NATIVE`
  1599. Specifies a list of features that should be included in
  1600. :term:`DISTRO_FEATURES` when building native
  1601. recipes. This variable is used in addition to the features filtered
  1602. using the
  1603. :term:`DISTRO_FEATURES_FILTER_NATIVE`
  1604. variable.
  1605. :term:`DISTRO_FEATURES_NATIVESDK`
  1606. Specifies a list of features that should be included in
  1607. :term:`DISTRO_FEATURES` when building
  1608. nativesdk recipes. This variable is used in addition to the features
  1609. filtered using the
  1610. :term:`DISTRO_FEATURES_FILTER_NATIVESDK`
  1611. variable.
  1612. :term:`DISTRO_NAME`
  1613. The long name of the distribution. For information on the short name
  1614. of the distribution, see the :term:`DISTRO` variable.
  1615. The :term:`DISTRO_NAME` variable corresponds to a distribution
  1616. configuration file whose root name is the same as the variable's
  1617. argument and whose filename extension is ``.conf``. For example, the
  1618. distribution configuration file for the Poky distribution is named
  1619. ``poky.conf`` and resides in the ``meta-poky/conf/distro`` directory
  1620. of the :term:`Source Directory`.
  1621. Within that ``poky.conf`` file, the :term:`DISTRO_NAME` variable is set
  1622. as follows::
  1623. DISTRO_NAME = "Poky (Yocto Project Reference Distro)"
  1624. Distribution configuration files are located in a ``conf/distro``
  1625. directory within the :term:`Metadata` that contains the
  1626. distribution configuration.
  1627. .. note::
  1628. If the :term:`DISTRO_NAME` variable is blank, a set of default
  1629. configurations are used, which are specified within
  1630. ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.
  1631. :term:`DISTRO_VERSION`
  1632. The version of the distribution.
  1633. :term:`DISTROOVERRIDES`
  1634. A colon-separated list of overrides specific to the current
  1635. distribution. By default, this list includes the value of
  1636. :term:`DISTRO`.
  1637. You can extend :term:`DISTROOVERRIDES` to add extra overrides that should
  1638. apply to the distribution.
  1639. The underlying mechanism behind :term:`DISTROOVERRIDES` is simply that it
  1640. is included in the default value of
  1641. :term:`OVERRIDES`.
  1642. :term:`DL_DIR`
  1643. The central download directory used by the build process to store
  1644. downloads. By default, :term:`DL_DIR` gets files suitable for mirroring
  1645. for everything except Git repositories. If you want tarballs of Git
  1646. repositories, use the
  1647. :term:`BB_GENERATE_MIRROR_TARBALLS`
  1648. variable.
  1649. You can set this directory by defining the :term:`DL_DIR` variable in the
  1650. ``conf/local.conf`` file. This directory is self-maintaining and you
  1651. should not have to touch it. By default, the directory is
  1652. ``downloads`` in the :term:`Build Directory`.
  1653. ::
  1654. #DL_DIR ?= "${TOPDIR}/downloads"
  1655. To specify a different download directory,
  1656. simply remove the comment from the line and provide your directory.
  1657. During a first build, the system downloads many different source code
  1658. tarballs from various upstream projects. Downloading can take a
  1659. while, particularly if your network connection is slow. Tarballs are
  1660. all stored in the directory defined by :term:`DL_DIR` and the build
  1661. system looks there first to find source tarballs.
  1662. .. note::
  1663. When wiping and rebuilding, you can preserve this directory to
  1664. speed up this part of subsequent builds.
  1665. You can safely share this directory between multiple builds on the
  1666. same development machine. For additional information on how the build
  1667. process gets source files when working behind a firewall or proxy
  1668. server, see this specific question in the ":doc:`faq`"
  1669. chapter. You can also refer to the
  1670. ":yocto_wiki:`Working Behind a Network Proxy </Working_Behind_a_Network_Proxy>`"
  1671. Wiki page.
  1672. :term:`DOC_COMPRESS`
  1673. When inheriting the :ref:`compress_doc <ref-classes-compress_doc>`
  1674. class, this variable sets the compression policy used when the
  1675. OpenEmbedded build system compresses manual and info pages. By
  1676. default, the compression method used is gz (gzip). Other policies
  1677. available are xz and bz2.
  1678. For information on policies and on how to use this variable, see the
  1679. comments in the ``meta/classes/compress_doc.bbclass`` file.
  1680. :term:`DT_FILES_PATH`
  1681. When compiling out-of-tree device tree sources using a recipe that
  1682. inherits the :ref:`ref-classes-devicetree` class, this variable specifies
  1683. the path to the directory containing dts files to build.
  1684. Defaults to the :term:`S` directory.
  1685. :term:`DT_PADDING_SIZE`
  1686. When inheriting the :ref:`ref-classes-devicetree` class, this variable
  1687. specifies the size of padding appended to the device tree blob, used as
  1688. extra space typically for additional properties during boot.
  1689. :term:`EFI_PROVIDER`
  1690. When building bootable images (i.e. where ``hddimg``, ``iso``, or
  1691. ``wic.vmdk`` is in :term:`IMAGE_FSTYPES`), the
  1692. :term:`EFI_PROVIDER` variable specifies the EFI bootloader to use. The
  1693. default is "grub-efi", but "systemd-boot" can be used instead.
  1694. See the :ref:`systemd-boot <ref-classes-systemd-boot>` and
  1695. :ref:`image-live <ref-classes-image-live>` classes for more
  1696. information.
  1697. :term:`ENABLE_BINARY_LOCALE_GENERATION`
  1698. Variable that controls which locales for ``glibc`` are generated
  1699. during the build (useful if the target device has 64Mbytes of RAM or
  1700. less).
  1701. :term:`ERR_REPORT_DIR`
  1702. When used with the :ref:`ref-classes-report-error` class, specifies the
  1703. path used for storing the debug files created by the :ref:`error reporting
  1704. tool <dev-manual/error-reporting-tool:using the error reporting tool>`,
  1705. which allows you to submit build errors you encounter to a central
  1706. database. By default, the value of this variable is
  1707. ``${``\ :term:`LOG_DIR`\ ``}/error-report``.
  1708. You can set :term:`ERR_REPORT_DIR` to the path you want the error
  1709. reporting tool to store the debug files as follows in your
  1710. ``local.conf`` file::
  1711. ERR_REPORT_DIR = "path"
  1712. :term:`ERROR_QA`
  1713. Specifies the quality assurance checks whose failures are reported as
  1714. errors by the OpenEmbedded build system. You set this variable in
  1715. your distribution configuration file. For a list of the checks you
  1716. can control with this variable, see the
  1717. ":ref:`ref-classes-insane`" section.
  1718. :term:`ESDK_CLASS_INHERIT_DISABLE`
  1719. A list of classes to remove from the :term:`INHERIT`
  1720. value globally within the extensible SDK configuration. The
  1721. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class sets the
  1722. default value::
  1723. ESDK_CLASS_INHERIT_DISABLE ?= "buildhistory icecc"
  1724. Some classes are not generally applicable within the extensible SDK
  1725. context. You can use this variable to disable those classes.
  1726. For additional information on how to customize the extensible SDK's
  1727. configuration, see the
  1728. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  1729. section in the Yocto Project Application Development and the
  1730. Extensible Software Development Kit (eSDK) manual.
  1731. :term:`ESDK_LOCALCONF_ALLOW`
  1732. A list of variables allowed through from the OpenEmbedded build
  1733. system configuration into the extensible SDK configuration. By
  1734. default, the list of variables is empty and is set in the
  1735. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class.
  1736. This list overrides the variables specified using the
  1737. :term:`ESDK_LOCALCONF_REMOVE` variable as well as
  1738. other variables automatically added due to the "/" character
  1739. being found at the start of the
  1740. value, which is usually indicative of being a path and thus might not
  1741. be valid on the system where the SDK is installed.
  1742. For additional information on how to customize the extensible SDK's
  1743. configuration, see the
  1744. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  1745. section in the Yocto Project Application Development and the
  1746. Extensible Software Development Kit (eSDK) manual.
  1747. :term:`ESDK_LOCALCONF_REMOVE`
  1748. A list of variables not allowed through from the OpenEmbedded build
  1749. system configuration into the extensible SDK configuration. Usually,
  1750. these are variables that are specific to the machine on which the
  1751. build system is running and thus would be potentially problematic
  1752. within the extensible SDK.
  1753. By default, :term:`ESDK_LOCALCONF_REMOVE` is set in the
  1754. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class and
  1755. excludes the following variables:
  1756. - :term:`CONF_VERSION`
  1757. - :term:`BB_NUMBER_THREADS`
  1758. - :term:`BB_NUMBER_PARSE_THREADS`
  1759. - :term:`PARALLEL_MAKE`
  1760. - :term:`PRSERV_HOST`
  1761. - :term:`SSTATE_MIRRORS` :term:`DL_DIR`
  1762. - :term:`SSTATE_DIR` :term:`TMPDIR`
  1763. - :term:`BB_SERVER_TIMEOUT`
  1764. For additional information on how to customize the extensible SDK's
  1765. configuration, see the
  1766. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  1767. section in the Yocto Project Application Development and the
  1768. Extensible Software Development Kit (eSDK) manual.
  1769. :term:`EXCLUDE_FROM_SHLIBS`
  1770. Triggers the OpenEmbedded build system's shared libraries resolver to
  1771. exclude an entire package when scanning for shared libraries.
  1772. .. note::
  1773. The shared libraries resolver's functionality results in part from
  1774. the internal function ``package_do_shlibs``, which is part of the
  1775. :ref:`ref-tasks-package` task. You should be aware that the shared
  1776. libraries resolver might implicitly define some dependencies between
  1777. packages.
  1778. The :term:`EXCLUDE_FROM_SHLIBS` variable is similar to the
  1779. :term:`PRIVATE_LIBS` variable, which excludes a
  1780. package's particular libraries only and not the whole package.
  1781. Use the :term:`EXCLUDE_FROM_SHLIBS` variable by setting it to "1" for a
  1782. particular package::
  1783. EXCLUDE_FROM_SHLIBS = "1"
  1784. :term:`EXCLUDE_FROM_WORLD`
  1785. Directs BitBake to exclude a recipe from world builds (i.e.
  1786. ``bitbake world``). During world builds, BitBake locates, parses and
  1787. builds all recipes found in every layer exposed in the
  1788. ``bblayers.conf`` configuration file.
  1789. To exclude a recipe from a world build using this variable, set the
  1790. variable to "1" in the recipe.
  1791. .. note::
  1792. Recipes added to :term:`EXCLUDE_FROM_WORLD` may still be built during a
  1793. world build in order to satisfy dependencies of other recipes. Adding
  1794. a recipe to :term:`EXCLUDE_FROM_WORLD` only ensures that the recipe is not
  1795. explicitly added to the list of build targets in a world build.
  1796. :term:`EXTENDPE`
  1797. Used with file and pathnames to create a prefix for a recipe's
  1798. version based on the recipe's :term:`PE` value. If :term:`PE`
  1799. is set and greater than zero for a recipe, :term:`EXTENDPE` becomes that
  1800. value (e.g if :term:`PE` is equal to "1" then :term:`EXTENDPE` becomes "1").
  1801. If a recipe's :term:`PE` is not set (the default) or is equal to zero,
  1802. :term:`EXTENDPE` becomes "".
  1803. See the :term:`STAMP` variable for an example.
  1804. :term:`EXTENDPKGV`
  1805. The full package version specification as it appears on the final
  1806. packages produced by a recipe. The variable's value is normally used
  1807. to fix a runtime dependency to the exact same version of another
  1808. package in the same recipe::
  1809. RDEPENDS:${PN}-additional-module = "${PN} (= ${EXTENDPKGV})"
  1810. The dependency relationships are intended to force the package
  1811. manager to upgrade these types of packages in lock-step.
  1812. :term:`EXTERNAL_KERNEL_TOOLS`
  1813. When set, the :term:`EXTERNAL_KERNEL_TOOLS` variable indicates that these
  1814. tools are not in the source tree.
  1815. When kernel tools are available in the tree, they are preferred over
  1816. any externally installed tools. Setting the :term:`EXTERNAL_KERNEL_TOOLS`
  1817. variable tells the OpenEmbedded build system to prefer the installed
  1818. external tools. See the
  1819. :ref:`kernel-yocto <ref-classes-kernel-yocto>` class in
  1820. ``meta/classes`` to see how the variable is used.
  1821. :term:`EXTERNAL_KERNEL_DEVICETREE`
  1822. When inheriting :ref:`ref-classes-kernel-fitimage` and a
  1823. :term:`PREFERRED_PROVIDER` for ``virtual/dtb`` set to ``devicetree``, the
  1824. variable :term:`EXTERNAL_KERNEL_DEVICETREE` can be used to specify a
  1825. directory containing one or more compiled device tree or device tree
  1826. overlays to use.
  1827. Using this variable is only useful when you are using a kernel recipe
  1828. inheriting the :ref:`ref-classes-kernel` class, and which doesn't
  1829. already set a local version. Therefore, setting this variable has no
  1830. impact on ``linux-yocto`` kernels.
  1831. :term:`EXTERNAL_TOOLCHAIN`
  1832. When you intend to use an
  1833. :ref:`external toolchain <dev-manual/external-toolchain:optionally using an external toolchain>`,
  1834. this variable allows to specify the directory where this toolchain was
  1835. installed.
  1836. :term:`EXTERNALSRC`
  1837. When inheriting the :ref:`externalsrc <ref-classes-externalsrc>`
  1838. class, this variable points to the source tree, which is outside of
  1839. the OpenEmbedded build system. When set, this variable sets the
  1840. :term:`S` variable, which is what the OpenEmbedded build
  1841. system uses to locate unpacked recipe source code.
  1842. See the ":ref:`ref-classes-externalsrc`" section for details. You
  1843. can also find information on how to use this variable in the
  1844. ":ref:`dev-manual/building:building software from an external source`"
  1845. section in the Yocto Project Development Tasks Manual.
  1846. :term:`EXTERNALSRC_BUILD`
  1847. When inheriting the :ref:`externalsrc <ref-classes-externalsrc>`
  1848. class, this variable points to the directory in which the recipe's
  1849. source code is built, which is outside of the OpenEmbedded build
  1850. system. When set, this variable sets the :term:`B` variable,
  1851. which is what the OpenEmbedded build system uses to locate the Build
  1852. Directory.
  1853. See the ":ref:`ref-classes-externalsrc`" section for details. You
  1854. can also find information on how to use this variable in the
  1855. ":ref:`dev-manual/building:building software from an external source`"
  1856. section in the Yocto Project Development Tasks Manual.
  1857. :term:`EXTRA_AUTORECONF`
  1858. For recipes inheriting the :ref:`ref-classes-autotools`
  1859. class, you can use :term:`EXTRA_AUTORECONF` to specify extra options to
  1860. pass to the ``autoreconf`` command that is executed during the
  1861. :ref:`ref-tasks-configure` task.
  1862. The default value is "--exclude=autopoint".
  1863. :term:`EXTRA_IMAGE_FEATURES`
  1864. A list of additional features to include in an image. When listing
  1865. more than one feature, separate them with a space.
  1866. Typically, you configure this variable in your ``local.conf`` file,
  1867. which is found in the :term:`Build Directory`.
  1868. Although you can use this variable from within a recipe, best
  1869. practices dictate that you do not.
  1870. .. note::
  1871. To enable primary features from within the image recipe, use the
  1872. :term:`IMAGE_FEATURES` variable.
  1873. Here are some examples of features you can add:
  1874. - "dbg-pkgs" --- adds -dbg packages for all installed packages including
  1875. symbol information for debugging and profiling.
  1876. - "debug-tweaks" --- makes an image suitable for debugging. For example, allows root logins without passwords and
  1877. enables post-installation logging. See the 'allow-empty-password' and
  1878. 'post-install-logging' features in the ":ref:`ref-features-image`"
  1879. section for more information.
  1880. - "dev-pkgs" --- adds -dev packages for all installed packages. This is
  1881. useful if you want to develop against the libraries in the image.
  1882. - "read-only-rootfs" --- creates an image whose root filesystem is
  1883. read-only. See the
  1884. ":ref:`dev-manual/read-only-rootfs:creating a read-only root filesystem`"
  1885. section in the Yocto Project Development Tasks Manual for more
  1886. information
  1887. - "tools-debug" --- adds debugging tools such as gdb and strace.
  1888. - "tools-sdk" --- adds development tools such as gcc, make,
  1889. pkgconfig and so forth.
  1890. - "tools-testapps" --- adds useful testing tools
  1891. such as ts_print, aplay, arecord and so forth.
  1892. For a complete list of image features that ships with the Yocto
  1893. Project, see the ":ref:`ref-features-image`" section.
  1894. For an example that shows how to customize your image by using this
  1895. variable, see the ":ref:`dev-manual/customizing-images:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  1896. section in the Yocto Project Development Tasks Manual.
  1897. :term:`EXTRA_IMAGECMD`
  1898. Specifies additional options for the image creation command that has
  1899. been specified in :term:`IMAGE_CMD`. When setting
  1900. this variable, use an override for the associated image type. Here is
  1901. an example::
  1902. EXTRA_IMAGECMD:ext3 ?= "-i 4096"
  1903. :term:`EXTRA_IMAGEDEPENDS`
  1904. A list of recipes to build that do not provide packages for
  1905. installing into the root filesystem.
  1906. Sometimes a recipe is required to build the final image but is not
  1907. needed in the root filesystem. You can use the :term:`EXTRA_IMAGEDEPENDS`
  1908. variable to list these recipes and thus specify the dependencies. A
  1909. typical example is a required bootloader in a machine configuration.
  1910. .. note::
  1911. To add packages to the root filesystem, see the various
  1912. :term:`RDEPENDS` and :term:`RRECOMMENDS` variables.
  1913. :term:`EXTRA_OECMAKE`
  1914. Additional `CMake <https://cmake.org/overview/>`__ options. See the
  1915. :ref:`cmake <ref-classes-cmake>` class for additional information.
  1916. :term:`EXTRA_OECONF`
  1917. Additional ``configure`` script options. See
  1918. :term:`PACKAGECONFIG_CONFARGS` for
  1919. additional information on passing configure script options.
  1920. :term:`EXTRA_OEMAKE`
  1921. Additional GNU ``make`` options.
  1922. Because the :term:`EXTRA_OEMAKE` defaults to "", you need to set the
  1923. variable to specify any required GNU options.
  1924. :term:`PARALLEL_MAKE` and
  1925. :term:`PARALLEL_MAKEINST` also make use of
  1926. :term:`EXTRA_OEMAKE` to pass the required flags.
  1927. :term:`EXTRA_OESCONS`
  1928. When inheriting the :ref:`scons <ref-classes-scons>` class, this
  1929. variable specifies additional configuration options you want to pass
  1930. to the ``scons`` command line.
  1931. :term:`EXTRA_OEMESON`
  1932. Additional `Meson <https://mesonbuild.com/>`__ options. See the
  1933. :ref:`ref-classes-meson` class for additional information.
  1934. In addition to standard Meson options, such options correspond to
  1935. `Meson build options <https://mesonbuild.com/Build-options.html>`__
  1936. defined in the ``meson_options.txt`` file in the sources to build.
  1937. Here is an example::
  1938. EXTRA_OEMESON = "-Dpython=disabled -Dvalgrind=disabled"
  1939. Note that any custom value for the Meson ``--buildtype`` option
  1940. should be set through the :term:`MESON_BUILDTYPE` variable.
  1941. :term:`EXTRA_USERS_PARAMS`
  1942. When inheriting the :ref:`extrausers <ref-classes-extrausers>`
  1943. class, this variable provides image level user and group operations.
  1944. This is a more global method of providing user and group
  1945. configuration as compared to using the
  1946. :ref:`useradd <ref-classes-useradd>` class, which ties user and
  1947. group configurations to a specific recipe.
  1948. The set list of commands you can configure using the
  1949. :term:`EXTRA_USERS_PARAMS` is shown in the :ref:`extrausers <ref-classes-extrausers>` class. These
  1950. commands map to the normal Unix commands of the same names::
  1951. # EXTRA_USERS_PARAMS = "\
  1952. # useradd -p '' tester; \
  1953. # groupadd developers; \
  1954. # userdel nobody; \
  1955. # groupdel -g video; \
  1956. # groupmod -g 1020 developers; \
  1957. # usermod -s /bin/sh tester; \
  1958. # "
  1959. Hardcoded passwords are supported via the ``-p`` parameters for
  1960. ``useradd`` or ``usermod``, but only hashed.
  1961. Here is an example that adds two users named "tester-jim" and "tester-sue" and assigns
  1962. passwords. First on host, create the (escaped) password hash::
  1963. printf "%q" $(mkpasswd -m sha256crypt tester01)
  1964. The resulting hash is set to a variable and used in ``useradd`` command parameters::
  1965. inherit extrausers
  1966. PASSWD = "\$X\$ABC123\$A-Long-Hash"
  1967. EXTRA_USERS_PARAMS = "\
  1968. useradd -p '${PASSWD}' tester-jim; \
  1969. useradd -p '${PASSWD}' tester-sue; \
  1970. "
  1971. Finally, here is an example that sets the root password::
  1972. inherit extrausers
  1973. EXTRA_USERS_PARAMS = "\
  1974. usermod -p '${PASSWD}' root; \
  1975. "
  1976. .. note::
  1977. From a security perspective, hardcoding a default password is not
  1978. generally a good idea or even legal in some jurisdictions. It is
  1979. recommended that you do not do this if you are building a production
  1980. image.
  1981. Additionally there is a special ``passwd-expire`` command that will
  1982. cause the password for a user to be expired and thus force changing it
  1983. on first login, for example::
  1984. EXTRA_USERS_PARAMS += " useradd myuser; passwd-expire myuser;"
  1985. .. note::
  1986. At present, ``passwd-expire`` may only work for remote logins when
  1987. using OpenSSH and not dropbear as an SSH server.
  1988. :term:`EXTRANATIVEPATH`
  1989. A list of subdirectories of
  1990. ``${``\ :term:`STAGING_BINDIR_NATIVE`\ ``}``
  1991. added to the beginning of the environment variable ``PATH``. As an
  1992. example, the following prepends
  1993. "${STAGING_BINDIR_NATIVE}/foo:${STAGING_BINDIR_NATIVE}/bar:" to
  1994. ``PATH``::
  1995. EXTRANATIVEPATH = "foo bar"
  1996. :term:`FEATURE_PACKAGES`
  1997. Defines one or more packages to include in an image when a specific
  1998. item is included in :term:`IMAGE_FEATURES`.
  1999. When setting the value, :term:`FEATURE_PACKAGES` should have the name of
  2000. the feature item as an override. Here is an example::
  2001. FEATURE_PACKAGES_widget = "package1 package2"
  2002. In this example, if "widget" were added to :term:`IMAGE_FEATURES`,
  2003. package1 and package2 would be included in the image.
  2004. .. note::
  2005. Packages installed by features defined through :term:`FEATURE_PACKAGES`
  2006. are often package groups. While similarly named, you should not
  2007. confuse the :term:`FEATURE_PACKAGES` variable with package groups, which
  2008. are discussed elsewhere in the documentation.
  2009. :term:`FEED_DEPLOYDIR_BASE_URI`
  2010. Points to the base URL of the server and location within the
  2011. document-root that provides the metadata and packages required by
  2012. OPKG to support runtime package management of IPK packages. You set
  2013. this variable in your ``local.conf`` file.
  2014. Consider the following example::
  2015. FEED_DEPLOYDIR_BASE_URI = "http://192.168.7.1/BOARD-dir"
  2016. This example assumes you are serving
  2017. your packages over HTTP and your databases are located in a directory
  2018. named ``BOARD-dir``, which is underneath your HTTP server's
  2019. document-root. In this case, the OpenEmbedded build system generates
  2020. a set of configuration files for you in your target that work with
  2021. the feed.
  2022. :term:`FILES`
  2023. The list of files and directories that are placed in a package. The
  2024. :term:`PACKAGES` variable lists the packages
  2025. generated by a recipe.
  2026. To use the :term:`FILES` variable, provide a package name override that
  2027. identifies the resulting package. Then, provide a space-separated
  2028. list of files or paths that identify the files you want included as
  2029. part of the resulting package. Here is an example::
  2030. FILES:${PN} += "${bindir}/mydir1 ${bindir}/mydir2/myfile"
  2031. .. note::
  2032. - When specifying files or paths, you can pattern match using
  2033. Python's
  2034. `glob <https://docs.python.org/3/library/glob.html>`_
  2035. syntax. For details on the syntax, see the documentation by
  2036. following the previous link.
  2037. - When specifying paths as part of the :term:`FILES` variable, it is
  2038. good practice to use appropriate path variables. For example,
  2039. use ``${sysconfdir}`` rather than ``/etc``, or ``${bindir}``
  2040. rather than ``/usr/bin``. You can find a list of these
  2041. variables at the top of the ``meta/conf/bitbake.conf`` file in
  2042. the :term:`Source Directory`. You will also
  2043. find the default values of the various ``FILES:*`` variables in
  2044. this file.
  2045. If some of the files you provide with the :term:`FILES` variable are
  2046. editable and you know they should not be overwritten during the
  2047. package update process by the Package Management System (PMS), you
  2048. can identify these files so that the PMS will not overwrite them. See
  2049. the :term:`CONFFILES` variable for information on
  2050. how to identify these files to the PMS.
  2051. :term:`FILES_SOLIBSDEV`
  2052. Defines the file specification to match
  2053. :term:`SOLIBSDEV`. In other words,
  2054. :term:`FILES_SOLIBSDEV` defines the full path name of the development
  2055. symbolic link (symlink) for shared libraries on the target platform.
  2056. The following statement from the ``bitbake.conf`` shows how it is
  2057. set::
  2058. FILES_SOLIBSDEV ?= "${base_libdir}/lib*${SOLIBSDEV} ${libdir}/lib*${SOLIBSDEV}"
  2059. :term:`FILESEXTRAPATHS`
  2060. Extends the search path the OpenEmbedded build system uses when
  2061. looking for files and patches as it processes recipes and append
  2062. files. The default directories BitBake uses when it processes recipes
  2063. are initially defined by the :term:`FILESPATH`
  2064. variable. You can extend :term:`FILESPATH` variable by using
  2065. :term:`FILESEXTRAPATHS`.
  2066. Best practices dictate that you accomplish this by using
  2067. :term:`FILESEXTRAPATHS` from within a ``.bbappend`` file and that you
  2068. prepend paths as follows::
  2069. FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
  2070. In the above example, the build system first
  2071. looks for files in a directory that has the same name as the
  2072. corresponding append file.
  2073. .. note::
  2074. When extending :term:`FILESEXTRAPATHS`, be sure to use the immediate
  2075. expansion (``:=``) operator. Immediate expansion makes sure that
  2076. BitBake evaluates :term:`THISDIR` at the time the
  2077. directive is encountered rather than at some later time when
  2078. expansion might result in a directory that does not contain the
  2079. files you need.
  2080. Also, include the trailing separating colon character if you are
  2081. prepending. The trailing colon character is necessary because you
  2082. are directing BitBake to extend the path by prepending directories
  2083. to the search path.
  2084. Here is another common use::
  2085. FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  2086. In this example, the build system extends the
  2087. :term:`FILESPATH` variable to include a directory named ``files`` that is
  2088. in the same directory as the corresponding append file.
  2089. This next example specifically adds three paths::
  2090. FILESEXTRAPATHS:prepend := "path_1:path_2:path_3:"
  2091. A final example shows how you can extend the search path and include
  2092. a :term:`MACHINE`-specific override, which is useful
  2093. in a BSP layer::
  2094. FILESEXTRAPATHS:prepend:intel-x86-common := "${THISDIR}/${PN}:"
  2095. The previous statement appears in the
  2096. ``linux-yocto-dev.bbappend`` file, which is found in the
  2097. :ref:`overview-manual/development-environment:yocto project source repositories` in
  2098. ``meta-intel/common/recipes-kernel/linux``. Here, the machine
  2099. override is a special :term:`PACKAGE_ARCH`
  2100. definition for multiple ``meta-intel`` machines.
  2101. .. note::
  2102. For a layer that supports a single BSP, the override could just be
  2103. the value of :term:`MACHINE`.
  2104. By prepending paths in ``.bbappend`` files, you allow multiple append
  2105. files that reside in different layers but are used for the same
  2106. recipe to correctly extend the path.
  2107. :term:`FILESOVERRIDES`
  2108. A subset of :term:`OVERRIDES` used by the
  2109. OpenEmbedded build system for creating
  2110. :term:`FILESPATH`. The :term:`FILESOVERRIDES` variable
  2111. uses overrides to automatically extend the
  2112. :term:`FILESPATH` variable. For an example of how
  2113. that works, see the :term:`FILESPATH` variable
  2114. description. Additionally, you find more information on how overrides
  2115. are handled in the
  2116. ":ref:`bitbake:bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  2117. section of the BitBake User Manual.
  2118. By default, the :term:`FILESOVERRIDES` variable is defined as::
  2119. FILESOVERRIDES = "${TRANSLATED_TARGET_ARCH}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}"
  2120. .. note::
  2121. Do not hand-edit the :term:`FILESOVERRIDES` variable. The values match up
  2122. with expected overrides and are used in an expected manner by the
  2123. build system.
  2124. :term:`FILESPATH`
  2125. The default set of directories the OpenEmbedded build system uses
  2126. when searching for patches and files.
  2127. During the build process, BitBake searches each directory in
  2128. :term:`FILESPATH` in the specified order when looking for files and
  2129. patches specified by each ``file://`` URI in a recipe's
  2130. :term:`SRC_URI` statements.
  2131. The default value for the :term:`FILESPATH` variable is defined in the
  2132. :ref:`ref-classes-base` class found in ``meta/classes`` in the
  2133. :term:`Source Directory`::
  2134. FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}", \
  2135. "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
  2136. The
  2137. :term:`FILESPATH` variable is automatically extended using the overrides
  2138. from the :term:`FILESOVERRIDES` variable.
  2139. .. note::
  2140. - Do not hand-edit the :term:`FILESPATH` variable. If you want the
  2141. build system to look in directories other than the defaults,
  2142. extend the :term:`FILESPATH` variable by using the
  2143. :term:`FILESEXTRAPATHS` variable.
  2144. - Be aware that the default :term:`FILESPATH` directories do not map
  2145. to directories in custom layers where append files
  2146. (``.bbappend``) are used. If you want the build system to find
  2147. patches or files that reside with your append files, you need
  2148. to extend the :term:`FILESPATH` variable by using the
  2149. :term:`FILESEXTRAPATHS` variable.
  2150. You can take advantage of this searching behavior in useful ways. For
  2151. example, consider a case where there is the following directory structure
  2152. for general and machine-specific configurations::
  2153. files/defconfig
  2154. files/MACHINEA/defconfig
  2155. files/MACHINEB/defconfig
  2156. Also in the example, the :term:`SRC_URI` statement contains
  2157. "file://defconfig". Given this scenario, you can set
  2158. :term:`MACHINE` to "MACHINEA" and cause the build
  2159. system to use files from ``files/MACHINEA``. Set :term:`MACHINE` to
  2160. "MACHINEB" and the build system uses files from ``files/MACHINEB``.
  2161. Finally, for any machine other than "MACHINEA" and "MACHINEB", the
  2162. build system uses files from ``files/defconfig``.
  2163. You can find out more about the patching process in the
  2164. ":ref:`overview-manual/concepts:patching`" section
  2165. in the Yocto Project Overview and Concepts Manual and the
  2166. ":ref:`dev-manual/new-recipe:patching code`" section in
  2167. the Yocto Project Development Tasks Manual. See the
  2168. :ref:`ref-tasks-patch` task as well.
  2169. :term:`FILESYSTEM_PERMS_TABLES`
  2170. Allows you to define your own file permissions settings table as part
  2171. of your configuration for the packaging process. For example, suppose
  2172. you need a consistent set of custom permissions for a set of groups
  2173. and users across an entire work project. It is best to do this in the
  2174. packages themselves but this is not always possible.
  2175. By default, the OpenEmbedded build system uses the ``fs-perms.txt``,
  2176. which is located in the ``meta/files`` folder in the :term:`Source Directory`.
  2177. If you create your own file
  2178. permissions setting table, you should place it in your layer or the
  2179. distro's layer.
  2180. You define the :term:`FILESYSTEM_PERMS_TABLES` variable in the
  2181. ``conf/local.conf`` file, which is found in the :term:`Build Directory`,
  2182. to point to your custom
  2183. ``fs-perms.txt``. You can specify more than a single file permissions
  2184. setting table. The paths you specify to these files must be defined
  2185. within the :term:`BBPATH` variable.
  2186. For guidance on how to create your own file permissions settings
  2187. table file, examine the existing ``fs-perms.txt``.
  2188. :term:`FIT_CONF_PREFIX`
  2189. When using the :ref:`ref-classes-kernel-fitimage`, this is the prefix
  2190. used for creating FIT configuration nodes. Its default value is "conf-".
  2191. :term:`FIT_DESC`
  2192. Specifies the description string encoded into a fitImage. The default
  2193. value is set by the :ref:`kernel-fitimage <ref-classes-kernel-fitimage>`
  2194. class as follows::
  2195. FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
  2196. :term:`FIT_GENERATE_KEYS`
  2197. Decides whether to generate the keys for signing fitImage if they
  2198. don't already exist. The keys are created in :term:`UBOOT_SIGN_KEYDIR`.
  2199. The default value is 0.
  2200. :term:`FIT_HASH_ALG`
  2201. Specifies the hash algorithm used in creating the FIT Image. For e.g. sha256.
  2202. :term:`FIT_KERNEL_COMP_ALG`
  2203. Compression algorithm to use for the kernel image inside the FIT Image.
  2204. At present, the only supported values are "gzip" (default) or "none"
  2205. If you set this variable to anything other than "none" you may also need
  2206. to set :term:`FIT_KERNEL_COMP_ALG_EXTENSION`.
  2207. :term:`FIT_KERNEL_COMP_ALG_EXTENSION`
  2208. File extension corresponding to :term:`FIT_KERNEL_COMP_ALG`. The default
  2209. value is ".gz".
  2210. :term:`FIT_KEY_GENRSA_ARGS`
  2211. Arguments to openssl genrsa for generating RSA private key for signing
  2212. fitImage. The default value is "-F4". i.e. the public exponent 65537 to
  2213. use.
  2214. :term:`FIT_KEY_REQ_ARGS`
  2215. Arguments to openssl req for generating certificate for signing fitImage.
  2216. The default value is "-batch -new". batch for non interactive mode
  2217. and new for generating new keys.
  2218. :term:`FIT_KEY_SIGN_PKCS`
  2219. Format for public key certificate used in signing fitImage.
  2220. The default value is "x509".
  2221. :term:`FIT_SIGN_ALG`
  2222. Specifies the signature algorithm used in creating the FIT Image.
  2223. For e.g. rsa2048.
  2224. :term:`FIT_SIGN_INDIVIDUAL`
  2225. If set to "1", then the :ref:`kernel-fitimage <ref-classes-kernel-fitimage>`
  2226. class will sign the kernel, dtb and ramdisk images individually in addition
  2227. to signing the fitImage itself. This could be useful if you are
  2228. intending to verify signatures in another context than booting via
  2229. U-Boot.
  2230. :term:`FIT_SIGN_NUMBITS`
  2231. Size of private key in number of bits used in fitImage. The default
  2232. value is "2048".
  2233. :term:`FONT_EXTRA_RDEPENDS`
  2234. When inheriting the :ref:`fontcache <ref-classes-fontcache>` class,
  2235. this variable specifies the runtime dependencies for font packages.
  2236. By default, the :term:`FONT_EXTRA_RDEPENDS` is set to "fontconfig-utils".
  2237. :term:`FONT_PACKAGES`
  2238. When inheriting the :ref:`fontcache <ref-classes-fontcache>` class,
  2239. this variable identifies packages containing font files that need to
  2240. be cached by Fontconfig. By default, the :ref:`fontcache <ref-classes-fontcache>` class assumes
  2241. that fonts are in the recipe's main package (i.e.
  2242. ``${``\ :term:`PN`\ ``}``). Use this variable if fonts you
  2243. need are in a package other than that main package.
  2244. :term:`FORCE_RO_REMOVE`
  2245. Forces the removal of the packages listed in ``ROOTFS_RO_UNNEEDED``
  2246. during the generation of the root filesystem.
  2247. Set the variable to "1" to force the removal of these packages.
  2248. :term:`FULL_OPTIMIZATION`
  2249. The options to pass in :term:`TARGET_CFLAGS` and :term:`CFLAGS` when
  2250. compiling an optimized system. This variable defaults to "-O2 -pipe
  2251. ${DEBUG_FLAGS}".
  2252. :term:`GCCPIE`
  2253. Enables Position Independent Executables (PIE) within the GNU C
  2254. Compiler (GCC). Enabling PIE in the GCC makes Return Oriented
  2255. Programming (ROP) attacks much more difficult to execute.
  2256. By default the ``security_flags.inc`` file enables PIE by setting the
  2257. variable as follows::
  2258. GCCPIE ?= "--enable-default-pie"
  2259. :term:`GCCVERSION`
  2260. Specifies the default version of the GNU C Compiler (GCC) used for
  2261. compilation. By default, :term:`GCCVERSION` is set to "8.x" in the
  2262. ``meta/conf/distro/include/tcmode-default.inc`` include file::
  2263. GCCVERSION ?= "8.%"
  2264. You can override this value by setting it in a
  2265. configuration file such as the ``local.conf``.
  2266. :term:`GDB`
  2267. The minimal command and arguments to run the GNU Debugger.
  2268. :term:`GIR_EXTRA_LIBS_PATH`
  2269. Allows to specify an extra search path for ``.so`` files
  2270. in GLib related recipes using GObject introspection,
  2271. and which do not compile without this setting.
  2272. See the ":ref:`dev-manual/gobject-introspection:enabling gobject introspection support`"
  2273. section for details.
  2274. :term:`GITDIR`
  2275. The directory in which a local copy of a Git repository is stored
  2276. when it is cloned.
  2277. :term:`GLIBC_GENERATE_LOCALES`
  2278. Specifies the list of GLIBC locales to generate should you not wish
  2279. to generate all LIBC locals, which can be time consuming.
  2280. .. note::
  2281. If you specifically remove the locale ``en_US.UTF-8``, you must set
  2282. :term:`IMAGE_LINGUAS` appropriately.
  2283. You can set :term:`GLIBC_GENERATE_LOCALES` in your ``local.conf`` file.
  2284. By default, all locales are generated.
  2285. ::
  2286. GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 en_US.UTF-8"
  2287. :term:`GO_IMPORT`
  2288. When inheriting the :ref:`ref-classes-go` class, this mandatory variable
  2289. sets the import path for the Go package that will be created for the code
  2290. to build. If you have a ``go.mod`` file in the source directory, this
  2291. typically matches the path in the ``module`` line in this file.
  2292. Other Go programs importing this package will use this path.
  2293. Here is an example setting from the
  2294. :yocto_git:`go-helloworld_0.1.bb </poky/tree/meta/recipes-extended/go-examples/go-helloworld_0.1.bb>`
  2295. recipe::
  2296. GO_IMPORT = "golang.org/x/example"
  2297. :term:`GO_INSTALL`
  2298. When inheriting the :ref:`ref-classes-go` class, this optional variable
  2299. specifies which packages in the sources should be compiled and
  2300. installed in the Go build space by the
  2301. `go install <https://go.dev/ref/mod#go-install>`__ command.
  2302. Here is an example setting from the
  2303. :oe_git:`crucible </meta-openembedded/tree/meta-oe/recipes-support/crucible/>`
  2304. recipe::
  2305. GO_INSTALL = "\
  2306. ${GO_IMPORT}/cmd/crucible \
  2307. ${GO_IMPORT}/cmd/habtool \
  2308. "
  2309. By default, :term:`GO_INSTALL` is defined as::
  2310. GO_INSTALL ?= "${GO_IMPORT}/..."
  2311. The ``...`` wildcard means that it will catch all
  2312. packages found in the sources.
  2313. See the :term:`GO_INSTALL_FILTEROUT` variable for
  2314. filtering out unwanted packages from the ones
  2315. found from the :term:`GO_INSTALL` value.
  2316. :term:`GO_INSTALL_FILTEROUT`
  2317. When using the Go "vendor" mechanism to bring in dependencies for a Go
  2318. package, the default :term:`GO_INSTALL` setting, which uses the ``...``
  2319. wildcard, will include the vendored packages in the build, which produces
  2320. incorrect results.
  2321. There are also some Go packages that are structured poorly, so that the
  2322. ``...`` wildcard results in building example or test code that should not
  2323. be included in the build, or could fail to build.
  2324. This optional variable allows for filtering out a subset of the sources.
  2325. It defaults to excluding everything under the ``vendor`` subdirectory
  2326. under package's main directory. This is the normal location for vendored
  2327. packages, but it can be overridden by a recipe to filter out other
  2328. subdirectories if needed.
  2329. :term:`GO_WORKDIR`
  2330. When using Go Modules, the current working directory must be the directory
  2331. containing the ``go.mod`` file, or one of its subdirectories. When the
  2332. ``go`` tool is used, it will automatically look for the ``go.mod`` file
  2333. in the Go working directory or in any parent directory, but not in
  2334. subdirectories.
  2335. When using the :ref:`ref-classes-go-mod` class to use Go modules,
  2336. the optional :term:`GO_WORKDIR` variable, defaulting to the value
  2337. of :term:`GO_IMPORT`, allows to specify a different Go working directory.
  2338. :term:`GROUPADD_PARAM`
  2339. When inheriting the :ref:`useradd <ref-classes-useradd>` class,
  2340. this variable specifies for a package what parameters should be
  2341. passed to the ``groupadd`` command if you wish to add a group to the
  2342. system when the package is installed.
  2343. Here is an example from the ``dbus`` recipe::
  2344. GROUPADD_PARAM:${PN} = "-r netdev"
  2345. More than one group can be added by separating each set of different
  2346. groups' parameters with a semicolon.
  2347. Here is an example adding multiple groups from the ``useradd-example.bb``
  2348. file in the ``meta-skeleton`` layer::
  2349. GROUPADD_PARAM:${PN} = "-g 880 group1; -g 890 group2"
  2350. For information on the standard Linux shell command
  2351. ``groupadd``, see https://linux.die.net/man/8/groupadd.
  2352. :term:`GROUPMEMS_PARAM`
  2353. When inheriting the :ref:`useradd <ref-classes-useradd>` class,
  2354. this variable specifies for a package what parameters should be
  2355. passed to the ``groupmems`` command if you wish to modify the members
  2356. of a group when the package is installed.
  2357. For information on the standard Linux shell command ``groupmems``,
  2358. see https://linux.die.net/man/8/groupmems.
  2359. :term:`GRUB_GFXSERIAL`
  2360. Configures the GNU GRand Unified Bootloader (GRUB) to have graphics
  2361. and serial in the boot menu. Set this variable to "1" in your
  2362. ``local.conf`` or distribution configuration file to enable graphics
  2363. and serial in the menu.
  2364. See the :ref:`grub-efi <ref-classes-grub-efi>` class for more
  2365. information on how this variable is used.
  2366. :term:`GRUB_OPTS`
  2367. Additional options to add to the GNU GRand Unified Bootloader (GRUB)
  2368. configuration. Use a semi-colon character (``;``) to separate
  2369. multiple options.
  2370. The :term:`GRUB_OPTS` variable is optional. See the
  2371. :ref:`grub-efi <ref-classes-grub-efi>` class for more information
  2372. on how this variable is used.
  2373. :term:`GRUB_TIMEOUT`
  2374. Specifies the timeout before executing the default ``LABEL`` in the
  2375. GNU GRand Unified Bootloader (GRUB).
  2376. The :term:`GRUB_TIMEOUT` variable is optional. See the
  2377. :ref:`grub-efi <ref-classes-grub-efi>` class for more information
  2378. on how this variable is used.
  2379. :term:`GTKIMMODULES_PACKAGES`
  2380. When inheriting the
  2381. :ref:`gtk-immodules-cache <ref-classes-gtk-immodules-cache>` class,
  2382. this variable specifies the packages that contain the GTK+ input
  2383. method modules being installed when the modules are in packages other
  2384. than the main package.
  2385. :term:`HOMEPAGE`
  2386. Website where more information about the software the recipe is
  2387. building can be found.
  2388. :term:`HOST_ARCH`
  2389. The name of the target architecture, which is normally the same as
  2390. :term:`TARGET_ARCH`. The OpenEmbedded build system
  2391. supports many architectures. Here is an example list of architectures
  2392. supported. This list is by no means complete as the architecture is
  2393. configurable:
  2394. - arm
  2395. - i586
  2396. - x86_64
  2397. - powerpc
  2398. - powerpc64
  2399. - mips
  2400. - mipsel
  2401. :term:`HOST_CC_ARCH`
  2402. Specifies architecture-specific compiler flags that are passed to the
  2403. C compiler.
  2404. Default initialization for :term:`HOST_CC_ARCH` varies depending on what
  2405. is being built:
  2406. - :term:`TARGET_CC_ARCH` when building for the
  2407. target
  2408. - :term:`BUILD_CC_ARCH` when building for the build host (i.e.
  2409. ``-native``)
  2410. - ``BUILDSDK_CC_ARCH`` when building for an SDK (i.e.
  2411. ``nativesdk-``)
  2412. :term:`HOST_OS`
  2413. Specifies the name of the target operating system, which is normally
  2414. the same as the :term:`TARGET_OS`. The variable can
  2415. be set to "linux" for ``glibc``-based systems and to "linux-musl" for
  2416. ``musl``. For ARM/EABI targets, there are also "linux-gnueabi" and
  2417. "linux-musleabi" values possible.
  2418. :term:`HOST_PREFIX`
  2419. Specifies the prefix for the cross-compile toolchain. :term:`HOST_PREFIX`
  2420. is normally the same as :term:`TARGET_PREFIX`.
  2421. :term:`HOST_SYS`
  2422. Specifies the system, including the architecture and the operating
  2423. system, for which the build is occurring in the context of the
  2424. current recipe.
  2425. The OpenEmbedded build system automatically sets this variable based
  2426. on :term:`HOST_ARCH`,
  2427. :term:`HOST_VENDOR`, and
  2428. :term:`HOST_OS` variables.
  2429. .. note::
  2430. You do not need to set the variable yourself.
  2431. Consider these two examples:
  2432. - Given a native recipe on a 32-bit x86 machine running Linux, the
  2433. value is "i686-linux".
  2434. - Given a recipe being built for a little-endian MIPS target running
  2435. Linux, the value might be "mipsel-linux".
  2436. :term:`HOST_VENDOR`
  2437. Specifies the name of the vendor. :term:`HOST_VENDOR` is normally the
  2438. same as :term:`TARGET_VENDOR`.
  2439. :term:`HOSTTOOLS`
  2440. A space-separated list (filter) of tools on the build host that
  2441. should be allowed to be called from within build tasks. Using this
  2442. filter helps reduce the possibility of host contamination. If a tool
  2443. specified in the value of :term:`HOSTTOOLS` is not found on the build
  2444. host, the OpenEmbedded build system produces an error and the build
  2445. is not started.
  2446. For additional information, see
  2447. :term:`HOSTTOOLS_NONFATAL`.
  2448. :term:`HOSTTOOLS_NONFATAL`
  2449. A space-separated list (filter) of tools on the build host that
  2450. should be allowed to be called from within build tasks. Using this
  2451. filter helps reduce the possibility of host contamination. Unlike
  2452. :term:`HOSTTOOLS`, the OpenEmbedded build system
  2453. does not produce an error if a tool specified in the value of
  2454. :term:`HOSTTOOLS_NONFATAL` is not found on the build host. Thus, you can
  2455. use :term:`HOSTTOOLS_NONFATAL` to filter optional host tools.
  2456. :term:`ICECC_CLASS_DISABLE`
  2457. Identifies user classes that you do not want the Icecream distributed
  2458. compile support to consider. This variable is used by the
  2459. :ref:`icecc <ref-classes-icecc>` class. You set this variable in
  2460. your ``local.conf`` file.
  2461. When you list classes using this variable, the recipes inheriting
  2462. those classes will not benefit from distributed compilation across
  2463. remote hosts. Instead they will be built locally.
  2464. :term:`ICECC_DISABLED`
  2465. Disables or enables the ``icecc`` (Icecream) function. For more
  2466. information on this function and best practices for using this
  2467. variable, see the ":ref:`ref-classes-icecc`"
  2468. section.
  2469. Setting this variable to "1" in your ``local.conf`` disables the
  2470. function::
  2471. ICECC_DISABLED ??= "1"
  2472. To enable the function, set the variable as follows::
  2473. ICECC_DISABLED = ""
  2474. :term:`ICECC_ENV_EXEC`
  2475. Points to the ``icecc-create-env`` script that you provide. This
  2476. variable is used by the :ref:`icecc <ref-classes-icecc>` class. You
  2477. set this variable in your ``local.conf`` file.
  2478. If you do not point to a script that you provide, the OpenEmbedded
  2479. build system uses the default script provided by the
  2480. ``icecc-create-env.bb`` recipe, which is a modified version and not
  2481. the one that comes with ``icecc``.
  2482. :term:`ICECC_PARALLEL_MAKE`
  2483. Extra options passed to the ``make`` command during the
  2484. :ref:`ref-tasks-compile` task that specify parallel
  2485. compilation. This variable usually takes the form of "-j x", where x
  2486. represents the maximum number of parallel threads ``make`` can run.
  2487. .. note::
  2488. The options passed affect builds on all enabled machines on the
  2489. network, which are machines running the ``iceccd`` daemon.
  2490. If your enabled machines support multiple cores, coming up with the
  2491. maximum number of parallel threads that gives you the best
  2492. performance could take some experimentation since machine speed,
  2493. network lag, available memory, and existing machine loads can all
  2494. affect build time. Consequently, unlike the
  2495. :term:`PARALLEL_MAKE` variable, there is no
  2496. rule-of-thumb for setting :term:`ICECC_PARALLEL_MAKE` to achieve optimal
  2497. performance.
  2498. If you do not set :term:`ICECC_PARALLEL_MAKE`, the build system does not
  2499. use it (i.e. the system does not detect and assign the number of
  2500. cores as is done with :term:`PARALLEL_MAKE`).
  2501. :term:`ICECC_PATH`
  2502. The location of the ``icecc`` binary. You can set this variable in
  2503. your ``local.conf`` file. If your ``local.conf`` file does not define
  2504. this variable, the :ref:`icecc <ref-classes-icecc>` class attempts
  2505. to define it by locating ``icecc`` using ``which``.
  2506. :term:`ICECC_RECIPE_DISABLE`
  2507. Identifies user recipes that you do not want the Icecream distributed
  2508. compile support to consider. This variable is used by the
  2509. :ref:`icecc <ref-classes-icecc>` class. You set this variable in
  2510. your ``local.conf`` file.
  2511. When you list recipes using this variable, you are excluding them
  2512. from distributed compilation across remote hosts. Instead they will
  2513. be built locally.
  2514. :term:`ICECC_RECIPE_ENABLE`
  2515. Identifies user recipes that use an empty
  2516. :term:`PARALLEL_MAKE` variable that you want to
  2517. force remote distributed compilation on using the Icecream
  2518. distributed compile support. This variable is used by the
  2519. :ref:`icecc <ref-classes-icecc>` class. You set this variable in
  2520. your ``local.conf`` file.
  2521. :term:`IMAGE_BASENAME`
  2522. The base name of image output files. This variable defaults to the
  2523. recipe name (``${``\ :term:`PN`\ ``}``).
  2524. :term:`IMAGE_BOOT_FILES`
  2525. A space-separated list of files installed into the boot partition
  2526. when preparing an image using the Wic tool with the
  2527. ``bootimg-partition`` source plugin. By default,
  2528. the files are
  2529. installed under the same name as the source files. To change the
  2530. installed name, separate it from the original name with a semi-colon
  2531. (;). Source files need to be located in
  2532. :term:`DEPLOY_DIR_IMAGE`. Here are two
  2533. examples::
  2534. IMAGE_BOOT_FILES = "u-boot.img uImage;kernel"
  2535. IMAGE_BOOT_FILES = "u-boot.${UBOOT_SUFFIX} ${KERNEL_IMAGETYPE}"
  2536. Alternatively, source files can be picked up using a glob pattern. In
  2537. this case, the destination file must have the same name as the base
  2538. name of the source file path. To install files into a directory
  2539. within the target location, pass its name after a semi-colon (;).
  2540. Here are two examples::
  2541. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*"
  2542. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*;boot/"
  2543. The first example
  2544. installs all files from ``${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles``
  2545. into the root of the target partition. The second example installs
  2546. the same files into a ``boot`` directory within the target partition.
  2547. You can find information on how to use the Wic tool in the
  2548. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  2549. section of the Yocto Project Development Tasks Manual. Reference
  2550. material for Wic is located in the
  2551. ":doc:`/ref-manual/kickstart`" chapter.
  2552. :term:`IMAGE_BUILDINFO_FILE`
  2553. When using the :ref:`ref-classes-image-buildinfo` class,
  2554. specifies the file in the image to write the build information into. The
  2555. default value is "``${sysconfdir}/buildinfo``".
  2556. :term:`IMAGE_BUILDINFO_VARS`
  2557. When using the :ref:`ref-classes-image-buildinfo` class,
  2558. specifies the list of variables to include in the `Build Configuration`
  2559. section of the output file (as a space-separated list). Defaults to
  2560. ":term:`DISTRO` :term:`DISTRO_VERSION`".
  2561. :term:`IMAGE_CLASSES`
  2562. A list of classes that all images should inherit. This is typically used
  2563. to enable functionality across all image recipes.
  2564. Classes specified in :term:`IMAGE_CLASSES` must be located in the
  2565. ``classes-recipe/`` or ``classes/`` subdirectories.
  2566. :term:`IMAGE_CMD`
  2567. Specifies the command to create the image file for a specific image
  2568. type, which corresponds to the value set in
  2569. :term:`IMAGE_FSTYPES`, (e.g. ``ext3``,
  2570. ``btrfs``, and so forth). When setting this variable, you should use
  2571. an override for the associated type. Here is an example::
  2572. IMAGE_CMD:jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime \
  2573. --output=${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.jffs2 \
  2574. ${EXTRA_IMAGECMD}"
  2575. You typically do not need to set this variable unless you are adding
  2576. support for a new image type. For more examples on how to set this
  2577. variable, see the :ref:`image_types <ref-classes-image_types>`
  2578. class file, which is ``meta/classes/image_types.bbclass``.
  2579. :term:`IMAGE_DEVICE_TABLES`
  2580. Specifies one or more files that contain custom device tables that
  2581. are passed to the ``makedevs`` command as part of creating an image.
  2582. These files list basic device nodes that should be created under
  2583. ``/dev`` within the image. If :term:`IMAGE_DEVICE_TABLES` is not set,
  2584. ``files/device_table-minimal.txt`` is used, which is located by
  2585. :term:`BBPATH`. For details on how you should write
  2586. device table files, see ``meta/files/device_table-minimal.txt`` as an
  2587. example.
  2588. :term:`IMAGE_EFI_BOOT_FILES`
  2589. A space-separated list of files installed into the boot partition
  2590. when preparing an image using the Wic tool with the
  2591. ``bootimg-efi`` source plugin. By default,
  2592. the files are
  2593. installed under the same name as the source files. To change the
  2594. installed name, separate it from the original name with a semi-colon
  2595. (;). Source files need to be located in
  2596. :term:`DEPLOY_DIR_IMAGE`. Here are two
  2597. examples::
  2598. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE};bz2"
  2599. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE} microcode.cpio"
  2600. Alternatively, source files can be picked up using a glob pattern. In
  2601. this case, the destination file must have the same name as the base
  2602. name of the source file path. To install files into a directory
  2603. within the target location, pass its name after a semi-colon (;).
  2604. Here are two examples::
  2605. IMAGE_EFI_BOOT_FILES = "boot/loader/*"
  2606. IMAGE_EFI_BOOT_FILES = "boot/loader/*;boot/"
  2607. The first example
  2608. installs all files from ``${DEPLOY_DIR_IMAGE}/boot/loader/``
  2609. into the root of the target partition. The second example installs
  2610. the same files into a ``boot`` directory within the target partition.
  2611. You can find information on how to use the Wic tool in the
  2612. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  2613. section of the Yocto Project Development Tasks Manual. Reference
  2614. material for Wic is located in the
  2615. ":doc:`/ref-manual/kickstart`" chapter.
  2616. :term:`IMAGE_FEATURES`
  2617. The primary list of features to include in an image. Typically, you
  2618. configure this variable in an image recipe. Although you can use this
  2619. variable from your ``local.conf`` file, which is found in the
  2620. :term:`Build Directory`, best practices dictate that you do
  2621. not.
  2622. .. note::
  2623. To enable extra features from outside the image recipe, use the
  2624. :term:`EXTRA_IMAGE_FEATURES` variable.
  2625. For a list of image features that ships with the Yocto Project, see
  2626. the ":ref:`ref-features-image`" section.
  2627. For an example that shows how to customize your image by using this
  2628. variable, see the ":ref:`dev-manual/customizing-images:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  2629. section in the Yocto Project Development Tasks Manual.
  2630. :term:`IMAGE_FSTYPES`
  2631. Specifies the formats the OpenEmbedded build system uses during the
  2632. build when creating the root filesystem. For example, setting
  2633. :term:`IMAGE_FSTYPES` as follows causes the build system to create root
  2634. filesystems using two formats: ``.ext3`` and ``.tar.bz2``::
  2635. IMAGE_FSTYPES = "ext3 tar.bz2"
  2636. For the complete list of supported image formats from which you can
  2637. choose, see :term:`IMAGE_TYPES`.
  2638. .. note::
  2639. - If an image recipe uses the "inherit image" line and you are
  2640. setting :term:`IMAGE_FSTYPES` inside the recipe, you must set
  2641. :term:`IMAGE_FSTYPES` prior to using the "inherit image" line.
  2642. - Due to the way the OpenEmbedded build system processes this
  2643. variable, you cannot update its contents by using ``:append``
  2644. or ``:prepend``. You must use the ``+=`` operator to add one or
  2645. more options to the :term:`IMAGE_FSTYPES` variable.
  2646. :term:`IMAGE_INSTALL`
  2647. Used by recipes to specify the packages to install into an image
  2648. through the :ref:`image <ref-classes-image>` class. Use the
  2649. :term:`IMAGE_INSTALL` variable with care to avoid ordering issues.
  2650. Image recipes set :term:`IMAGE_INSTALL` to specify the packages to
  2651. install into an image through :ref:`ref-classes-image`. Additionally,
  2652. there are "helper" classes such as the
  2653. :ref:`core-image <ref-classes-core-image>` class which can
  2654. take lists used with :term:`IMAGE_FEATURES` and turn them into
  2655. auto-generated entries in :term:`IMAGE_INSTALL` in addition to its
  2656. default contents.
  2657. When you use this variable, it is best to use it as follows::
  2658. IMAGE_INSTALL:append = " package-name"
  2659. Be sure to include the space
  2660. between the quotation character and the start of the package name or
  2661. names.
  2662. .. note::
  2663. - When working with a
  2664. :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  2665. image, do not use the :term:`IMAGE_INSTALL` variable to specify
  2666. packages for installation. Instead, use the
  2667. :term:`PACKAGE_INSTALL` variable, which
  2668. allows the initial RAM filesystem (initramfs) recipe to use a
  2669. fixed set of packages and not be affected by :term:`IMAGE_INSTALL`.
  2670. For information on creating an :term:`Initramfs`, see the
  2671. ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`"
  2672. section in the Yocto Project Development Tasks Manual.
  2673. - Using :term:`IMAGE_INSTALL` with the
  2674. :ref:`+= <bitbake:bitbake-user-manual/bitbake-user-manual-metadata:appending (+=) and prepending (=+) with spaces>`
  2675. BitBake operator within the ``/conf/local.conf`` file or from
  2676. within an image recipe is not recommended. Use of this operator
  2677. in these ways can cause ordering issues. Since
  2678. :ref:`ref-classes-core-image` sets :term:`IMAGE_INSTALL` to a default
  2679. value using the
  2680. :ref:`?= <bitbake:bitbake-user-manual/bitbake-user-manual-metadata:setting a default value (?=)>`
  2681. operator, using a ``+=`` operation against :term:`IMAGE_INSTALL`
  2682. results in unexpected behavior when used within
  2683. ``conf/local.conf``. Furthermore, the same operation from
  2684. within an image recipe may or may not succeed depending on the
  2685. specific situation. In both these cases, the behavior is
  2686. contrary to how most users expect the ``+=`` operator to work.
  2687. :term:`IMAGE_LINGUAS`
  2688. Specifies the list of locales to install into the image during the
  2689. root filesystem construction process. The OpenEmbedded build system
  2690. automatically splits locale files, which are used for localization,
  2691. into separate packages. Setting the :term:`IMAGE_LINGUAS` variable
  2692. ensures that any locale packages that correspond to packages already
  2693. selected for installation into the image are also installed. Here is
  2694. an example::
  2695. IMAGE_LINGUAS = "pt-br de-de"
  2696. In this example, the build system ensures any Brazilian Portuguese
  2697. and German locale files that correspond to packages in the image are
  2698. installed (i.e. ``*-locale-pt-br`` and ``*-locale-de-de`` as well as
  2699. ``*-locale-pt`` and ``*-locale-de``, since some software packages
  2700. only provide locale files by language and not by country-specific
  2701. language).
  2702. See the :term:`GLIBC_GENERATE_LOCALES`
  2703. variable for information on generating GLIBC locales.
  2704. :term:`IMAGE_LINK_NAME`
  2705. The name of the output image symlink (which does not include
  2706. the version part as :term:`IMAGE_NAME` does). The default value
  2707. is derived using the :term:`IMAGE_BASENAME` and :term:`MACHINE`
  2708. variables::
  2709. IMAGE_LINK_NAME ?= "${IMAGE_BASENAME}-${MACHINE}"
  2710. :term:`IMAGE_MANIFEST`
  2711. The manifest file for the image. This file lists all the installed
  2712. packages that make up the image. The file contains package
  2713. information on a line-per-package basis as follows::
  2714. packagename packagearch version
  2715. The :ref:`rootfs-postcommands <ref-classes-rootfs*>` class defines the manifest
  2716. file as follows::
  2717. IMAGE_MANIFEST ="${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.manifest"
  2718. The location is
  2719. derived using the :term:`IMGDEPLOYDIR`
  2720. and :term:`IMAGE_NAME` variables. You can find
  2721. information on how the image is created in the ":ref:`overview-manual/concepts:image generation`"
  2722. section in the Yocto Project Overview and Concepts Manual.
  2723. :term:`IMAGE_NAME`
  2724. The name of the output image files minus the extension. This variable
  2725. is derived using the :term:`IMAGE_BASENAME`,
  2726. :term:`MACHINE`, and :term:`IMAGE_VERSION_SUFFIX`
  2727. variables::
  2728. IMAGE_NAME ?= "${IMAGE_BASENAME}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  2729. :term:`IMAGE_NAME_SUFFIX`
  2730. Suffix used for the image output filename --- defaults to ``".rootfs"``
  2731. to distinguish the image file from other files created during image
  2732. building; however if this suffix is redundant or not desired you can
  2733. clear the value of this variable (set the value to ""). For example,
  2734. this is typically cleared in initramfs image recipes.
  2735. :term:`IMAGE_OVERHEAD_FACTOR`
  2736. Defines a multiplier that the build system applies to the initial
  2737. image size for cases when the multiplier times the returned disk
  2738. usage value for the image is greater than the sum of
  2739. :term:`IMAGE_ROOTFS_SIZE` and :term:`IMAGE_ROOTFS_EXTRA_SPACE`. The result of
  2740. the multiplier applied to the initial image size creates free disk
  2741. space in the image as overhead. By default, the build process uses a
  2742. multiplier of 1.3 for this variable. This default value results in
  2743. 30% free disk space added to the image when this method is used to
  2744. determine the final generated image size. You should be aware that
  2745. post install scripts and the package management system uses disk
  2746. space inside this overhead area. Consequently, the multiplier does
  2747. not produce an image with all the theoretical free disk space. See
  2748. :term:`IMAGE_ROOTFS_SIZE` for information on how the build system
  2749. determines the overall image size.
  2750. The default 30% free disk space typically gives the image enough room
  2751. to boot and allows for basic post installs while still leaving a
  2752. small amount of free disk space. If 30% free space is inadequate, you
  2753. can increase the default value. For example, the following setting
  2754. gives you 50% free space added to the image::
  2755. IMAGE_OVERHEAD_FACTOR = "1.5"
  2756. Alternatively, you can ensure a specific amount of free disk space is
  2757. added to the image by using the :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  2758. variable.
  2759. When using Wic tool, beware that a second overhead factor is also applied.
  2760. This overhead value is defined by the ``--overhead-factor`` option, which
  2761. defaults to "1.3" when omitted. See the
  2762. :ref:`ref-manual/kickstart:command: part or partition` chapter in
  2763. :doc:`/ref-manual/kickstart` for details.
  2764. :term:`IMAGE_PKGTYPE`
  2765. Defines the package type (i.e. DEB, RPM, IPK, or TAR) used by the
  2766. OpenEmbedded build system. The variable is defined appropriately by
  2767. the :ref:`package_deb <ref-classes-package_deb>`,
  2768. :ref:`package_rpm <ref-classes-package_rpm>`,
  2769. :ref:`package_ipk <ref-classes-package_ipk>`, or
  2770. :ref:`package_tar <ref-classes-package_tar>` class.
  2771. .. note::
  2772. The ``package_tar`` class is broken and is not supported. It is
  2773. recommended that you do not use it.
  2774. The :ref:`populate_sdk_* <ref-classes-populate-sdk-*>` and
  2775. :ref:`image <ref-classes-image>` classes use the :term:`IMAGE_PKGTYPE`
  2776. for packaging up images and SDKs.
  2777. You should not set the :term:`IMAGE_PKGTYPE` manually. Rather, the
  2778. variable is set indirectly through the appropriate
  2779. :ref:`package_* <ref-classes-package>` class using the
  2780. :term:`PACKAGE_CLASSES` variable. The
  2781. OpenEmbedded build system uses the first package type (e.g. DEB, RPM,
  2782. or IPK) that appears with the variable
  2783. .. note::
  2784. Files using the ``.tar`` format are never used as a substitute
  2785. packaging format for DEB, RPM, and IPK formatted files for your image
  2786. or SDK.
  2787. :term:`IMAGE_POSTPROCESS_COMMAND`
  2788. Specifies a list of functions to call once the OpenEmbedded build
  2789. system creates the final image output files. You can specify
  2790. functions separated by semicolons::
  2791. IMAGE_POSTPROCESS_COMMAND += "function; ... "
  2792. If you need to pass the root filesystem path to a command within the
  2793. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  2794. directory that becomes the root filesystem image. See the
  2795. :term:`IMAGE_ROOTFS` variable for more
  2796. information.
  2797. :term:`IMAGE_PREPROCESS_COMMAND`
  2798. Specifies a list of functions to call before the OpenEmbedded build
  2799. system creates the final image output files. You can specify
  2800. functions separated by semicolons::
  2801. IMAGE_PREPROCESS_COMMAND += "function; ... "
  2802. If you need to pass the root filesystem path to a command within the
  2803. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  2804. directory that becomes the root filesystem image. See the
  2805. :term:`IMAGE_ROOTFS` variable for more
  2806. information.
  2807. :term:`IMAGE_ROOTFS`
  2808. The location of the root filesystem while it is under construction
  2809. (i.e. during the :ref:`ref-tasks-rootfs` task). This
  2810. variable is not configurable. Do not change it.
  2811. :term:`IMAGE_ROOTFS_ALIGNMENT`
  2812. Specifies the alignment for the output image file in Kbytes. If the
  2813. size of the image is not a multiple of this value, then the size is
  2814. rounded up to the nearest multiple of the value. The default value is
  2815. "1". See :term:`IMAGE_ROOTFS_SIZE` for
  2816. additional information.
  2817. :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  2818. Defines additional free disk space created in the image in Kbytes. By
  2819. default, this variable is set to "0". This free disk space is added
  2820. to the image after the build system determines the image size as
  2821. described in :term:`IMAGE_ROOTFS_SIZE`.
  2822. This variable is particularly useful when you want to ensure that a
  2823. specific amount of free disk space is available on a device after an
  2824. image is installed and running. For example, to be sure 5 Gbytes of
  2825. free disk space is available, set the variable as follows::
  2826. IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
  2827. For example, the Yocto Project Build Appliance specifically requests
  2828. 40 Gbytes of extra space with the line::
  2829. IMAGE_ROOTFS_EXTRA_SPACE = "41943040"
  2830. :term:`IMAGE_ROOTFS_MAXSIZE`
  2831. Defines the maximum allowed size of the generated image in kilobytes.
  2832. The build will fail if the generated image size exceeds this value.
  2833. The generated image size undergoes several calculation steps before being
  2834. compared to :term:`IMAGE_ROOTFS_MAXSIZE`.
  2835. In the first step, the size of the directory pointed to by :term:`IMAGE_ROOTFS`
  2836. is calculated.
  2837. In the second step, the result from the first step is multiplied
  2838. by :term:`IMAGE_OVERHEAD_FACTOR`.
  2839. In the third step, the result from the second step is compared with
  2840. :term:`IMAGE_ROOTFS_SIZE`. The larger value of these is added to
  2841. :term:`IMAGE_ROOTFS_EXTRA_SPACE`.
  2842. In the fourth step, the result from the third step is checked for
  2843. a decimal part. If it has one, it is rounded up to the next integer.
  2844. If it does not, it is simply converted into an integer.
  2845. In the fifth step, the :term:`IMAGE_ROOTFS_ALIGNMENT` is added to the result
  2846. from the fourth step and "1" is subtracted.
  2847. In the sixth step, the remainder of the division between the result
  2848. from the fifth step and :term:`IMAGE_ROOTFS_ALIGNMENT` is subtracted from the
  2849. result of the fifth step. In this way, the result from the fourth step is
  2850. rounded up to the nearest multiple of :term:`IMAGE_ROOTFS_ALIGNMENT`.
  2851. Thus, if the :term:`IMAGE_ROOTFS_MAXSIZE` is set, is compared with the result
  2852. of the above calculations and is independent of the final image type.
  2853. No default value is set for :term:`IMAGE_ROOTFS_MAXSIZE`.
  2854. It's a good idea to set this variable for images that need to fit on a limited
  2855. space (e.g. SD card, a fixed-size partition, ...).
  2856. :term:`IMAGE_ROOTFS_SIZE`
  2857. Defines the size in Kbytes for the generated image. The OpenEmbedded
  2858. build system determines the final size for the generated image using
  2859. an algorithm that takes into account the initial disk space used for
  2860. the generated image, a requested size for the image, and requested
  2861. additional free disk space to be added to the image. Programatically,
  2862. the build system determines the final size of the generated image as
  2863. follows::
  2864. if (image-du * overhead) < rootfs-size:
  2865. internal-rootfs-size = rootfs-size + xspace
  2866. else:
  2867. internal-rootfs-size = (image-du * overhead) + xspace
  2868. where:
  2869. image-du = Returned value of the du command on the image.
  2870. overhead = IMAGE_OVERHEAD_FACTOR
  2871. rootfs-size = IMAGE_ROOTFS_SIZE
  2872. internal-rootfs-size = Initial root filesystem size before any modifications.
  2873. xspace = IMAGE_ROOTFS_EXTRA_SPACE
  2874. See the :term:`IMAGE_OVERHEAD_FACTOR`
  2875. and :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  2876. variables for related information.
  2877. :term:`IMAGE_TYPEDEP`
  2878. Specifies a dependency from one image type on another. Here is an
  2879. example from the :ref:`image-live <ref-classes-image-live>` class::
  2880. IMAGE_TYPEDEP:live = "ext3"
  2881. In the previous example, the variable ensures that when "live" is
  2882. listed with the :term:`IMAGE_FSTYPES` variable,
  2883. the OpenEmbedded build system produces an ``ext3`` image first since
  2884. one of the components of the live image is an ``ext3`` formatted
  2885. partition containing the root filesystem.
  2886. :term:`IMAGE_TYPES`
  2887. Specifies the complete list of supported image types by default:
  2888. - btrfs
  2889. - container
  2890. - cpio
  2891. - cpio.gz
  2892. - cpio.lz4
  2893. - cpio.lzma
  2894. - cpio.xz
  2895. - cramfs
  2896. - erofs
  2897. - erofs-lz4
  2898. - erofs-lz4hc
  2899. - ext2
  2900. - ext2.bz2
  2901. - ext2.gz
  2902. - ext2.lzma
  2903. - ext3
  2904. - ext3.gz
  2905. - ext4
  2906. - ext4.gz
  2907. - f2fs
  2908. - hddimg
  2909. - iso
  2910. - jffs2
  2911. - jffs2.sum
  2912. - multiubi
  2913. - squashfs
  2914. - squashfs-lz4
  2915. - squashfs-lzo
  2916. - squashfs-xz
  2917. - tar
  2918. - tar.bz2
  2919. - tar.gz
  2920. - tar.lz4
  2921. - tar.xz
  2922. - tar.zst
  2923. - ubi
  2924. - ubifs
  2925. - wic
  2926. - wic.bz2
  2927. - wic.gz
  2928. - wic.lzma
  2929. For more information about these types of images, see
  2930. ``meta/classes/image_types*.bbclass`` in the :term:`Source Directory`.
  2931. :term:`IMAGE_VERSION_SUFFIX`
  2932. Version suffix that is part of the default :term:`IMAGE_NAME` and
  2933. :term:`KERNEL_ARTIFACT_NAME` values.
  2934. Defaults to ``"-${DATETIME}"``, however you could set this to a
  2935. version string that comes from your external build environment if
  2936. desired, and this suffix would then be used consistently across
  2937. the build artifacts.
  2938. :term:`IMGDEPLOYDIR`
  2939. When inheriting the :ref:`image <ref-classes-image>` class directly or
  2940. through the :ref:`core-image <ref-classes-core-image>` class, the
  2941. :term:`IMGDEPLOYDIR` points to a temporary work area for deployed files
  2942. that is set in the ``image`` class as follows::
  2943. IMGDEPLOYDIR = "${WORKDIR}/deploy-${PN}-image-complete"
  2944. Recipes inheriting the ``image`` class should copy files to be
  2945. deployed into :term:`IMGDEPLOYDIR`, and the class will take care of
  2946. copying them into :term:`DEPLOY_DIR_IMAGE` afterwards.
  2947. :term:`INC_PR`
  2948. Helps define the recipe revision for recipes that share a common
  2949. ``include`` file. You can think of this variable as part of the
  2950. recipe revision as set from within an include file.
  2951. Suppose, for example, you have a set of recipes that are used across
  2952. several projects. And, within each of those recipes the revision (its
  2953. :term:`PR` value) is set accordingly. In this case, when
  2954. the revision of those recipes changes, the burden is on you to find
  2955. all those recipes and be sure that they get changed to reflect the
  2956. updated version of the recipe. In this scenario, it can get
  2957. complicated when recipes that are used in many places and provide
  2958. common functionality are upgraded to a new revision.
  2959. A more efficient way of dealing with this situation is to set the
  2960. :term:`INC_PR` variable inside the ``include`` files that the recipes
  2961. share and then expand the :term:`INC_PR` variable within the recipes to
  2962. help define the recipe revision.
  2963. The following provides an example that shows how to use the
  2964. :term:`INC_PR` variable given a common ``include`` file that defines the
  2965. variable. Once the variable is defined in the ``include`` file, you
  2966. can use the variable to set the :term:`PR` values in each recipe. You
  2967. will notice that when you set a recipe's :term:`PR` you can provide more
  2968. granular revisioning by appending values to the :term:`INC_PR` variable::
  2969. recipes-graphics/xorg-font/xorg-font-common.inc:INC_PR = "r2"
  2970. recipes-graphics/xorg-font/encodings_1.0.4.bb:PR = "${INC_PR}.1"
  2971. recipes-graphics/xorg-font/font-util_1.3.0.bb:PR = "${INC_PR}.0"
  2972. recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3"
  2973. The
  2974. first line of the example establishes the baseline revision to be
  2975. used for all recipes that use the ``include`` file. The remaining
  2976. lines in the example are from individual recipes and show how the
  2977. :term:`PR` value is set.
  2978. :term:`INCOMPATIBLE_LICENSE`
  2979. Specifies a space-separated list of license names (as they would
  2980. appear in :term:`LICENSE`) that should be excluded
  2981. from the build (if set globally), or from an image (if set locally
  2982. in an image recipe).
  2983. When the variable is set globally, recipes that provide no alternatives to listed
  2984. incompatible licenses are not built. Packages that are individually
  2985. licensed with the specified incompatible licenses will be deleted.
  2986. Most of the time this does not allow a feasible build (because it becomes impossible
  2987. to satisfy build time dependencies), so the recommended way to
  2988. implement license restrictions is to set the variable in specific
  2989. image recipes where the restrictions must apply. That way there
  2990. are no build time restrictions, but the license check is still
  2991. performed when the image's filesystem is assembled from packages.
  2992. There is some support for wildcards in this variable's value,
  2993. however it is restricted to specific licenses. Currently only
  2994. these wildcards are allowed and expand as follows:
  2995. - ``AGPL-3.0*"``: ``AGPL-3.0-only``, ``AGPL-3.0-or-later``
  2996. - ``GPL-3.0*``: ``GPL-3.0-only``, ``GPL-3.0-or-later``
  2997. - ``LGPL-3.0*``: ``LGPL-3.0-only``, ``LGPL-3.0-or-later``
  2998. .. note::
  2999. This functionality is only regularly tested using the following
  3000. setting::
  3001. INCOMPATIBLE_LICENSE = "GPL-3.0* LGPL-3.0* AGPL-3.0*"
  3002. Although you can use other settings, you might be required to
  3003. remove dependencies on or provide alternatives to components that
  3004. are required to produce a functional system image.
  3005. :term:`INHERIT`
  3006. Causes the named class or classes to be inherited globally. Anonymous
  3007. functions in the class or classes are not executed for the base
  3008. configuration and in each individual recipe. The OpenEmbedded build
  3009. system ignores changes to :term:`INHERIT` in individual recipes.
  3010. For more information on :term:`INHERIT`, see the
  3011. :ref:`bitbake:bitbake-user-manual/bitbake-user-manual-metadata:\`\`inherit\`\` configuration directive`"
  3012. section in the Bitbake User Manual.
  3013. :term:`INHERIT_DISTRO`
  3014. Lists classes that will be inherited at the distribution level. It is
  3015. unlikely that you want to edit this variable.
  3016. The default value of the variable is set as follows in the
  3017. ``meta/conf/distro/defaultsetup.conf`` file::
  3018. INHERIT_DISTRO ?= "debian devshell sstate license remove-libtool"
  3019. :term:`INHIBIT_DEFAULT_DEPS`
  3020. Prevents the default dependencies, namely the C compiler and standard
  3021. C library (libc), from being added to :term:`DEPENDS`.
  3022. This variable is usually used within recipes that do not require any
  3023. compilation using the C compiler.
  3024. Set the variable to "1" to prevent the default dependencies from
  3025. being added.
  3026. :term:`INHIBIT_DEFAULT_RUST_DEPS`
  3027. Prevents the :ref:`ref-classes-rust` class from automatically adding
  3028. its default build-time dependencies.
  3029. When a recipe inherits the :ref:`ref-classes-rust` class, several
  3030. tools such as ``rust-native`` and ``${RUSTLIB_DEP}`` (only added when cross-compiling) are added
  3031. to :term:`DEPENDS` to support the ``rust`` build process.
  3032. To prevent the build system from adding these dependencies automatically,
  3033. set the :term:`INHIBIT_DEFAULT_RUST_DEPS` variable as follows::
  3034. INHIBIT_DEFAULT_RUST_DEPS = "1"
  3035. By default, the value of :term:`INHIBIT_DEFAULT_RUST_DEPS` is empty. Setting
  3036. it to "0" does not disable inhibition. Only the empty string will disable
  3037. inhibition.
  3038. :term:`INHIBIT_PACKAGE_DEBUG_SPLIT`
  3039. Prevents the OpenEmbedded build system from splitting out debug
  3040. information during packaging. By default, the build system splits out
  3041. debugging information during the
  3042. :ref:`ref-tasks-package` task. For more information on
  3043. how debug information is split out, see the
  3044. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  3045. variable.
  3046. To prevent the build system from splitting out debug information
  3047. during packaging, set the :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` variable as
  3048. follows::
  3049. INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
  3050. :term:`INHIBIT_PACKAGE_STRIP`
  3051. If set to "1", causes the build to not strip binaries in resulting
  3052. packages and prevents the ``-dbg`` package from containing the source
  3053. files.
  3054. By default, the OpenEmbedded build system strips binaries and puts
  3055. the debugging symbols into ``${``\ :term:`PN`\ ``}-dbg``.
  3056. Consequently, you should not set :term:`INHIBIT_PACKAGE_STRIP` when you
  3057. plan to debug in general.
  3058. :term:`INHIBIT_SYSROOT_STRIP`
  3059. If set to "1", causes the build to not strip binaries in the
  3060. resulting sysroot.
  3061. By default, the OpenEmbedded build system strips binaries in the
  3062. resulting sysroot. When you specifically set the
  3063. :term:`INHIBIT_SYSROOT_STRIP` variable to "1" in your recipe, you inhibit
  3064. this stripping.
  3065. If you want to use this variable, include the
  3066. :ref:`staging <ref-classes-staging>` class. This class uses a
  3067. ``sys_strip()`` function to test for the variable and acts
  3068. accordingly.
  3069. .. note::
  3070. Use of the :term:`INHIBIT_SYSROOT_STRIP` variable occurs in rare and
  3071. special circumstances. For example, suppose you are building
  3072. bare-metal firmware by using an external GCC toolchain. Furthermore,
  3073. even if the toolchain's binaries are strippable, there are other files
  3074. needed for the build that are not strippable.
  3075. :term:`INHIBIT_UPDATERCD_BBCLASS`
  3076. Prevents the :ref:`ref-classes-update-rc.d` class from automatically
  3077. installing and registering SysV init scripts for packages.
  3078. When a recipe inherits the :ref:`ref-classes-update-rc.d` class, init
  3079. scripts are typically installed and registered for the packages listed in
  3080. :term:`INITSCRIPT_PACKAGES`. This ensures that the relevant
  3081. services are started and stopped at the appropriate runlevels using the
  3082. traditional SysV init system.
  3083. To prevent the build system from adding these scripts and configurations
  3084. automatically, set the :term:`INHIBIT_UPDATERCD_BBCLASS` variable as follows::
  3085. INHIBIT_UPDATERCD_BBCLASS = "1"
  3086. By default, the value of :term:`INHIBIT_UPDATERCD_BBCLASS` is empty. Setting
  3087. it to "0" does not disable inhibition. Only the empty string will disable
  3088. inhibition.
  3089. :term:`INIT_MANAGER`
  3090. Specifies the system init manager to use. Available options are:
  3091. - ``sysvinit`` - System V init (default for poky)
  3092. - ``systemd`` - systemd
  3093. - ``mdev-busybox`` - mdev provided by busybox
  3094. - ``none`` - no init manager
  3095. More concretely, this is used to include
  3096. ``conf/distro/include/init-manager-${INIT_MANAGER}.inc`` into the global
  3097. configuration. You can have a look at the ``conf/distro/include/init-manager-*.inc``
  3098. files for more information, and also the
  3099. ":ref:`dev-manual/init-manager:selecting an initialization manager`"
  3100. section in the Yocto Project Development Tasks Manual.
  3101. :term:`INITRAMFS_DEPLOY_DIR_IMAGE`
  3102. Indicates the deploy directory used by ``do_bundle_initramfs`` where the
  3103. :term:`INITRAMFS_IMAGE` will be fetched from.
  3104. This variable is set by default to ``${DEPLOY_DIR_IMAGE}`` in the
  3105. :ref:`kernel <ref-classes-kernel>` class and it's only meant to be changed
  3106. when building an initramfs image from a separate multiconfig via :term:`INITRAMFS_MULTICONFIG`.
  3107. :term:`INITRAMFS_FSTYPES`
  3108. Defines the format for the output image of an initial RAM filesystem
  3109. (initramfs), which is used during boot. Supported formats are the
  3110. same as those supported by the
  3111. :term:`IMAGE_FSTYPES` variable.
  3112. The default value of this variable, which is set in the
  3113. ``meta/conf/bitbake.conf`` configuration file in the
  3114. :term:`Source Directory`, is "cpio.gz". The Linux kernel's
  3115. initramfs mechanism, as opposed to the initial RAM filesystem
  3116. `initrd <https://en.wikipedia.org/wiki/Initrd>`__ mechanism, expects
  3117. an optionally compressed cpio archive.
  3118. :term:`INITRAMFS_IMAGE`
  3119. Specifies the :term:`PROVIDES` name of an image
  3120. recipe that is used to build an initial RAM filesystem (initramfs)
  3121. image. In other words, the :term:`INITRAMFS_IMAGE` variable causes an
  3122. additional recipe to be built as a dependency to whatever root
  3123. filesystem recipe you might be using (e.g. ``core-image-sato``). The
  3124. initramfs image recipe you provide should set
  3125. :term:`IMAGE_FSTYPES` to
  3126. :term:`INITRAMFS_FSTYPES`.
  3127. An initramfs image provides a temporary root filesystem used for
  3128. early system initialization (e.g. loading of modules needed to locate
  3129. and mount the "real" root filesystem).
  3130. .. note::
  3131. See the ``meta/recipes-core/images/core-image-minimal-initramfs.bb``
  3132. recipe in the :term:`Source Directory`
  3133. for an example initramfs recipe. To select this sample recipe as
  3134. the one built to provide the initramfs image, set :term:`INITRAMFS_IMAGE`
  3135. to "core-image-minimal-initramfs".
  3136. You can also find more information by referencing the
  3137. ``meta-poky/conf/local.conf.sample.extended`` configuration file in
  3138. the Source Directory, the :ref:`image <ref-classes-image>` class,
  3139. and the :ref:`kernel <ref-classes-kernel>` class to see how to use
  3140. the :term:`INITRAMFS_IMAGE` variable.
  3141. If :term:`INITRAMFS_IMAGE` is empty, which is the default, then no
  3142. initramfs image is built.
  3143. For more information, you can also see the
  3144. :term:`INITRAMFS_IMAGE_BUNDLE`
  3145. variable, which allows the generated image to be bundled inside the
  3146. kernel image. Additionally, for information on creating an :term:`Initramfs`
  3147. image, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  3148. in the Yocto Project Development Tasks Manual.
  3149. :term:`INITRAMFS_IMAGE_BUNDLE`
  3150. Controls whether or not the image recipe specified by
  3151. :term:`INITRAMFS_IMAGE` is run through an
  3152. extra pass
  3153. (:ref:`ref-tasks-bundle_initramfs`) during
  3154. kernel compilation in order to build a single binary that contains
  3155. both the kernel image and the initial RAM filesystem (initramfs)
  3156. image. This makes use of the
  3157. :term:`CONFIG_INITRAMFS_SOURCE` kernel
  3158. feature.
  3159. .. note::
  3160. Bundling the initramfs with the kernel conflates the code in the
  3161. initramfs with the GPLv2 licensed Linux kernel binary. Thus only GPLv2
  3162. compatible software may be part of a bundled initramfs.
  3163. .. note::
  3164. Using an extra compilation pass to bundle the initramfs avoids a
  3165. circular dependency between the kernel recipe and the initramfs
  3166. recipe should the initramfs include kernel modules. Should that be
  3167. the case, the initramfs recipe depends on the kernel for the
  3168. kernel modules, and the kernel depends on the initramfs recipe
  3169. since the initramfs is bundled inside the kernel image.
  3170. The combined binary is deposited into the ``tmp/deploy`` directory,
  3171. which is part of the :term:`Build Directory`.
  3172. Setting the variable to "1" in a configuration file causes the
  3173. OpenEmbedded build system to generate a kernel image with the
  3174. initramfs specified in :term:`INITRAMFS_IMAGE` bundled within::
  3175. INITRAMFS_IMAGE_BUNDLE = "1"
  3176. By default, the
  3177. :ref:`kernel <ref-classes-kernel>` class sets this variable to a
  3178. null string as follows::
  3179. INITRAMFS_IMAGE_BUNDLE ?= ""
  3180. .. note::
  3181. You must set the :term:`INITRAMFS_IMAGE_BUNDLE` variable in a
  3182. configuration file. You cannot set the variable in a recipe file.
  3183. See the
  3184. :yocto_git:`local.conf.sample.extended </poky/tree/meta-poky/conf/local.conf.sample.extended>`
  3185. file for additional information. Also, for information on creating an
  3186. :term:`Initramfs`, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  3187. in the Yocto Project Development Tasks Manual.
  3188. :term:`INITRAMFS_LINK_NAME`
  3189. The link name of the initial RAM filesystem image. This variable is
  3190. set in the ``meta/classes/kernel-artifact-names.bbclass`` file as
  3191. follows::
  3192. INITRAMFS_LINK_NAME ?= "initramfs-${KERNEL_ARTIFACT_LINK_NAME}"
  3193. The value of the
  3194. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3195. file, has the following value::
  3196. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3197. See the :term:`MACHINE` variable for additional
  3198. information.
  3199. :term:`INITRAMFS_MAXSIZE`
  3200. Defines the maximum allowed size of the :term:`Initramfs` image in Kbytes.
  3201. The build will fail if the :term:`Initramfs` image size exceeds this value.
  3202. The :term:`Initramfs` image size undergoes several calculation steps before
  3203. being compared to :term:`INITRAMFS_MAXSIZE`.
  3204. These steps are the same as those used for :term:`IMAGE_ROOTFS_MAXSIZE`
  3205. and are described in detail in that entry.
  3206. Thus, :term:`INITRAMFS_MAXSIZE` is compared with the result of the calculations
  3207. and is independent of the final image type (e.g. compressed).
  3208. A default value for :term:`INITRAMFS_MAXSIZE` is set in
  3209. :oe_git:`meta/conf/bitbake.conf </openembedded-core/tree/meta/conf/bitbake.conf>`.
  3210. :term:`INITRAMFS_MULTICONFIG`
  3211. Defines the multiconfig to create a multiconfig dependency to be used by the :ref:`kernel <ref-classes-kernel>` class.
  3212. This allows the kernel to bundle an :term:`INITRAMFS_IMAGE` coming from
  3213. a separate multiconfig, this is meant to be used in addition to :term:`INITRAMFS_DEPLOY_DIR_IMAGE`.
  3214. For more information on how to bundle an :term:`Initramfs` image from a separate
  3215. multiconfig see the ":ref:`dev-manual/building:Bundling an Initramfs Image From a Separate Multiconfig`"
  3216. section in the Yocto Project Development Tasks Manual.
  3217. :term:`INITRAMFS_NAME`
  3218. The base name of the initial RAM filesystem image. This variable is
  3219. set in the ``meta/classes/kernel-artifact-names.bbclass`` file as
  3220. follows::
  3221. INITRAMFS_NAME ?= "initramfs-${KERNEL_ARTIFACT_NAME}"
  3222. The value of the :term:`KERNEL_ARTIFACT_NAME`
  3223. variable, which is set in the same file, has the following value::
  3224. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  3225. :term:`INITRD`
  3226. Indicates list of filesystem images to concatenate and use as an
  3227. initial RAM disk (``initrd``).
  3228. The :term:`INITRD` variable is an optional variable used with the
  3229. :ref:`image-live <ref-classes-image-live>` class.
  3230. :term:`INITRD_IMAGE`
  3231. When building a "live" bootable image (i.e. when
  3232. :term:`IMAGE_FSTYPES` contains "live"),
  3233. :term:`INITRD_IMAGE` specifies the image recipe that should be built to
  3234. provide the initial RAM disk image. The default value is
  3235. "core-image-minimal-initramfs".
  3236. See the :ref:`image-live <ref-classes-image-live>` class for more
  3237. information.
  3238. :term:`INITSCRIPT_NAME`
  3239. The filename of the initialization script as installed to
  3240. ``${sysconfdir}/init.d``.
  3241. This variable is used in recipes when using :ref:`ref-classes-update-rc.d`.
  3242. The variable is mandatory.
  3243. :term:`INITSCRIPT_PACKAGES`
  3244. A list of the packages that contain initscripts. If multiple packages
  3245. are specified, you need to append the package name to the other
  3246. ``INITSCRIPT_*`` as an override.
  3247. This variable is used in recipes when using :ref:`ref-classes-update-rc.d`.
  3248. The variable is optional and defaults to the :term:`PN`
  3249. variable.
  3250. :term:`INITSCRIPT_PARAMS`
  3251. Specifies the options to pass to ``update-rc.d``. Here is an example::
  3252. INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."
  3253. In this example, the script has a runlevel of 99, starts the script
  3254. in initlevels 2 and 5, and stops the script in levels 0, 1 and 6.
  3255. The variable's default value is "defaults", which is set in the
  3256. :ref:`update-rc.d <ref-classes-update-rc.d>` class.
  3257. The value in :term:`INITSCRIPT_PARAMS` is passed through to the
  3258. ``update-rc.d`` command. For more information on valid parameters,
  3259. please see the ``update-rc.d`` manual page at
  3260. https://manpages.debian.org/buster/init-system-helpers/update-rc.d.8.en.html
  3261. :term:`INSANE_SKIP`
  3262. Specifies the QA checks to skip for a specific package within a
  3263. recipe. For example, to skip the check for symbolic link ``.so``
  3264. files in the main package of a recipe, add the following to the
  3265. recipe. The package name override must be used, which in this example
  3266. is ``${PN}``::
  3267. INSANE_SKIP:${PN} += "dev-so"
  3268. See the ":ref:`ref-classes-insane`" section for a
  3269. list of the valid QA checks you can specify using this variable.
  3270. :term:`INSTALL_TIMEZONE_FILE`
  3271. By default, the ``tzdata`` recipe packages an ``/etc/timezone`` file.
  3272. Set the :term:`INSTALL_TIMEZONE_FILE` variable to "0" at the
  3273. configuration level to disable this behavior.
  3274. :term:`IPK_FEED_URIS`
  3275. When the IPK backend is in use and package management is enabled on
  3276. the target, you can use this variable to set up ``opkg`` in the
  3277. target image to point to package feeds on a nominated server. Once
  3278. the feed is established, you can perform installations or upgrades
  3279. using the package manager at runtime.
  3280. :term:`KARCH`
  3281. Defines the kernel architecture used when assembling the
  3282. configuration. Architectures supported for this release are:
  3283. - powerpc
  3284. - i386
  3285. - x86_64
  3286. - arm
  3287. - qemu
  3288. - mips
  3289. You define the :term:`KARCH` variable in the :ref:`kernel-dev/advanced:bsp descriptions`.
  3290. :term:`KBRANCH`
  3291. A regular expression used by the build process to explicitly identify
  3292. the kernel branch that is validated, patched, and configured during a
  3293. build. You must set this variable to ensure the exact kernel branch
  3294. you want is being used by the build process.
  3295. Values for this variable are set in the kernel's recipe file and the
  3296. kernel's append file. For example, if you are using the
  3297. ``linux-yocto_5.15`` kernel, the kernel recipe file is the
  3298. ``meta/recipes-kernel/linux/linux-yocto_4.12.bb`` file. :term:`KBRANCH`
  3299. is set as follows in that kernel recipe file::
  3300. KBRANCH ?= "standard/base"
  3301. This variable is also used from the kernel's append file to identify
  3302. the kernel branch specific to a particular machine or target
  3303. hardware. Continuing with the previous kernel example, the kernel's
  3304. append file (i.e. ``linux-yocto_4.12.bbappend``) is located in the
  3305. BSP layer for a given machine. For example, the append file for the
  3306. Beaglebone, EdgeRouter, and generic versions of both 32 and 64-bit IA
  3307. machines (``meta-yocto-bsp``) is named
  3308. ``meta-yocto-bsp/recipes-kernel/linux/linux-yocto_4.15.bbappend``.
  3309. Here are the related statements from that append file::
  3310. KBRANCH:genericx86 = "v5.15/standard/base"
  3311. KBRANCH:genericx86-64 = "v5.15/standard/base"
  3312. KBRANCH:edgerouter = "v5.15/standard/edgerouter"
  3313. KBRANCH:beaglebone-yocto = "v5.15/standard/beaglebone"
  3314. The :term:`KBRANCH` statements
  3315. identify the kernel branch to use when building for each supported
  3316. BSP.
  3317. :term:`KBUILD_DEFCONFIG`
  3318. When used with the :ref:`kernel-yocto <ref-classes-kernel-yocto>`
  3319. class, specifies an "in-tree" kernel configuration file for use
  3320. during a kernel build.
  3321. Typically, when using a ``defconfig`` to configure a kernel during a
  3322. build, you place the file in your layer in the same manner as you
  3323. would place patch files and configuration fragment files (i.e.
  3324. "out-of-tree"). However, if you want to use a ``defconfig`` file that
  3325. is part of the kernel tree (i.e. "in-tree"), you can use the
  3326. :term:`KBUILD_DEFCONFIG` variable and append the
  3327. :term:`KMACHINE` variable to point to the
  3328. ``defconfig`` file.
  3329. To use the variable, set it in the append file for your kernel recipe
  3330. using the following form::
  3331. KBUILD_DEFCONFIG_KMACHINE ?= defconfig_file
  3332. Here is an example from a "raspberrypi2" :term:`KMACHINE` build that uses
  3333. a ``defconfig`` file named "bcm2709_defconfig"::
  3334. KBUILD_DEFCONFIG:raspberrypi2 = "bcm2709_defconfig"
  3335. As an alternative, you can use the following within your append file::
  3336. KBUILD_DEFCONFIG:pn-linux-yocto ?= "defconfig_file"
  3337. For more
  3338. information on how to use the :term:`KBUILD_DEFCONFIG` variable, see the
  3339. ":ref:`kernel-dev/common:using an "in-tree" \`\`defconfig\`\` file`"
  3340. section in the Yocto Project Linux Kernel Development Manual.
  3341. :term:`KCONFIG_MODE`
  3342. When used with the :ref:`kernel-yocto <ref-classes-kernel-yocto>`
  3343. class, specifies the kernel configuration values to use for options
  3344. not specified in the provided ``defconfig`` file. Valid options are::
  3345. KCONFIG_MODE = "alldefconfig"
  3346. KCONFIG_MODE = "allnoconfig"
  3347. In ``alldefconfig`` mode the options not explicitly specified will be
  3348. assigned their Kconfig default value. In ``allnoconfig`` mode the
  3349. options not explicitly specified will be disabled in the kernel
  3350. config.
  3351. In case :term:`KCONFIG_MODE` is not set the ``defconfig`` file
  3352. will be handled in ``allnoconfig`` mode.
  3353. A ``defconfig`` file compatible with ``allnoconfig`` mode can be
  3354. generated by copying the ``.config`` file from a working Linux kernel
  3355. build, renaming it to ``defconfig`` and placing it into the Linux
  3356. kernel ``${WORKDIR}`` through your meta-layer. :term:`KCONFIG_MODE` does
  3357. not need to be explicitly set.
  3358. A ``defconfig`` file compatible with ``alldefconfig`` mode can be
  3359. generated using the
  3360. :ref:`ref-tasks-savedefconfig`
  3361. task and placed into the Linux kernel ``${WORKDIR}`` through your
  3362. meta-layer. Explicitely set :term:`KCONFIG_MODE`::
  3363. KCONFIG_MODE = "alldefconfig"
  3364. :term:`KERNEL_ALT_IMAGETYPE`
  3365. Specifies an alternate kernel image type for creation in addition to
  3366. the kernel image type specified using the
  3367. :term:`KERNEL_IMAGETYPE` variable.
  3368. :term:`KERNEL_ARTIFACT_NAME`
  3369. Specifies the name of all of the build artifacts. You can change the
  3370. name of the artifacts by changing the :term:`KERNEL_ARTIFACT_NAME`
  3371. variable.
  3372. The value of :term:`KERNEL_ARTIFACT_NAME`, which is set in the
  3373. ``meta/classes/kernel-artifact-names.bbclass`` file, has the
  3374. following default value::
  3375. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  3376. See the :term:`PKGE`, :term:`PKGV`, :term:`PKGR`, :term:`MACHINE`
  3377. and :term:`IMAGE_VERSION_SUFFIX` variables for additional information.
  3378. :term:`KERNEL_CLASSES`
  3379. A list of classes defining kernel image types that the
  3380. :ref:`kernel <ref-classes-kernel>` class should inherit. You
  3381. typically append this variable to enable extended image types. An
  3382. example is the "kernel-fitimage", which enables fitImage support and
  3383. resides in ``meta/classes/kernel-fitimage.bbclass``. You can register
  3384. custom kernel image types with the :ref:`kernel <ref-classes-kernel>` class using this
  3385. variable.
  3386. :term:`KERNEL_DEBUG_TIMESTAMPS`
  3387. If set to "1", enables timestamping functionality during building
  3388. the kernel. The default is "0" to disable this for reproducibility
  3389. reasons.
  3390. :term:`KERNEL_DEVICETREE`
  3391. Specifies the name of the generated Linux kernel device tree (i.e.
  3392. the ``.dtb``) file.
  3393. .. note::
  3394. There is legacy support for specifying the full path to the device
  3395. tree. However, providing just the ``.dtb`` file is preferred.
  3396. In order to use this variable, the :ref:`ref-classes-kernel-devicetree`
  3397. class must be inherited.
  3398. :term:`KERNEL_DEVICETREE_BUNDLE`
  3399. When set to "1", this variable allows to bundle the Linux kernel
  3400. and the Device Tree Binary together in a single file.
  3401. This feature is currently only supported on the "arm" (32 bit)
  3402. architecture.
  3403. This variable is set to "0" by default by the
  3404. :ref:`ref-classes-kernel-devicetree` class.
  3405. :term:`KERNEL_DTB_LINK_NAME`
  3406. The link name of the kernel device tree binary (DTB). This variable
  3407. is set in the ``meta/classes/kernel-artifact-names.bbclass`` file as
  3408. follows::
  3409. KERNEL_DTB_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3410. The
  3411. value of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in
  3412. the same file, has the following value::
  3413. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3414. See the :term:`MACHINE` variable for additional
  3415. information.
  3416. :term:`KERNEL_DTB_NAME`
  3417. The base name of the kernel device tree binary (DTB). This variable
  3418. is set in the ``meta/classes/kernel-artifact-names.bbclass`` file as
  3419. follows::
  3420. KERNEL_DTB_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3421. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3422. :term:`KERNEL_DTBDEST`
  3423. This variable, used by the :ref:`ref-classes-kernel-devicetree`
  3424. class, allows to change the installation directory of the DTB
  3425. (Device Tree Binary) files.
  3426. It is set by default to "${KERNEL_IMAGEDEST}" by the
  3427. :ref:`ref-classes-kernel` class.
  3428. :term:`KERNEL_DTBVENDORED`
  3429. This variable, used by the :ref:`ref-classes-kernel-devicetree`,
  3430. allows to ignore vendor subdirectories when installing DTB
  3431. (Device Tree Binary) files, when it is set to "false".
  3432. To keep vendor subdirectories, set this variable to "true".
  3433. It is set by default to "false" by the :ref:`ref-classes-kernel` class.
  3434. :term:`KERNEL_DTC_FLAGS`
  3435. Specifies the ``dtc`` flags that are passed to the Linux kernel build
  3436. system when generating the device trees (via ``DTC_FLAGS`` environment
  3437. variable).
  3438. In order to use this variable, the
  3439. :ref:`kernel-devicetree <ref-classes-kernel-devicetree>` class must
  3440. be inherited.
  3441. :term:`KERNEL_EXTRA_ARGS`
  3442. Specifies additional ``make`` command-line arguments the OpenEmbedded
  3443. build system passes on when compiling the kernel.
  3444. :term:`KERNEL_FEATURES`
  3445. Includes additional kernel metadata. In the OpenEmbedded build
  3446. system, the default Board Support Packages (BSPs)
  3447. :term:`Metadata` is provided through the
  3448. :term:`KMACHINE` and :term:`KBRANCH`
  3449. variables. You can use the :term:`KERNEL_FEATURES` variable from within
  3450. the kernel recipe or kernel append file to further add metadata for
  3451. all BSPs or specific BSPs.
  3452. The metadata you add through this variable includes config fragments
  3453. and features descriptions, which usually includes patches as well as
  3454. config fragments. You typically override the :term:`KERNEL_FEATURES`
  3455. variable for a specific machine. In this way, you can provide
  3456. validated, but optional, sets of kernel configurations and features.
  3457. For example, the following example from the ``linux-yocto-rt_4.12``
  3458. kernel recipe adds "netfilter" and "taskstats" features to all BSPs
  3459. as well as "virtio" configurations to all QEMU machines. The last two
  3460. statements add specific configurations to targeted machine types::
  3461. KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc"
  3462. KERNEL_FEATURES:append = "${KERNEL_EXTRA_FEATURES}"
  3463. KERNEL_FEATURES:append:qemuall = "cfg/virtio.scc"
  3464. KERNEL_FEATURES:append:qemux86 = " cfg/sound.scc cfg/paravirt_kvm.scc"
  3465. KERNEL_FEATURES:append:qemux86-64 = "cfg/sound.scc"
  3466. :term:`KERNEL_FIT_LINK_NAME`
  3467. The link name of the kernel flattened image tree (FIT) image. This
  3468. variable is set in the ``meta/classes/kernel-artifact-names.bbclass``
  3469. file as follows::
  3470. KERNEL_FIT_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3471. The value of the
  3472. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3473. file, has the following value::
  3474. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3475. See the :term:`MACHINE` variable for additional
  3476. information.
  3477. :term:`KERNEL_FIT_NAME`
  3478. The base name of the kernel flattened image tree (FIT) image. This
  3479. variable is set in the ``meta/classes/kernel-artifact-names.bbclass``
  3480. file as follows::
  3481. KERNEL_FIT_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3482. The value of the :term:`KERNEL_ARTIFACT_NAME`
  3483. variable, which is set in the same file, has the following value::
  3484. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  3485. :term:`KERNEL_IMAGE_LINK_NAME`
  3486. The link name for the kernel image. This variable is set in the
  3487. ``meta/classes/kernel-artifact-names.bbclass`` file as follows::
  3488. KERNEL_IMAGE_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3489. The value of
  3490. the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3491. file, has the following value::
  3492. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3493. See the :term:`MACHINE` variable for additional
  3494. information.
  3495. :term:`KERNEL_IMAGE_MAXSIZE`
  3496. Specifies the maximum size of the kernel image file in kilobytes. If
  3497. :term:`KERNEL_IMAGE_MAXSIZE` is set, the size of the kernel image file is
  3498. checked against the set value during the
  3499. :ref:`ref-tasks-sizecheck` task. The task fails if
  3500. the kernel image file is larger than the setting.
  3501. :term:`KERNEL_IMAGE_MAXSIZE` is useful for target devices that have a
  3502. limited amount of space in which the kernel image must be stored.
  3503. By default, this variable is not set, which means the size of the
  3504. kernel image is not checked.
  3505. :term:`KERNEL_IMAGE_NAME`
  3506. The base name of the kernel image. This variable is set in the
  3507. ``meta/classes/kernel-artifact-names.bbclass`` file as follows::
  3508. KERNEL_IMAGE_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3509. The value of the
  3510. :term:`KERNEL_ARTIFACT_NAME` variable,
  3511. which is set in the same file, has the following value::
  3512. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  3513. :term:`KERNEL_IMAGETYPE`
  3514. The type of kernel to build for a device, usually set by the machine
  3515. configuration files and defaults to "zImage". This variable is used
  3516. when building the kernel and is passed to ``make`` as the target to
  3517. build.
  3518. To build additional kernel image types, use :term:`KERNEL_IMAGETYPES`.
  3519. :term:`KERNEL_IMAGETYPES`
  3520. Lists additional types of kernel images to build for a device in addition
  3521. to image type specified in :term:`KERNEL_IMAGETYPE`. Usually set by the
  3522. machine configuration files.
  3523. :term:`KERNEL_MODULE_AUTOLOAD`
  3524. Lists kernel modules that need to be auto-loaded during boot.
  3525. .. note::
  3526. This variable replaces the deprecated :term:`module_autoload`
  3527. variable.
  3528. You can use the :term:`KERNEL_MODULE_AUTOLOAD` variable anywhere that it
  3529. can be recognized by the kernel recipe or by an out-of-tree kernel
  3530. module recipe (e.g. a machine configuration file, a distribution
  3531. configuration file, an append file for the recipe, or the recipe
  3532. itself).
  3533. Specify it as follows::
  3534. KERNEL_MODULE_AUTOLOAD += "module_name1 module_name2 module_name3"
  3535. Including :term:`KERNEL_MODULE_AUTOLOAD` causes the OpenEmbedded build
  3536. system to populate the ``/etc/modules-load.d/modname.conf`` file with
  3537. the list of modules to be auto-loaded on boot. The modules appear
  3538. one-per-line in the file. Here is an example of the most common use
  3539. case::
  3540. KERNEL_MODULE_AUTOLOAD += "module_name"
  3541. For information on how to populate the ``modname.conf`` file with
  3542. ``modprobe.d`` syntax lines, see the :term:`KERNEL_MODULE_PROBECONF` variable.
  3543. :term:`KERNEL_MODULE_PROBECONF`
  3544. Provides a list of modules for which the OpenEmbedded build system
  3545. expects to find ``module_conf_``\ modname values that specify
  3546. configuration for each of the modules. For information on how to
  3547. provide those module configurations, see the
  3548. :term:`module_conf_* <module_conf>` variable.
  3549. :term:`KERNEL_PACKAGE_NAME`
  3550. Specifies the base name of the kernel packages, such as "kernel"
  3551. in the kernel packages such as "kernel-modules", "kernel-image" and
  3552. "kernel-dbg".
  3553. The default value for this variable is set to "kernel" by the
  3554. :ref:`ref-classes-kernel` class.
  3555. :term:`KERNEL_PATH`
  3556. The location of the kernel sources. This variable is set to the value
  3557. of the :term:`STAGING_KERNEL_DIR` within
  3558. the :ref:`module <ref-classes-module>` class. For information on
  3559. how this variable is used, see the
  3560. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  3561. section in the Yocto Project Linux Kernel Development Manual.
  3562. To help maximize compatibility with out-of-tree drivers used to build
  3563. modules, the OpenEmbedded build system also recognizes and uses the
  3564. :term:`KERNEL_SRC` variable, which is identical to
  3565. the :term:`KERNEL_PATH` variable. Both variables are common variables
  3566. used by external Makefiles to point to the kernel source directory.
  3567. :term:`KERNEL_SPLIT_MODULES`
  3568. When inheriting the :ref:`ref-classes-kernel-module-split` class, this
  3569. variable controls whether kernel modules are split into separate packages
  3570. or bundled into a single package.
  3571. For some use cases, a monolithic kernel module package
  3572. :term:`KERNEL_PACKAGE_NAME` that contains all modules built from the
  3573. kernel sources may be preferred to speed up the installation.
  3574. By default, this variable is set to ``1``, resulting in one package per
  3575. module. Setting it to any other value will generate a single monolithic
  3576. package containing all kernel modules.
  3577. .. note::
  3578. If :term:`KERNEL_SPLIT_MODULES` is set to 0, it is still possible to
  3579. install all kernel modules at once by adding ``kernel-modules`` (assuming
  3580. :term:`KERNEL_PACKAGE_NAME` is ``kernel-modules``) to :term:`IMAGE_INSTALL`.
  3581. The way it works is that a placeholder "kernel-modules" package will be
  3582. created and will depend on every other individual kernel module packages.
  3583. :term:`KERNEL_SRC`
  3584. The location of the kernel sources. This variable is set to the value
  3585. of the :term:`STAGING_KERNEL_DIR` within
  3586. the :ref:`module <ref-classes-module>` class. For information on
  3587. how this variable is used, see the
  3588. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  3589. section in the Yocto Project Linux Kernel Development Manual.
  3590. To help maximize compatibility with out-of-tree drivers used to build
  3591. modules, the OpenEmbedded build system also recognizes and uses the
  3592. :term:`KERNEL_PATH` variable, which is identical
  3593. to the :term:`KERNEL_SRC` variable. Both variables are common variables
  3594. used by external Makefiles to point to the kernel source directory.
  3595. :term:`KERNEL_VERSION`
  3596. Specifies the version of the kernel as extracted from ``version.h``
  3597. or ``utsrelease.h`` within the kernel sources. Effects of setting
  3598. this variable do not take effect until the kernel has been
  3599. configured. Consequently, attempting to refer to this variable in
  3600. contexts prior to configuration will not work.
  3601. :term:`KERNELDEPMODDEPEND`
  3602. Specifies whether the data referenced through
  3603. :term:`PKGDATA_DIR` is needed or not.
  3604. :term:`KERNELDEPMODDEPEND` does not control whether or not that data
  3605. exists, but simply whether or not it is used. If you do not need to
  3606. use the data, set the :term:`KERNELDEPMODDEPEND` variable in your
  3607. ``initramfs`` recipe. Setting the variable there when the data is not
  3608. needed avoids a potential dependency loop.
  3609. :term:`KFEATURE_DESCRIPTION`
  3610. Provides a short description of a configuration fragment. You use
  3611. this variable in the ``.scc`` file that describes a configuration
  3612. fragment file. Here is the variable used in a file named ``smp.scc``
  3613. to describe SMP being enabled::
  3614. define KFEATURE_DESCRIPTION "Enable SMP"
  3615. :term:`KMACHINE`
  3616. The machine as known by the kernel. Sometimes the machine name used
  3617. by the kernel does not match the machine name used by the
  3618. OpenEmbedded build system. For example, the machine name that the
  3619. OpenEmbedded build system understands as ``core2-32-intel-common``
  3620. goes by a different name in the Linux Yocto kernel. The kernel
  3621. understands that machine as ``intel-core2-32``. For cases like these,
  3622. the :term:`KMACHINE` variable maps the kernel machine name to the
  3623. OpenEmbedded build system machine name.
  3624. These mappings between different names occur in the Yocto Linux
  3625. Kernel's ``meta`` branch. As an example take a look in the
  3626. ``common/recipes-kernel/linux/linux-yocto_3.19.bbappend`` file::
  3627. LINUX_VERSION:core2-32-intel-common = "3.19.0"
  3628. COMPATIBLE_MACHINE:core2-32-intel-common = "${MACHINE}"
  3629. SRCREV_meta:core2-32-intel-common = "8897ef68b30e7426bc1d39895e71fb155d694974"
  3630. SRCREV_machine:core2-32-intel-common = "43b9eced9ba8a57add36af07736344dcc383f711"
  3631. KMACHINE:core2-32-intel-common = "intel-core2-32"
  3632. KBRANCH:core2-32-intel-common = "standard/base"
  3633. KERNEL_FEATURES:append:core2-32-intel-common = "${KERNEL_FEATURES_INTEL_COMMON}"
  3634. The :term:`KMACHINE` statement says
  3635. that the kernel understands the machine name as "intel-core2-32".
  3636. However, the OpenEmbedded build system understands the machine as
  3637. "core2-32-intel-common".
  3638. :term:`KTYPE`
  3639. Defines the kernel type to be used in assembling the configuration.
  3640. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  3641. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  3642. section in the
  3643. Yocto Project Linux Kernel Development Manual for more information on
  3644. kernel types.
  3645. You define the :term:`KTYPE` variable in the
  3646. :ref:`kernel-dev/advanced:bsp descriptions`. The
  3647. value you use must match the value used for the
  3648. :term:`LINUX_KERNEL_TYPE` value used by the
  3649. kernel recipe.
  3650. :term:`LABELS`
  3651. Provides a list of targets for automatic configuration.
  3652. See the :ref:`grub-efi <ref-classes-grub-efi>` class for more
  3653. information on how this variable is used.
  3654. :term:`LAYERDEPENDS`
  3655. Lists the layers, separated by spaces, on which this recipe depends.
  3656. Optionally, you can specify a specific layer version for a dependency
  3657. by adding it to the end of the layer name. Here is an example::
  3658. LAYERDEPENDS_mylayer = "anotherlayer (=3)"
  3659. In this previous example,
  3660. version 3 of "anotherlayer" is compared against
  3661. :term:`LAYERVERSION`\ ``_anotherlayer``.
  3662. An error is produced if any dependency is missing or the version
  3663. numbers (if specified) do not match exactly. This variable is used in
  3664. the ``conf/layer.conf`` file and must be suffixed with the name of
  3665. the specific layer (e.g. ``LAYERDEPENDS_mylayer``).
  3666. :term:`LAYERDIR`
  3667. When used inside the ``layer.conf`` configuration file, this variable
  3668. provides the path of the current layer. This variable is not
  3669. available outside of ``layer.conf`` and references are expanded
  3670. immediately when parsing of the file completes.
  3671. :term:`LAYERRECOMMENDS`
  3672. Lists the layers, separated by spaces, recommended for use with this
  3673. layer.
  3674. Optionally, you can specify a specific layer version for a
  3675. recommendation by adding the version to the end of the layer name.
  3676. Here is an example::
  3677. LAYERRECOMMENDS_mylayer = "anotherlayer (=3)"
  3678. In this previous example, version 3 of "anotherlayer" is compared
  3679. against ``LAYERVERSION_anotherlayer``.
  3680. This variable is used in the ``conf/layer.conf`` file and must be
  3681. suffixed with the name of the specific layer (e.g.
  3682. ``LAYERRECOMMENDS_mylayer``).
  3683. :term:`LAYERSERIES_COMPAT`
  3684. Lists the versions of the :term:`OpenEmbedded-Core (OE-Core)` for which
  3685. a layer is compatible. Using the :term:`LAYERSERIES_COMPAT` variable
  3686. allows the layer maintainer to indicate which combinations of the
  3687. layer and OE-Core can be expected to work. The variable gives the
  3688. system a way to detect when a layer has not been tested with new
  3689. releases of OE-Core (e.g. the layer is not maintained).
  3690. To specify the OE-Core versions for which a layer is compatible, use
  3691. this variable in your layer's ``conf/layer.conf`` configuration file.
  3692. For the list, use the Yocto Project
  3693. :yocto_wiki:`Release Name </Releases>` (e.g.
  3694. &DISTRO_NAME_NO_CAP;). To specify multiple OE-Core versions for the
  3695. layer, use a space-separated list::
  3696. LAYERSERIES_COMPAT_layer_root_name = "&DISTRO_NAME_NO_CAP; &DISTRO_NAME_NO_CAP_MINUS_ONE;"
  3697. .. note::
  3698. Setting :term:`LAYERSERIES_COMPAT` is required by the Yocto Project
  3699. Compatible version 2 standard.
  3700. The OpenEmbedded build system produces a warning if the variable
  3701. is not set for any given layer.
  3702. See the ":ref:`dev-manual/layers:creating your own layer`"
  3703. section in the Yocto Project Development Tasks Manual.
  3704. :term:`LAYERVERSION`
  3705. Optionally specifies the version of a layer as a single number. You
  3706. can use this within :term:`LAYERDEPENDS` for
  3707. another layer in order to depend on a specific version of the layer.
  3708. This variable is used in the ``conf/layer.conf`` file and must be
  3709. suffixed with the name of the specific layer (e.g.
  3710. ``LAYERVERSION_mylayer``).
  3711. :term:`LD`
  3712. The minimal command and arguments used to run the linker.
  3713. :term:`LDFLAGS`
  3714. Specifies the flags to pass to the linker. This variable is exported
  3715. to an environment variable and thus made visible to the software
  3716. being built during the compilation step.
  3717. Default initialization for :term:`LDFLAGS` varies depending on what is
  3718. being built:
  3719. - :term:`TARGET_LDFLAGS` when building for the
  3720. target
  3721. - :term:`BUILD_LDFLAGS` when building for the
  3722. build host (i.e. ``-native``)
  3723. - :term:`BUILDSDK_LDFLAGS` when building for
  3724. an SDK (i.e. ``nativesdk-``)
  3725. :term:`LEAD_SONAME`
  3726. Specifies the lead (or primary) compiled library file (i.e. ``.so``)
  3727. that the :ref:`debian <ref-classes-debian>` class applies its
  3728. naming policy to given a recipe that packages multiple libraries.
  3729. This variable works in conjunction with the :ref:`debian <ref-classes-debian>` class.
  3730. :term:`LIC_FILES_CHKSUM`
  3731. Checksums of the license text in the recipe source code.
  3732. This variable tracks changes in license text of the source code
  3733. files. If the license text is changed, it will trigger a build
  3734. failure, which gives the developer an opportunity to review any
  3735. license change.
  3736. This variable must be defined for all recipes (unless
  3737. :term:`LICENSE` is set to "CLOSED").
  3738. For more information, see the ":ref:`dev-manual/licenses:tracking license changes`"
  3739. section in the Yocto Project Development Tasks Manual.
  3740. :term:`LICENSE`
  3741. The list of source licenses for the recipe. Follow these rules:
  3742. - Do not use spaces within individual license names.
  3743. - Separate license names using \| (pipe) when there is a choice
  3744. between licenses.
  3745. - Separate license names using & (ampersand) when there are
  3746. multiple licenses for different parts of the source.
  3747. - You can use spaces between license names.
  3748. - For standard licenses, use the names of the files in
  3749. ``meta/files/common-licenses/`` or the
  3750. :term:`SPDXLICENSEMAP` flag names defined in
  3751. ``meta/conf/licenses.conf``.
  3752. Here are some examples::
  3753. LICENSE = "LGPL-2.1-only | GPL-3.0-only"
  3754. LICENSE = "MPL-1.0 & LGPL-2.1-only"
  3755. LICENSE = "GPL-2.0-or-later"
  3756. The first example is from the
  3757. recipes for Qt, which the user may choose to distribute under either
  3758. the LGPL version 2.1 or GPL version 3. The second example is from
  3759. Cairo where two licenses cover different parts of the source code.
  3760. The final example is from ``sysstat``, which presents a single
  3761. license.
  3762. You can also specify licenses on a per-package basis to handle
  3763. situations where components of the output have different licenses.
  3764. For example, a piece of software whose code is licensed under GPLv2
  3765. but has accompanying documentation licensed under the GNU Free
  3766. Documentation License 1.2 could be specified as follows::
  3767. LICENSE = "GFDL-1.2 & GPL-2.0-only"
  3768. LICENSE:${PN} = "GPL-2.0.only"
  3769. LICENSE:${PN}-doc = "GFDL-1.2"
  3770. :term:`LICENSE_CREATE_PACKAGE`
  3771. Setting :term:`LICENSE_CREATE_PACKAGE` to "1" causes the OpenEmbedded
  3772. build system to create an extra package (i.e.
  3773. ``${``\ :term:`PN`\ ``}-lic``) for each recipe and to add
  3774. those packages to the
  3775. :term:`RRECOMMENDS`\ ``:${PN}``.
  3776. The ``${PN}-lic`` package installs a directory in
  3777. ``/usr/share/licenses`` named ``${PN}``, which is the recipe's base
  3778. name, and installs files in that directory that contain license and
  3779. copyright information (i.e. copies of the appropriate license files
  3780. from ``meta/common-licenses`` that match the licenses specified in
  3781. the :term:`LICENSE` variable of the recipe metadata
  3782. and copies of files marked in
  3783. :term:`LIC_FILES_CHKSUM` as containing
  3784. license text).
  3785. For related information on providing license text, see the
  3786. :term:`COPY_LIC_DIRS` variable, the
  3787. :term:`COPY_LIC_MANIFEST` variable, and the
  3788. ":ref:`dev-manual/licenses:providing license text`"
  3789. section in the Yocto Project Development Tasks Manual.
  3790. :term:`LICENSE_FLAGS`
  3791. Specifies additional flags for a recipe you must allow through
  3792. :term:`LICENSE_FLAGS_ACCEPTED` in
  3793. order for the recipe to be built. When providing multiple flags,
  3794. separate them with spaces.
  3795. This value is independent of :term:`LICENSE` and is
  3796. typically used to mark recipes that might require additional licenses
  3797. in order to be used in a commercial product. For more information,
  3798. see the
  3799. ":ref:`dev-manual/licenses:enabling commercially licensed recipes`"
  3800. section in the Yocto Project Development Tasks Manual.
  3801. :term:`LICENSE_FLAGS_ACCEPTED`
  3802. Lists license flags that when specified in
  3803. :term:`LICENSE_FLAGS` within a recipe should not
  3804. prevent that recipe from being built. For more information, see the
  3805. ":ref:`dev-manual/licenses:enabling commercially licensed recipes`"
  3806. section in the Yocto Project Development Tasks Manual.
  3807. :term:`LICENSE_PATH`
  3808. Path to additional licenses used during the build. By default, the
  3809. OpenEmbedded build system uses :term:`COMMON_LICENSE_DIR` to define the
  3810. directory that holds common license text used during the build. The
  3811. :term:`LICENSE_PATH` variable allows you to extend that location to other
  3812. areas that have additional licenses::
  3813. LICENSE_PATH += "path-to-additional-common-licenses"
  3814. :term:`LINUX_KERNEL_TYPE`
  3815. Defines the kernel type to be used in assembling the configuration.
  3816. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  3817. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  3818. section in the
  3819. Yocto Project Linux Kernel Development Manual for more information on
  3820. kernel types.
  3821. If you do not specify a :term:`LINUX_KERNEL_TYPE`, it defaults to
  3822. "standard". Together with :term:`KMACHINE`, the
  3823. :term:`LINUX_KERNEL_TYPE` variable defines the search arguments used by
  3824. the kernel tools to find the appropriate description within the
  3825. kernel :term:`Metadata` with which to build out the sources
  3826. and configuration.
  3827. :term:`LINUX_VERSION`
  3828. The Linux version from ``kernel.org`` on which the Linux kernel image
  3829. being built using the OpenEmbedded build system is based. You define
  3830. this variable in the kernel recipe. For example, the
  3831. ``linux-yocto-3.4.bb`` kernel recipe found in
  3832. ``meta/recipes-kernel/linux`` defines the variables as follows::
  3833. LINUX_VERSION ?= "3.4.24"
  3834. The :term:`LINUX_VERSION` variable is used to define :term:`PV`
  3835. for the recipe::
  3836. PV = "${LINUX_VERSION}+git${SRCPV}"
  3837. :term:`LINUX_VERSION_EXTENSION`
  3838. A string extension compiled into the version string of the Linux
  3839. kernel built with the OpenEmbedded build system. You define this
  3840. variable in the kernel recipe. For example, the linux-yocto kernel
  3841. recipes all define the variable as follows::
  3842. LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}"
  3843. Defining this variable essentially sets the Linux kernel
  3844. configuration item ``CONFIG_LOCALVERSION``, which is visible through
  3845. the ``uname`` command. Here is an example that shows the extension
  3846. assuming it was set as previously shown::
  3847. $ uname -r
  3848. 3.7.0-rc8-custom
  3849. :term:`LOG_DIR`
  3850. Specifies the directory to which the OpenEmbedded build system writes
  3851. overall log files. The default directory is ``${TMPDIR}/log``.
  3852. For the directory containing logs specific to each task, see the
  3853. :term:`T` variable.
  3854. :term:`MACHINE`
  3855. Specifies the target device for which the image is built. You define
  3856. :term:`MACHINE` in the ``local.conf`` file found in the
  3857. :term:`Build Directory`. By default, :term:`MACHINE` is set to
  3858. "qemux86", which is an x86-based architecture machine to be emulated
  3859. using QEMU::
  3860. MACHINE ?= "qemux86"
  3861. The variable corresponds to a machine configuration file of the same
  3862. name, through which machine-specific configurations are set. Thus,
  3863. when :term:`MACHINE` is set to "qemux86", the corresponding
  3864. ``qemux86.conf`` machine configuration file can be found in
  3865. the :term:`Source Directory` in
  3866. ``meta/conf/machine``.
  3867. The list of machines supported by the Yocto Project as shipped
  3868. include the following::
  3869. MACHINE ?= "qemuarm"
  3870. MACHINE ?= "qemuarm64"
  3871. MACHINE ?= "qemumips"
  3872. MACHINE ?= "qemumips64"
  3873. MACHINE ?= "qemuppc"
  3874. MACHINE ?= "qemux86"
  3875. MACHINE ?= "qemux86-64"
  3876. MACHINE ?= "genericx86"
  3877. MACHINE ?= "genericx86-64"
  3878. MACHINE ?= "beaglebone"
  3879. MACHINE ?= "edgerouter"
  3880. The last five are Yocto Project reference hardware
  3881. boards, which are provided in the ``meta-yocto-bsp`` layer.
  3882. .. note::
  3883. Adding additional Board Support Package (BSP) layers to your
  3884. configuration adds new possible settings for :term:`MACHINE`.
  3885. :term:`MACHINE_ARCH`
  3886. Specifies the name of the machine-specific architecture. This
  3887. variable is set automatically from :term:`MACHINE` or
  3888. :term:`TUNE_PKGARCH`. You should not hand-edit
  3889. the :term:`MACHINE_ARCH` variable.
  3890. :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  3891. A list of required machine-specific packages to install as part of
  3892. the image being built. The build process depends on these packages
  3893. being present. Furthermore, because this is a "machine-essential"
  3894. variable, the list of packages are essential for the machine to boot.
  3895. The impact of this variable affects images based on
  3896. ``packagegroup-core-boot``, including the ``core-image-minimal``
  3897. image.
  3898. This variable is similar to the
  3899. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS` variable with the exception
  3900. that the image being built has a build dependency on the variable's
  3901. list of packages. In other words, the image will not build if a file
  3902. in this list is not found.
  3903. As an example, suppose the machine for which you are building
  3904. requires ``example-init`` to be run during boot to initialize the
  3905. hardware. In this case, you would use the following in the machine's
  3906. ``.conf`` configuration file::
  3907. MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "example-init"
  3908. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS`
  3909. A list of recommended machine-specific packages to install as part of
  3910. the image being built. The build process does not depend on these
  3911. packages being present. However, because this is a
  3912. "machine-essential" variable, the list of packages are essential for
  3913. the machine to boot. The impact of this variable affects images based
  3914. on ``packagegroup-core-boot``, including the ``core-image-minimal``
  3915. image.
  3916. This variable is similar to the :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  3917. variable with the exception that the image being built does not have
  3918. a build dependency on the variable's list of packages. In other
  3919. words, the image will still build if a package in this list is not
  3920. found. Typically, this variable is used to handle essential kernel
  3921. modules, whose functionality may be selected to be built into the
  3922. kernel rather than as a module, in which case a package will not be
  3923. produced.
  3924. Consider an example where you have a custom kernel where a specific
  3925. touchscreen driver is required for the machine to be usable. However,
  3926. the driver can be built as a module or into the kernel depending on
  3927. the kernel configuration. If the driver is built as a module, you
  3928. want it to be installed. But, when the driver is built into the
  3929. kernel, you still want the build to succeed. This variable sets up a
  3930. "recommends" relationship so that in the latter case, the build will
  3931. not fail due to the missing package. To accomplish this, assuming the
  3932. package for the module was called ``kernel-module-ab123``, you would
  3933. use the following in the machine's ``.conf`` configuration file::
  3934. MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "kernel-module-ab123"
  3935. .. note::
  3936. In this example, the ``kernel-module-ab123`` recipe needs to
  3937. explicitly set its :term:`PACKAGES` variable to ensure that BitBake
  3938. does not use the kernel recipe's :term:`PACKAGES_DYNAMIC` variable to
  3939. satisfy the dependency.
  3940. Some examples of these machine essentials are flash, screen,
  3941. keyboard, mouse, or touchscreen drivers (depending on the machine).
  3942. :term:`MACHINE_EXTRA_RDEPENDS`
  3943. A list of machine-specific packages to install as part of the image
  3944. being built that are not essential for the machine to boot. However,
  3945. the build process for more fully-featured images depends on the
  3946. packages being present.
  3947. This variable affects all images based on ``packagegroup-base``,
  3948. which does not include the ``core-image-minimal`` or
  3949. ``core-image-full-cmdline`` images.
  3950. The variable is similar to the :term:`MACHINE_EXTRA_RRECOMMENDS` variable
  3951. with the exception that the image being built has a build dependency
  3952. on the variable's list of packages. In other words, the image will
  3953. not build if a file in this list is not found.
  3954. An example is a machine that has WiFi capability but is not essential
  3955. for the machine to boot the image. However, if you are building a
  3956. more fully-featured image, you want to enable the WiFi. The package
  3957. containing the firmware for the WiFi hardware is always expected to
  3958. exist, so it is acceptable for the build process to depend upon
  3959. finding the package. In this case, assuming the package for the
  3960. firmware was called ``wifidriver-firmware``, you would use the
  3961. following in the ``.conf`` file for the machine::
  3962. MACHINE_EXTRA_RDEPENDS += "wifidriver-firmware"
  3963. :term:`MACHINE_EXTRA_RRECOMMENDS`
  3964. A list of machine-specific packages to install as part of the image
  3965. being built that are not essential for booting the machine. The image
  3966. being built has no build dependency on this list of packages.
  3967. This variable affects only images based on ``packagegroup-base``,
  3968. which does not include the ``core-image-minimal`` or
  3969. ``core-image-full-cmdline`` images.
  3970. This variable is similar to the :term:`MACHINE_EXTRA_RDEPENDS` variable
  3971. with the exception that the image being built does not have a build
  3972. dependency on the variable's list of packages. In other words, the
  3973. image will build if a file in this list is not found.
  3974. An example is a machine that has WiFi capability but is not essential
  3975. For the machine to boot the image. However, if you are building a
  3976. more fully-featured image, you want to enable WiFi. In this case, the
  3977. package containing the WiFi kernel module will not be produced if the
  3978. WiFi driver is built into the kernel, in which case you still want
  3979. the build to succeed instead of failing as a result of the package
  3980. not being found. To accomplish this, assuming the package for the
  3981. module was called ``kernel-module-examplewifi``, you would use the
  3982. following in the ``.conf`` file for the machine::
  3983. MACHINE_EXTRA_RRECOMMENDS += "kernel-module-examplewifi"
  3984. :term:`MACHINE_FEATURES`
  3985. Specifies the list of hardware features the
  3986. :term:`MACHINE` is capable of supporting. For related
  3987. information on enabling features, see the
  3988. :term:`DISTRO_FEATURES`,
  3989. :term:`COMBINED_FEATURES`, and
  3990. :term:`IMAGE_FEATURES` variables.
  3991. For a list of hardware features supported by the Yocto Project as
  3992. shipped, see the ":ref:`ref-features-machine`" section.
  3993. :term:`MACHINE_FEATURES_BACKFILL`
  3994. Features to be added to :term:`MACHINE_FEATURES` if not also present in
  3995. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`.
  3996. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  3997. not intended to be user-configurable. It is best to just reference
  3998. the variable to see which machine features are being backfilled for
  3999. all machine configurations. See the ":ref:`ref-features-backfill`"
  4000. section for more information.
  4001. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`
  4002. Features from :term:`MACHINE_FEATURES_BACKFILL` that should not be
  4003. backfilled (i.e. added to :term:`MACHINE_FEATURES`) during the build. See
  4004. the ":ref:`ref-features-backfill`" section for more information.
  4005. :term:`MACHINEOVERRIDES`
  4006. A colon-separated list of overrides that apply to the current
  4007. machine. By default, this list includes the value of
  4008. :term:`MACHINE`.
  4009. You can extend :term:`MACHINEOVERRIDES` to add extra overrides that
  4010. should apply to a machine. For example, all machines emulated in QEMU
  4011. (e.g. ``qemuarm``, ``qemux86``, and so forth) include a file named
  4012. ``meta/conf/machine/include/qemu.inc`` that prepends the following
  4013. override to :term:`MACHINEOVERRIDES`::
  4014. MACHINEOVERRIDES =. "qemuall:"
  4015. This
  4016. override allows variables to be overridden for all machines emulated
  4017. in QEMU, like in the following example from the ``connman-conf``
  4018. recipe::
  4019. SRC_URI:append:qemuall = " file://wired.config \
  4020. file://wired-setup \
  4021. "
  4022. The underlying mechanism behind
  4023. :term:`MACHINEOVERRIDES` is simply that it is included in the default
  4024. value of :term:`OVERRIDES`.
  4025. :term:`MAINTAINER`
  4026. The email address of the distribution maintainer.
  4027. :term:`MESON_BUILDTYPE`
  4028. Value of the Meson ``--buildtype`` argument used by the
  4029. :ref:`ref-classes-meson` class. It defaults to ``debug`` if
  4030. :term:`DEBUG_BUILD` is set to "1", and ``plain`` otherwise.
  4031. See `Meson build options <https://mesonbuild.com/Builtin-options.html>`__
  4032. for the values you could set in a recipe. Values such as ``plain``,
  4033. ``debug``, ``debugoptimized``, ``release`` and ``minsize`` allow
  4034. you to specify the inclusion of debugging symbols and the compiler
  4035. optimizations (none, performance or size).
  4036. :term:`METADATA_BRANCH`
  4037. The branch currently checked out for the OpenEmbedded-Core layer (path
  4038. determined by :term:`COREBASE`).
  4039. :term:`METADATA_REVISION`
  4040. The revision currently checked out for the OpenEmbedded-Core layer (path
  4041. determined by :term:`COREBASE`).
  4042. :term:`MIME_XDG_PACKAGES`
  4043. The current implementation of the :ref:`mime-xdg <ref-classes-mime-xdg>`
  4044. class cannot detect ``.desktop`` files installed through absolute
  4045. symbolic links. Use this setting to make the class create post-install
  4046. and post-remove scripts for these packages anyway, to invoke the
  4047. ``update-destop-database`` command.
  4048. :term:`MIRRORS`
  4049. Specifies additional paths from which the OpenEmbedded build system
  4050. gets source code. When the build system searches for source code, it
  4051. first tries the local download directory. If that location fails, the
  4052. build system tries locations defined by
  4053. :term:`PREMIRRORS`, the upstream source, and then
  4054. locations specified by :term:`MIRRORS` in that order.
  4055. The default value for :term:`MIRRORS` is defined in the
  4056. ``meta/classes-global/mirrors.bbclass`` file in the core metadata layer.
  4057. :term:`MLPREFIX`
  4058. Specifies a prefix has been added to :term:`PN` to create a
  4059. special version of a recipe or package (i.e. a Multilib version). The
  4060. variable is used in places where the prefix needs to be added to or
  4061. removed from a the name (e.g. the :term:`BPN` variable).
  4062. :term:`MLPREFIX` gets set when a prefix has been added to :term:`PN`.
  4063. .. note::
  4064. The "ML" in :term:`MLPREFIX` stands for "MultiLib". This representation is
  4065. historical and comes from a time when ``nativesdk`` was a suffix
  4066. rather than a prefix on the recipe name. When ``nativesdk`` was turned
  4067. into a prefix, it made sense to set :term:`MLPREFIX` for it as well.
  4068. To help understand when :term:`MLPREFIX` might be needed, consider when
  4069. :term:`BBCLASSEXTEND` is used to provide a
  4070. ``nativesdk`` version of a recipe in addition to the target version.
  4071. If that recipe declares build-time dependencies on tasks in other
  4072. recipes by using :term:`DEPENDS`, then a dependency on
  4073. "foo" will automatically get rewritten to a dependency on
  4074. "nativesdk-foo". However, dependencies like the following will not
  4075. get rewritten automatically::
  4076. do_foo[depends] += "recipe:do_foo"
  4077. If you want such a dependency to also get transformed, you can do the
  4078. following::
  4079. do_foo[depends] += "${MLPREFIX}recipe:do_foo"
  4080. :term:`module_autoload`
  4081. This variable has been replaced by the :term:`KERNEL_MODULE_AUTOLOAD`
  4082. variable. You should replace all occurrences of :term:`module_autoload`
  4083. with additions to :term:`KERNEL_MODULE_AUTOLOAD`, for example::
  4084. module_autoload_rfcomm = "rfcomm"
  4085. should now be replaced with::
  4086. KERNEL_MODULE_AUTOLOAD += "rfcomm"
  4087. See the :term:`KERNEL_MODULE_AUTOLOAD` variable for more information.
  4088. :term:`module_conf`
  4089. Specifies `modprobe.d <https://linux.die.net/man/5/modprobe.d>`_
  4090. syntax lines for inclusion in the ``/etc/modprobe.d/modname.conf``
  4091. file.
  4092. You can use this variable anywhere that it can be recognized by the
  4093. kernel recipe or out-of-tree kernel module recipe (e.g. a machine
  4094. configuration file, a distribution configuration file, an append file
  4095. for the recipe, or the recipe itself). If you use this variable, you
  4096. must also be sure to list the module name in the
  4097. :term:`KERNEL_MODULE_PROBECONF`
  4098. variable.
  4099. Here is the general syntax::
  4100. module_conf_module_name = "modprobe.d-syntax"
  4101. You must use the kernel module name override.
  4102. Run ``man modprobe.d`` in the shell to find out more information on
  4103. the exact syntax you want to provide with :term:`module_conf`.
  4104. Including :term:`module_conf` causes the OpenEmbedded build system to
  4105. populate the ``/etc/modprobe.d/modname.conf`` file with
  4106. ``modprobe.d`` syntax lines. Here is an example that adds the options
  4107. ``arg1`` and ``arg2`` to a module named ``mymodule``::
  4108. module_conf_mymodule = "options mymodule arg1=val1 arg2=val2"
  4109. For information on how to specify kernel modules to auto-load on
  4110. boot, see the :term:`KERNEL_MODULE_AUTOLOAD` variable.
  4111. :term:`MODULE_TARBALL_DEPLOY`
  4112. Controls creation of the ``modules-*.tgz`` file. Set this variable to
  4113. "0" to disable creation of this file, which contains all of the
  4114. kernel modules resulting from a kernel build.
  4115. :term:`MODULE_TARBALL_LINK_NAME`
  4116. The link name of the kernel module tarball. This variable is set in
  4117. the ``meta/classes/kernel-artifact-names.bbclass`` file as follows::
  4118. MODULE_TARBALL_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  4119. The value
  4120. of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the
  4121. same file, has the following value::
  4122. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  4123. See the :term:`MACHINE` variable for additional information.
  4124. :term:`MODULE_TARBALL_NAME`
  4125. The base name of the kernel module tarball. This variable is set in
  4126. the ``meta/classes/kernel-artifact-names.bbclass`` file as follows::
  4127. MODULE_TARBALL_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  4128. The value of the :term:`KERNEL_ARTIFACT_NAME` variable,
  4129. which is set in the same file, has the following value::
  4130. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  4131. :term:`MULTIMACH_TARGET_SYS`
  4132. Uniquely identifies the type of the target system for which packages
  4133. are being built. This variable allows output for different types of
  4134. target systems to be put into different subdirectories of the same
  4135. output directory.
  4136. The default value of this variable is::
  4137. ${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}
  4138. Some classes (e.g.
  4139. :ref:`cross-canadian <ref-classes-cross-canadian>`) modify the
  4140. :term:`MULTIMACH_TARGET_SYS` value.
  4141. See the :term:`STAMP` variable for an example. See the
  4142. :term:`STAGING_DIR_TARGET` variable for more information.
  4143. :term:`NATIVELSBSTRING`
  4144. A string identifying the host distribution. Strings consist of the
  4145. host distributor ID followed by the release, as reported by the
  4146. ``lsb_release`` tool or as read from ``/etc/lsb-release``. For
  4147. example, when running a build on Ubuntu 12.10, the value is
  4148. "Ubuntu-12.10". If this information is unable to be determined, the
  4149. value resolves to "Unknown".
  4150. This variable is used by default to isolate native shared state
  4151. packages for different distributions (e.g. to avoid problems with
  4152. ``glibc`` version incompatibilities). Additionally, the variable is
  4153. checked against
  4154. :term:`SANITY_TESTED_DISTROS` if that
  4155. variable is set.
  4156. :term:`NM`
  4157. The minimal command and arguments to run ``nm``.
  4158. :term:`NO_GENERIC_LICENSE`
  4159. Avoids QA errors when you use a non-common, non-CLOSED license in a
  4160. recipe. There are packages, such as the linux-firmware package, with many
  4161. licenses that are not in any way common. Also, new licenses are added
  4162. occasionally to avoid introducing a lot of common license files,
  4163. which are only applicable to a specific package.
  4164. :term:`NO_GENERIC_LICENSE` is used to allow copying a license that does
  4165. not exist in common licenses.
  4166. The following example shows how to add :term:`NO_GENERIC_LICENSE` to a
  4167. recipe::
  4168. NO_GENERIC_LICENSE[license_name] = "license_file_in_fetched_source"
  4169. Here is an example that
  4170. uses the ``LICENSE.Abilis.txt`` file as the license from the fetched
  4171. source::
  4172. NO_GENERIC_LICENSE[Firmware-Abilis] = "LICENSE.Abilis.txt"
  4173. :term:`NO_RECOMMENDATIONS`
  4174. Prevents installation of all "recommended-only" packages.
  4175. Recommended-only packages are packages installed only through the
  4176. :term:`RRECOMMENDS` variable). Setting the
  4177. :term:`NO_RECOMMENDATIONS` variable to "1" turns this feature on::
  4178. NO_RECOMMENDATIONS = "1"
  4179. You can set this variable globally in your ``local.conf`` file or you
  4180. can attach it to a specific image recipe by using the recipe name
  4181. override::
  4182. NO_RECOMMENDATIONS:pn-target_image = "1"
  4183. It is important to realize that if you choose to not install packages
  4184. using this variable and some other packages are dependent on them
  4185. (i.e. listed in a recipe's :term:`RDEPENDS`
  4186. variable), the OpenEmbedded build system ignores your request and
  4187. will install the packages to avoid dependency errors.
  4188. .. note::
  4189. Some recommended packages might be required for certain system
  4190. functionality, such as kernel modules. It is up to you to add
  4191. packages with the :term:`IMAGE_INSTALL` variable.
  4192. This variable is only supported when using the IPK and RPM
  4193. packaging backends. DEB is not supported.
  4194. See the :term:`BAD_RECOMMENDATIONS` and
  4195. the :term:`PACKAGE_EXCLUDE` variables for
  4196. related information.
  4197. :term:`NOAUTOPACKAGEDEBUG`
  4198. Disables auto package from splitting ``.debug`` files. If a recipe
  4199. requires ``FILES:${PN}-dbg`` to be set manually, the
  4200. :term:`NOAUTOPACKAGEDEBUG` can be defined allowing you to define the
  4201. content of the debug package. For example::
  4202. NOAUTOPACKAGEDEBUG = "1"
  4203. FILES:${PN}-dev = "${includedir}/${QT_DIR_NAME}/Qt/*"
  4204. FILES:${PN}-dbg = "/usr/src/debug/"
  4205. FILES:${QT_BASE_NAME}-demos-doc = "${docdir}/${QT_DIR_NAME}/qch/qt.qch"
  4206. :term:`NON_MULTILIB_RECIPES`
  4207. A list of recipes that should not be built for multilib. OE-Core's
  4208. ``multilib.conf`` file defines a reasonable starting point for this
  4209. list with::
  4210. NON_MULTILIB_RECIPES = "grub grub-efi make-mod-scripts ovmf u-boot"
  4211. :term:`OBJCOPY`
  4212. The minimal command and arguments to run ``objcopy``.
  4213. :term:`OBJDUMP`
  4214. The minimal command and arguments to run ``objdump``.
  4215. :term:`OE_BINCONFIG_EXTRA_MANGLE`
  4216. When inheriting the :ref:`binconfig <ref-classes-binconfig>` class,
  4217. this variable specifies additional arguments passed to the "sed"
  4218. command. The sed command alters any paths in configuration scripts
  4219. that have been set up during compilation. Inheriting this class
  4220. results in all paths in these scripts being changed to point into the
  4221. ``sysroots/`` directory so that all builds that use the script will
  4222. use the correct directories for the cross compiling layout.
  4223. See the ``meta/classes/binconfig.bbclass`` in the
  4224. :term:`Source Directory` for details on how this class
  4225. applies these additional sed command arguments.
  4226. :term:`OECMAKE_GENERATOR`
  4227. A variable for the :ref:`ref-classes-cmake` class, allowing to choose
  4228. which back-end will be generated by CMake to build an application.
  4229. By default, this variable is set to ``Ninja``, which is faster than GNU
  4230. make, but if building is broken with Ninja, a recipe can use this
  4231. variable to use GNU make instead::
  4232. OECMAKE_GENERATOR = "Unix Makefiles"
  4233. :term:`OE_IMPORTS`
  4234. An internal variable used to tell the OpenEmbedded build system what
  4235. Python modules to import for every Python function run by the system.
  4236. .. note::
  4237. Do not set this variable. It is for internal use only.
  4238. :term:`OE_INIT_ENV_SCRIPT`
  4239. The name of the build environment setup script for the purposes of
  4240. setting up the environment within the extensible SDK. The default
  4241. value is "oe-init-build-env".
  4242. If you use a custom script to set up your build environment, set the
  4243. :term:`OE_INIT_ENV_SCRIPT` variable to its name.
  4244. :term:`OE_TERMINAL`
  4245. Controls how the OpenEmbedded build system spawns interactive
  4246. terminals on the host development system (e.g. using the BitBake
  4247. command with the ``-c devshell`` command-line option). For more
  4248. information, see the ":ref:`dev-manual/development-shell:using a development shell`" section in
  4249. the Yocto Project Development Tasks Manual.
  4250. You can use the following values for the :term:`OE_TERMINAL` variable:
  4251. - auto
  4252. - gnome
  4253. - xfce
  4254. - rxvt
  4255. - screen
  4256. - konsole
  4257. - none
  4258. :term:`OEROOT`
  4259. The directory from which the top-level build environment setup script
  4260. is sourced. The Yocto Project provides a top-level build environment
  4261. setup script: :ref:`structure-core-script`. When you run this
  4262. script, the :term:`OEROOT` variable resolves to the directory that
  4263. contains the script.
  4264. For additional information on how this variable is used, see the
  4265. initialization script.
  4266. :term:`OEQA_REPRODUCIBLE_TEST_PACKAGE`
  4267. Set the package manager(s) for build reproducibility testing.
  4268. See :yocto_git:`reproducible.py </poky/tree/meta/lib/oeqa/selftest/cases/reproducible.py>`
  4269. and :doc:`/test-manual/reproducible-builds`.
  4270. :term:`OEQA_REPRODUCIBLE_TEST_TARGET`
  4271. Set build target for build reproducibility testing. By default
  4272. all available recipes are compiled with "bitbake world", see also :term:`EXCLUDE_FROM_WORLD`
  4273. and :doc:`/test-manual/reproducible-builds`.
  4274. :term:`OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS`
  4275. Set build targets which can be rebuilt using :ref:`shared state <overview-manual/concepts:shared state cache>`
  4276. when running build reproducibility tests. See :doc:`/test-manual/reproducible-builds`.
  4277. :term:`OLDEST_KERNEL`
  4278. Declares the oldest version of the Linux kernel that the produced
  4279. binaries must support. This variable is passed into the build of the
  4280. Embedded GNU C Library (``glibc``).
  4281. The default for this variable comes from the
  4282. ``meta/conf/bitbake.conf`` configuration file. You can override this
  4283. default by setting the variable in a custom distribution
  4284. configuration file.
  4285. :term:`OPKGBUILDCMD`
  4286. The variable :term:`OPKGBUILDCMD` specifies the command used to build opkg
  4287. packages when using the :ref:`ref-classes-package_ipk` class. It is
  4288. defined in :ref:`ref-classes-package_ipk` as::
  4289. OPKGBUILDCMD ??= 'opkg-build -Z zstd -a "${ZSTD_DEFAULTS}"'
  4290. :term:`OVERRIDES`
  4291. A colon-separated list of overrides that currently apply. Overrides
  4292. are a BitBake mechanism that allows variables to be selectively
  4293. overridden at the end of parsing. The set of overrides in
  4294. :term:`OVERRIDES` represents the "state" during building, which includes
  4295. the current recipe being built, the machine for which it is being
  4296. built, and so forth.
  4297. As an example, if the string "an-override" appears as an element in
  4298. the colon-separated list in :term:`OVERRIDES`, then the following
  4299. assignment will override ``FOO`` with the value "overridden" at the
  4300. end of parsing::
  4301. FOO:an-override = "overridden"
  4302. See the
  4303. ":ref:`bitbake:bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  4304. section in the BitBake User Manual for more information on the
  4305. overrides mechanism.
  4306. The default value of :term:`OVERRIDES` includes the values of the
  4307. :term:`CLASSOVERRIDE`,
  4308. :term:`MACHINEOVERRIDES`, and
  4309. :term:`DISTROOVERRIDES` variables. Another
  4310. important override included by default is ``pn-${PN}``. This override
  4311. allows variables to be set for a single recipe within configuration
  4312. (``.conf``) files. Here is an example::
  4313. FOO:pn-myrecipe = "myrecipe-specific value"
  4314. .. note::
  4315. An easy way to see what overrides apply is to search for :term:`OVERRIDES`
  4316. in the output of the ``bitbake -e`` command. See the
  4317. ":ref:`dev-manual/debugging:viewing variable values`" section in the Yocto
  4318. Project Development Tasks Manual for more information.
  4319. :term:`P`
  4320. The recipe name and version. :term:`P` is comprised of the following::
  4321. ${PN}-${PV}
  4322. :term:`PACKAGE_ADD_METADATA`
  4323. This variable defines additional metadata to add to packages.
  4324. You may find you need to inject additional metadata into packages.
  4325. This variable allows you to do that by setting the injected data as
  4326. the value. Multiple fields can be added by splitting the content with
  4327. the literal separator "\n".
  4328. The suffixes '_IPK', '_DEB', or '_RPM' can be applied to the variable
  4329. to do package type specific settings. It can also be made package
  4330. specific by using the package name as a suffix.
  4331. You can find out more about applying this variable in the
  4332. ":ref:`dev-manual/packages:adding custom metadata to packages`"
  4333. section in the Yocto Project Development Tasks Manual.
  4334. :term:`PACKAGE_ARCH`
  4335. The architecture of the resulting package or packages.
  4336. By default, the value of this variable is set to
  4337. :term:`TUNE_PKGARCH` when building for the
  4338. target, :term:`BUILD_ARCH` when building for the
  4339. build host, and "${SDK_ARCH}-${SDKPKGSUFFIX}" when building for the
  4340. SDK.
  4341. .. note::
  4342. See :term:`SDK_ARCH` for more information.
  4343. However, if your recipe's output packages are built specific to the
  4344. target machine rather than generally for the architecture of the
  4345. machine, you should set :term:`PACKAGE_ARCH` to the value of
  4346. :term:`MACHINE_ARCH` in the recipe as follows::
  4347. PACKAGE_ARCH = "${MACHINE_ARCH}"
  4348. :term:`PACKAGE_ARCHS`
  4349. Specifies a list of architectures compatible with the target machine.
  4350. This variable is set automatically and should not normally be
  4351. hand-edited. Entries are separated using spaces and listed in order
  4352. of priority. The default value for :term:`PACKAGE_ARCHS` is "all any
  4353. noarch ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}".
  4354. :term:`PACKAGE_BEFORE_PN`
  4355. Enables easily adding packages to :term:`PACKAGES` before ``${PN}`` so
  4356. that those added packages can pick up files that would normally be
  4357. included in the default package.
  4358. :term:`PACKAGE_CLASSES`
  4359. This variable, which is set in the ``local.conf`` configuration file
  4360. found in the ``conf`` folder of the
  4361. :term:`Build Directory`, specifies the package manager the
  4362. OpenEmbedded build system uses when packaging data.
  4363. You can provide one or more of the following arguments for the
  4364. variable: PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk
  4365. package_tar"
  4366. .. note::
  4367. While it is a legal option, the ``package_tar``
  4368. class has limited functionality due to no support for package
  4369. dependencies by that backend. Therefore, it is recommended that
  4370. you do not use it.
  4371. The build system uses only the first argument in the list as the
  4372. package manager when creating your image or SDK. However, packages
  4373. will be created using any additional packaging classes you specify.
  4374. For example, if you use the following in your ``local.conf`` file::
  4375. PACKAGE_CLASSES ?= "package_ipk"
  4376. The OpenEmbedded build system uses
  4377. the IPK package manager to create your image or SDK.
  4378. For information on packaging and build performance effects as a
  4379. result of the package manager in use, see the
  4380. ":ref:`ref-classes-package`" section.
  4381. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  4382. Determines how to split up and package debug and source information
  4383. when creating debugging packages to be used with the GNU Project
  4384. Debugger (GDB). In general, based on the value of this variable,
  4385. you can combine the source and debug info in a single package,
  4386. you can break out the source into a separate package that can be
  4387. installed independently, or you can choose to not have the source
  4388. packaged at all.
  4389. The possible values of :term:`PACKAGE_DEBUG_SPLIT_STYLE` variable:
  4390. - "``.debug``": All debugging and source info is placed in a single
  4391. ``*-dbg`` package; debug symbol files are placed next to the
  4392. binary in a ``.debug`` directory so that, if a binary is installed
  4393. into ``/bin``, the corresponding debug symbol file is installed
  4394. in ``/bin/.debug``. Source files are installed in the same ``*-dbg``
  4395. package under ``/usr/src/debug``.
  4396. - "``debug-file-directory``": As above, all debugging and source info
  4397. is placed in a single ``*-dbg`` package; debug symbol files are
  4398. placed entirely under the directory ``/usr/lib/debug`` and separated
  4399. by the path from where the binary is installed, so that if a binary
  4400. is installed in ``/bin``, the corresponding debug symbols are installed
  4401. in ``/usr/lib/debug/bin``, and so on. As above, source is installed
  4402. in the same package under ``/usr/src/debug``.
  4403. - "``debug-with-srcpkg``": Debugging info is placed in the standard
  4404. ``*-dbg`` package as with the ``.debug`` value, while source is
  4405. placed in a separate ``*-src`` package, which can be installed
  4406. independently. This is the default setting for this variable,
  4407. as defined in Poky's ``bitbake.conf`` file.
  4408. - "``debug-without-src``": The same behavior as with the ``.debug``
  4409. setting, but no source is packaged at all.
  4410. .. note::
  4411. Much of the above package splitting can be overridden via
  4412. use of the :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` variable.
  4413. You can find out more about debugging using GDB by reading the
  4414. ":ref:`dev-manual/debugging:debugging with the gnu project debugger (gdb) remotely`" section
  4415. in the Yocto Project Development Tasks Manual.
  4416. :term:`PACKAGE_EXCLUDE`
  4417. Lists packages that should not be installed into an image. For
  4418. example::
  4419. PACKAGE_EXCLUDE = "package_name package_name package_name ..."
  4420. You can set this variable globally in your ``local.conf`` file or you
  4421. can attach it to a specific image recipe by using the recipe name
  4422. override::
  4423. PACKAGE_EXCLUDE:pn-target_image = "package_name"
  4424. If you choose to not install a package using this variable and some
  4425. other package is dependent on it (i.e. listed in a recipe's
  4426. :term:`RDEPENDS` variable), the OpenEmbedded build
  4427. system generates a fatal installation error. Because the build system
  4428. halts the process with a fatal error, you can use the variable with
  4429. an iterative development process to remove specific components from a
  4430. system.
  4431. This variable is supported only when using the IPK and RPM
  4432. packaging backends. DEB is not supported.
  4433. See the :term:`NO_RECOMMENDATIONS` and the
  4434. :term:`BAD_RECOMMENDATIONS` variables for
  4435. related information.
  4436. :term:`PACKAGE_EXCLUDE_COMPLEMENTARY`
  4437. Prevents specific packages from being installed when you are
  4438. installing complementary packages.
  4439. You might find that you want to prevent installing certain packages
  4440. when you are installing complementary packages. For example, if you
  4441. are using :term:`IMAGE_FEATURES` to install
  4442. ``dev-pkgs``, you might not want to install all packages from a
  4443. particular multilib. If you find yourself in this situation, you can
  4444. use the :term:`PACKAGE_EXCLUDE_COMPLEMENTARY` variable to specify regular
  4445. expressions to match the packages you want to exclude.
  4446. :term:`PACKAGE_EXTRA_ARCHS`
  4447. Specifies the list of architectures compatible with the device CPU.
  4448. This variable is useful when you build for several different devices
  4449. that use miscellaneous processors such as XScale and ARM926-EJS.
  4450. :term:`PACKAGE_FEED_ARCHS`
  4451. Optionally specifies the package architectures used as part of the
  4452. package feed URIs during the build. When used, the
  4453. :term:`PACKAGE_FEED_ARCHS` variable is appended to the final package feed
  4454. URI, which is constructed using the
  4455. :term:`PACKAGE_FEED_URIS` and
  4456. :term:`PACKAGE_FEED_BASE_PATHS`
  4457. variables.
  4458. .. note::
  4459. You can use the :term:`PACKAGE_FEED_ARCHS`
  4460. variable to allow specific package architectures. If you do
  4461. not need to allow specific architectures, which is a common
  4462. case, you can omit this variable. Omitting the variable results in
  4463. all available architectures for the current machine being included
  4464. into remote package feeds.
  4465. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4466. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4467. defined in your ``local.conf`` file::
  4468. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4469. https://example.com/packagerepos/updates"
  4470. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4471. PACKAGE_FEED_ARCHS = "all core2-64"
  4472. Given these settings, the resulting package feeds are as follows:
  4473. .. code-block:: none
  4474. https://example.com/packagerepos/release/rpm/all
  4475. https://example.com/packagerepos/release/rpm/core2-64
  4476. https://example.com/packagerepos/release/rpm-dev/all
  4477. https://example.com/packagerepos/release/rpm-dev/core2-64
  4478. https://example.com/packagerepos/updates/rpm/all
  4479. https://example.com/packagerepos/updates/rpm/core2-64
  4480. https://example.com/packagerepos/updates/rpm-dev/all
  4481. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4482. :term:`PACKAGE_FEED_BASE_PATHS`
  4483. Specifies the base path used when constructing package feed URIs. The
  4484. :term:`PACKAGE_FEED_BASE_PATHS` variable makes up the middle portion of a
  4485. package feed URI used by the OpenEmbedded build system. The base path
  4486. lies between the :term:`PACKAGE_FEED_URIS`
  4487. and :term:`PACKAGE_FEED_ARCHS` variables.
  4488. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4489. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4490. defined in your ``local.conf`` file::
  4491. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4492. https://example.com/packagerepos/updates"
  4493. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4494. PACKAGE_FEED_ARCHS = "all core2-64"
  4495. Given these settings, the resulting package feeds are as follows:
  4496. .. code-block:: none
  4497. https://example.com/packagerepos/release/rpm/all
  4498. https://example.com/packagerepos/release/rpm/core2-64
  4499. https://example.com/packagerepos/release/rpm-dev/all
  4500. https://example.com/packagerepos/release/rpm-dev/core2-64
  4501. https://example.com/packagerepos/updates/rpm/all
  4502. https://example.com/packagerepos/updates/rpm/core2-64
  4503. https://example.com/packagerepos/updates/rpm-dev/all
  4504. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4505. :term:`PACKAGE_FEED_URIS`
  4506. Specifies the front portion of the package feed URI used by the
  4507. OpenEmbedded build system. Each final package feed URI is comprised
  4508. of :term:`PACKAGE_FEED_URIS`,
  4509. :term:`PACKAGE_FEED_BASE_PATHS`, and
  4510. :term:`PACKAGE_FEED_ARCHS` variables.
  4511. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4512. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4513. defined in your ``local.conf`` file::
  4514. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4515. https://example.com/packagerepos/updates"
  4516. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4517. PACKAGE_FEED_ARCHS = "all core2-64"
  4518. Given these settings, the resulting package feeds are as follows:
  4519. .. code-block:: none
  4520. https://example.com/packagerepos/release/rpm/all
  4521. https://example.com/packagerepos/release/rpm/core2-64
  4522. https://example.com/packagerepos/release/rpm-dev/all
  4523. https://example.com/packagerepos/release/rpm-dev/core2-64
  4524. https://example.com/packagerepos/updates/rpm/all
  4525. https://example.com/packagerepos/updates/rpm/core2-64
  4526. https://example.com/packagerepos/updates/rpm-dev/all
  4527. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4528. :term:`PACKAGE_INSTALL`
  4529. The final list of packages passed to the package manager for
  4530. installation into the image.
  4531. Because the package manager controls actual installation of all
  4532. packages, the list of packages passed using :term:`PACKAGE_INSTALL` is
  4533. not the final list of packages that are actually installed. This
  4534. variable is internal to the image construction code. Consequently, in
  4535. general, you should use the
  4536. :term:`IMAGE_INSTALL` variable to specify
  4537. packages for installation. The exception to this is when working with
  4538. the :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  4539. image. When working with an initial RAM filesystem (initramfs) image,
  4540. use the :term:`PACKAGE_INSTALL` variable. For information on creating an
  4541. :term:`Initramfs`, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  4542. in the Yocto Project Development Tasks Manual.
  4543. :term:`PACKAGE_INSTALL_ATTEMPTONLY`
  4544. Specifies a list of packages the OpenEmbedded build system attempts
  4545. to install when creating an image. If a listed package fails to
  4546. install, the build system does not generate an error. This variable
  4547. is generally not user-defined.
  4548. :term:`PACKAGE_PREPROCESS_FUNCS`
  4549. Specifies a list of functions run to pre-process the
  4550. :term:`PKGD` directory prior to splitting the files out
  4551. to individual packages.
  4552. :term:`PACKAGE_WRITE_DEPS`
  4553. Specifies a list of dependencies for post-installation and
  4554. pre-installation scripts on native/cross tools. If your
  4555. post-installation or pre-installation script can execute at root filesystem
  4556. creation time rather than on the target but depends on a native tool
  4557. in order to execute, you need to list the tools in
  4558. :term:`PACKAGE_WRITE_DEPS`.
  4559. For information on running post-installation scripts, see the
  4560. ":ref:`dev-manual/new-recipe:post-installation scripts`"
  4561. section in the Yocto Project Development Tasks Manual.
  4562. :term:`PACKAGECONFIG`
  4563. This variable provides a means of enabling or disabling features of a
  4564. recipe on a per-recipe basis. :term:`PACKAGECONFIG` blocks are defined in
  4565. recipes when you specify features and then arguments that define
  4566. feature behaviors. Here is the basic block structure (broken over
  4567. multiple lines for readability)::
  4568. PACKAGECONFIG ??= "f1 f2 f3 ..."
  4569. PACKAGECONFIG[f1] = "\
  4570. --with-f1, \
  4571. --without-f1, \
  4572. build-deps-for-f1, \
  4573. runtime-deps-for-f1, \
  4574. runtime-recommends-for-f1, \
  4575. packageconfig-conflicts-for-f1"
  4576. PACKAGECONFIG[f2] = "\
  4577. ... and so on and so on ...
  4578. The :term:`PACKAGECONFIG` variable itself specifies a space-separated
  4579. list of the features to enable. Following the features, you can
  4580. determine the behavior of each feature by providing up to six
  4581. order-dependent arguments, which are separated by commas. You can
  4582. omit any argument you like but must retain the separating commas. The
  4583. order is important and specifies the following:
  4584. #. Extra arguments that should be added to :term:`PACKAGECONFIG_CONFARGS`
  4585. if the feature is enabled.
  4586. #. Extra arguments that should be added to :term:`PACKAGECONFIG_CONFARGS`
  4587. if the feature is disabled.
  4588. #. Additional build dependencies (:term:`DEPENDS`)
  4589. that should be added if the feature is enabled.
  4590. #. Additional runtime dependencies (:term:`RDEPENDS`)
  4591. that should be added if the feature is enabled.
  4592. #. Additional runtime recommendations
  4593. (:term:`RRECOMMENDS`) that should be added if
  4594. the feature is enabled.
  4595. #. Any conflicting (that is, mutually exclusive) :term:`PACKAGECONFIG`
  4596. settings for this feature.
  4597. Consider the following :term:`PACKAGECONFIG` block taken from the
  4598. ``librsvg`` recipe. In this example the feature is ``gtk``, which has
  4599. three arguments that determine the feature's behavior.
  4600. ::
  4601. PACKAGECONFIG[gtk] = "--with-gtk3,--without-gtk3,gtk+3"
  4602. The
  4603. ``--with-gtk3`` and ``gtk+3`` arguments apply only if the feature is
  4604. enabled. In this case, ``--with-gtk3`` is added to the configure
  4605. script argument list and ``gtk+3`` is added to :term:`DEPENDS`. On the
  4606. other hand, if the feature is disabled say through a ``.bbappend``
  4607. file in another layer, then the second argument ``--without-gtk3`` is
  4608. added to the configure script instead.
  4609. The basic :term:`PACKAGECONFIG` structure previously described holds true
  4610. regardless of whether you are creating a block or changing a block.
  4611. When creating a block, use the structure inside your recipe.
  4612. If you want to change an existing :term:`PACKAGECONFIG` block, you can do
  4613. so one of two ways:
  4614. - *Append file:* Create an append file named
  4615. ``recipename.bbappend`` in your layer and override the value of
  4616. :term:`PACKAGECONFIG`. You can either completely override the
  4617. variable::
  4618. PACKAGECONFIG = "f4 f5"
  4619. Or, you can just append the variable::
  4620. PACKAGECONFIG:append = " f4"
  4621. - *Configuration file:* This method is identical to changing the
  4622. block through an append file except you edit your ``local.conf``
  4623. or ``mydistro.conf`` file. As with append files previously
  4624. described, you can either completely override the variable::
  4625. PACKAGECONFIG:pn-recipename = "f4 f5"
  4626. Or, you can just amend the variable::
  4627. PACKAGECONFIG:append:pn-recipename = " f4"
  4628. Consider the following example of a :ref:`ref-classes-cmake` recipe with a systemd service
  4629. in which :term:`PACKAGECONFIG` is used to transform the systemd service
  4630. into a feature that can be easily enabled or disabled via :term:`PACKAGECONFIG`::
  4631. example.c
  4632. example.service
  4633. CMakeLists.txt
  4634. The ``CMakeLists.txt`` file contains::
  4635. if(WITH_SYSTEMD)
  4636. install(FILES ${PROJECT_SOURCE_DIR}/example.service DESTINATION /etc/systemd/systemd)
  4637. endif(WITH_SYSTEMD)
  4638. In order to enable the installation of ``example.service`` we need to
  4639. ensure that ``-DWITH_SYSTEMD=ON`` is passed to the ``cmake`` command
  4640. execution. Recipes that have ``CMakeLists.txt`` generally inherit the
  4641. :ref:`ref-classes-cmake` class, that runs ``cmake`` with
  4642. :term:`EXTRA_OECMAKE`, which :term:`PACKAGECONFIG_CONFARGS` will be
  4643. appended to. Now, knowing that :term:`PACKAGECONFIG_CONFARGS` is
  4644. automatically filled with either the first or second element of
  4645. :term:`PACKAGECONFIG` flag value, the recipe would be like::
  4646. inherit cmake
  4647. PACKAGECONFIG = "systemd"
  4648. PACKAGECONFIG[systemd] = "-DWITH_SYSTEMD=ON,-DWITH_SYSTEMD=OFF"
  4649. A side note to this recipe is to check if ``systemd`` is in fact the used :term:`INIT_MANAGER`
  4650. or not::
  4651. PACKAGECONFIG = "${@'systemd' if d.getVar('INIT_MANAGER') == 'systemd' else ''}"
  4652. :term:`PACKAGECONFIG_CONFARGS`
  4653. A space-separated list of configuration options generated from the
  4654. :term:`PACKAGECONFIG` setting.
  4655. Classes such as :ref:`autotools <ref-classes-autotools>` and
  4656. :ref:`cmake <ref-classes-cmake>` use :term:`PACKAGECONFIG_CONFARGS` to
  4657. pass :term:`PACKAGECONFIG` options to ``configure`` and ``cmake``,
  4658. respectively. If you are using :term:`PACKAGECONFIG` but not a class that
  4659. handles the ``do_configure`` task, then you need to use
  4660. :term:`PACKAGECONFIG_CONFARGS` appropriately.
  4661. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY`
  4662. For recipes inheriting the
  4663. :ref:`packagegroup <ref-classes-packagegroup>` class, setting
  4664. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY` to "1" specifies that the
  4665. normal complementary packages (i.e. ``-dev``, ``-dbg``, and so forth)
  4666. should not be automatically created by the ``packagegroup`` recipe,
  4667. which is the default behavior.
  4668. :term:`PACKAGES`
  4669. The list of packages the recipe creates. The default value is the
  4670. following::
  4671. ${PN}-src ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}
  4672. During packaging, the :ref:`ref-tasks-package` task
  4673. goes through :term:`PACKAGES` and uses the :term:`FILES`
  4674. variable corresponding to each package to assign files to the
  4675. package. If a file matches the :term:`FILES` variable for more than one
  4676. package in :term:`PACKAGES`, it will be assigned to the earliest
  4677. (leftmost) package.
  4678. Packages in the variable's list that are empty (i.e. where none of
  4679. the patterns in ``FILES:``\ pkg match any files installed by the
  4680. :ref:`ref-tasks-install` task) are not generated,
  4681. unless generation is forced through the
  4682. :term:`ALLOW_EMPTY` variable.
  4683. :term:`PACKAGES_DYNAMIC`
  4684. A promise that your recipe satisfies runtime dependencies for
  4685. optional modules that are found in other recipes.
  4686. :term:`PACKAGES_DYNAMIC` does not actually satisfy the dependencies, it
  4687. only states that they should be satisfied. For example, if a hard,
  4688. runtime dependency (:term:`RDEPENDS`) of another
  4689. package is satisfied at build time through the :term:`PACKAGES_DYNAMIC`
  4690. variable, but a package with the module name is never actually
  4691. produced, then the other package will be broken. Thus, if you attempt
  4692. to include that package in an image, you will get a dependency
  4693. failure from the packaging system during the
  4694. :ref:`ref-tasks-rootfs` task.
  4695. Typically, if there is a chance that such a situation can occur and
  4696. the package that is not created is valid without the dependency being
  4697. satisfied, then you should use :term:`RRECOMMENDS`
  4698. (a soft runtime dependency) instead of :term:`RDEPENDS`.
  4699. For an example of how to use the :term:`PACKAGES_DYNAMIC` variable when
  4700. you are splitting packages, see the
  4701. ":ref:`dev-manual/packages:handling optional module packaging`"
  4702. section in the Yocto Project Development Tasks Manual.
  4703. :term:`PACKAGESPLITFUNCS`
  4704. Specifies a list of functions run to perform additional splitting of
  4705. files into individual packages. Recipes can either prepend to this
  4706. variable or prepend to the ``populate_packages`` function in order to
  4707. perform additional package splitting. In either case, the function
  4708. should set :term:`PACKAGES`,
  4709. :term:`FILES`, :term:`RDEPENDS` and
  4710. other packaging variables appropriately in order to perform the
  4711. desired splitting.
  4712. :term:`PARALLEL_MAKE`
  4713. Extra options passed to the ``make`` command during the
  4714. :ref:`ref-tasks-compile` task in order to specify
  4715. parallel compilation on the local build host. This variable is
  4716. usually in the form "-j x", where x represents the maximum number of
  4717. parallel threads ``make`` can run.
  4718. .. note::
  4719. In order for :term:`PARALLEL_MAKE` to be effective, ``make`` must be
  4720. called with ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy way to ensure
  4721. this is to use the ``oe_runmake`` function.
  4722. By default, the OpenEmbedded build system automatically sets this
  4723. variable to be equal to the number of cores the build system uses.
  4724. .. note::
  4725. If the software being built experiences dependency issues during
  4726. the ``do_compile`` task that result in race conditions, you can clear
  4727. the :term:`PARALLEL_MAKE` variable within the recipe as a workaround. For
  4728. information on addressing race conditions, see the
  4729. ":ref:`dev-manual/debugging:debugging parallel make races`"
  4730. section in the Yocto Project Development Tasks Manual.
  4731. For single socket systems (i.e. one CPU), you should not have to
  4732. override this variable to gain optimal parallelism during builds.
  4733. However, if you have very large systems that employ multiple physical
  4734. CPUs, you might want to make sure the :term:`PARALLEL_MAKE` variable is
  4735. not set higher than "-j 20".
  4736. For more information on speeding up builds, see the
  4737. ":ref:`dev-manual/speeding-up-build:speeding up a build`"
  4738. section in the Yocto Project Development Tasks Manual.
  4739. :term:`PARALLEL_MAKEINST`
  4740. Extra options passed to the ``make install`` command during the
  4741. :ref:`ref-tasks-install` task in order to specify
  4742. parallel installation. This variable defaults to the value of
  4743. :term:`PARALLEL_MAKE`.
  4744. .. note::
  4745. In order for :term:`PARALLEL_MAKEINST` to be effective, ``make`` must
  4746. be called with
  4747. ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy
  4748. way to ensure this is to use the ``oe_runmake`` function.
  4749. If the software being built experiences dependency issues during
  4750. the ``do_install`` task that result in race conditions, you can
  4751. clear the :term:`PARALLEL_MAKEINST` variable within the recipe as a
  4752. workaround. For information on addressing race conditions, see the
  4753. ":ref:`dev-manual/debugging:debugging parallel make races`"
  4754. section in the Yocto Project Development Tasks Manual.
  4755. :term:`PATCHRESOLVE`
  4756. Determines the action to take when a patch fails. You can set this
  4757. variable to one of two values: "noop" and "user".
  4758. The default value of "noop" causes the build to simply fail when the
  4759. OpenEmbedded build system cannot successfully apply a patch. Setting
  4760. the value to "user" causes the build system to launch a shell and
  4761. places you in the right location so that you can manually resolve the
  4762. conflicts.
  4763. Set this variable in your ``local.conf`` file.
  4764. :term:`PATCHTOOL`
  4765. Specifies the utility used to apply patches for a recipe during the
  4766. :ref:`ref-tasks-patch` task. You can specify one of
  4767. three utilities: "patch", "quilt", or "git". The default utility used
  4768. is "quilt" except for the quilt-native recipe itself. Because the
  4769. quilt tool is not available at the time quilt-native is being
  4770. patched, it uses "patch".
  4771. If you wish to use an alternative patching tool, set the variable in
  4772. the recipe using one of the following::
  4773. PATCHTOOL = "patch"
  4774. PATCHTOOL = "quilt"
  4775. PATCHTOOL = "git"
  4776. :term:`PE`
  4777. The epoch of the recipe. By default, this variable is unset. The
  4778. variable is used to make upgrades possible when the versioning scheme
  4779. changes in some backwards incompatible way.
  4780. :term:`PE` is the default value of the :term:`PKGE` variable.
  4781. :term:`PEP517_BUILD_API`
  4782. When used by recipes that inherit the :ref:`python_pep517
  4783. <ref-classes-python_pep517>` class, specifies the entry point to the
  4784. PEP-517 compliant build API (such as ``flit_core.buildapi``).
  4785. :term:`PEP517_WHEEL_PATH`
  4786. When used by recipes that inherit the
  4787. :ref:`python_pep517 <ref-classes-python_pep517>` class,
  4788. denotes the path to ``dist/`` (short for distribution) where the
  4789. binary archive ``wheel`` is built.
  4790. :term:`PF`
  4791. Specifies the recipe or package name and includes all version and
  4792. revision numbers (i.e. ``glibc-2.13-r20+svnr15508/`` and
  4793. ``bash-4.2-r1/``). This variable is comprised of the following:
  4794. ${:term:`PN`}-${:term:`EXTENDPE`}${:term:`PV`}-${:term:`PR`}
  4795. :term:`PIXBUF_PACKAGES`
  4796. When inheriting the :ref:`pixbufcache <ref-classes-pixbufcache>`
  4797. class, this variable identifies packages that contain the pixbuf
  4798. loaders used with ``gdk-pixbuf``. By default, the ``pixbufcache``
  4799. class assumes that the loaders are in the recipe's main package (i.e.
  4800. ``${``\ :term:`PN`\ ``}``). Use this variable if the
  4801. loaders you need are in a package other than that main package.
  4802. :term:`PKG`
  4803. The name of the resulting package created by the OpenEmbedded build
  4804. system.
  4805. .. note::
  4806. When using the :term:`PKG` variable, you must use a package name override.
  4807. For example, when the :ref:`debian <ref-classes-debian>` class
  4808. renames the output package, it does so by setting
  4809. ``PKG:packagename``.
  4810. :term:`PKG_CONFIG_PATH`
  4811. The path to ``pkg-config`` files for the current build context.
  4812. ``pkg-config`` reads this variable from the environment.
  4813. :term:`PKGD`
  4814. Points to the destination directory for files to be packaged before
  4815. they are split into individual packages. This directory defaults to
  4816. the following::
  4817. ${WORKDIR}/package
  4818. Do not change this default.
  4819. :term:`PKGDATA_DIR`
  4820. Points to a shared, global-state directory that holds data generated
  4821. during the packaging process. During the packaging process, the
  4822. :ref:`ref-tasks-packagedata` task packages data
  4823. for each recipe and installs it into this temporary, shared area.
  4824. This directory defaults to the following, which you should not
  4825. change::
  4826. ${STAGING_DIR_HOST}/pkgdata
  4827. For examples of how this data is used, see the
  4828. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  4829. section in the Yocto Project Overview and Concepts Manual and the
  4830. ":ref:`dev-manual/debugging:viewing package information with ``oe-pkgdata-util```"
  4831. section in the Yocto Project Development Tasks Manual. For more
  4832. information on the shared, global-state directory, see
  4833. :term:`STAGING_DIR_HOST`.
  4834. :term:`PKGDEST`
  4835. Points to the parent directory for files to be packaged after they
  4836. have been split into individual packages. This directory defaults to
  4837. the following::
  4838. ${WORKDIR}/packages-split
  4839. Under this directory, the build system creates directories for each
  4840. package specified in :term:`PACKAGES`. Do not change
  4841. this default.
  4842. :term:`PKGDESTWORK`
  4843. Points to a temporary work area where the
  4844. :ref:`ref-tasks-package` task saves package metadata.
  4845. The :term:`PKGDESTWORK` location defaults to the following::
  4846. ${WORKDIR}/pkgdata
  4847. Do not change this default.
  4848. The :ref:`ref-tasks-packagedata` task copies the
  4849. package metadata from :term:`PKGDESTWORK` to
  4850. :term:`PKGDATA_DIR` to make it available globally.
  4851. :term:`PKGE`
  4852. The epoch of the package(s) built by the recipe. By default, :term:`PKGE`
  4853. is set to :term:`PE`.
  4854. :term:`PKGR`
  4855. The revision of the package(s) built by the recipe. By default,
  4856. :term:`PKGR` is set to :term:`PR`.
  4857. :term:`PKGV`
  4858. The version of the package(s) built by the recipe. By default,
  4859. :term:`PKGV` is set to :term:`PV`.
  4860. :term:`PN`
  4861. This variable can have two separate functions depending on the
  4862. context: a recipe name or a resulting package name.
  4863. :term:`PN` refers to a recipe name in the context of a file used by the
  4864. OpenEmbedded build system as input to create a package. The name is
  4865. normally extracted from the recipe file name. For example, if the
  4866. recipe is named ``expat_2.0.1.bb``, then the default value of :term:`PN`
  4867. will be "expat".
  4868. The variable refers to a package name in the context of a file
  4869. created or produced by the OpenEmbedded build system.
  4870. If applicable, the :term:`PN` variable also contains any special suffix
  4871. or prefix. For example, using ``bash`` to build packages for the
  4872. native machine, :term:`PN` is ``bash-native``. Using ``bash`` to build
  4873. packages for the target and for Multilib, :term:`PN` would be ``bash``
  4874. and ``lib64-bash``, respectively.
  4875. :term:`POPULATE_SDK_POST_HOST_COMMAND`
  4876. Specifies a list of functions to call once the OpenEmbedded build
  4877. system has created the host part of the SDK. You can specify
  4878. functions separated by semicolons::
  4879. POPULATE_SDK_POST_HOST_COMMAND += "function; ... "
  4880. If you need to pass the SDK path to a command within a function, you
  4881. can use ``${SDK_DIR}``, which points to the parent directory used by
  4882. the OpenEmbedded build system when creating SDK output. See the
  4883. :term:`SDK_DIR` variable for more information.
  4884. :term:`POPULATE_SDK_POST_TARGET_COMMAND`
  4885. Specifies a list of functions to call once the OpenEmbedded build
  4886. system has created the target part of the SDK. You can specify
  4887. functions separated by semicolons::
  4888. POPULATE_SDK_POST_TARGET_COMMAND += "function; ... "
  4889. If you need to pass the SDK path to a command within a function, you
  4890. can use ``${SDK_DIR}``, which points to the parent directory used by
  4891. the OpenEmbedded build system when creating SDK output. See the
  4892. :term:`SDK_DIR` variable for more information.
  4893. :term:`PR`
  4894. The revision of the recipe. The default value for this variable is
  4895. "r0". Subsequent revisions of the recipe conventionally have the
  4896. values "r1", "r2", and so forth. When :term:`PV` increases,
  4897. :term:`PR` is conventionally reset to "r0".
  4898. .. note::
  4899. The OpenEmbedded build system does not need the aid of :term:`PR`
  4900. to know when to rebuild a recipe. The build system uses the task
  4901. :ref:`input checksums <overview-manual/concepts:checksums (signatures)>` along with the
  4902. :ref:`stamp <structure-build-tmp-stamps>` and
  4903. :ref:`overview-manual/concepts:shared state cache`
  4904. mechanisms.
  4905. The :term:`PR` variable primarily becomes significant when a package
  4906. manager dynamically installs packages on an already built image. In
  4907. this case, :term:`PR`, which is the default value of
  4908. :term:`PKGR`, helps the package manager distinguish which
  4909. package is the most recent one in cases where many packages have the
  4910. same :term:`PV` (i.e. :term:`PKGV`). A component having many packages with
  4911. the same :term:`PV` usually means that the packages all install the same
  4912. upstream version, but with later (:term:`PR`) version packages including
  4913. packaging fixes.
  4914. .. note::
  4915. :term:`PR` does not need to be increased for changes that do not change the
  4916. package contents or metadata.
  4917. Because manually managing :term:`PR` can be cumbersome and error-prone,
  4918. an automated solution exists. See the
  4919. ":ref:`dev-manual/packages:working with a pr service`" section
  4920. in the Yocto Project Development Tasks Manual for more information.
  4921. :term:`PREFERRED_PROVIDER`
  4922. If multiple recipes provide the same item, this variable determines
  4923. which recipe is preferred and thus provides the item (i.e. the
  4924. preferred provider). You should always suffix this variable with the
  4925. name of the provided item. And, you should define the variable using
  4926. the preferred recipe's name (:term:`PN`). Here is a common
  4927. example::
  4928. PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
  4929. In the previous example, multiple recipes are providing "virtual/kernel".
  4930. The :term:`PREFERRED_PROVIDER` variable is set with the name (:term:`PN`) of
  4931. the recipe you prefer to provide "virtual/kernel".
  4932. Here are more examples::
  4933. PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86"
  4934. PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
  4935. For more
  4936. information, see the ":ref:`dev-manual/new-recipe:using virtual providers`"
  4937. section in the Yocto Project Development Tasks Manual.
  4938. .. note::
  4939. If you use a ``virtual/\*`` item with :term:`PREFERRED_PROVIDER`, then any
  4940. recipe that :term:`PROVIDES` that item but is not selected (defined)
  4941. by :term:`PREFERRED_PROVIDER` is prevented from building, which is usually
  4942. desirable since this mechanism is designed to select between mutually
  4943. exclusive alternative providers.
  4944. :term:`PREFERRED_VERSION`
  4945. If there are multiple versions of a recipe available, this variable
  4946. determines which version should be given preference. You must always
  4947. suffix the variable with the :term:`PN` you want to select (`python` in
  4948. the first example below), and you should specify the :term:`PV`
  4949. accordingly (`3.4.0` in the example).
  4950. The :term:`PREFERRED_VERSION` variable supports limited wildcard use
  4951. through the "``%``" character. You can use the character to match any
  4952. number of characters, which can be useful when specifying versions
  4953. that contain long revision numbers that potentially change. Here are
  4954. two examples::
  4955. PREFERRED_VERSION_python = "3.4.0"
  4956. PREFERRED_VERSION_linux-yocto = "5.0%"
  4957. .. note::
  4958. The use of the "%" character is limited in that it only works at the end of the
  4959. string. You cannot use the wildcard character in any other
  4960. location of the string.
  4961. The specified version is matched against :term:`PV`, which
  4962. does not necessarily match the version part of the recipe's filename.
  4963. For example, consider two recipes ``foo_1.2.bb`` and ``foo_git.bb``
  4964. where ``foo_git.bb`` contains the following assignment::
  4965. PV = "1.1+git${SRCPV}"
  4966. In this case, the correct way to select
  4967. ``foo_git.bb`` is by using an assignment such as the following::
  4968. PREFERRED_VERSION_foo = "1.1+git%"
  4969. Compare that previous example
  4970. against the following incorrect example, which does not work::
  4971. PREFERRED_VERSION_foo = "git"
  4972. Sometimes the :term:`PREFERRED_VERSION` variable can be set by
  4973. configuration files in a way that is hard to change. You can use
  4974. :term:`OVERRIDES` to set a machine-specific
  4975. override. Here is an example::
  4976. PREFERRED_VERSION_linux-yocto:qemux86 = "5.0%"
  4977. Although not recommended, worst case, you can also use the
  4978. "forcevariable" override, which is the strongest override possible.
  4979. Here is an example::
  4980. PREFERRED_VERSION_linux-yocto:forcevariable = "5.0%"
  4981. .. note::
  4982. The ``:forcevariable`` override is not handled specially. This override
  4983. only works because the default value of :term:`OVERRIDES` includes "forcevariable".
  4984. If a recipe with the specified version is not available, a warning
  4985. message will be shown. See :term:`REQUIRED_VERSION` if you want this
  4986. to be an error instead.
  4987. :term:`PREMIRRORS`
  4988. Specifies additional paths from which the OpenEmbedded build system
  4989. gets source code. When the build system searches for source code, it
  4990. first tries the local download directory. If that location fails, the
  4991. build system tries locations defined by :term:`PREMIRRORS`, the upstream
  4992. source, and then locations specified by
  4993. :term:`MIRRORS` in that order.
  4994. The default value for :term:`PREMIRRORS` is defined in the
  4995. ``meta/classes-global/mirrors.bbclass`` file in the core metadata layer.
  4996. Typically, you could add a specific server for the build system to
  4997. attempt before any others by adding something like the following to
  4998. the ``local.conf`` configuration file in the
  4999. :term:`Build Directory`::
  5000. PREMIRRORS:prepend = "\
  5001. git://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5002. ftp://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5003. http://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5004. https://.*/.* &YOCTO_DL_URL;/mirror/sources/"
  5005. These changes cause the
  5006. build system to intercept Git, FTP, HTTP, and HTTPS requests and
  5007. direct them to the ``http://`` sources mirror. You can use
  5008. ``file://`` URLs to point to local directories or network shares as
  5009. well.
  5010. :term:`PRIORITY`
  5011. Indicates the importance of a package.
  5012. :term:`PRIORITY` is considered to be part of the distribution policy
  5013. because the importance of any given recipe depends on the purpose for
  5014. which the distribution is being produced. Thus, :term:`PRIORITY` is not
  5015. normally set within recipes.
  5016. You can set :term:`PRIORITY` to "required", "standard", "extra", and
  5017. "optional", which is the default.
  5018. :term:`PRIVATE_LIBS`
  5019. Specifies libraries installed within a recipe that should be ignored
  5020. by the OpenEmbedded build system's shared library resolver. This
  5021. variable is typically used when software being built by a recipe has
  5022. its own private versions of a library normally provided by another
  5023. recipe. In this case, you would not want the package containing the
  5024. private libraries to be set as a dependency on other unrelated
  5025. packages that should instead depend on the package providing the
  5026. standard version of the library.
  5027. Libraries specified in this variable should be specified by their
  5028. file name. For example, from the Firefox recipe in meta-browser::
  5029. PRIVATE_LIBS = "libmozjs.so \
  5030. libxpcom.so \
  5031. libnspr4.so \
  5032. libxul.so \
  5033. libmozalloc.so \
  5034. libplc4.so \
  5035. libplds4.so"
  5036. For more information, see the
  5037. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5038. section in the Yocto Project Overview and Concepts Manual.
  5039. :term:`PROVIDES`
  5040. A list of aliases by which a particular recipe can be known. By
  5041. default, a recipe's own :term:`PN` is implicitly already in its
  5042. :term:`PROVIDES` list and therefore does not need to mention that it
  5043. provides itself. If a recipe uses :term:`PROVIDES`, the additional
  5044. aliases are synonyms for the recipe and can be useful for satisfying
  5045. dependencies of other recipes during the build as specified by
  5046. :term:`DEPENDS`.
  5047. Consider the following example :term:`PROVIDES` statement from the recipe
  5048. file ``eudev_3.2.9.bb``::
  5049. PROVIDES += "udev"
  5050. The :term:`PROVIDES` statement
  5051. results in the "eudev" recipe also being available as simply "udev".
  5052. .. note::
  5053. A recipe's own recipe name (:term:`PN`) is always implicitly prepended
  5054. to `PROVIDES`, so while using "+=" in the above example may not be
  5055. strictly necessary it is recommended to avoid confusion.
  5056. In addition to providing recipes under alternate names, the
  5057. :term:`PROVIDES` mechanism is also used to implement virtual targets. A
  5058. virtual target is a name that corresponds to some particular
  5059. functionality (e.g. a Linux kernel). Recipes that provide the
  5060. functionality in question list the virtual target in :term:`PROVIDES`.
  5061. Recipes that depend on the functionality in question can include the
  5062. virtual target in :term:`DEPENDS` to leave the choice of provider open.
  5063. Conventionally, virtual targets have names on the form
  5064. "virtual/function" (e.g. "virtual/kernel"). The slash is simply part
  5065. of the name and has no syntactical significance.
  5066. The :term:`PREFERRED_PROVIDER` variable is
  5067. used to select which particular recipe provides a virtual target.
  5068. .. note::
  5069. A corresponding mechanism for virtual runtime dependencies (packages)
  5070. exists. However, the mechanism does not depend on any special
  5071. functionality beyond ordinary variable assignments. For example,
  5072. :term:`VIRTUAL-RUNTIME_dev_manager <VIRTUAL-RUNTIME>` refers to the
  5073. package of the component that manages the ``/dev`` directory.
  5074. Setting the "preferred provider" for runtime dependencies is as
  5075. simple as using the following assignment in a configuration file::
  5076. VIRTUAL-RUNTIME_dev_manager = "udev"
  5077. :term:`PRSERV_HOST`
  5078. The network based :term:`PR` service host and port.
  5079. The ``conf/local.conf.sample.extended`` configuration file in the
  5080. :term:`Source Directory` shows how the
  5081. :term:`PRSERV_HOST` variable is set::
  5082. PRSERV_HOST = "localhost:0"
  5083. You must
  5084. set the variable if you want to automatically start a local :ref:`PR
  5085. service <dev-manual/packages:working with a pr service>`. You can
  5086. set :term:`PRSERV_HOST` to other values to use a remote PR service.
  5087. :term:`PSEUDO_IGNORE_PATHS`
  5088. A comma-separated (without spaces) list of path prefixes that should be ignored
  5089. by pseudo when monitoring and recording file operations, in order to avoid
  5090. problems with files being written to outside of the pseudo context and
  5091. reduce pseudo's overhead. A path is ignored if it matches any prefix in the list
  5092. and can include partial directory (or file) names.
  5093. :term:`PTEST_ENABLED`
  5094. Specifies whether or not :ref:`Package
  5095. Test <test-manual/ptest:testing packages with ptest>` (ptest)
  5096. functionality is enabled when building a recipe. You should not set
  5097. this variable directly. Enabling and disabling building Package Tests
  5098. at build time should be done by adding "ptest" to (or removing it
  5099. from) :term:`DISTRO_FEATURES`.
  5100. :term:`PV`
  5101. The version of the recipe. The version is normally extracted from the
  5102. recipe filename. For example, if the recipe is named
  5103. ``expat_2.0.1.bb``, then the default value of :term:`PV` will be "2.0.1".
  5104. :term:`PV` is generally not overridden within a recipe unless it is
  5105. building an unstable (i.e. development) version from a source code
  5106. repository (e.g. Git or Subversion).
  5107. :term:`PV` is the default value of the :term:`PKGV` variable.
  5108. :term:`PYPI_PACKAGE`
  5109. When inheriting the :ref:`pypi <ref-classes-pypi>` class, specifies the
  5110. `PyPI <https://pypi.org/>`__ package name to be built. The default value
  5111. is set based upon :term:`BPN` (stripping any "python-" or "python3-"
  5112. prefix off if present), however for some packages it will need to be set
  5113. explicitly if that will not match the package name (e.g. where the
  5114. package name has a prefix, underscores, uppercase letters etc.)
  5115. :term:`PYTHON_ABI`
  5116. When used by recipes that inherit the
  5117. :ref:`setuptools3 <ref-classes-setuptools3>` class, denotes the
  5118. Application Binary Interface (ABI) currently in use for Python. By
  5119. default, the ABI is "m". You do not have to set this variable as the
  5120. OpenEmbedded build system sets it for you.
  5121. The OpenEmbedded build system uses the ABI to construct directory
  5122. names used when installing the Python headers and libraries in
  5123. sysroot (e.g. ``.../python3.3m/...``).
  5124. :term:`PYTHON_PN`
  5125. When used by recipes that inherit the
  5126. :ref:`setuptools3 <ref-classes-setuptools3>` classe, specifies the
  5127. major Python version being built. For Python 3.x, :term:`PYTHON_PN` would
  5128. be "python3". You do not have to set this variable as the
  5129. OpenEmbedded build system automatically sets it for you.
  5130. The variable allows recipes to use common infrastructure such as the
  5131. following::
  5132. DEPENDS += "${PYTHON_PN}-native"
  5133. In the previous example,
  5134. the version of the dependency is :term:`PYTHON_PN`.
  5135. :term:`QA_EMPTY_DIRS`
  5136. Specifies a list of directories that are expected to be empty when
  5137. packaging; if ``empty-dirs`` appears in :term:`ERROR_QA` or
  5138. :term:`WARN_QA` these will be checked and an error or warning
  5139. (respectively) will be produced.
  5140. The default :term:`QA_EMPTY_DIRS` value is set in
  5141. :ref:`insane.bbclass <ref-classes-insane>`.
  5142. :term:`QA_EMPTY_DIRS_RECOMMENDATION`
  5143. Specifies a recommendation for why a directory must be empty,
  5144. which will be included in the error message if a specific directory
  5145. is found to contain files. Must be overridden with the directory
  5146. path to match on.
  5147. If no recommendation is specified for a directory, then the default
  5148. "but it is expected to be empty" will be used.
  5149. An example message shows if files were present in '/dev'::
  5150. QA_EMPTY_DIRS_RECOMMENDATION:/dev = "but all devices must be created at runtime"
  5151. :term:`RANLIB`
  5152. The minimal command and arguments to run ``ranlib``.
  5153. :term:`RCONFLICTS`
  5154. The list of packages that conflict with packages. Note that packages
  5155. will not be installed if conflicting packages are not first removed.
  5156. Like all package-controlling variables, you must always use them in
  5157. conjunction with a package name override. Here is an example::
  5158. RCONFLICTS:${PN} = "another_conflicting_package_name"
  5159. BitBake, which the OpenEmbedded build system uses, supports
  5160. specifying versioned dependencies. Although the syntax varies
  5161. depending on the packaging format, BitBake hides these differences
  5162. from you. Here is the general syntax to specify versions with the
  5163. :term:`RCONFLICTS` variable::
  5164. RCONFLICTS:${PN} = "package (operator version)"
  5165. For ``operator``, you can specify the following:
  5166. - =
  5167. - <
  5168. - >
  5169. - <=
  5170. - >=
  5171. For example, the following sets up a dependency on version 1.2 or
  5172. greater of the package ``foo``::
  5173. RCONFLICTS:${PN} = "foo (>= 1.2)"
  5174. :term:`RDEPENDS`
  5175. Lists runtime dependencies of a package. These dependencies are other
  5176. packages that must be installed in order for the package to function
  5177. correctly. As an example, the following assignment declares that the
  5178. package ``foo`` needs the packages ``bar`` and ``baz`` to be
  5179. installed::
  5180. RDEPENDS:foo = "bar baz"
  5181. The most common types of package
  5182. runtime dependencies are automatically detected and added. Therefore,
  5183. most recipes do not need to set :term:`RDEPENDS`. For more information,
  5184. see the
  5185. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5186. section in the Yocto Project Overview and Concepts Manual.
  5187. The practical effect of the above :term:`RDEPENDS` assignment is that
  5188. ``bar`` and ``baz`` will be declared as dependencies inside the
  5189. package ``foo`` when it is written out by one of the
  5190. :ref:`do_package_write_\* <ref-tasks-package_write_deb>` tasks.
  5191. Exactly how this is done depends on which package format is used,
  5192. which is determined by
  5193. :term:`PACKAGE_CLASSES`. When the
  5194. corresponding package manager installs the package, it will know to
  5195. also install the packages on which it depends.
  5196. To ensure that the packages ``bar`` and ``baz`` get built, the
  5197. previous :term:`RDEPENDS` assignment also causes a task dependency to be
  5198. added. This dependency is from the recipe's
  5199. :ref:`ref-tasks-build` (not to be confused with
  5200. :ref:`ref-tasks-compile`) task to the
  5201. ``do_package_write_*`` task of the recipes that build ``bar`` and
  5202. ``baz``.
  5203. The names of the packages you list within :term:`RDEPENDS` must be the
  5204. names of other packages --- they cannot be recipe names. Although
  5205. package names and recipe names usually match, the important point
  5206. here is that you are providing package names within the :term:`RDEPENDS`
  5207. variable. For an example of the default list of packages created from
  5208. a recipe, see the :term:`PACKAGES` variable.
  5209. Because the :term:`RDEPENDS` variable applies to packages being built,
  5210. you should always use the variable in a form with an attached package
  5211. name (remember that a single recipe can build multiple packages). For
  5212. example, suppose you are building a development package that depends
  5213. on the ``perl`` package. In this case, you would use the following
  5214. :term:`RDEPENDS` statement::
  5215. RDEPENDS:${PN}-dev += "perl"
  5216. In the example,
  5217. the development package depends on the ``perl`` package. Thus, the
  5218. :term:`RDEPENDS` variable has the ``${PN}-dev`` package name as part of
  5219. the variable.
  5220. .. note::
  5221. ``RDEPENDS:${PN}-dev`` includes ``${``\ :term:`PN`\ ``}``
  5222. by default. This default is set in the BitBake configuration file
  5223. (``meta/conf/bitbake.conf``). Be careful not to accidentally remove
  5224. ``${PN}`` when modifying ``RDEPENDS:${PN}-dev``. Use the "+=" operator
  5225. rather than the "=" operator.
  5226. The package names you use with :term:`RDEPENDS` must appear as they would
  5227. in the :term:`PACKAGES` variable. The :term:`PKG` variable
  5228. allows a different name to be used for the final package (e.g. the
  5229. :ref:`debian <ref-classes-debian>` class uses this to rename
  5230. packages), but this final package name cannot be used with
  5231. :term:`RDEPENDS`, which makes sense as :term:`RDEPENDS` is meant to be
  5232. independent of the package format used.
  5233. BitBake, which the OpenEmbedded build system uses, supports
  5234. specifying versioned dependencies. Although the syntax varies
  5235. depending on the packaging format, BitBake hides these differences
  5236. from you. Here is the general syntax to specify versions with the
  5237. :term:`RDEPENDS` variable::
  5238. RDEPENDS:${PN} = "package (operator version)"
  5239. For ``operator``, you can specify the following:
  5240. - =
  5241. - <
  5242. - >
  5243. - <=
  5244. - >=
  5245. For version, provide the version number.
  5246. .. note::
  5247. You can use :term:`EXTENDPKGV` to provide a full package version
  5248. specification.
  5249. For example, the following sets up a dependency on version 1.2 or
  5250. greater of the package ``foo``::
  5251. RDEPENDS:${PN} = "foo (>= 1.2)"
  5252. For information on build-time dependencies, see the
  5253. :term:`DEPENDS` variable. You can also see the
  5254. ":ref:`bitbake:bitbake-user-manual/bitbake-user-manual-metadata:tasks`" and
  5255. ":ref:`bitbake:bitbake-user-manual/bitbake-user-manual-execution:dependencies`" sections in the
  5256. BitBake User Manual for additional information on tasks and
  5257. dependencies.
  5258. :term:`RECIPE_MAINTAINER`
  5259. This variable defines the name and e-mail address of the maintainer of a
  5260. recipe. Such information can be used by human users submitted changes,
  5261. and by automated tools to send notifications, for example about
  5262. vulnerabilities or source updates.
  5263. The variable can be defined in a global distribution :oe_git:`maintainers.inc
  5264. </openembedded-core/tree/meta/conf/distro/include/maintainers.inc>` file::
  5265. meta/conf/distro/include/maintainers.inc:RECIPE_MAINTAINER:pn-sysvinit = "Ross Burton <ross.burton@arm.com>"
  5266. It can also be directly defined in a recipe,
  5267. for example in the ``libgpiod`` one::
  5268. RECIPE_MAINTAINER = "Bartosz Golaszewski <brgl@bgdev.pl>"
  5269. :term:`RECIPE_NO_UPDATE_REASON`
  5270. If a recipe should not be replaced by a more recent upstream version,
  5271. putting the reason why in this variable in a recipe allows
  5272. ``devtool check-upgrade-status`` command to display it, as explained
  5273. in the ":ref:`ref-manual/devtool-reference:checking on the upgrade status of a recipe`"
  5274. section.
  5275. :term:`RECIPE_SYSROOT`
  5276. This variable points to the directory that holds all files populated from
  5277. recipes specified in :term:`DEPENDS`. As the name indicates,
  5278. think of this variable as a custom root (``/``) for the recipe that will be
  5279. used by the compiler in order to find headers and other files needed to complete
  5280. its job.
  5281. This variable is related to :term:`STAGING_DIR_HOST` or :term:`STAGING_DIR_TARGET`
  5282. according to the type of the recipe and the build target.
  5283. To better understand this variable, consider the following examples:
  5284. - For ``#include <header.h>``, ``header.h`` should be in ``"${RECIPE_SYSROOT}/usr/include"``
  5285. - For ``-lexample``, ``libexample.so`` should be in ``"${RECIPE_SYSROOT}/lib"``
  5286. or other library sysroot directories.
  5287. The default value is ``"${WORKDIR}/recipe-sysroot"``.
  5288. Do not modify it.
  5289. :term:`RECIPE_SYSROOT_NATIVE`
  5290. This is similar to :term:`RECIPE_SYSROOT` but the populated files are from
  5291. ``-native`` recipes. This allows a recipe built for the target machine to
  5292. use ``native`` tools.
  5293. This variable is related to :term:`STAGING_DIR_NATIVE`.
  5294. The default value is ``"${WORKDIR}/recipe-sysroot-native"``.
  5295. Do not modify it.
  5296. :term:`REPODIR`
  5297. See :term:`bitbake:REPODIR` in the BitBake manual.
  5298. :term:`REQUIRED_DISTRO_FEATURES`
  5299. When inheriting the
  5300. :ref:`features_check <ref-classes-features_check>`
  5301. class, this variable identifies distribution features that must exist
  5302. in the current configuration in order for the OpenEmbedded build
  5303. system to build the recipe. In other words, if the
  5304. :term:`REQUIRED_DISTRO_FEATURES` variable lists a feature that does not
  5305. appear in :term:`DISTRO_FEATURES` within the current configuration, then
  5306. the recipe will be skipped, and if the build system attempts to build
  5307. the recipe then an error will be triggered.
  5308. :term:`REQUIRED_VERSION`
  5309. If there are multiple versions of a recipe available, this variable
  5310. determines which version should be given preference.
  5311. :term:`REQUIRED_VERSION` works in exactly the same manner as
  5312. :term:`PREFERRED_VERSION`, except that if the specified version is not
  5313. available then an error message is shown and the build fails
  5314. immediately.
  5315. If both :term:`REQUIRED_VERSION` and :term:`PREFERRED_VERSION` are set
  5316. for the same recipe, the :term:`REQUIRED_VERSION` value applies.
  5317. :term:`RM_WORK_EXCLUDE`
  5318. With ``rm_work`` enabled, this variable specifies a list of recipes
  5319. whose work directories should not be removed. See the
  5320. ":ref:`ref-classes-rm-work`" section for more
  5321. details.
  5322. :term:`ROOT_HOME`
  5323. Defines the root home directory. By default, this directory is set as
  5324. follows in the BitBake configuration file::
  5325. ROOT_HOME ??= "/home/root"
  5326. .. note::
  5327. This default value is likely used because some embedded solutions
  5328. prefer to have a read-only root filesystem and prefer to keep
  5329. writeable data in one place.
  5330. You can override the default by setting the variable in any layer or
  5331. in the ``local.conf`` file. Because the default is set using a "weak"
  5332. assignment (i.e. "??="), you can use either of the following forms to
  5333. define your override::
  5334. ROOT_HOME = "/root"
  5335. ROOT_HOME ?= "/root"
  5336. These
  5337. override examples use ``/root``, which is probably the most commonly
  5338. used override.
  5339. :term:`ROOTFS`
  5340. Indicates a filesystem image to include as the root filesystem.
  5341. The :term:`ROOTFS` variable is an optional variable used with the
  5342. :ref:`image-live <ref-classes-image-live>` class.
  5343. :term:`ROOTFS_POSTINSTALL_COMMAND`
  5344. Specifies a list of functions to call after the OpenEmbedded build
  5345. system has installed packages. You can specify functions separated by
  5346. semicolons::
  5347. ROOTFS_POSTINSTALL_COMMAND += "function; ... "
  5348. If you need to pass the root filesystem path to a command within a
  5349. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5350. directory that becomes the root filesystem image. See the
  5351. :term:`IMAGE_ROOTFS` variable for more
  5352. information.
  5353. :term:`ROOTFS_POSTPROCESS_COMMAND`
  5354. Specifies a list of functions to call once the OpenEmbedded build
  5355. system has created the root filesystem. You can specify functions
  5356. separated by semicolons::
  5357. ROOTFS_POSTPROCESS_COMMAND += "function; ... "
  5358. If you need to pass the root filesystem path to a command within a
  5359. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5360. directory that becomes the root filesystem image. See the
  5361. :term:`IMAGE_ROOTFS` variable for more
  5362. information.
  5363. :term:`ROOTFS_POSTUNINSTALL_COMMAND`
  5364. Specifies a list of functions to call after the OpenEmbedded build
  5365. system has removed unnecessary packages. When runtime package
  5366. management is disabled in the image, several packages are removed
  5367. including ``base-passwd``, ``shadow``, and ``update-alternatives``.
  5368. You can specify functions separated by semicolons::
  5369. ROOTFS_POSTUNINSTALL_COMMAND += "function; ... "
  5370. If you need to pass the root filesystem path to a command within a
  5371. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5372. directory that becomes the root filesystem image. See the
  5373. :term:`IMAGE_ROOTFS` variable for more
  5374. information.
  5375. :term:`ROOTFS_PREPROCESS_COMMAND`
  5376. Specifies a list of functions to call before the OpenEmbedded build
  5377. system has created the root filesystem. You can specify functions
  5378. separated by semicolons::
  5379. ROOTFS_PREPROCESS_COMMAND += "function; ... "
  5380. If you need to pass the root filesystem path to a command within a
  5381. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5382. directory that becomes the root filesystem image. See the
  5383. :term:`IMAGE_ROOTFS` variable for more
  5384. information.
  5385. :term:`RPROVIDES`
  5386. A list of package name aliases that a package also provides. These
  5387. aliases are useful for satisfying runtime dependencies of other
  5388. packages both during the build and on the target (as specified by
  5389. :term:`RDEPENDS`).
  5390. .. note::
  5391. A package's own name is implicitly already in its :term:`RPROVIDES` list.
  5392. As with all package-controlling variables, you must always use the
  5393. variable in conjunction with a package name override. Here is an
  5394. example::
  5395. RPROVIDES:${PN} = "widget-abi-2"
  5396. :term:`RRECOMMENDS`
  5397. A list of packages that extends the usability of a package being
  5398. built. The package being built does not depend on this list of
  5399. packages in order to successfully build, but rather uses them for
  5400. extended usability. To specify runtime dependencies for packages, see
  5401. the :term:`RDEPENDS` variable.
  5402. The package manager will automatically install the :term:`RRECOMMENDS`
  5403. list of packages when installing the built package. However, you can
  5404. prevent listed packages from being installed by using the
  5405. :term:`BAD_RECOMMENDATIONS`,
  5406. :term:`NO_RECOMMENDATIONS`, and
  5407. :term:`PACKAGE_EXCLUDE` variables.
  5408. Packages specified in :term:`RRECOMMENDS` need not actually be produced.
  5409. However, there must be a recipe providing each package, either
  5410. through the :term:`PACKAGES` or
  5411. :term:`PACKAGES_DYNAMIC` variables or the
  5412. :term:`RPROVIDES` variable, or an error will occur
  5413. during the build. If such a recipe does exist and the package is not
  5414. produced, the build continues without error.
  5415. Because the :term:`RRECOMMENDS` variable applies to packages being built,
  5416. you should always attach an override to the variable to specify the
  5417. particular package whose usability is being extended. For example,
  5418. suppose you are building a development package that is extended to
  5419. support wireless functionality. In this case, you would use the
  5420. following::
  5421. RRECOMMENDS:${PN}-dev += "wireless_package_name"
  5422. In the
  5423. example, the package name (``${PN}-dev``) must appear as it would in
  5424. the :term:`PACKAGES` namespace before any renaming of the output package
  5425. by classes such as :ref:`ref-classes-debian`.
  5426. BitBake, which the OpenEmbedded build system uses, supports
  5427. specifying versioned recommends. Although the syntax varies depending
  5428. on the packaging format, BitBake hides these differences from you.
  5429. Here is the general syntax to specify versions with the
  5430. :term:`RRECOMMENDS` variable::
  5431. RRECOMMENDS:${PN} = "package (operator version)"
  5432. For ``operator``, you can specify the following:
  5433. - =
  5434. - <
  5435. - >
  5436. - <=
  5437. - >=
  5438. For example, the following sets up a recommend on version 1.2 or
  5439. greater of the package ``foo``::
  5440. RRECOMMENDS:${PN} = "foo (>= 1.2)"
  5441. :term:`RREPLACES`
  5442. A list of packages replaced by a package. The package manager uses
  5443. this variable to determine which package should be installed to
  5444. replace other package(s) during an upgrade. In order to also have the
  5445. other package(s) removed at the same time, you must add the name of
  5446. the other package to the :term:`RCONFLICTS` variable.
  5447. As with all package-controlling variables, you must use this variable
  5448. in conjunction with a package name override. Here is an example::
  5449. RREPLACES:${PN} = "other_package_being_replaced"
  5450. BitBake, which the OpenEmbedded build system uses, supports
  5451. specifying versioned replacements. Although the syntax varies
  5452. depending on the packaging format, BitBake hides these differences
  5453. from you. Here is the general syntax to specify versions with the
  5454. :term:`RREPLACES` variable::
  5455. RREPLACES:${PN} = "package (operator version)"
  5456. For ``operator``, you can specify the following:
  5457. - =
  5458. - <
  5459. - >
  5460. - <=
  5461. - >=
  5462. For example, the following sets up a replacement using version 1.2
  5463. or greater of the package ``foo``::
  5464. RREPLACES:${PN} = "foo (>= 1.2)"
  5465. :term:`RSUGGESTS`
  5466. A list of additional packages that you can suggest for installation
  5467. by the package manager at the time a package is installed. Not all
  5468. package managers support this functionality.
  5469. As with all package-controlling variables, you must always use this
  5470. variable in conjunction with a package name override. Here is an
  5471. example::
  5472. RSUGGESTS:${PN} = "useful_package another_package"
  5473. :term:`S`
  5474. The location in the :term:`Build Directory` where
  5475. unpacked recipe source code resides. By default, this directory is
  5476. ``${``\ :term:`WORKDIR`\ ``}/${``\ :term:`BPN`\ ``}-${``\ :term:`PV`\ ``}``,
  5477. where ``${BPN}`` is the base recipe name and ``${PV}`` is the recipe
  5478. version. If the source tarball extracts the code to a directory named
  5479. anything other than ``${BPN}-${PV}``, or if the source code is
  5480. fetched from an SCM such as Git or Subversion, then you must set
  5481. :term:`S` in the recipe so that the OpenEmbedded build system knows where
  5482. to find the unpacked source.
  5483. As an example, assume a :term:`Source Directory`
  5484. top-level folder named ``poky`` and a default Build Directory at
  5485. ``poky/build``. In this case, the work directory the build system
  5486. uses to keep the unpacked recipe for ``db`` is the following::
  5487. poky/build/tmp/work/qemux86-poky-linux/db/5.1.19-r3/db-5.1.19
  5488. The unpacked source code resides in the ``db-5.1.19`` folder.
  5489. This next example assumes a Git repository. By default, Git
  5490. repositories are cloned to ``${WORKDIR}/git`` during
  5491. :ref:`ref-tasks-fetch`. Since this path is different
  5492. from the default value of :term:`S`, you must set it specifically so the
  5493. source can be located::
  5494. SRC_URI = "git://path/to/repo.git;branch=main"
  5495. S = "${WORKDIR}/git"
  5496. :term:`SANITY_REQUIRED_UTILITIES`
  5497. Specifies a list of command-line utilities that should be checked for
  5498. during the initial sanity checking process when running BitBake. If
  5499. any of the utilities are not installed on the build host, then
  5500. BitBake immediately exits with an error.
  5501. :term:`SANITY_TESTED_DISTROS`
  5502. A list of the host distribution identifiers that the build system has
  5503. been tested against. Identifiers consist of the host distributor ID
  5504. followed by the release, as reported by the ``lsb_release`` tool or
  5505. as read from ``/etc/lsb-release``. Separate the list items with
  5506. explicit newline characters (``\n``). If :term:`SANITY_TESTED_DISTROS` is
  5507. not empty and the current value of
  5508. :term:`NATIVELSBSTRING` does not appear in the
  5509. list, then the build system reports a warning that indicates the
  5510. current host distribution has not been tested as a build host.
  5511. :term:`SDK_ARCH`
  5512. The target architecture for the SDK. Typically, you do not directly
  5513. set this variable. Instead, use :term:`SDKMACHINE`.
  5514. :term:`SDK_CUSTOM_TEMPLATECONF`
  5515. When building the extensible SDK, if :term:`SDK_CUSTOM_TEMPLATECONF` is set to
  5516. "1" and a ``conf/templateconf.conf`` file exists in the build directory
  5517. (:term:`TOPDIR`) then this will be copied into the SDK.
  5518. :term:`SDK_DEPLOY`
  5519. The directory set up and used by the
  5520. :ref:`populate_sdk_base <ref-classes-populate-sdk>` class to which
  5521. the SDK is deployed. The ``populate_sdk_base`` class defines
  5522. :term:`SDK_DEPLOY` as follows::
  5523. SDK_DEPLOY = "${TMPDIR}/deploy/sdk"
  5524. :term:`SDK_DIR`
  5525. The parent directory used by the OpenEmbedded build system when
  5526. creating SDK output. The
  5527. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class defines
  5528. the variable as follows::
  5529. SDK_DIR = "${WORKDIR}/sdk"
  5530. .. note::
  5531. The :term:`SDK_DIR` directory is a temporary directory as it is part of
  5532. :term:`WORKDIR`. The final output directory is :term:`SDK_DEPLOY`.
  5533. :term:`SDK_EXT_TYPE`
  5534. Controls whether or not shared state artifacts are copied into the
  5535. extensible SDK. The default value of "full" copies all of the
  5536. required shared state artifacts into the extensible SDK. The value
  5537. "minimal" leaves these artifacts out of the SDK.
  5538. .. note::
  5539. If you set the variable to "minimal", you need to ensure
  5540. :term:`SSTATE_MIRRORS` is set in the SDK's configuration to enable the
  5541. artifacts to be fetched as needed.
  5542. :term:`SDK_HOST_MANIFEST`
  5543. The manifest file for the host part of the SDK. This file lists all
  5544. the installed packages that make up the host part of the SDK. The
  5545. file contains package information on a line-per-package basis as
  5546. follows::
  5547. packagename packagearch version
  5548. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  5549. defines the manifest file as follows::
  5550. SDK_HOST_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.host.manifest"
  5551. The location is derived using the :term:`SDK_DEPLOY` and
  5552. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  5553. :term:`SDK_INCLUDE_PKGDATA`
  5554. When set to "1", specifies to include the packagedata for all recipes
  5555. in the "world" target in the extensible SDK. Including this data
  5556. allows the ``devtool search`` command to find these recipes in search
  5557. results, as well as allows the ``devtool add`` command to map
  5558. dependencies more effectively.
  5559. .. note::
  5560. Enabling the :term:`SDK_INCLUDE_PKGDATA`
  5561. variable significantly increases build time because all of world
  5562. needs to be built. Enabling the variable also slightly increases
  5563. the size of the extensible SDK.
  5564. :term:`SDK_INCLUDE_TOOLCHAIN`
  5565. When set to "1", specifies to include the toolchain in the extensible
  5566. SDK. Including the toolchain is useful particularly when
  5567. :term:`SDK_EXT_TYPE` is set to "minimal" to keep
  5568. the SDK reasonably small but you still want to provide a usable
  5569. toolchain. For example, suppose you want to use the toolchain from an
  5570. IDE or from other tools and you do not want to perform additional
  5571. steps to install the toolchain.
  5572. The :term:`SDK_INCLUDE_TOOLCHAIN` variable defaults to "0" if
  5573. :term:`SDK_EXT_TYPE` is set to "minimal", and defaults to "1" if
  5574. :term:`SDK_EXT_TYPE` is set to "full".
  5575. :term:`SDK_NAME`
  5576. The base name for SDK output files. The default value (as set in
  5577. ``meta-poky/conf/distro/poky.conf``) is derived from the
  5578. :term:`DISTRO`,
  5579. :term:`TCLIBC`,
  5580. :term:`SDKMACHINE`,
  5581. :term:`IMAGE_BASENAME`,
  5582. :term:`TUNE_PKGARCH`, and
  5583. :term:`MACHINE` variables::
  5584. SDK_NAME = "${DISTRO}-${TCLIBC}-${SDKMACHINE}-${IMAGE_BASENAME}-${TUNE_PKGARCH}-${MACHINE}"
  5585. :term:`SDK_OS`
  5586. Specifies the operating system for which the SDK will be built. The
  5587. default value is the value of :term:`BUILD_OS`.
  5588. :term:`SDK_OUTPUT`
  5589. The location used by the OpenEmbedded build system when creating SDK
  5590. output. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>`
  5591. class defines the variable as follows::
  5592. SDK_DIR = "${WORKDIR}/sdk"
  5593. SDK_OUTPUT = "${SDK_DIR}/image"
  5594. SDK_DEPLOY = "${DEPLOY_DIR}/sdk"
  5595. .. note::
  5596. The :term:`SDK_OUTPUT` directory is a temporary directory as it is part of
  5597. :term:`WORKDIR` by way of :term:`SDK_DIR`. The final output directory is
  5598. :term:`SDK_DEPLOY`.
  5599. :term:`SDK_PACKAGE_ARCHS`
  5600. Specifies a list of architectures compatible with the SDK machine.
  5601. This variable is set automatically and should not normally be
  5602. hand-edited. Entries are separated using spaces and listed in order
  5603. of priority. The default value for :term:`SDK_PACKAGE_ARCHS` is "all any
  5604. noarch ${SDK_ARCH}-${SDKPKGSUFFIX}".
  5605. :term:`SDK_POSTPROCESS_COMMAND`
  5606. Specifies a list of functions to call once the OpenEmbedded build
  5607. system creates the SDK. You can specify functions separated by
  5608. semicolons: SDK_POSTPROCESS_COMMAND += "function; ... "
  5609. If you need to pass an SDK path to a command within a function, you
  5610. can use ``${SDK_DIR}``, which points to the parent directory used by
  5611. the OpenEmbedded build system when creating SDK output. See the
  5612. :term:`SDK_DIR` variable for more information.
  5613. :term:`SDK_PREFIX`
  5614. The toolchain binary prefix used for ``nativesdk`` recipes. The
  5615. OpenEmbedded build system uses the :term:`SDK_PREFIX` value to set the
  5616. :term:`TARGET_PREFIX` when building
  5617. ``nativesdk`` recipes. The default value is "${SDK_SYS}-".
  5618. :term:`SDK_RECRDEP_TASKS`
  5619. A list of shared state tasks added to the extensible SDK. By default,
  5620. the following tasks are added:
  5621. - do_populate_lic
  5622. - do_package_qa
  5623. - do_populate_sysroot
  5624. - do_deploy
  5625. Despite the default value of "" for the
  5626. :term:`SDK_RECRDEP_TASKS` variable, the above four tasks are always added
  5627. to the SDK. To specify tasks beyond these four, you need to use the
  5628. :term:`SDK_RECRDEP_TASKS` variable (e.g. you are defining additional
  5629. tasks that are needed in order to build
  5630. :term:`SDK_TARGETS`).
  5631. :term:`SDK_SYS`
  5632. Specifies the system, including the architecture and the operating
  5633. system, for which the SDK will be built.
  5634. The OpenEmbedded build system automatically sets this variable based
  5635. on :term:`SDK_ARCH`,
  5636. :term:`SDK_VENDOR`, and
  5637. :term:`SDK_OS`. You do not need to set the :term:`SDK_SYS`
  5638. variable yourself.
  5639. :term:`SDK_TARGET_MANIFEST`
  5640. The manifest file for the target part of the SDK. This file lists all
  5641. the installed packages that make up the target part of the SDK. The
  5642. file contains package information on a line-per-package basis as
  5643. follows::
  5644. packagename packagearch version
  5645. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  5646. defines the manifest file as follows::
  5647. SDK_TARGET_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.target.manifest"
  5648. The location is derived using the :term:`SDK_DEPLOY` and
  5649. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  5650. :term:`SDK_TARGETS`
  5651. A list of targets to install from shared state as part of the
  5652. standard or extensible SDK installation. The default value is "${PN}"
  5653. (i.e. the image from which the SDK is built).
  5654. The :term:`SDK_TARGETS` variable is an internal variable and typically
  5655. would not be changed.
  5656. :term:`SDK_TITLE`
  5657. The title to be printed when running the SDK installer. By default,
  5658. this title is based on the :term:`DISTRO_NAME` or
  5659. :term:`DISTRO` variable and is set in the
  5660. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  5661. follows::
  5662. SDK_TITLE ??= "${@d.getVar('DISTRO_NAME') or d.getVar('DISTRO')} SDK"
  5663. For the default distribution "poky",
  5664. :term:`SDK_TITLE` is set to "Poky (Yocto Project Reference Distro)".
  5665. For information on how to change this default title, see the
  5666. ":ref:`sdk-manual/appendix-customizing:changing the extensible sdk installer title`"
  5667. section in the Yocto Project Application Development and the
  5668. Extensible Software Development Kit (eSDK) manual.
  5669. :term:`SDK_UPDATE_URL`
  5670. An optional URL for an update server for the extensible SDK. If set,
  5671. the value is used as the default update server when running
  5672. ``devtool sdk-update`` within the extensible SDK.
  5673. :term:`SDK_VENDOR`
  5674. Specifies the name of the SDK vendor.
  5675. :term:`SDK_VERSION`
  5676. Specifies the version of the SDK. The Poky distribution configuration file
  5677. (``/meta-poky/conf/distro/poky.conf``) sets the default
  5678. :term:`SDK_VERSION` as follows::
  5679. SDK_VERSION = "${@d.getVar('DISTRO_VERSION').replace('snapshot-${METADATA_REVISION}', 'snapshot')}"
  5680. For additional information, see the
  5681. :term:`DISTRO_VERSION` and
  5682. :term:`METADATA_REVISION` variables.
  5683. :term:`SDKEXTPATH`
  5684. The default installation directory for the Extensible SDK. By
  5685. default, this directory is based on the :term:`DISTRO`
  5686. variable and is set in the
  5687. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  5688. follows::
  5689. SDKEXTPATH ??= "~/${@d.getVar('DISTRO')}_sdk"
  5690. For the
  5691. default distribution "poky", the :term:`SDKEXTPATH` is set to "poky_sdk".
  5692. For information on how to change this default directory, see the
  5693. ":ref:`sdk-manual/appendix-customizing:changing the default sdk installation directory`"
  5694. section in the Yocto Project Application Development and the
  5695. Extensible Software Development Kit (eSDK) manual.
  5696. :term:`SDKIMAGE_FEATURES`
  5697. Equivalent to :term:`IMAGE_FEATURES`. However, this variable applies to
  5698. the SDK generated from an image using the following command::
  5699. $ bitbake -c populate_sdk imagename
  5700. :term:`SDKMACHINE`
  5701. The machine for which the SDK is built. In other words, the SDK is built
  5702. such that it runs on the target you specify with the :term:`SDKMACHINE`
  5703. value. The value points to a corresponding ``.conf`` file under
  5704. ``conf/machine-sdk/`` in the enabled layers, for example ``aarch64``,
  5705. ``i586``, ``i686``, ``ppc64``, ``ppc64le``, and ``x86_64`` are
  5706. :oe_git:`available in OpenEmbedded-Core </openembedded-core/tree/meta/conf/machine-sdk>`.
  5707. The variable defaults to :term:`BUILD_ARCH` so that SDKs are built for the
  5708. architecture of the build machine.
  5709. .. note::
  5710. You cannot set the :term:`SDKMACHINE`
  5711. variable in your distribution configuration file. If you do, the
  5712. configuration will not take effect.
  5713. :term:`SDKPATH`
  5714. Defines the path used to collect the SDK components and build the
  5715. installer.
  5716. :term:`SDKPATHINSTALL`
  5717. Defines the path offered to the user for installation of the SDK that
  5718. is generated by the OpenEmbedded build system. The path appears as
  5719. the default location for installing the SDK when you run the SDK's
  5720. installation script. You can override the offered path when you run
  5721. the script.
  5722. :term:`SDKTARGETSYSROOT`
  5723. The full path to the sysroot used for cross-compilation within an SDK
  5724. as it will be when installed into the default
  5725. :term:`SDKPATHINSTALL`.
  5726. :term:`SECTION`
  5727. The section in which packages should be categorized. Package
  5728. management utilities can make use of this variable.
  5729. :term:`SELECTED_OPTIMIZATION`
  5730. Specifies the optimization flags passed to the C compiler when
  5731. building for the target. The flags are passed through the default
  5732. value of the :term:`TARGET_CFLAGS` variable.
  5733. The :term:`SELECTED_OPTIMIZATION` variable takes the value of
  5734. :term:`FULL_OPTIMIZATION` unless :term:`DEBUG_BUILD` = "1", in which
  5735. case the value of :term:`DEBUG_OPTIMIZATION` is used.
  5736. :term:`SERIAL_CONSOLE`
  5737. Defines a serial console (TTY) to enable using
  5738. `getty <https://en.wikipedia.org/wiki/Getty_(Unix)>`__. Provide a
  5739. value that specifies the baud rate followed by the TTY device name
  5740. separated by a space. You cannot specify more than one TTY device::
  5741. SERIAL_CONSOLE = "115200 ttyS0"
  5742. .. note::
  5743. The :term:`SERIAL_CONSOLE` variable is deprecated. Please use the
  5744. :term:`SERIAL_CONSOLES` variable.
  5745. :term:`SERIAL_CONSOLES`
  5746. Defines a serial console (TTY) to enable using
  5747. `getty <https://en.wikipedia.org/wiki/Getty_(Unix)>`__. Provide a
  5748. value that specifies the baud rate followed by the TTY device name
  5749. separated by a semicolon. Use spaces to separate multiple devices::
  5750. SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1"
  5751. :term:`SERIAL_CONSOLES_CHECK`
  5752. Specifies serial consoles, which must be listed in
  5753. :term:`SERIAL_CONSOLES`, to check against
  5754. ``/proc/console`` before enabling them using getty. This variable
  5755. allows aliasing in the format: <device>:<alias>. If a device was
  5756. listed as "sclp_line0" in ``/dev/`` and "ttyS0" was listed in
  5757. ``/proc/console``, you would do the following::
  5758. SERIAL_CONSOLES_CHECK = "slcp_line0:ttyS0"
  5759. This variable is currently only supported with SysVinit (i.e. not
  5760. with systemd). Note that :term:`SERIAL_CONSOLES_CHECK` also requires
  5761. ``/etc/inittab`` to be writable when used with SysVinit. This makes it
  5762. incompatible with customizations such as the following::
  5763. EXTRA_IMAGE_FEATURES += "read-only-rootfs"
  5764. :term:`SETUPTOOLS_BUILD_ARGS`
  5765. When used by recipes that inherit the
  5766. :ref:`setuptools3 <ref-classes-setuptools3>` class, this variable can
  5767. be used to specify additional arguments to be passed to ``setup.py build``
  5768. in the ``setuptools3_do_compile()`` task.
  5769. :term:`SETUPTOOLS_INSTALL_ARGS`
  5770. When used by recipes that inherit the
  5771. :ref:`setuptools3 <ref-classes-setuptools3>` class, this variable can
  5772. be used to specify additional arguments to be passed to ``setup.py install``
  5773. in the ``setuptools3_do_install()`` task.
  5774. :term:`SETUPTOOLS_SETUP_PATH`
  5775. When used by recipes that inherit the
  5776. :ref:`setuptools3 <ref-classes-setuptools3>` class, this variable should
  5777. be used to specify the directory in which the ``setup.py`` file is
  5778. located if it is not at the root of the source tree (as specified by
  5779. :term:`S`). For example, in a recipe where the sources are fetched from
  5780. a Git repository and ``setup.py`` is in a ``python/pythonmodule``
  5781. subdirectory, you would have this::
  5782. S = "${WORKDIR}/git"
  5783. SETUPTOOLS_SETUP_PATH = "${S}/python/pythonmodule"
  5784. :term:`SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS`
  5785. A list of recipe dependencies that should not be used to determine
  5786. signatures of tasks from one recipe when they depend on tasks from
  5787. another recipe. For example::
  5788. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "intone->mplayer2"
  5789. In the previous example, ``intone`` depends on ``mplayer2``.
  5790. You can use the special token ``"*"`` on the left-hand side of the
  5791. dependency to match all recipes except the one on the right-hand
  5792. side. Here is an example::
  5793. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "*->quilt-native"
  5794. In the previous example, all recipes except ``quilt-native`` ignore
  5795. task signatures from the ``quilt-native`` recipe when determining
  5796. their task signatures.
  5797. Use of this variable is one mechanism to remove dependencies that
  5798. affect task signatures and thus force rebuilds when a recipe changes.
  5799. .. note::
  5800. If you add an inappropriate dependency for a recipe relationship,
  5801. the software might break during runtime if the interface of the
  5802. second recipe was changed after the first recipe had been built.
  5803. :term:`SIGGEN_EXCLUDERECIPES_ABISAFE`
  5804. A list of recipes that are completely stable and will never change.
  5805. The ABI for the recipes in the list are presented by output from the
  5806. tasks run to build the recipe. Use of this variable is one way to
  5807. remove dependencies from one recipe on another that affect task
  5808. signatures and thus force rebuilds when the recipe changes.
  5809. .. note::
  5810. If you add an inappropriate variable to this list, the software
  5811. might break at runtime if the interface of the recipe was changed
  5812. after the other had been built.
  5813. :term:`SIGGEN_LOCKEDSIGS`
  5814. The list of locked tasks, with the form::
  5815. SIGGEN_LOCKEDSIGS += "<package>:<task>:<signature>"
  5816. If ``<signature>`` exists for the specified ``<task>`` and ``<package>``
  5817. in the sstate cache, BitBake will use the cached output instead of
  5818. rebuilding the ``<task>``. If it does not exist, BitBake will build the
  5819. ``<task>`` and the sstate cache will be used next time.
  5820. Example::
  5821. SIGGEN_LOCKEDSIGS += "bc:do_compile:09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0"
  5822. You can obtain the signature of all the tasks for the recipe ``bc`` using::
  5823. bitbake -S none bc
  5824. Then you can look at files in ``build/tmp/stamps/<arch>/bc`` and look for
  5825. files like: ``<PV>.do_compile.sigdata.09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0``.
  5826. :term:`SIGGEN_LOCKEDSIGS_TASKSIG_CHECK`
  5827. Specifies the debug level of task signature check. 3 levels are supported:
  5828. * ``info``: displays a "Note" message to remind the user that a task is locked
  5829. and the current signature matches the locked one.
  5830. * ``warn``: displays a "Warning" message if a task is locked and the current
  5831. signature does not match the locked one.
  5832. * ``error``: same as warn but displays an "Error" message and aborts.
  5833. :term:`SIGGEN_LOCKEDSIGS_TYPES`
  5834. Allowed overrides for :term:`SIGGEN_LOCKEDSIGS`. This is mainly used
  5835. for architecture specific locks. A common value for
  5836. :term:`SIGGEN_LOCKEDSIGS_TYPES` is ``${PACKAGE_ARCHS}``::
  5837. SIGGEN_LOCKEDSIGS_TYPES += "${PACKAGE_ARCHS}"
  5838. SIGGEN_LOCKEDSIGS_core2-64 += "bc:do_compile:09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0"
  5839. SIGGEN_LOCKEDSIGS_cortexa57 += "bc:do_compile:12178eb6d55ef602a8fe638e49862fd247e07b228f0f08967697b655bfe4bb61"
  5840. Here, the ``do_compile`` task from ``bc`` will be locked only for
  5841. ``core2-64`` and ``cortexa57`` but not for other architectures such as
  5842. ``mips32r2``.
  5843. :term:`SITEINFO_BITS`
  5844. Specifies the number of bits for the target system CPU. The value
  5845. should be either "32" or "64".
  5846. :term:`SITEINFO_ENDIANNESS`
  5847. Specifies the endian byte order of the target system. The value
  5848. should be either "le" for little-endian or "be" for big-endian.
  5849. :term:`SKIP_FILEDEPS`
  5850. Enables removal of all files from the "Provides" section of an RPM
  5851. package. Removal of these files is required for packages containing
  5852. prebuilt binaries and libraries such as ``libstdc++`` and ``glibc``.
  5853. To enable file removal, set the variable to "1" in your
  5854. ``conf/local.conf`` configuration file in your:
  5855. :term:`Build Directory`.
  5856. ::
  5857. SKIP_FILEDEPS = "1"
  5858. :term:`SKIP_RECIPE`
  5859. Used to prevent the OpenEmbedded build system from building a given
  5860. recipe. Specify the :term:`PN` value as a variable flag (``varflag``)
  5861. and provide a reason, which will be reported when attempting to
  5862. build the recipe.
  5863. To prevent a recipe from being built, use the :term:`SKIP_RECIPE`
  5864. variable in your ``local.conf`` file or distribution configuration.
  5865. Here is an example which prevents ``myrecipe`` from being built::
  5866. SKIP_RECIPE[myrecipe] = "Not supported by our organization."
  5867. :term:`SOC_FAMILY`
  5868. Groups together machines based upon the same family of SOC (System On
  5869. Chip). You typically set this variable in a common ``.inc`` file that
  5870. you include in the configuration files of all the machines.
  5871. .. note::
  5872. You must include ``conf/machine/include/soc-family.inc`` for this
  5873. variable to appear in :term:`MACHINEOVERRIDES`.
  5874. :term:`SOLIBS`
  5875. Defines the suffix for shared libraries used on the target platform.
  5876. By default, this suffix is ".so.*" for all Linux-based systems and is
  5877. defined in the ``meta/conf/bitbake.conf`` configuration file.
  5878. You will see this variable referenced in the default values of
  5879. ``FILES:${PN}``.
  5880. :term:`SOLIBSDEV`
  5881. Defines the suffix for the development symbolic link (symlink) for
  5882. shared libraries on the target platform. By default, this suffix is
  5883. ".so" for Linux-based systems and is defined in the
  5884. ``meta/conf/bitbake.conf`` configuration file.
  5885. You will see this variable referenced in the default values of
  5886. ``FILES:${PN}-dev``.
  5887. :term:`SOURCE_DATE_EPOCH`
  5888. This defines a date expressed in number of seconds since
  5889. the UNIX EPOCH (01 Jan 1970 00:00:00 UTC), which is used by
  5890. multiple build systems to force a timestamp in built binaries.
  5891. Many upstream projects already support this variable.
  5892. You will find more details in the `official specifications
  5893. <https://reproducible-builds.org/specs/source-date-epoch/>`__.
  5894. A value for each recipe is computed from the sources by
  5895. :oe_git:`meta/lib/oe/reproducible.py </openembedded-core/tree/meta/lib/oe/reproducible.py>`.
  5896. If a recipe wishes to override the default behavior, it should set its
  5897. own :term:`SOURCE_DATE_EPOCH` value::
  5898. SOURCE_DATE_EPOCH = "1613559011"
  5899. :term:`SOURCE_MIRROR_FETCH`
  5900. When you are fetching files to create a mirror of sources (i.e.
  5901. creating a source mirror), setting :term:`SOURCE_MIRROR_FETCH` to "1" in
  5902. your ``local.conf`` configuration file ensures the source for all
  5903. recipes are fetched regardless of whether or not a recipe is
  5904. compatible with the configuration. A recipe is considered
  5905. incompatible with the currently configured machine when either or
  5906. both the :term:`COMPATIBLE_MACHINE`
  5907. variable and :term:`COMPATIBLE_HOST` variables
  5908. specify compatibility with a machine other than that of the current
  5909. machine or host.
  5910. .. note::
  5911. Do not set the :term:`SOURCE_MIRROR_FETCH`
  5912. variable unless you are creating a source mirror. In other words,
  5913. do not set the variable during a normal build.
  5914. :term:`SOURCE_MIRROR_URL`
  5915. Defines your own :term:`PREMIRRORS` from which to
  5916. first fetch source before attempting to fetch from the upstream
  5917. specified in :term:`SRC_URI`.
  5918. To use this variable, you must globally inherit the
  5919. :ref:`own-mirrors <ref-classes-own-mirrors>` class and then provide
  5920. the URL to your mirrors. Here is the general syntax::
  5921. INHERIT += "own-mirrors"
  5922. SOURCE_MIRROR_URL = "http://example.com/my_source_mirror"
  5923. .. note::
  5924. You can specify only a single URL in :term:`SOURCE_MIRROR_URL`.
  5925. .. note::
  5926. If the mirror is protected behind a username and password, the
  5927. :term:`build host` needs to be configured so the :term:`build system
  5928. <OpenEmbedded Build System>` is able to fetch from the mirror.
  5929. The recommended way to do that is by setting the following parameters
  5930. in ``$HOME/.netrc`` (``$HOME`` being the :term:`build host` home
  5931. directory)::
  5932. machine example.com
  5933. login <user>
  5934. password <password>
  5935. This file requires permissions set to ``400`` or ``600`` to prevent
  5936. other users from reading the file::
  5937. chmod 600 "$HOME/.netrc"
  5938. Another method to configure the username and password is from the URL
  5939. in :term:`SOURCE_MIRROR_URL` directly, with the ``user`` and ``pswd``
  5940. parameters::
  5941. SOURCE_MIRROR_URL = "http://example.com/my_source_mirror;user=<user>;pswd=<password>"
  5942. :term:`SPDX_ARCHIVE_PACKAGED`
  5943. This option allows to add to :term:`SPDX` output compressed archives
  5944. of the files in the generated target packages.
  5945. Such archives are available in
  5946. ``tmp/deploy/spdx/MACHINE/packages/packagename.tar.zst``
  5947. under the :term:`Build Directory`.
  5948. Enable this option as follows::
  5949. SPDX_ARCHIVE_PACKAGED = "1"
  5950. According to our tests on release 4.1 "langdale", building
  5951. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling this
  5952. option multiplied the size of the ``tmp/deploy/spdx`` directory by a
  5953. factor of 13 (+1.6 GiB for this image), compared to just using the
  5954. :ref:`create-spdx <ref-classes-create-spdx>` class with no option.
  5955. Note that this option doesn't increase the size of :term:`SPDX`
  5956. files in ``tmp/deploy/images/MACHINE``.
  5957. :term:`SPDX_ARCHIVE_SOURCES`
  5958. This option allows to add to :term:`SPDX` output compressed archives
  5959. of the sources for packages installed on the target. It currently
  5960. only works when :term:`SPDX_INCLUDE_SOURCES` is set.
  5961. This is one way of fulfilling "source code access" license
  5962. requirements.
  5963. Such source archives are available in
  5964. ``tmp/deploy/spdx/MACHINE/recipes/recipe-packagename.tar.zst``
  5965. under the :term:`Build Directory`.
  5966. Enable this option as follows::
  5967. SPDX_INCLUDE_SOURCES = "1"
  5968. SPDX_ARCHIVE_SOURCES = "1"
  5969. According to our tests on release 4.1 "langdale", building
  5970. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling
  5971. these options multiplied the size of the ``tmp/deploy/spdx``
  5972. directory by a factor of 11 (+1.4 GiB for this image),
  5973. compared to just using the :ref:`create-spdx <ref-classes-create-spdx>`
  5974. class with no option.
  5975. Note that using this option only marginally increases the size
  5976. of the :term:`SPDX` output in ``tmp/deploy/images/MACHINE/``
  5977. (+ 0.07\% with the tested image), compared to just enabling
  5978. :term:`SPDX_INCLUDE_SOURCES`.
  5979. :term:`SPDX_INCLUDE_SOURCES`
  5980. This option allows to add a description of the source files used to build
  5981. the host tools and the target packages, to the ``spdx.json`` files in
  5982. ``tmp/deploy/spdx/MACHINE/recipes/`` under the :term:`Build Directory`.
  5983. As a consequence, the ``spdx.json`` files under the ``by-namespace`` and
  5984. ``packages`` subdirectories in ``tmp/deploy/spdx/MACHINE`` are also
  5985. modified to include references to such source file descriptions.
  5986. Enable this option as follows::
  5987. SPDX_INCLUDE_SOURCES = "1"
  5988. According to our tests on release 4.1 "langdale", building
  5989. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling
  5990. this option multiplied the total size of the ``tmp/deploy/spdx``
  5991. directory by a factor of 3 (+291 MiB for this image),
  5992. and the size of the ``IMAGE-MACHINE.spdx.tar.zst`` in
  5993. ``tmp/deploy/images/MACHINE`` by a factor of 130 (+15 MiB for this
  5994. image), compared to just using the
  5995. :ref:`create-spdx <ref-classes-create-spdx>` class with no option.
  5996. :term:`SPDX_NAMESPACE_PREFIX`
  5997. This option could be used in order to change the prefix of ``spdxDocument``
  5998. and the prefix of ``documentNamespace``. It is set by default to
  5999. ``http://spdx.org/spdxdoc``.
  6000. :term:`SPDX_PRETTY`
  6001. This option makes the SPDX output more human-readable, using
  6002. identation and newlines, instead of the default output in a
  6003. single line::
  6004. SPDX_PRETTY = "1"
  6005. The generated SPDX files are approximately 20% bigger, but
  6006. this option is recommended if you want to inspect the SPDX
  6007. output files with a text editor.
  6008. :term:`SPDXLICENSEMAP`
  6009. Maps commonly used license names to their SPDX counterparts found in
  6010. ``meta/files/common-licenses/``. For the default :term:`SPDXLICENSEMAP`
  6011. mappings, see the ``meta/conf/licenses.conf`` file.
  6012. For additional information, see the :term:`LICENSE`
  6013. variable.
  6014. :term:`SPECIAL_PKGSUFFIX`
  6015. A list of prefixes for :term:`PN` used by the OpenEmbedded
  6016. build system to create variants of recipes or packages. The list
  6017. specifies the prefixes to strip off during certain circumstances such
  6018. as the generation of the :term:`BPN` variable.
  6019. :term:`SPL_BINARY`
  6020. The file type for the Secondary Program Loader (SPL). Some devices
  6021. use an SPL from which to boot (e.g. the BeagleBone development
  6022. board). For such cases, you can declare the file type of the SPL
  6023. binary in the ``u-boot.inc`` include file, which is used in the
  6024. U-Boot recipe.
  6025. The SPL file type is set to "null" by default in the ``u-boot.inc``
  6026. file as follows::
  6027. # Some versions of u-boot build an SPL (Second Program Loader) image that
  6028. # should be packaged along with the u-boot binary as well as placed in the
  6029. # deploy directory. For those versions they can set the following variables
  6030. # to allow packaging the SPL.
  6031. SPL_BINARY ?= ""
  6032. SPL_BINARYNAME ?= "${@os.path.basename(d.getVar("SPL_BINARY"))}"
  6033. SPL_IMAGE ?= "${SPL_BINARYNAME}-${MACHINE}-${PV}-${PR}"
  6034. SPL_SYMLINK ?= "${SPL_BINARYNAME}-${MACHINE}"
  6035. The :term:`SPL_BINARY` variable helps form
  6036. various ``SPL_*`` variables used by the OpenEmbedded build system.
  6037. See the BeagleBone machine configuration example in the
  6038. ":ref:`dev-manual/layers:adding a layer using the \`\`bitbake-layers\`\` script`"
  6039. section in the Yocto Project Board Support Package Developer's Guide
  6040. for additional information.
  6041. :term:`SPL_DTB_BINARY`
  6042. When inheriting the :ref:`ref-classes-uboot-sign` class, the
  6043. :term:`SPL_DTB_BINARY` variable contains the name of the SPL binary to be
  6044. compiled.
  6045. :term:`SPL_MKIMAGE_DTCOPTS`
  6046. Options for the device tree compiler passed to ``mkimage -D`` feature
  6047. while creating a FIT image with the :ref:`ref-classes-uboot-sign`
  6048. class. If :term:`SPL_MKIMAGE_DTCOPTS` is not set then the
  6049. :ref:`ref-classes-uboot-sign` class will not pass the ``-D`` option
  6050. to ``mkimage``.
  6051. The default value is set to "" by the :ref:`ref-classes-uboot-config`
  6052. class.
  6053. :term:`SPL_SIGN_ENABLE`
  6054. Enable signing of the U-Boot FIT image. The default value is "0".
  6055. This variable is used by the :ref:`ref-classes-uboot-sign` class.
  6056. :term:`SPL_SIGN_KEYDIR`
  6057. Location of the directory containing the RSA key and certificate used for
  6058. signing the U-Boot FIT image, used by the :ref:`ref-classes-uboot-sign`
  6059. class.
  6060. :term:`SPL_SIGN_KEYNAME`
  6061. The name of keys used by the :ref:`ref-classes-uboot-sign` class
  6062. for signing U-Boot FIT image stored in the :term:`SPL_SIGN_KEYDIR`
  6063. directory. If we have for example a ``dev.key`` key and a ``dev.crt``
  6064. certificate stored in the :term:`SPL_SIGN_KEYDIR` directory, you will
  6065. have to set :term:`SPL_SIGN_KEYNAME` to ``dev``.
  6066. :term:`SPLASH`
  6067. This variable, used by the :ref:`ref-classes-image` class, allows
  6068. to choose splashscreen applications. Set it to the names of packages
  6069. for such applications to use. This variable is set by default to
  6070. ``psplash``.
  6071. :term:`SPLASH_IMAGES`
  6072. This variable, used by the ``psplash`` recipe, allows to customize
  6073. the default splashscreen image.
  6074. Specified images in PNG format are converted to ``.h`` files by the recipe,
  6075. and are included in the ``psplash`` binary, so you won't find them in
  6076. the root filesystem.
  6077. To make such a change, it is recommended to customize the
  6078. ``psplash`` recipe in a custom layer. Here is an example structure for
  6079. an ``ACME`` board::
  6080. meta-acme/recipes-core/psplash
  6081. ├── files
  6082. │   └── logo-acme.png
  6083. └── psplash_%.bbappend
  6084. And here are the contents of the ``psplash_%.bbappend`` file in
  6085. this example::
  6086. SPLASH_IMAGES = "file://logo-acme.png;outsuffix=default"
  6087. FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  6088. You could even add specific configuration options for ``psplash``,
  6089. for example::
  6090. EXTRA_OECONF += "--disable-startup-msg --enable-img-fullscreen"
  6091. For information on append files, see the
  6092. ":ref:`dev-manual/layers:appending other layers metadata with your layer`"
  6093. section.
  6094. :term:`SRC_URI`
  6095. See the BitBake manual for the initial description for this variable:
  6096. :term:`bitbake:SRC_URI`.
  6097. The following features are added by OpenEmbedded and the Yocto Project.
  6098. There are standard and recipe-specific options. Here are standard ones:
  6099. - ``apply`` --- whether to apply the patch or not. The default
  6100. action is to apply the patch.
  6101. - ``striplevel`` --- which striplevel to use when applying the
  6102. patch. The default level is 1.
  6103. - ``patchdir`` --- specifies the directory in which the patch should
  6104. be applied. The default is ``${``\ :term:`S`\ ``}``.
  6105. Here are options specific to recipes building code from a revision
  6106. control system:
  6107. - ``mindate`` --- apply the patch only if
  6108. :term:`SRCDATE` is equal to or greater than
  6109. ``mindate``.
  6110. - ``maxdate`` --- apply the patch only if :term:`SRCDATE` is not later
  6111. than ``maxdate``.
  6112. - ``minrev`` --- apply the patch only if :term:`SRCREV` is equal to or
  6113. greater than ``minrev``.
  6114. - ``maxrev`` --- apply the patch only if :term:`SRCREV` is not later
  6115. than ``maxrev``.
  6116. - ``rev`` --- apply the patch only if :term:`SRCREV` is equal to
  6117. ``rev``.
  6118. - ``notrev`` --- apply the patch only if :term:`SRCREV` is not equal to
  6119. ``rev``.
  6120. .. note::
  6121. If you want the build system to pick up files specified through
  6122. a :term:`SRC_URI` statement from your append file, you need to be
  6123. sure to extend the :term:`FILESPATH` variable by also using the
  6124. :term:`FILESEXTRAPATHS` variable from within your append file.
  6125. :term:`SRC_URI_OVERRIDES_PACKAGE_ARCH`
  6126. By default, the OpenEmbedded build system automatically detects
  6127. whether :term:`SRC_URI` contains files that are machine-specific. If so,
  6128. the build system automatically changes :term:`PACKAGE_ARCH`. Setting this
  6129. variable to "0" disables this behavior.
  6130. :term:`SRCDATE`
  6131. The date of the source code used to build the package. This variable
  6132. applies only if the source was fetched from a Source Code Manager
  6133. (SCM).
  6134. :term:`SRCPV`
  6135. Returns the version string of the current package. This string is
  6136. used to help define the value of :term:`PV`.
  6137. The :term:`SRCPV` variable is defined in the ``meta/conf/bitbake.conf``
  6138. configuration file in the :term:`Source Directory` as
  6139. follows::
  6140. SRCPV = "${@bb.fetch2.get_srcrev(d)}"
  6141. Recipes that need to define :term:`PV` do so with the help of the
  6142. :term:`SRCPV`. For example, the ``ofono`` recipe (``ofono_git.bb``)
  6143. located in ``meta/recipes-connectivity`` in the Source Directory
  6144. defines :term:`PV` as follows::
  6145. PV = "0.12-git${SRCPV}"
  6146. :term:`SRCREV`
  6147. The revision of the source code used to build the package. This
  6148. variable applies to Subversion, Git, Mercurial, and Bazaar only. Note
  6149. that if you want to build a fixed revision and you want to avoid
  6150. performing a query on the remote repository every time BitBake parses
  6151. your recipe, you should specify a :term:`SRCREV` that is a full revision
  6152. identifier (e.g. the full SHA hash in git) and not just a tag.
  6153. .. note::
  6154. For information on limitations when inheriting the latest revision
  6155. of software using :term:`SRCREV`, see the :term:`AUTOREV` variable
  6156. description and the
  6157. ":ref:`dev-manual/packages:automatically incrementing a package version number`"
  6158. section, which is in the Yocto Project Development Tasks Manual.
  6159. :term:`SRCTREECOVEREDTASKS`
  6160. A list of tasks that are typically not relevant (and therefore skipped)
  6161. when building using the :ref:`externalsrc <ref-classes-externalsrc>`
  6162. class. The default value as set in that class file is the set of tasks
  6163. that are rarely needed when using external source::
  6164. SRCTREECOVEREDTASKS ?= "do_patch do_unpack do_fetch"
  6165. The notable exception is when processing external kernel source as
  6166. defined in the :ref:`kernel-yocto <ref-classes-kernel-yocto>`
  6167. class file (formatted for aesthetics)::
  6168. SRCTREECOVEREDTASKS += "\
  6169. do_validate_branches \
  6170. do_kernel_configcheck \
  6171. do_kernel_checkout \
  6172. do_fetch \
  6173. do_unpack \
  6174. do_patch \
  6175. "
  6176. See the associated :term:`EXTERNALSRC` and :term:`EXTERNALSRC_BUILD`
  6177. variables for more information.
  6178. :term:`SSTATE_DIR`
  6179. The directory for the shared state cache.
  6180. :term:`SSTATE_EXCLUDEDEPS_SYSROOT`
  6181. This variable allows to specify indirect dependencies to exclude
  6182. from sysroots, for example to avoid the situations when a dependency on
  6183. any ``-native`` recipe will pull in all dependencies of that recipe
  6184. in the recipe sysroot. This behaviour might not always be wanted,
  6185. for example when that ``-native`` recipe depends on build tools
  6186. that are not relevant for the current recipe.
  6187. This way, irrelevant dependencies are ignored, which could have
  6188. prevented the reuse of prebuilt artifacts stored in the Shared
  6189. State Cache.
  6190. :term:`SSTATE_EXCLUDEDEPS_SYSROOT` is evaluated as two regular
  6191. expressions of recipe and dependency to ignore. An example
  6192. is the rule in :oe_git:`meta/conf/layer.conf </openembedded-core/tree/meta/conf/layer.conf>`::
  6193. # Nothing needs to depend on libc-initial
  6194. # base-passwd/shadow-sysroot don't need their dependencies
  6195. SSTATE_EXCLUDEDEPS_SYSROOT += "\
  6196. .*->.*-initial.* \
  6197. .*(base-passwd|shadow-sysroot)->.* \
  6198. "
  6199. The ``->`` substring represents the dependency between
  6200. the two regular expressions.
  6201. :term:`SSTATE_MIRROR_ALLOW_NETWORK`
  6202. If set to "1", allows fetches from mirrors that are specified in
  6203. :term:`SSTATE_MIRRORS` to work even when
  6204. fetching from the network is disabled by setting :term:`BB_NO_NETWORK` to
  6205. "1". Using the :term:`SSTATE_MIRROR_ALLOW_NETWORK` variable is useful if
  6206. you have set :term:`SSTATE_MIRRORS` to point to an internal server for
  6207. your shared state cache, but you want to disable any other fetching
  6208. from the network.
  6209. :term:`SSTATE_MIRRORS`
  6210. Configures the OpenEmbedded build system to search other mirror
  6211. locations for prebuilt cache data objects before building out the
  6212. data. This variable works like fetcher :term:`MIRRORS`
  6213. and :term:`PREMIRRORS` and points to the cache
  6214. locations to check for the shared state (sstate) objects.
  6215. You can specify a filesystem directory or a remote URL such as HTTP
  6216. or FTP. The locations you specify need to contain the shared state
  6217. cache (sstate-cache) results from previous builds. The sstate-cache
  6218. you point to can also be from builds on other machines.
  6219. When pointing to sstate build artifacts on another machine that uses
  6220. a different GCC version for native builds, you must configure
  6221. :term:`SSTATE_MIRRORS` with a regular expression that maps local search
  6222. paths to server paths. The paths need to take into account
  6223. :term:`NATIVELSBSTRING` set by the
  6224. :ref:`uninative <ref-classes-uninative>` class. For example, the
  6225. following maps the local search path ``universal-4.9`` to the
  6226. server-provided path server_url_sstate_path::
  6227. SSTATE_MIRRORS ?= "file://universal-4.9/(.*) https://server_url_sstate_path/universal-4.8/\1"
  6228. If a mirror uses the same structure as
  6229. :term:`SSTATE_DIR`, you need to add "PATH" at the
  6230. end as shown in the examples below. The build system substitutes the
  6231. correct path within the directory structure.
  6232. ::
  6233. SSTATE_MIRRORS ?= "\
  6234. file://.* https://someserver.tld/share/sstate/PATH;downloadfilename=PATH \
  6235. file://.* file:///some-local-dir/sstate/PATH"
  6236. .. note::
  6237. If the mirror is protected behind a username and password, the
  6238. :term:`build host` needs to be configured so the :term:`build system
  6239. <OpenEmbedded Build System>` is able to download the sstate cache using
  6240. authentication.
  6241. The recommended way to do that is by setting the following parameters
  6242. in ``$HOME/.netrc`` (``$HOME`` being the :term:`build host` home
  6243. directory)::
  6244. machine someserver.tld
  6245. login <user>
  6246. password <password>
  6247. This file requires permissions set to ``400`` or ``600`` to prevent
  6248. other users from reading the file::
  6249. chmod 600 "$HOME/.netrc"
  6250. Another method to configure the username and password is from the
  6251. URL in :term:`SSTATE_MIRRORS` directly, with the ``user`` and ``pswd``
  6252. parameters::
  6253. SSTATE_MIRRORS ?= "\
  6254. file://.* https://someserver.tld/share/sstate/PATH;user=<user>;pswd=<password>;downloadfilename=PATH \
  6255. "
  6256. The Yocto Project actually shares the cache data objects built by its
  6257. autobuilder::
  6258. SSTATE_MIRRORS ?= "file://.* http://sstate.yoctoproject.org/all/PATH;downloadfilename=PATH"
  6259. As such binary artifacts are built for the generic QEMU machines
  6260. supported by the various Poky releases, they are less likely to be
  6261. reusable in real projects building binaries optimized for a specific
  6262. CPU family.
  6263. :term:`SSTATE_SCAN_FILES`
  6264. Controls the list of files the OpenEmbedded build system scans for
  6265. hardcoded installation paths. The variable uses a space-separated
  6266. list of filenames (not paths) with standard wildcard characters
  6267. allowed.
  6268. During a build, the OpenEmbedded build system creates a shared state
  6269. (sstate) object during the first stage of preparing the sysroots.
  6270. That object is scanned for hardcoded paths for original installation
  6271. locations. The list of files that are scanned for paths is controlled
  6272. by the :term:`SSTATE_SCAN_FILES` variable. Typically, recipes add files
  6273. they want to be scanned to the value of :term:`SSTATE_SCAN_FILES` rather
  6274. than the variable being comprehensively set. The
  6275. :ref:`sstate <ref-classes-sstate>` class specifies the default list
  6276. of files.
  6277. For details on the process, see the
  6278. :ref:`staging <ref-classes-staging>` class.
  6279. :term:`SSTATE_SKIP_CREATION`
  6280. The :term:`SSTATE_SKIP_CREATION` variable can be used to skip the
  6281. creation of :ref:`shared state <overview-manual/concepts:shared state cache>`
  6282. tarball files. It makes sense e.g. for image creation tasks as tarring images
  6283. and keeping them in sstate would consume a lot of disk space.
  6284. In general it is not recommended to use this variable as missing sstate
  6285. artefacts adversely impact the build, particularly for entries in the
  6286. middle of dependency chains. The case it can make sense is where the
  6287. size and time costs of the artefact are similar to just running the
  6288. tasks. This generally only applies to end artefact output like images.
  6289. The syntax to disable it for one task is::
  6290. SSTATE_SKIP_CREATION:task-image-complete = "1"
  6291. The syntax to disable it for the whole recipe is::
  6292. SSTATE_SKIP_CREATION = "1"
  6293. :term:`STAGING_BASE_LIBDIR_NATIVE`
  6294. Specifies the path to the ``/lib`` subdirectory of the sysroot
  6295. directory for the build host.
  6296. :term:`STAGING_BASELIBDIR`
  6297. Specifies the path to the ``/lib`` subdirectory of the sysroot
  6298. directory for the target for which the current recipe is being built
  6299. (:term:`STAGING_DIR_HOST`).
  6300. :term:`STAGING_BINDIR`
  6301. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  6302. directory for the target for which the current recipe is being built
  6303. (:term:`STAGING_DIR_HOST`).
  6304. :term:`STAGING_BINDIR_CROSS`
  6305. Specifies the path to the directory containing binary configuration
  6306. scripts. These scripts provide configuration information for other
  6307. software that wants to make use of libraries or include files
  6308. provided by the software associated with the script.
  6309. .. note::
  6310. This style of build configuration has been largely replaced by
  6311. ``pkg-config``. Consequently, if ``pkg-config`` is supported by the
  6312. library to which you are linking, it is recommended you use
  6313. ``pkg-config`` instead of a provided configuration script.
  6314. :term:`STAGING_BINDIR_NATIVE`
  6315. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  6316. directory for the build host.
  6317. :term:`STAGING_DATADIR`
  6318. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  6319. directory for the target for which the current recipe is being built
  6320. (:term:`STAGING_DIR_HOST`).
  6321. :term:`STAGING_DATADIR_NATIVE`
  6322. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  6323. directory for the build host.
  6324. :term:`STAGING_DIR`
  6325. Helps construct the ``recipe-sysroots`` directory, which is used
  6326. during packaging.
  6327. For information on how staging for recipe-specific sysroots occurs,
  6328. see the :ref:`ref-tasks-populate_sysroot`
  6329. task, the ":ref:`sdk-manual/extensible:sharing files between recipes`"
  6330. section in the Yocto Project Development Tasks Manual, the
  6331. ":ref:`overview-manual/concepts:configuration, compilation, and staging`"
  6332. section in the Yocto Project Overview and Concepts Manual, and the
  6333. :term:`SYSROOT_DIRS` variable.
  6334. .. note::
  6335. Recipes should never write files directly under the :term:`STAGING_DIR`
  6336. directory because the OpenEmbedded build system manages the
  6337. directory automatically. Instead, files should be installed to
  6338. ``${``\ :term:`D`\ ``}`` within your recipe's :ref:`ref-tasks-install`
  6339. task and then the OpenEmbedded build system will stage a subset of
  6340. those files into the sysroot.
  6341. :term:`STAGING_DIR_HOST`
  6342. Specifies the path to the sysroot directory for the system on which
  6343. the component is built to run (the system that hosts the component).
  6344. For most recipes, this sysroot is the one in which that recipe's
  6345. :ref:`ref-tasks-populate_sysroot` task copies
  6346. files. Exceptions include ``-native`` recipes, where the
  6347. ``do_populate_sysroot`` task instead uses
  6348. :term:`STAGING_DIR_NATIVE`. Depending on
  6349. the type of recipe and the build target, :term:`STAGING_DIR_HOST` can
  6350. have the following values:
  6351. - For recipes building for the target machine, the value is
  6352. "${:term:`STAGING_DIR`}/${:term:`MACHINE`}".
  6353. - For native recipes building for the build host, the value is empty
  6354. given the assumption that when building for the build host, the
  6355. build host's own directories should be used.
  6356. .. note::
  6357. ``-native`` recipes are not installed into host paths like such
  6358. as ``/usr``. Rather, these recipes are installed into
  6359. :term:`STAGING_DIR_NATIVE`. When compiling ``-native`` recipes,
  6360. standard build environment variables such as
  6361. :term:`CPPFLAGS` and
  6362. :term:`CFLAGS` are set up so that both host paths
  6363. and :term:`STAGING_DIR_NATIVE` are searched for libraries and
  6364. headers using, for example, GCC's ``-isystem`` option.
  6365. Thus, the emphasis is that the ``STAGING_DIR*`` variables
  6366. should be viewed as input variables by tasks such as
  6367. :ref:`ref-tasks-configure`,
  6368. :ref:`ref-tasks-compile`, and
  6369. :ref:`ref-tasks-install`. Having the real system
  6370. root correspond to :term:`STAGING_DIR_HOST` makes conceptual sense
  6371. for ``-native`` recipes, as they make use of host headers and
  6372. libraries.
  6373. Check :term:`RECIPE_SYSROOT` and :term:`RECIPE_SYSROOT_NATIVE`.
  6374. :term:`STAGING_DIR_NATIVE`
  6375. Specifies the path to the sysroot directory used when building
  6376. components that run on the build host itself.
  6377. The default value is ``"${RECIPE_SYSROOT_NATIVE}"``,
  6378. check :term:`RECIPE_SYSROOT_NATIVE`.
  6379. :term:`STAGING_DIR_TARGET`
  6380. Specifies the path to the sysroot used for the system for which the
  6381. component generates code. For components that do not generate code,
  6382. which is the majority, :term:`STAGING_DIR_TARGET` is set to match
  6383. :term:`STAGING_DIR_HOST`.
  6384. Some recipes build binaries that can run on the target system but
  6385. those binaries in turn generate code for another different system
  6386. (e.g. cross-canadian recipes). Using terminology from GNU, the
  6387. primary system is referred to as the "HOST" and the secondary, or
  6388. different, system is referred to as the "TARGET". Thus, the binaries
  6389. run on the "HOST" system and generate binaries for the "TARGET"
  6390. system. The :term:`STAGING_DIR_HOST` variable points to the sysroot used
  6391. for the "HOST" system, while :term:`STAGING_DIR_TARGET` points to the
  6392. sysroot used for the "TARGET" system.
  6393. :term:`STAGING_ETCDIR_NATIVE`
  6394. Specifies the path to the ``/etc`` subdirectory of the sysroot
  6395. directory for the build host.
  6396. :term:`STAGING_EXECPREFIXDIR`
  6397. Specifies the path to the ``/usr`` subdirectory of the sysroot
  6398. directory for the target for which the current recipe is being built
  6399. (:term:`STAGING_DIR_HOST`).
  6400. :term:`STAGING_INCDIR`
  6401. Specifies the path to the ``/usr/include`` subdirectory of the
  6402. sysroot directory for the target for which the current recipe being
  6403. built (:term:`STAGING_DIR_HOST`).
  6404. :term:`STAGING_INCDIR_NATIVE`
  6405. Specifies the path to the ``/usr/include`` subdirectory of the
  6406. sysroot directory for the build host.
  6407. :term:`STAGING_KERNEL_BUILDDIR`
  6408. Points to the directory containing the kernel build artifacts.
  6409. Recipes building software that needs to access kernel build artifacts
  6410. (e.g. ``systemtap-uprobes``) can look in the directory specified with
  6411. the :term:`STAGING_KERNEL_BUILDDIR` variable to find these artifacts
  6412. after the kernel has been built.
  6413. :term:`STAGING_KERNEL_DIR`
  6414. The directory with kernel headers that are required to build
  6415. out-of-tree modules.
  6416. :term:`STAGING_LIBDIR`
  6417. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  6418. directory for the target for which the current recipe is being built
  6419. (:term:`STAGING_DIR_HOST`).
  6420. :term:`STAGING_LIBDIR_NATIVE`
  6421. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  6422. directory for the build host.
  6423. :term:`STAMP`
  6424. Specifies the base path used to create recipe stamp files. The path
  6425. to an actual stamp file is constructed by evaluating this string and
  6426. then appending additional information. Currently, the default
  6427. assignment for :term:`STAMP` as set in the ``meta/conf/bitbake.conf``
  6428. file is::
  6429. STAMP = "${STAMPS_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}"
  6430. For information on how BitBake uses stamp files to determine if a
  6431. task should be rerun, see the
  6432. ":ref:`overview-manual/concepts:stamp files and the rerunning of tasks`"
  6433. section in the Yocto Project Overview and Concepts Manual.
  6434. See :term:`STAMPS_DIR`,
  6435. :term:`MULTIMACH_TARGET_SYS`,
  6436. :term:`PN`, :term:`EXTENDPE`,
  6437. :term:`PV`, and :term:`PR` for related variable
  6438. information.
  6439. :term:`STAMPS_DIR`
  6440. Specifies the base directory in which the OpenEmbedded build system
  6441. places stamps. The default directory is ``${TMPDIR}/stamps``.
  6442. :term:`STRIP`
  6443. The minimal command and arguments to run ``strip``, which is used to
  6444. strip symbols.
  6445. :term:`SUMMARY`
  6446. The short (72 characters or less) summary of the binary package for
  6447. packaging systems such as ``opkg``, ``rpm``, or ``dpkg``. By default,
  6448. :term:`SUMMARY` is used to define the
  6449. :term:`DESCRIPTION` variable if :term:`DESCRIPTION` is
  6450. not set in the recipe.
  6451. :term:`SVNDIR`
  6452. The directory in which files checked out of a Subversion system are
  6453. stored.
  6454. :term:`SYSLINUX_DEFAULT_CONSOLE`
  6455. Specifies the kernel boot default console. If you want to use a
  6456. console other than the default, set this variable in your recipe as
  6457. follows where "X" is the console number you want to use::
  6458. SYSLINUX_DEFAULT_CONSOLE = "console=ttyX"
  6459. The :ref:`syslinux <ref-classes-syslinux>` class initially sets
  6460. this variable to null but then checks for a value later.
  6461. :term:`SYSLINUX_OPTS`
  6462. Lists additional options to add to the syslinux file. You need to set
  6463. this variable in your recipe. If you want to list multiple options,
  6464. separate the options with a semicolon character (``;``).
  6465. The :ref:`syslinux <ref-classes-syslinux>` class uses this variable
  6466. to create a set of options.
  6467. :term:`SYSLINUX_SERIAL`
  6468. Specifies the alternate serial port or turns it off. To turn off
  6469. serial, set this variable to an empty string in your recipe. The
  6470. variable's default value is set in the
  6471. :ref:`syslinux <ref-classes-syslinux>` class as follows::
  6472. SYSLINUX_SERIAL ?= "0 115200"
  6473. The class checks for and uses the variable as needed.
  6474. :term:`SYSLINUX_SERIAL_TTY`
  6475. Specifies the alternate console=tty... kernel boot argument. The
  6476. variable's default value is set in the
  6477. :ref:`syslinux <ref-classes-syslinux>` class as follows::
  6478. SYSLINUX_SERIAL_TTY ?= "console=ttyS0,115200"
  6479. The class checks for and uses the variable as needed.
  6480. :term:`SYSLINUX_SPLASH`
  6481. An ``.LSS`` file used as the background for the VGA boot menu when
  6482. you use the boot menu. You need to set this variable in your recipe.
  6483. The :ref:`syslinux <ref-classes-syslinux>` class checks for this
  6484. variable and if found, the OpenEmbedded build system installs the
  6485. splash screen.
  6486. :term:`SYSROOT_DESTDIR`
  6487. Points to the temporary directory under the work directory (default
  6488. "``${``\ :term:`WORKDIR`\ ``}/sysroot-destdir``")
  6489. where the files populated into the sysroot are assembled during the
  6490. :ref:`ref-tasks-populate_sysroot` task.
  6491. :term:`SYSROOT_DIRS`
  6492. Directories that are staged into the sysroot by the
  6493. :ref:`ref-tasks-populate_sysroot` task. By
  6494. default, the following directories are staged::
  6495. SYSROOT_DIRS = " \
  6496. ${includedir} \
  6497. ${libdir} \
  6498. ${base_libdir} \
  6499. ${nonarch_base_libdir} \
  6500. ${datadir} \
  6501. /sysroot-only \
  6502. "
  6503. Consider the following example in which you need to manipulate this variable.
  6504. Assume you have a recipe ``A`` that provides a shared library ``.so.*`` that is
  6505. installed into a custom folder other than "``${libdir}``"
  6506. or "``${base_libdir}``", let's say "``/opt/lib``".
  6507. .. note::
  6508. This is not a recommended way to deal with shared libraries, but this
  6509. is just to show the usefulness of setting :term:`SYSROOT_DIRS`.
  6510. When a recipe ``B`` :term:`DEPENDS` on ``A``, it means what is in
  6511. :term:`SYSROOT_DIRS` will be copied from :term:`D` of the recipe ``A``
  6512. into ``B``'s :term:`SYSROOT_DESTDIR` that is "``${WORKDIR}/sysroot-destdir``".
  6513. Now, since ``/opt/lib`` is not in :term:`SYSROOT_DIRS`, it will never be copied to
  6514. ``A``'s :term:`RECIPE_SYSROOT`, which is "``${WORKDIR}/recipe-sysroot``". So,
  6515. the linking process will fail.
  6516. To fix this, you need to add ``/opt/lib`` to :term:`SYSROOT_DIRS`::
  6517. SYSROOT_DIRS:append = " /opt/lib"
  6518. .. note::
  6519. Even after setting ``/opt/lib`` to :term:`SYSROOT_DIRS`, the linking process will still fail
  6520. because the linker does not know that location, since :term:`TARGET_LDFLAGS`
  6521. doesn't contain it (if your recipe is for the target). Therefore, so you should add::
  6522. TARGET_LDFLAGS:append = " -L${RECIPE_SYSROOT}/opt/lib"
  6523. :term:`SYSROOT_DIRS_IGNORE`
  6524. Directories that are not staged into the sysroot by the
  6525. :ref:`ref-tasks-populate_sysroot` task. You
  6526. can use this variable to exclude certain subdirectories of
  6527. directories listed in :term:`SYSROOT_DIRS` from
  6528. staging. By default, the following directories are not staged::
  6529. SYSROOT_DIRS_IGNORE = " \
  6530. ${mandir} \
  6531. ${docdir} \
  6532. ${infodir} \
  6533. ${datadir}/X11/locale \
  6534. ${datadir}/applications \
  6535. ${datadir}/bash-completion \
  6536. ${datadir}/fonts \
  6537. ${datadir}/gtk-doc/html \
  6538. ${datadir}/installed-tests \
  6539. ${datadir}/locale \
  6540. ${datadir}/pixmaps \
  6541. ${datadir}/terminfo \
  6542. ${libdir}/${BPN}/ptest \
  6543. "
  6544. :term:`SYSROOT_DIRS_NATIVE`
  6545. Extra directories staged into the sysroot by the
  6546. :ref:`ref-tasks-populate_sysroot` task for
  6547. ``-native`` recipes, in addition to those specified in
  6548. :term:`SYSROOT_DIRS`. By default, the following
  6549. extra directories are staged::
  6550. SYSROOT_DIRS_NATIVE = " \
  6551. ${bindir} \
  6552. ${sbindir} \
  6553. ${base_bindir} \
  6554. ${base_sbindir} \
  6555. ${libexecdir} \
  6556. ${sysconfdir} \
  6557. ${localstatedir} \
  6558. "
  6559. .. note::
  6560. Programs built by ``-native`` recipes run directly from the sysroot
  6561. (:term:`STAGING_DIR_NATIVE`), which is why additional directories
  6562. containing program executables and supporting files need to be staged.
  6563. :term:`SYSROOT_PREPROCESS_FUNCS`
  6564. A list of functions to execute after files are staged into the
  6565. sysroot. These functions are usually used to apply additional
  6566. processing on the staged files, or to stage additional files.
  6567. :term:`SYSTEMD_AUTO_ENABLE`
  6568. When inheriting the :ref:`systemd <ref-classes-systemd>` class,
  6569. this variable specifies whether the specified service in
  6570. :term:`SYSTEMD_SERVICE` should start
  6571. automatically or not. By default, the service is enabled to
  6572. automatically start at boot time. The default setting is in the
  6573. :ref:`systemd <ref-classes-systemd>` class as follows::
  6574. SYSTEMD_AUTO_ENABLE ??= "enable"
  6575. You can disable the service by setting the variable to "disable".
  6576. :term:`SYSTEMD_BOOT_CFG`
  6577. When :term:`EFI_PROVIDER` is set to
  6578. "systemd-boot", the :term:`SYSTEMD_BOOT_CFG` variable specifies the
  6579. configuration file that should be used. By default, the
  6580. :ref:`systemd-boot <ref-classes-systemd-boot>` class sets the
  6581. :term:`SYSTEMD_BOOT_CFG` as follows::
  6582. SYSTEMD_BOOT_CFG ?= "${S}/loader.conf"
  6583. For information on Systemd-boot, see the `Systemd-boot
  6584. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6585. :term:`SYSTEMD_BOOT_ENTRIES`
  6586. When :term:`EFI_PROVIDER` is set to
  6587. "systemd-boot", the :term:`SYSTEMD_BOOT_ENTRIES` variable specifies a
  6588. list of entry files (``*.conf``) to install that contain one boot
  6589. entry per file. By default, the
  6590. :ref:`systemd-boot <ref-classes-systemd-boot>` class sets the
  6591. :term:`SYSTEMD_BOOT_ENTRIES` as follows::
  6592. SYSTEMD_BOOT_ENTRIES ?= ""
  6593. For information on Systemd-boot, see the `Systemd-boot
  6594. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6595. :term:`SYSTEMD_BOOT_TIMEOUT`
  6596. When :term:`EFI_PROVIDER` is set to
  6597. "systemd-boot", the :term:`SYSTEMD_BOOT_TIMEOUT` variable specifies the
  6598. boot menu timeout in seconds. By default, the
  6599. :ref:`systemd-boot <ref-classes-systemd-boot>` class sets the
  6600. :term:`SYSTEMD_BOOT_TIMEOUT` as follows::
  6601. SYSTEMD_BOOT_TIMEOUT ?= "10"
  6602. For information on Systemd-boot, see the `Systemd-boot
  6603. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6604. :term:`SYSTEMD_PACKAGES`
  6605. When inheriting the :ref:`systemd <ref-classes-systemd>` class,
  6606. this variable locates the systemd unit files when they are not found
  6607. in the main recipe's package. By default, the :term:`SYSTEMD_PACKAGES`
  6608. variable is set such that the systemd unit files are assumed to
  6609. reside in the recipes main package::
  6610. SYSTEMD_PACKAGES ?= "${PN}"
  6611. If these unit files are not in this recipe's main package, you need
  6612. to use :term:`SYSTEMD_PACKAGES` to list the package or packages in which
  6613. the build system can find the systemd unit files.
  6614. :term:`SYSTEMD_SERVICE`
  6615. When inheriting the :ref:`systemd <ref-classes-systemd>` class,
  6616. this variable specifies the systemd service name for a package.
  6617. When you specify this file in your recipe, use a package name
  6618. override to indicate the package to which the value applies. Here is
  6619. an example from the connman recipe::
  6620. SYSTEMD_SERVICE:${PN} = "connman.service"
  6621. :term:`SYSVINIT_ENABLED_GETTYS`
  6622. When using :ref:`SysVinit <dev-manual/new-recipe:enabling system services>`,
  6623. specifies a space-separated list of the virtual terminals that should
  6624. run a `getty <https://en.wikipedia.org/wiki/Getty_%28Unix%29>`__
  6625. (allowing login), assuming :term:`USE_VT` is not set to
  6626. "0".
  6627. The default value for :term:`SYSVINIT_ENABLED_GETTYS` is "1" (i.e. only
  6628. run a getty on the first virtual terminal).
  6629. :term:`T`
  6630. This variable points to a directory were BitBake places temporary
  6631. files, which consist mostly of task logs and scripts, when building a
  6632. particular recipe. The variable is typically set as follows::
  6633. T = "${WORKDIR}/temp"
  6634. The :term:`WORKDIR` is the directory into which
  6635. BitBake unpacks and builds the recipe. The default ``bitbake.conf``
  6636. file sets this variable.
  6637. The :term:`T` variable is not to be confused with the
  6638. :term:`TMPDIR` variable, which points to the root of
  6639. the directory tree where BitBake places the output of an entire
  6640. build.
  6641. :term:`TARGET_ARCH`
  6642. The target machine's architecture. The OpenEmbedded build system
  6643. supports many architectures. Here is an example list of architectures
  6644. supported. This list is by no means complete as the architecture is
  6645. configurable:
  6646. - arm
  6647. - i586
  6648. - x86_64
  6649. - powerpc
  6650. - powerpc64
  6651. - mips
  6652. - mipsel
  6653. For additional information on machine architectures, see the
  6654. :term:`TUNE_ARCH` variable.
  6655. :term:`TARGET_AS_ARCH`
  6656. Specifies architecture-specific assembler flags for the target
  6657. system. :term:`TARGET_AS_ARCH` is initialized from
  6658. :term:`TUNE_ASARGS` by default in the BitBake
  6659. configuration file (``meta/conf/bitbake.conf``)::
  6660. TARGET_AS_ARCH = "${TUNE_ASARGS}"
  6661. :term:`TARGET_CC_ARCH`
  6662. Specifies architecture-specific C compiler flags for the target
  6663. system. :term:`TARGET_CC_ARCH` is initialized from
  6664. :term:`TUNE_CCARGS` by default.
  6665. .. note::
  6666. It is a common workaround to append :term:`LDFLAGS` to
  6667. :term:`TARGET_CC_ARCH` in recipes that build software for the target that
  6668. would not otherwise respect the exported :term:`LDFLAGS` variable.
  6669. :term:`TARGET_CC_KERNEL_ARCH`
  6670. This is a specific kernel compiler flag for a CPU or Application
  6671. Binary Interface (ABI) tune. The flag is used rarely and only for
  6672. cases where a userspace :term:`TUNE_CCARGS` is not
  6673. compatible with the kernel compilation. The :term:`TARGET_CC_KERNEL_ARCH`
  6674. variable allows the kernel (and associated modules) to use a
  6675. different configuration. See the
  6676. ``meta/conf/machine/include/arm/feature-arm-thumb.inc`` file in the
  6677. :term:`Source Directory` for an example.
  6678. :term:`TARGET_CFLAGS`
  6679. Specifies the flags to pass to the C compiler when building for the
  6680. target. When building in the target context,
  6681. :term:`CFLAGS` is set to the value of this variable by
  6682. default.
  6683. Additionally, the SDK's environment setup script sets the :term:`CFLAGS`
  6684. variable in the environment to the :term:`TARGET_CFLAGS` value so that
  6685. executables built using the SDK also have the flags applied.
  6686. :term:`TARGET_CPPFLAGS`
  6687. Specifies the flags to pass to the C pre-processor (i.e. to both the
  6688. C and the C++ compilers) when building for the target. When building
  6689. in the target context, :term:`CPPFLAGS` is set to the
  6690. value of this variable by default.
  6691. Additionally, the SDK's environment setup script sets the
  6692. :term:`CPPFLAGS` variable in the environment to the :term:`TARGET_CPPFLAGS`
  6693. value so that executables built using the SDK also have the flags
  6694. applied.
  6695. :term:`TARGET_CXXFLAGS`
  6696. Specifies the flags to pass to the C++ compiler when building for the
  6697. target. When building in the target context,
  6698. :term:`CXXFLAGS` is set to the value of this variable
  6699. by default.
  6700. Additionally, the SDK's environment setup script sets the
  6701. :term:`CXXFLAGS` variable in the environment to the :term:`TARGET_CXXFLAGS`
  6702. value so that executables built using the SDK also have the flags
  6703. applied.
  6704. :term:`TARGET_FPU`
  6705. Specifies the method for handling FPU code. For FPU-less targets,
  6706. which include most ARM CPUs, the variable must be set to "soft". If
  6707. not, the kernel emulation gets used, which results in a performance
  6708. penalty.
  6709. :term:`TARGET_LD_ARCH`
  6710. Specifies architecture-specific linker flags for the target system.
  6711. :term:`TARGET_LD_ARCH` is initialized from
  6712. :term:`TUNE_LDARGS` by default in the BitBake
  6713. configuration file (``meta/conf/bitbake.conf``)::
  6714. TARGET_LD_ARCH = "${TUNE_LDARGS}"
  6715. :term:`TARGET_LDFLAGS`
  6716. Specifies the flags to pass to the linker when building for the
  6717. target. When building in the target context,
  6718. :term:`LDFLAGS` is set to the value of this variable
  6719. by default.
  6720. Additionally, the SDK's environment setup script sets the
  6721. :term:`LDFLAGS` variable in the environment to the
  6722. :term:`TARGET_LDFLAGS` value so that executables built using the SDK also
  6723. have the flags applied.
  6724. :term:`TARGET_OS`
  6725. Specifies the target's operating system. The variable can be set to
  6726. "linux" for glibc-based systems (GNU C Library) and to "linux-musl"
  6727. for musl libc. For ARM/EABI targets, the possible values are
  6728. "linux-gnueabi" and "linux-musleabi".
  6729. :term:`TARGET_PREFIX`
  6730. Specifies the prefix used for the toolchain binary target tools.
  6731. Depending on the type of recipe and the build target,
  6732. :term:`TARGET_PREFIX` is set as follows:
  6733. - For recipes building for the target machine, the value is
  6734. "${:term:`TARGET_SYS`}-".
  6735. - For native recipes, the build system sets the variable to the
  6736. value of :term:`BUILD_PREFIX`.
  6737. - For native SDK recipes (``nativesdk``), the build system sets the
  6738. variable to the value of :term:`SDK_PREFIX`.
  6739. :term:`TARGET_SYS`
  6740. Specifies the system, including the architecture and the operating
  6741. system, for which the build is occurring in the context of the
  6742. current recipe.
  6743. The OpenEmbedded build system automatically sets this variable based
  6744. on :term:`TARGET_ARCH`,
  6745. :term:`TARGET_VENDOR`, and
  6746. :term:`TARGET_OS` variables.
  6747. .. note::
  6748. You do not need to set the :term:`TARGET_SYS` variable yourself.
  6749. Consider these two examples:
  6750. - Given a native recipe on a 32-bit, x86 machine running Linux, the
  6751. value is "i686-linux".
  6752. - Given a recipe being built for a little-endian, MIPS target
  6753. running Linux, the value might be "mipsel-linux".
  6754. :term:`TARGET_VENDOR`
  6755. Specifies the name of the target vendor.
  6756. :term:`TCLIBC`
  6757. Specifies the GNU standard C library (``libc``) variant to use during
  6758. the build process.
  6759. You can select "glibc", "musl", "newlib", or "baremetal".
  6760. :term:`TCLIBCAPPEND`
  6761. Specifies a suffix to be appended onto the
  6762. :term:`TMPDIR` value. The suffix identifies the
  6763. ``libc`` variant for building. When you are building for multiple
  6764. variants with the same :term:`Build Directory`, this
  6765. mechanism ensures that output for different ``libc`` variants is kept
  6766. separate to avoid potential conflicts.
  6767. In the ``defaultsetup.conf`` file, the default value of
  6768. :term:`TCLIBCAPPEND` is "-${TCLIBC}". However, distros such as poky,
  6769. which normally only support one ``libc`` variant, set
  6770. :term:`TCLIBCAPPEND` to "" in their distro configuration file resulting
  6771. in no suffix being applied.
  6772. :term:`TCMODE`
  6773. Specifies the toolchain selector. :term:`TCMODE` controls the
  6774. characteristics of the generated packages and images by telling the
  6775. OpenEmbedded build system which toolchain profile to use. By default,
  6776. the OpenEmbedded build system builds its own internal toolchain. The
  6777. variable's default value is "default", which uses that internal
  6778. toolchain.
  6779. .. note::
  6780. If :term:`TCMODE` is set to a value other than "default", then it is your
  6781. responsibility to ensure that the toolchain is compatible with the
  6782. default toolchain. Using older or newer versions of these
  6783. components might cause build problems. See the Release Notes for
  6784. the Yocto Project release for the specific components with which
  6785. the toolchain must be compatible. To access the Release Notes, go
  6786. to the :yocto_home:`Downloads </software-overview/downloads>`
  6787. page on the Yocto Project website and click on the "RELEASE
  6788. INFORMATION" link for the appropriate release.
  6789. The :term:`TCMODE` variable is similar to :term:`TCLIBC`,
  6790. which controls the variant of the GNU standard C library (``libc``)
  6791. used during the build process: ``glibc`` or ``musl``.
  6792. With additional layers, it is possible to use a pre-compiled external
  6793. toolchain. One example is the Sourcery G++ Toolchain. The support for
  6794. this toolchain resides in the separate Mentor Graphics
  6795. ``meta-sourcery`` layer at
  6796. https://github.com/MentorEmbedded/meta-sourcery/.
  6797. The layer's ``README`` file contains information on how to use the
  6798. Sourcery G++ Toolchain as an external toolchain. In summary, you must
  6799. be sure to add the layer to your ``bblayers.conf`` file in front of
  6800. the ``meta`` layer and then set the ``EXTERNAL_TOOLCHAIN`` variable
  6801. in your ``local.conf`` file to the location in which you installed
  6802. the toolchain.
  6803. The fundamentals used for this example apply to any external
  6804. toolchain. You can use ``meta-sourcery`` as a template for adding
  6805. support for other external toolchains.
  6806. :term:`TEST_EXPORT_DIR`
  6807. The location the OpenEmbedded build system uses to export tests when
  6808. the :term:`TEST_EXPORT_ONLY` variable is set
  6809. to "1".
  6810. The :term:`TEST_EXPORT_DIR` variable defaults to
  6811. ``"${TMPDIR}/testimage/${PN}"``.
  6812. :term:`TEST_EXPORT_ONLY`
  6813. Specifies to export the tests only. Set this variable to "1" if you
  6814. do not want to run the tests but you want them to be exported in a
  6815. manner that you to run them outside of the build system.
  6816. :term:`TEST_LOG_DIR`
  6817. Holds the SSH log and the boot log for QEMU machines. The
  6818. :term:`TEST_LOG_DIR` variable defaults to ``"${WORKDIR}/testimage"``.
  6819. .. note::
  6820. Actual test results reside in the task log (``log.do_testimage``),
  6821. which is in the ``${WORKDIR}/temp/`` directory.
  6822. :term:`TEST_POWERCONTROL_CMD`
  6823. For automated hardware testing, specifies the command to use to
  6824. control the power of the target machine under test. Typically, this
  6825. command would point to a script that performs the appropriate action
  6826. (e.g. interacting with a web-enabled power strip). The specified
  6827. command should expect to receive as the last argument "off", "on" or
  6828. "cycle" specifying to power off, on, or cycle (power off and then
  6829. power on) the device, respectively.
  6830. :term:`TEST_POWERCONTROL_EXTRA_ARGS`
  6831. For automated hardware testing, specifies additional arguments to
  6832. pass through to the command specified in
  6833. :term:`TEST_POWERCONTROL_CMD`. Setting
  6834. :term:`TEST_POWERCONTROL_EXTRA_ARGS` is optional. You can use it if you
  6835. wish, for example, to separate the machine-specific and
  6836. non-machine-specific parts of the arguments.
  6837. :term:`TEST_QEMUBOOT_TIMEOUT`
  6838. The time in seconds allowed for an image to boot before automated
  6839. runtime tests begin to run against an image. The default timeout
  6840. period to allow the boot process to reach the login prompt is 500
  6841. seconds. You can specify a different value in the ``local.conf``
  6842. file.
  6843. For more information on testing images, see the
  6844. ":ref:`test-manual/runtime-testing:performing automated runtime testing`"
  6845. section in the Yocto Project Test Environment Manual.
  6846. :term:`TEST_SERIALCONTROL_CMD`
  6847. For automated hardware testing, specifies the command to use to
  6848. connect to the serial console of the target machine under test. This
  6849. command simply needs to connect to the serial console and forward
  6850. that connection to standard input and output as any normal terminal
  6851. program does.
  6852. For example, to use the Picocom terminal program on serial device
  6853. ``/dev/ttyUSB0`` at 115200bps, you would set the variable as follows::
  6854. TEST_SERIALCONTROL_CMD = "picocom /dev/ttyUSB0 -b 115200"
  6855. :term:`TEST_SERIALCONTROL_EXTRA_ARGS`
  6856. For automated hardware testing, specifies additional arguments to
  6857. pass through to the command specified in
  6858. :term:`TEST_SERIALCONTROL_CMD`. Setting
  6859. :term:`TEST_SERIALCONTROL_EXTRA_ARGS` is optional. You can use it if you
  6860. wish, for example, to separate the machine-specific and
  6861. non-machine-specific parts of the command.
  6862. :term:`TEST_SERVER_IP`
  6863. The IP address of the build machine (host machine). This IP address
  6864. is usually automatically detected. However, if detection fails, this
  6865. variable needs to be set to the IP address of the build machine (i.e.
  6866. where the build is taking place).
  6867. .. note::
  6868. The :term:`TEST_SERVER_IP` variable is only used for a small number of
  6869. tests such as the "dnf" test suite, which needs to download packages
  6870. from ``WORKDIR/oe-rootfs-repo``.
  6871. :term:`TEST_SUITES`
  6872. An ordered list of tests (modules) to run against an image when
  6873. performing automated runtime testing.
  6874. The OpenEmbedded build system provides a core set of tests that can
  6875. be used against images.
  6876. .. note::
  6877. Currently, there is only support for running these tests under
  6878. QEMU.
  6879. Tests include ``ping``, ``ssh``, ``df`` among others. You can add
  6880. your own tests to the list of tests by appending :term:`TEST_SUITES` as
  6881. follows::
  6882. TEST_SUITES:append = " mytest"
  6883. Alternatively, you can
  6884. provide the "auto" option to have all applicable tests run against
  6885. the image.
  6886. ::
  6887. TEST_SUITES:append = " auto"
  6888. Using this option causes the
  6889. build system to automatically run tests that are applicable to the
  6890. image. Tests that are not applicable are skipped.
  6891. The order in which tests are run is important. Tests that depend on
  6892. another test must appear later in the list than the test on which
  6893. they depend. For example, if you append the list of tests with two
  6894. tests (``test_A`` and ``test_B``) where ``test_B`` is dependent on
  6895. ``test_A``, then you must order the tests as follows::
  6896. TEST_SUITES = "test_A test_B"
  6897. For more information on testing images, see the
  6898. ":ref:`test-manual/runtime-testing:performing automated runtime testing`"
  6899. section in the Yocto Project Test Environment Manual.
  6900. :term:`TEST_TARGET`
  6901. Specifies the target controller to use when running tests against a
  6902. test image. The default controller to use is "qemu"::
  6903. TEST_TARGET = "qemu"
  6904. A target controller is a class that defines how an image gets
  6905. deployed on a target and how a target is started. A layer can extend
  6906. the controllers by adding a module in the layer's
  6907. ``/lib/oeqa/controllers`` directory and by inheriting the
  6908. ``BaseTarget`` class, which is an abstract class that cannot be used
  6909. as a value of :term:`TEST_TARGET`.
  6910. You can provide the following arguments with :term:`TEST_TARGET`:
  6911. - *"qemu":* Boots a QEMU image and runs the tests. See the
  6912. ":ref:`test-manual/runtime-testing:enabling runtime tests on qemu`" section
  6913. in the Yocto Project Test Environment Manual for more
  6914. information.
  6915. - *"simpleremote":* Runs the tests on target hardware that is
  6916. already up and running. The hardware can be on the network or it
  6917. can be a device running an image on QEMU. You must also set
  6918. :term:`TEST_TARGET_IP` when you use
  6919. "simpleremote".
  6920. .. note::
  6921. This argument is defined in
  6922. ``meta/lib/oeqa/controllers/simpleremote.py``.
  6923. For information on running tests on hardware, see the
  6924. ":ref:`test-manual/runtime-testing:enabling runtime tests on hardware`"
  6925. section in the Yocto Project Test Environment Manual.
  6926. :term:`TEST_TARGET_IP`
  6927. The IP address of your hardware under test. The :term:`TEST_TARGET_IP`
  6928. variable has no effect when :term:`TEST_TARGET` is
  6929. set to "qemu".
  6930. When you specify the IP address, you can also include a port. Here is
  6931. an example::
  6932. TEST_TARGET_IP = "192.168.1.4:2201"
  6933. Specifying a port is
  6934. useful when SSH is started on a non-standard port or in cases when
  6935. your hardware under test is behind a firewall or network that is not
  6936. directly accessible from your host and you need to do port address
  6937. translation.
  6938. :term:`TESTIMAGE_AUTO`
  6939. Automatically runs the series of automated tests for images when an
  6940. image is successfully built. Setting :term:`TESTIMAGE_AUTO` to "1" causes
  6941. any image that successfully builds to automatically boot under QEMU.
  6942. Using the variable also adds in dependencies so that any SDK for
  6943. which testing is requested is automatically built first.
  6944. These tests are written in Python making use of the ``unittest``
  6945. module, and the majority of them run commands on the target system
  6946. over ``ssh``. You can set this variable to "1" in your ``local.conf``
  6947. file in the :term:`Build Directory` to have the
  6948. OpenEmbedded build system automatically run these tests after an
  6949. image successfully builds:
  6950. TESTIMAGE_AUTO = "1"
  6951. For more information
  6952. on enabling, running, and writing these tests, see the
  6953. ":ref:`test-manual/runtime-testing:performing automated runtime testing`"
  6954. section in the Yocto Project Test Environment Manual and the
  6955. ":ref:`ref-classes-testimage`" section.
  6956. :term:`THISDIR`
  6957. The directory in which the file BitBake is currently parsing is
  6958. located. Do not manually set this variable.
  6959. :term:`TIME`
  6960. The time the build was started. Times appear using the hour, minute,
  6961. and second (HMS) format (e.g. "140159" for one minute and fifty-nine
  6962. seconds past 1400 hours).
  6963. :term:`TMPDIR`
  6964. This variable is the base directory the OpenEmbedded build system
  6965. uses for all build output and intermediate files (other than the
  6966. shared state cache). By default, the :term:`TMPDIR` variable points to
  6967. ``tmp`` within the :term:`Build Directory`.
  6968. If you want to establish this directory in a location other than the
  6969. default, you can uncomment and edit the following statement in the
  6970. ``conf/local.conf`` file in the :term:`Source Directory`::
  6971. #TMPDIR = "${TOPDIR}/tmp"
  6972. An example use for this scenario is to set :term:`TMPDIR` to a local disk,
  6973. which does not use NFS, while having the Build Directory use NFS.
  6974. The filesystem used by :term:`TMPDIR` must have standard filesystem
  6975. semantics (i.e. mixed-case files are unique, POSIX file locking, and
  6976. persistent inodes). Due to various issues with NFS and bugs in some
  6977. implementations, NFS does not meet this minimum requirement.
  6978. Consequently, :term:`TMPDIR` cannot be on NFS.
  6979. :term:`TOOLCHAIN_HOST_TASK`
  6980. This variable lists packages the OpenEmbedded build system uses when
  6981. building an SDK, which contains a cross-development environment. The
  6982. packages specified by this variable are part of the toolchain set
  6983. that runs on the :term:`SDKMACHINE`, and each
  6984. package should usually have the prefix ``nativesdk-``. For example,
  6985. consider the following command when building an SDK::
  6986. $ bitbake -c populate_sdk imagename
  6987. In this case, a default list of packages is
  6988. set in this variable, but you can add additional packages to the
  6989. list. See the
  6990. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  6991. in the Yocto Project Application Development and the Extensible
  6992. Software Development Kit (eSDK) manual for more information.
  6993. For background information on cross-development toolchains in the
  6994. Yocto Project development environment, see the
  6995. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  6996. section in the Yocto Project Overview and Concepts Manual. For
  6997. information on setting up a cross-development environment, see the
  6998. :doc:`/sdk-manual/index` manual.
  6999. Note that this variable applies to building an SDK, not an eSDK,
  7000. in which case the :term:`TOOLCHAIN_HOST_TASK_ESDK` setting should be
  7001. used instead.
  7002. :term:`TOOLCHAIN_HOST_TASK_ESDK`
  7003. This variable allows to extend what is installed in the host
  7004. portion of an eSDK. This is similar to :term:`TOOLCHAIN_HOST_TASK`
  7005. applying to SDKs.
  7006. :term:`TOOLCHAIN_OPTIONS`
  7007. This variable holds extra options passed to the compiler and the linker
  7008. for non ``-native`` recipes as they have to point to their custom
  7009. ``sysroot`` folder pointed to by :term:`RECIPE_SYSROOT`::
  7010. TOOLCHAIN_OPTIONS = " --sysroot=${RECIPE_SYSROOT}"
  7011. Native recipes don't need this variable to be set, as they are
  7012. built for the host machine with the native compiler.
  7013. :term:`TOOLCHAIN_OUTPUTNAME`
  7014. This variable defines the name used for the toolchain output. The
  7015. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class sets
  7016. the :term:`TOOLCHAIN_OUTPUTNAME` variable as follows::
  7017. TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${SDK_VERSION}"
  7018. See
  7019. the :term:`SDK_NAME` and
  7020. :term:`SDK_VERSION` variables for additional
  7021. information.
  7022. :term:`TOOLCHAIN_TARGET_TASK`
  7023. This variable lists packages the OpenEmbedded build system uses when
  7024. it creates the target part of an SDK (i.e. the part built for the
  7025. target hardware), which includes libraries and headers. Use this
  7026. variable to add individual packages to the part of the SDK that runs
  7027. on the target. See the
  7028. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  7029. in the Yocto Project Application Development and the Extensible
  7030. Software Development Kit (eSDK) manual for more information.
  7031. For background information on cross-development toolchains in the
  7032. Yocto Project development environment, see the
  7033. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  7034. section in the Yocto Project Overview and Concepts Manual. For
  7035. information on setting up a cross-development environment, see the
  7036. :doc:`/sdk-manual/index` manual.
  7037. :term:`TRANSLATED_TARGET_ARCH`
  7038. A sanitized version of :term:`TARGET_ARCH`. This
  7039. variable is used where the architecture is needed in a value where
  7040. underscores are not allowed, for example within package filenames. In
  7041. this case, dash characters replace any underscore characters used in
  7042. :term:`TARGET_ARCH`.
  7043. Do not edit this variable.
  7044. :term:`TUNE_ARCH`
  7045. The GNU canonical architecture for a specific architecture (i.e.
  7046. ``arm``, ``armeb``, ``mips``, ``mips64``, and so forth). BitBake uses
  7047. this value to setup configuration.
  7048. :term:`TUNE_ARCH` definitions are specific to a given architecture. The
  7049. definitions can be a single static definition, or can be dynamically
  7050. adjusted. You can see details for a given CPU family by looking at
  7051. the architecture's ``README`` file. For example, the
  7052. ``meta/conf/machine/include/mips/README`` file in the
  7053. :term:`Source Directory` provides information for
  7054. :term:`TUNE_ARCH` specific to the ``mips`` architecture.
  7055. :term:`TUNE_ARCH` is tied closely to
  7056. :term:`TARGET_ARCH`, which defines the target
  7057. machine's architecture. The BitBake configuration file
  7058. (``meta/conf/bitbake.conf``) sets :term:`TARGET_ARCH` as follows::
  7059. TARGET_ARCH = "${TUNE_ARCH}"
  7060. The following list, which is by no means complete since architectures
  7061. are configurable, shows supported machine architectures:
  7062. - arm
  7063. - i586
  7064. - x86_64
  7065. - powerpc
  7066. - powerpc64
  7067. - mips
  7068. - mipsel
  7069. :term:`TUNE_ASARGS`
  7070. Specifies architecture-specific assembler flags for the target
  7071. system. The set of flags is based on the selected tune features.
  7072. :term:`TUNE_ASARGS` is set using the tune include files, which are
  7073. typically under ``meta/conf/machine/include/`` and are influenced
  7074. through :term:`TUNE_FEATURES`. For example, the
  7075. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  7076. for the x86 architecture as follows::
  7077. TUNE_ASARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-x32", "", d)}"
  7078. .. note::
  7079. Board Support Packages (BSPs) select the tune. The selected tune,
  7080. in turn, affects the tune variables themselves (i.e. the tune can
  7081. supply its own set of flags).
  7082. :term:`TUNE_CCARGS`
  7083. Specifies architecture-specific C compiler flags for the target
  7084. system. The set of flags is based on the selected tune features.
  7085. :term:`TUNE_CCARGS` is set using the tune include files, which are
  7086. typically under ``meta/conf/machine/include/`` and are influenced
  7087. through :term:`TUNE_FEATURES`.
  7088. .. note::
  7089. Board Support Packages (BSPs) select the tune. The selected tune,
  7090. in turn, affects the tune variables themselves (i.e. the tune can
  7091. supply its own set of flags).
  7092. :term:`TUNE_FEATURES`
  7093. Features used to "tune" a compiler for optimal use given a specific
  7094. processor. The features are defined within the tune files and allow
  7095. arguments (i.e. ``TUNE_*ARGS``) to be dynamically generated based on
  7096. the features.
  7097. The OpenEmbedded build system verifies the features to be sure they
  7098. are not conflicting and that they are supported.
  7099. The BitBake configuration file (``meta/conf/bitbake.conf``) defines
  7100. :term:`TUNE_FEATURES` as follows::
  7101. TUNE_FEATURES ??= "${TUNE_FEATURES:tune-${DEFAULTTUNE}}"
  7102. See the :term:`DEFAULTTUNE` variable for more information.
  7103. :term:`TUNE_LDARGS`
  7104. Specifies architecture-specific linker flags for the target system.
  7105. The set of flags is based on the selected tune features.
  7106. :term:`TUNE_LDARGS` is set using the tune include files, which are
  7107. typically under ``meta/conf/machine/include/`` and are influenced
  7108. through :term:`TUNE_FEATURES`. For example, the
  7109. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  7110. for the x86 architecture as follows::
  7111. TUNE_LDARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-m elf32_x86_64", "", d)}"
  7112. .. note::
  7113. Board Support Packages (BSPs) select the tune. The selected tune,
  7114. in turn, affects the tune variables themselves (i.e. the tune can
  7115. supply its own set of flags).
  7116. :term:`TUNE_PKGARCH`
  7117. The package architecture understood by the packaging system to define
  7118. the architecture, ABI, and tuning of output packages. The specific
  7119. tune is defined using the "_tune" override as follows::
  7120. TUNE_PKGARCH:tune-tune = "tune"
  7121. These tune-specific package architectures are defined in the machine
  7122. include files. Here is an example of the "core2-32" tuning as used in
  7123. the ``meta/conf/machine/include/x86/tune-core2.inc`` file::
  7124. TUNE_PKGARCH:tune-core2-32 = "core2-32"
  7125. :term:`TUNECONFLICTS[feature]`
  7126. Specifies CPU or Application Binary Interface (ABI) tuning features
  7127. that conflict with feature.
  7128. Known tuning conflicts are specified in the machine include files in
  7129. the :term:`Source Directory`. Here is an example from
  7130. the ``meta/conf/machine/include/mips/arch-mips.inc`` include file
  7131. that lists the "o32" and "n64" features as conflicting with the "n32"
  7132. feature::
  7133. TUNECONFLICTS[n32] = "o32 n64"
  7134. :term:`TUNEVALID[feature]`
  7135. Specifies a valid CPU or Application Binary Interface (ABI) tuning
  7136. feature. The specified feature is stored as a flag. Valid features
  7137. are specified in the machine include files (e.g.
  7138. ``meta/conf/machine/include/arm/arch-arm.inc``). Here is an example
  7139. from that file::
  7140. TUNEVALID[bigendian] = "Enable big-endian mode."
  7141. See the machine include files in the :term:`Source Directory`
  7142. for these features.
  7143. :term:`UBOOT_BINARY`
  7144. Specifies the name of the binary build by U-Boot.
  7145. :term:`UBOOT_CONFIG`
  7146. Configures one or more U-Boot configurations to build. Each
  7147. configuration can define the :term:`UBOOT_MACHINE` and optionally the
  7148. :term:`IMAGE_FSTYPES` and the :term:`UBOOT_BINARY`.
  7149. Here is an example from the ``meta-freescale`` layer. ::
  7150. UBOOT_CONFIG ??= "sdcard-ifc-secure-boot sdcard-ifc sdcard-qspi lpuart qspi secure-boot nor"
  7151. UBOOT_CONFIG[nor] = "ls1021atwr_nor_defconfig"
  7152. UBOOT_CONFIG[sdcard-ifc] = "ls1021atwr_sdcard_ifc_defconfig,,u-boot-with-spl-pbl.bin"
  7153. UBOOT_CONFIG[sdcard-qspi] = "ls1021atwr_sdcard_qspi_defconfig,,u-boot-with-spl-pbl.bin"
  7154. UBOOT_CONFIG[lpuart] = "ls1021atwr_nor_lpuart_defconfig"
  7155. UBOOT_CONFIG[qspi] = "ls1021atwr_qspi_defconfig"
  7156. UBOOT_CONFIG[secure-boot] = "ls1021atwr_nor_SECURE_BOOT_defconfig"
  7157. UBOOT_CONFIG[sdcard-ifc-secure-boot] = "ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig,,u-boot-with-spl-pbl.bin"
  7158. In this example, all possible seven configurations are selected. Each
  7159. configuration specifies "..._defconfig" as :term:`UBOOT_MACHINE`, and
  7160. the "sd..." configurations define an individual name for
  7161. :term:`UBOOT_BINARY`. No configuration defines a second parameter for
  7162. :term:`IMAGE_FSTYPES` to use for the U-Boot image.
  7163. For more information on how the :term:`UBOOT_CONFIG` is handled, see the
  7164. :ref:`uboot-config <ref-classes-uboot-config>`
  7165. class.
  7166. :term:`UBOOT_DTB_LOADADDRESS`
  7167. Specifies the load address for the dtb image used by U-Boot. During FIT
  7168. image creation, the :term:`UBOOT_DTB_LOADADDRESS` variable is used in
  7169. :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to specify
  7170. the load address to be used in
  7171. creating the dtb sections of Image Tree Source for the FIT image.
  7172. :term:`UBOOT_DTBO_LOADADDRESS`
  7173. Specifies the load address for the dtbo image used by U-Boot. During FIT
  7174. image creation, the :term:`UBOOT_DTBO_LOADADDRESS` variable is used in
  7175. :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to specify the load address to be used in
  7176. creating the dtbo sections of Image Tree Source for the FIT image.
  7177. :term:`UBOOT_ENTRYPOINT`
  7178. Specifies the entry point for the U-Boot image. During U-Boot image
  7179. creation, the :term:`UBOOT_ENTRYPOINT` variable is passed as a
  7180. command-line parameter to the ``uboot-mkimage`` utility.
  7181. :term:`UBOOT_FIT_DESC`
  7182. Specifies the description string encoded into a U-Boot fitImage. The default
  7183. value is set by the :ref:`ref-classes-uboot-sign` class as follows::
  7184. UBOOT_FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
  7185. :term:`UBOOT_FIT_GENERATE_KEYS`
  7186. Decides whether to generate the keys for signing the U-Boot fitImage if
  7187. they don't already exist. The keys are created in :term:`SPL_SIGN_KEYDIR`.
  7188. The default value is "0".
  7189. Enable this as follows::
  7190. UBOOT_FIT_GENERATE_KEYS = "1"
  7191. This variable is used in the :ref:`ref-classes-uboot-sign` class.
  7192. :term:`UBOOT_FIT_HASH_ALG`
  7193. Specifies the hash algorithm used in creating the U-Boot FIT Image.
  7194. It is set by default to ``sha256`` by the :ref:`ref-classes-uboot-sign`
  7195. class.
  7196. :term:`UBOOT_FIT_KEY_GENRSA_ARGS`
  7197. Arguments to ``openssl genrsa`` for generating a RSA private key for
  7198. signing the U-Boot FIT image. The default value of this variable
  7199. is set to "-F4" by the :ref:`ref-classes-uboot-sign` class.
  7200. :term:`UBOOT_FIT_KEY_REQ_ARGS`
  7201. Arguments to ``openssl req`` for generating a certificate for signing
  7202. the U-Boot FIT image. The default value is "-batch -new" by the
  7203. :ref:`ref-classes-uboot-sign` class, "batch" for
  7204. non interactive mode and "new" for generating new keys.
  7205. :term:`UBOOT_FIT_KEY_SIGN_PKCS`
  7206. Format for the public key certificate used for signing the U-Boot FIT
  7207. image. The default value is set to "x509" by the
  7208. :ref:`ref-classes-uboot-sign` class.
  7209. :term:`UBOOT_FIT_SIGN_ALG`
  7210. Specifies the signature algorithm used in creating the U-Boot FIT Image.
  7211. This variable is set by default to "rsa2048" by the
  7212. :ref:`ref-classes-uboot-sign` class.
  7213. :term:`UBOOT_FIT_SIGN_NUMBITS`
  7214. Size of the private key used in signing the U-Boot FIT image, in number
  7215. of bits. The default value for this variable is set to "2048"
  7216. by the :ref:`ref-classes-uboot-sign` class.
  7217. :term:`UBOOT_FITIMAGE_ENABLE`
  7218. This variable allows to generate a FIT image for U-Boot, which is one
  7219. of the ways to implement a verified boot process.
  7220. Its default value is "0", so set it to "1" to enable this functionality::
  7221. UBOOT_FITIMAGE_ENABLE = "1"
  7222. See the :ref:`ref-classes-uboot-sign` class for details.
  7223. :term:`UBOOT_LOADADDRESS`
  7224. Specifies the load address for the U-Boot image. During U-Boot image
  7225. creation, the :term:`UBOOT_LOADADDRESS` variable is passed as a
  7226. command-line parameter to the ``uboot-mkimage`` utility.
  7227. :term:`UBOOT_LOCALVERSION`
  7228. Appends a string to the name of the local version of the U-Boot
  7229. image. For example, assuming the version of the U-Boot image built
  7230. was "2013.10", the full version string reported by U-Boot would be
  7231. "2013.10-yocto" given the following statement::
  7232. UBOOT_LOCALVERSION = "-yocto"
  7233. :term:`UBOOT_MACHINE`
  7234. Specifies the value passed on the ``make`` command line when building
  7235. a U-Boot image. The value indicates the target platform
  7236. configuration. You typically set this variable from the machine
  7237. configuration file (i.e. ``conf/machine/machine_name.conf``).
  7238. Please see the "Selection of Processor Architecture and Board Type"
  7239. section in the U-Boot README for valid values for this variable.
  7240. :term:`UBOOT_MAKE_TARGET`
  7241. Specifies the target called in the ``Makefile``. The default target
  7242. is "all".
  7243. :term:`UBOOT_MKIMAGE`
  7244. Specifies the name of the mkimage command as used by the
  7245. :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to assemble
  7246. the FIT image. This can be used to substitute an alternative command, wrapper
  7247. script or function if desired. The default is "uboot-mkimage".
  7248. :term:`UBOOT_MKIMAGE_DTCOPTS`
  7249. Options for the device tree compiler passed to mkimage '-D'
  7250. feature while creating FIT image in :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class.
  7251. If :term:`UBOOT_MKIMAGE_DTCOPTS` is not set then kernel-fitimage will not
  7252. pass the ``-D`` option to mkimage.
  7253. :term:`UBOOT_MKIMAGE_SIGN`
  7254. Specifies the name of the mkimage command as used by the
  7255. :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to sign
  7256. the FIT image after it has been assembled (if enabled). This can be used
  7257. to substitute an alternative command, wrapper script or function if
  7258. desired. The default is "${:term:`UBOOT_MKIMAGE`}".
  7259. :term:`UBOOT_MKIMAGE_SIGN_ARGS`
  7260. Optionally specifies additional arguments for the
  7261. :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to pass to the
  7262. mkimage command when signing the FIT image.
  7263. :term:`UBOOT_RD_ENTRYPOINT`
  7264. Specifies the entrypoint for the RAM disk image.
  7265. During FIT image creation, the
  7266. :term:`UBOOT_RD_ENTRYPOINT` variable is used
  7267. in :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to specify the
  7268. entrypoint to be used in creating the Image Tree Source for
  7269. the FIT image.
  7270. :term:`UBOOT_RD_LOADADDRESS`
  7271. Specifies the load address for the RAM disk image.
  7272. During FIT image creation, the
  7273. :term:`UBOOT_RD_LOADADDRESS` variable is used
  7274. in :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to specify the
  7275. load address to be used in creating the Image Tree Source for
  7276. the FIT image.
  7277. :term:`UBOOT_SIGN_ENABLE`
  7278. Enable signing of FIT image. The default value is "0".
  7279. :term:`UBOOT_SIGN_KEYDIR`
  7280. Location of the directory containing the RSA key and
  7281. certificate used for signing FIT image.
  7282. :term:`UBOOT_SIGN_KEYNAME`
  7283. The name of keys used for signing U-Boot FIT image stored in
  7284. :term:`UBOOT_SIGN_KEYDIR` directory. For e.g. dev.key key and dev.crt
  7285. certificate stored in :term:`UBOOT_SIGN_KEYDIR` directory will have
  7286. :term:`UBOOT_SIGN_KEYNAME` set to "dev".
  7287. :term:`UBOOT_SUFFIX`
  7288. Points to the generated U-Boot extension. For example, ``u-boot.sb``
  7289. has a ``.sb`` extension.
  7290. The default U-Boot extension is ``.bin``
  7291. :term:`UBOOT_TARGET`
  7292. Specifies the target used for building U-Boot. The target is passed
  7293. directly as part of the "make" command (e.g. SPL and AIS). If you do
  7294. not specifically set this variable, the OpenEmbedded build process
  7295. passes and uses "all" for the target during the U-Boot building
  7296. process.
  7297. :term:`UNKNOWN_CONFIGURE_OPT_IGNORE`
  7298. Specifies a list of options that, if reported by the configure script
  7299. as being invalid, should not generate a warning during the
  7300. :ref:`ref-tasks-configure` task. Normally, invalid
  7301. configure options are simply not passed to the configure script (e.g.
  7302. should be removed from :term:`EXTRA_OECONF` or
  7303. :term:`PACKAGECONFIG_CONFARGS`).
  7304. However, there are common options that are passed to all
  7305. configure scripts at a class level, but might not be valid for some
  7306. configure scripts. Therefore warnings about these options are useless.
  7307. For these cases, the options are added to :term:`UNKNOWN_CONFIGURE_OPT_IGNORE`.
  7308. The configure arguments check that uses
  7309. :term:`UNKNOWN_CONFIGURE_OPT_IGNORE` is part of the
  7310. :ref:`insane <ref-classes-insane>` class and is only enabled if the
  7311. recipe inherits the :ref:`autotools <ref-classes-autotools>` class.
  7312. :term:`UPDATERCPN`
  7313. For recipes inheriting the
  7314. :ref:`update-rc.d <ref-classes-update-rc.d>` class, :term:`UPDATERCPN`
  7315. specifies the package that contains the initscript that is enabled.
  7316. The default value is "${PN}". Given that almost all recipes that
  7317. install initscripts package them in the main package for the recipe,
  7318. you rarely need to set this variable in individual recipes.
  7319. :term:`UPSTREAM_CHECK_COMMITS`
  7320. You can perform a per-recipe check for what the latest upstream
  7321. source code version is by calling ``devtool latest-version recipe``. If
  7322. the recipe source code is provided from Git repositories, but
  7323. releases are not identified by Git tags, set :term:`UPSTREAM_CHECK_COMMITS`
  7324. to ``1`` in the recipe, and the OpenEmbedded build system
  7325. will compare the latest commit with the one currently specified
  7326. by the recipe (:term:`SRCREV`).
  7327. ::
  7328. UPSTREAM_CHECK_COMMITS = "1"
  7329. :term:`UPSTREAM_CHECK_GITTAGREGEX`
  7330. You can perform a per-recipe check for what the latest upstream
  7331. source code version is by calling ``devtool latest-version recipe``. If
  7332. the recipe source code is provided from Git repositories, the
  7333. OpenEmbedded build system determines the latest upstream version by
  7334. picking the latest tag from the list of all repository tags.
  7335. You can use the :term:`UPSTREAM_CHECK_GITTAGREGEX` variable to provide a
  7336. regular expression to filter only the relevant tags should the
  7337. default filter not work correctly.
  7338. ::
  7339. UPSTREAM_CHECK_GITTAGREGEX = "git_tag_regex"
  7340. :term:`UPSTREAM_CHECK_REGEX`
  7341. Use the :term:`UPSTREAM_CHECK_REGEX` variable to specify a different
  7342. regular expression instead of the default one when the package
  7343. checking system is parsing the page found using
  7344. :term:`UPSTREAM_CHECK_URI`.
  7345. ::
  7346. UPSTREAM_CHECK_REGEX = "package_regex"
  7347. :term:`UPSTREAM_CHECK_URI`
  7348. You can perform a per-recipe check for what the latest upstream
  7349. source code version is by calling ``devtool latest-version recipe``. If
  7350. the source code is provided from tarballs, the latest version is
  7351. determined by fetching the directory listing where the tarball is and
  7352. attempting to find a later tarball. When this approach does not work,
  7353. you can use :term:`UPSTREAM_CHECK_URI` to provide a different URI that
  7354. contains the link to the latest tarball.
  7355. ::
  7356. UPSTREAM_CHECK_URI = "recipe_url"
  7357. :term:`UPSTREAM_VERSION_UNKNOWN`
  7358. You can perform a per-recipe check for what the latest upstream
  7359. source code version is by calling ``devtool latest-version recipe``.
  7360. If no combination of the :term:`UPSTREAM_CHECK_URI`, :term:`UPSTREAM_CHECK_REGEX`,
  7361. :term:`UPSTREAM_CHECK_GITTAGREGEX` and :term:`UPSTREAM_CHECK_COMMITS` variables in
  7362. the recipe allows to determine what the latest upstream version is,
  7363. you can set :term:`UPSTREAM_VERSION_UNKNOWN` to ``1`` in the recipe
  7364. to acknowledge that the check cannot be performed.
  7365. ::
  7366. UPSTREAM_VERSION_UNKNOWN = "1"
  7367. :term:`USE_DEVFS`
  7368. Determines if ``devtmpfs`` is used for ``/dev`` population. The
  7369. default value used for :term:`USE_DEVFS` is "1" when no value is
  7370. specifically set. Typically, you would set :term:`USE_DEVFS` to "0" for a
  7371. statically populated ``/dev`` directory.
  7372. See the ":ref:`dev-manual/device-manager:selecting a device manager`" section in
  7373. the Yocto Project Development Tasks Manual for information on how to
  7374. use this variable.
  7375. :term:`USE_VT`
  7376. When using
  7377. :ref:`SysVinit <dev-manual/new-recipe:enabling system services>`,
  7378. determines whether or not to run a :wikipedia:`getty <Getty_(Unix)>`
  7379. on any virtual terminals in order to enable logging in through those
  7380. terminals.
  7381. The default value used for :term:`USE_VT` is "1" when no default value is
  7382. specifically set. Typically, you would set :term:`USE_VT` to "0" in the
  7383. machine configuration file for machines that do not have a graphical
  7384. display attached and therefore do not need virtual terminal
  7385. functionality.
  7386. :term:`USER_CLASSES`
  7387. A list of classes to globally inherit. These classes are used by the
  7388. OpenEmbedded build system to enable extra features.
  7389. The default list is set in your ``local.conf`` file::
  7390. USER_CLASSES ?= "buildstats"
  7391. For more information, see
  7392. ``meta-poky/conf/local.conf.sample`` in the :term:`Source Directory`.
  7393. :term:`USERADD_ERROR_DYNAMIC`
  7394. If set to ``error``, forces the OpenEmbedded build system to produce
  7395. an error if the user identification (``uid``) and group
  7396. identification (``gid``) values are not defined in any of the files
  7397. listed in :term:`USERADD_UID_TABLES` and
  7398. :term:`USERADD_GID_TABLES`. If set to
  7399. ``warn``, a warning will be issued instead.
  7400. The default behavior for the build system is to dynamically apply
  7401. ``uid`` and ``gid`` values. Consequently, the
  7402. :term:`USERADD_ERROR_DYNAMIC` variable is by default not set. If you plan
  7403. on using statically assigned ``gid`` and ``uid`` values, you should
  7404. set the :term:`USERADD_ERROR_DYNAMIC` variable in your ``local.conf``
  7405. file as follows::
  7406. USERADD_ERROR_DYNAMIC = "error"
  7407. Overriding the
  7408. default behavior implies you are going to also take steps to set
  7409. static ``uid`` and ``gid`` values through use of the
  7410. :term:`USERADDEXTENSION`,
  7411. :term:`USERADD_UID_TABLES`, and
  7412. :term:`USERADD_GID_TABLES` variables.
  7413. .. note::
  7414. There is a difference in behavior between setting
  7415. :term:`USERADD_ERROR_DYNAMIC` to ``error`` and setting it to ``warn``.
  7416. When it is set to ``warn``, the build system will report a warning for
  7417. every undefined ``uid`` and ``gid`` in any recipe. But when it is set
  7418. to ``error``, it will only report errors for recipes that are actually
  7419. built.
  7420. This saves you from having to add static IDs for recipes that you
  7421. know will never be built.
  7422. :term:`USERADD_GID_TABLES`
  7423. Specifies a password file to use for obtaining static group
  7424. identification (``gid``) values when the OpenEmbedded build system
  7425. adds a group to the system during package installation.
  7426. When applying static group identification (``gid``) values, the
  7427. OpenEmbedded build system looks in :term:`BBPATH` for a
  7428. ``files/group`` file and then applies those ``uid`` values. Set the
  7429. variable as follows in your ``local.conf`` file::
  7430. USERADD_GID_TABLES = "files/group"
  7431. .. note::
  7432. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  7433. causes the build system to use static ``gid`` values.
  7434. :term:`USERADD_PACKAGES`
  7435. When inheriting the :ref:`useradd <ref-classes-useradd>` class,
  7436. this variable specifies the individual packages within the recipe
  7437. that require users and/or groups to be added.
  7438. You must set this variable if the recipe inherits the class. For
  7439. example, the following enables adding a user for the main package in
  7440. a recipe::
  7441. USERADD_PACKAGES = "${PN}"
  7442. .. note::
  7443. It follows that if you are going to use the :term:`USERADD_PACKAGES`
  7444. variable, you need to set one or more of the :term:`USERADD_PARAM`,
  7445. :term:`GROUPADD_PARAM`, or :term:`GROUPMEMS_PARAM` variables.
  7446. :term:`USERADD_PARAM`
  7447. When inheriting the :ref:`useradd <ref-classes-useradd>` class,
  7448. this variable specifies for a package what parameters should pass to
  7449. the ``useradd`` command if you add a user to the system when the
  7450. package is installed.
  7451. Here is an example from the ``dbus`` recipe::
  7452. USERADD_PARAM:${PN} = "--system --home ${localstatedir}/lib/dbus \
  7453. --no-create-home --shell /bin/false \
  7454. --user-group messagebus"
  7455. For information on the
  7456. standard Linux shell command ``useradd``, see
  7457. https://linux.die.net/man/8/useradd.
  7458. :term:`USERADD_UID_TABLES`
  7459. Specifies a password file to use for obtaining static user
  7460. identification (``uid``) values when the OpenEmbedded build system
  7461. adds a user to the system during package installation.
  7462. When applying static user identification (``uid``) values, the
  7463. OpenEmbedded build system looks in :term:`BBPATH` for a
  7464. ``files/passwd`` file and then applies those ``uid`` values. Set the
  7465. variable as follows in your ``local.conf`` file::
  7466. USERADD_UID_TABLES = "files/passwd"
  7467. .. note::
  7468. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  7469. causes the build system to use static ``uid`` values.
  7470. :term:`USERADDEXTENSION`
  7471. When set to "useradd-staticids", causes the OpenEmbedded build system
  7472. to base all user and group additions on a static ``passwd`` and
  7473. ``group`` files found in :term:`BBPATH`.
  7474. To use static user identification (``uid``) and group identification
  7475. (``gid``) values, set the variable as follows in your ``local.conf``
  7476. file: USERADDEXTENSION = "useradd-staticids"
  7477. .. note::
  7478. Setting this variable to use static ``uid`` and ``gid``
  7479. values causes the OpenEmbedded build system to employ the
  7480. :ref:`ref-classes-useradd` class.
  7481. If you use static ``uid`` and ``gid`` information, you must also
  7482. specify the ``files/passwd`` and ``files/group`` files by setting the
  7483. :term:`USERADD_UID_TABLES` and
  7484. :term:`USERADD_GID_TABLES` variables.
  7485. Additionally, you should also set the
  7486. :term:`USERADD_ERROR_DYNAMIC` variable.
  7487. :term:`VIRTUAL-RUNTIME`
  7488. :term:`VIRTUAL-RUNTIME` is a commonly used prefix for defining virtual
  7489. packages for runtime usage, typically for use in :term:`RDEPENDS`
  7490. or in image definitions.
  7491. An example is ``VIRTUAL-RUNTIME_base-utils`` that makes it possible
  7492. to either use BusyBox based utilities::
  7493. VIRTUAL-RUNTIME_base-utils = "busybox"
  7494. or their full featured implementations from GNU Coreutils
  7495. and other projects::
  7496. VIRTUAL-RUNTIME_base-utils = "packagegroup-core-base-utils"
  7497. Here are two examples using this virtual runtime package. The
  7498. first one is in :yocto_git:`initramfs-framework_1.0.bb
  7499. </poky/tree/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb?h=scarthgap>`::
  7500. RDEPENDS:${PN} += "${VIRTUAL-RUNTIME_base-utils}"
  7501. The second example is in the :yocto_git:`core-image-initramfs-boot
  7502. </poky/tree/meta/recipes-core/images/core-image-initramfs-boot.bb?h=scarthgap>`
  7503. image definition::
  7504. PACKAGE_INSTALL = "${INITRAMFS_SCRIPTS} ${VIRTUAL-RUNTIME_base-utils} base-passwd"
  7505. :term:`VOLATILE_LOG_DIR`
  7506. Specifies the persistence of the target's ``/var/log`` directory,
  7507. which is used to house postinstall target log files.
  7508. By default, :term:`VOLATILE_LOG_DIR` is set to "yes", which means the
  7509. file is not persistent. You can override this setting by setting the
  7510. variable to "no" to make the log directory persistent.
  7511. :term:`WARN_QA`
  7512. Specifies the quality assurance checks whose failures are reported as
  7513. warnings by the OpenEmbedded build system. You set this variable in
  7514. your distribution configuration file. For a list of the checks you
  7515. can control with this variable, see the
  7516. ":ref:`ref-classes-insane`" section.
  7517. :term:`WIC_CREATE_EXTRA_ARGS`
  7518. If the :term:`IMAGE_FSTYPES` variable contains "wic", the build
  7519. will generate a
  7520. :ref:`Wic image <dev-manual/wic:creating partitioned images using wic>`
  7521. automatically when BitBake builds an image recipe. As part of
  7522. this process BitBake will invoke the "`wic create`" command. The
  7523. :term:`WIC_CREATE_EXTRA_ARGS` variable is placed at the end of this
  7524. command which allows the user to supply additional arguments.
  7525. One such useful purpose for this mechanism is to add the ``-D`` (or
  7526. ``--debug``) argument to the "`wic create`" command. This increases the
  7527. amount of debugging information written out to the Wic log during the
  7528. Wic creation process.
  7529. :term:`WKS_FILE`
  7530. Specifies the location of the Wic kickstart file that is used by the
  7531. OpenEmbedded build system to create a partitioned image
  7532. (``image.wic``). For information on how to create a partitioned
  7533. image, see the
  7534. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  7535. section in the Yocto Project Development Tasks Manual. For details on
  7536. the kickstart file format, see the ":doc:`/ref-manual/kickstart`" Chapter.
  7537. :term:`WKS_FILE_DEPENDS`
  7538. When placed in the recipe that builds your image, this variable lists
  7539. build-time dependencies. The :term:`WKS_FILE_DEPENDS` variable is only
  7540. applicable when Wic images are active (i.e. when
  7541. :term:`IMAGE_FSTYPES` contains entries related
  7542. to Wic). If your recipe does not create Wic images, the variable has
  7543. no effect.
  7544. The :term:`WKS_FILE_DEPENDS` variable is similar to the
  7545. :term:`DEPENDS` variable. When you use the variable in
  7546. your recipe that builds the Wic image, dependencies you list in the
  7547. :term:`WKS_FILE_DEPENDS` variable are added to the :term:`DEPENDS` variable.
  7548. With the :term:`WKS_FILE_DEPENDS` variable, you have the possibility to
  7549. specify a list of additional dependencies (e.g. native tools,
  7550. bootloaders, and so forth), that are required to build Wic images.
  7551. Here is an example::
  7552. WKS_FILE_DEPENDS = "some-native-tool"
  7553. In the
  7554. previous example, some-native-tool would be replaced with an actual
  7555. native tool on which the build would depend.
  7556. :term:`WKS_FILES`
  7557. Specifies a list of candidate Wic kickstart files to be used by the
  7558. OpenEmbedded build system to create a partitioned image. Only the
  7559. first one that is found, from left to right, will be used.
  7560. This is only useful when there are multiple ``.wks`` files that can be
  7561. used to produce an image. A typical case is when multiple layers are
  7562. used for different hardware platforms, each supplying a different
  7563. ``.wks`` file. In this case, you specify all possible ones through
  7564. :term:`WKS_FILES`.
  7565. If only one ``.wks`` file is used, set :term:`WKS_FILE` instead.
  7566. :term:`WORKDIR`
  7567. The pathname of the work directory in which the OpenEmbedded build
  7568. system builds a recipe. This directory is located within the
  7569. :term:`TMPDIR` directory structure and is specific to
  7570. the recipe being built and the system for which it is being built.
  7571. The :term:`WORKDIR` directory is defined as follows::
  7572. ${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}
  7573. The actual directory depends on several things:
  7574. - :term:`TMPDIR`: The top-level build output directory
  7575. - :term:`MULTIMACH_TARGET_SYS`: The target system identifier
  7576. - :term:`PN`: The recipe name
  7577. - :term:`EXTENDPE`: The epoch --- if :term:`PE` is not specified, which
  7578. is usually the case for most recipes, then `EXTENDPE` is blank.
  7579. - :term:`PV`: The recipe version
  7580. - :term:`PR`: The recipe revision
  7581. As an example, assume a Source Directory top-level folder name
  7582. ``poky``, a default Build Directory at ``poky/build``, and a
  7583. ``qemux86-poky-linux`` machine target system. Furthermore, suppose
  7584. your recipe is named ``foo_1.3.0-r0.bb``. In this case, the work
  7585. directory the build system uses to build the package would be as
  7586. follows::
  7587. poky/build/tmp/work/qemux86-poky-linux/foo/1.3.0-r0
  7588. :term:`XSERVER`
  7589. Specifies the packages that should be installed to provide an X
  7590. server and drivers for the current machine, assuming your image
  7591. directly includes ``packagegroup-core-x11-xserver`` or, perhaps
  7592. indirectly, includes "x11-base" in
  7593. :term:`IMAGE_FEATURES`.
  7594. The default value of :term:`XSERVER`, if not specified in the machine
  7595. configuration, is "xserver-xorg xf86-video-fbdev xf86-input-evdev".
  7596. :term:`XZ_THREADS`
  7597. Specifies the number of parallel threads that should be used when
  7598. using xz compression.
  7599. By default this scales with core count, but is never set less than 2
  7600. to ensure that multi-threaded mode is always used so that the output
  7601. file contents are deterministic. Builds will work with a value of 1
  7602. but the output will differ compared to the output from the compression
  7603. generated when more than one thread is used.
  7604. On systems where many tasks run in parallel, setting a limit to this
  7605. can be helpful in controlling system resource usage.
  7606. :term:`XZ_MEMLIMIT`
  7607. Specifies the maximum memory the xz compression should use as a percentage
  7608. of system memory. If unconstrained the xz compressor can use large amounts of
  7609. memory and become problematic with parallelism elsewhere in the build.
  7610. "50%" has been found to be a good value.
  7611. :term:`ZSTD_THREADS`
  7612. Specifies the number of parallel threads that should be used when
  7613. using ZStandard compression.
  7614. By default this scales with core count, but is never set less than 2
  7615. to ensure that multi-threaded mode is always used so that the output
  7616. file contents are deterministic. Builds will work with a value of 1
  7617. but the output will differ compared to the output from the compression
  7618. generated when more than one thread is used.
  7619. On systems where many tasks run in parallel, setting a limit to this
  7620. can be helpful in controlling system resource usage.