variables.rst 416 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711
  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_DESC`
  2189. Specifies the description string encoded into a fitImage. The default
  2190. value is set by the :ref:`kernel-fitimage <ref-classes-kernel-fitimage>`
  2191. class as follows::
  2192. FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
  2193. :term:`FIT_GENERATE_KEYS`
  2194. Decides whether to generate the keys for signing fitImage if they
  2195. don't already exist. The keys are created in :term:`UBOOT_SIGN_KEYDIR`.
  2196. The default value is 0.
  2197. :term:`FIT_HASH_ALG`
  2198. Specifies the hash algorithm used in creating the FIT Image. For e.g. sha256.
  2199. :term:`FIT_KERNEL_COMP_ALG`
  2200. Compression algorithm to use for the kernel image inside the FIT Image.
  2201. At present, the only supported values are "gzip" (default) or "none"
  2202. If you set this variable to anything other than "none" you may also need
  2203. to set :term:`FIT_KERNEL_COMP_ALG_EXTENSION`.
  2204. :term:`FIT_KERNEL_COMP_ALG_EXTENSION`
  2205. File extension corresponding to :term:`FIT_KERNEL_COMP_ALG`. The default
  2206. value is ".gz".
  2207. :term:`FIT_KEY_GENRSA_ARGS`
  2208. Arguments to openssl genrsa for generating RSA private key for signing
  2209. fitImage. The default value is "-F4". i.e. the public exponent 65537 to
  2210. use.
  2211. :term:`FIT_KEY_REQ_ARGS`
  2212. Arguments to openssl req for generating certificate for signing fitImage.
  2213. The default value is "-batch -new". batch for non interactive mode
  2214. and new for generating new keys.
  2215. :term:`FIT_KEY_SIGN_PKCS`
  2216. Format for public key certificate used in signing fitImage.
  2217. The default value is "x509".
  2218. :term:`FIT_SIGN_ALG`
  2219. Specifies the signature algorithm used in creating the FIT Image.
  2220. For e.g. rsa2048.
  2221. :term:`FIT_SIGN_INDIVIDUAL`
  2222. If set to "1", then the :ref:`kernel-fitimage <ref-classes-kernel-fitimage>`
  2223. class will sign the kernel, dtb and ramdisk images individually in addition
  2224. to signing the fitImage itself. This could be useful if you are
  2225. intending to verify signatures in another context than booting via
  2226. U-Boot.
  2227. :term:`FIT_SIGN_NUMBITS`
  2228. Size of private key in number of bits used in fitImage. The default
  2229. value is "2048".
  2230. :term:`FONT_EXTRA_RDEPENDS`
  2231. When inheriting the :ref:`fontcache <ref-classes-fontcache>` class,
  2232. this variable specifies the runtime dependencies for font packages.
  2233. By default, the :term:`FONT_EXTRA_RDEPENDS` is set to "fontconfig-utils".
  2234. :term:`FONT_PACKAGES`
  2235. When inheriting the :ref:`fontcache <ref-classes-fontcache>` class,
  2236. this variable identifies packages containing font files that need to
  2237. be cached by Fontconfig. By default, the :ref:`fontcache <ref-classes-fontcache>` class assumes
  2238. that fonts are in the recipe's main package (i.e.
  2239. ``${``\ :term:`PN`\ ``}``). Use this variable if fonts you
  2240. need are in a package other than that main package.
  2241. :term:`FORCE_RO_REMOVE`
  2242. Forces the removal of the packages listed in ``ROOTFS_RO_UNNEEDED``
  2243. during the generation of the root filesystem.
  2244. Set the variable to "1" to force the removal of these packages.
  2245. :term:`FULL_OPTIMIZATION`
  2246. The options to pass in :term:`TARGET_CFLAGS` and :term:`CFLAGS` when
  2247. compiling an optimized system. This variable defaults to "-O2 -pipe
  2248. ${DEBUG_FLAGS}".
  2249. :term:`GCCPIE`
  2250. Enables Position Independent Executables (PIE) within the GNU C
  2251. Compiler (GCC). Enabling PIE in the GCC makes Return Oriented
  2252. Programming (ROP) attacks much more difficult to execute.
  2253. By default the ``security_flags.inc`` file enables PIE by setting the
  2254. variable as follows::
  2255. GCCPIE ?= "--enable-default-pie"
  2256. :term:`GCCVERSION`
  2257. Specifies the default version of the GNU C Compiler (GCC) used for
  2258. compilation. By default, :term:`GCCVERSION` is set to "8.x" in the
  2259. ``meta/conf/distro/include/tcmode-default.inc`` include file::
  2260. GCCVERSION ?= "8.%"
  2261. You can override this value by setting it in a
  2262. configuration file such as the ``local.conf``.
  2263. :term:`GDB`
  2264. The minimal command and arguments to run the GNU Debugger.
  2265. :term:`GIR_EXTRA_LIBS_PATH`
  2266. Allows to specify an extra search path for ``.so`` files
  2267. in GLib related recipes using GObject introspection,
  2268. and which do not compile without this setting.
  2269. See the ":ref:`dev-manual/gobject-introspection:enabling gobject introspection support`"
  2270. section for details.
  2271. :term:`GITDIR`
  2272. The directory in which a local copy of a Git repository is stored
  2273. when it is cloned.
  2274. :term:`GLIBC_GENERATE_LOCALES`
  2275. Specifies the list of GLIBC locales to generate should you not wish
  2276. to generate all LIBC locals, which can be time consuming.
  2277. .. note::
  2278. If you specifically remove the locale ``en_US.UTF-8``, you must set
  2279. :term:`IMAGE_LINGUAS` appropriately.
  2280. You can set :term:`GLIBC_GENERATE_LOCALES` in your ``local.conf`` file.
  2281. By default, all locales are generated.
  2282. ::
  2283. GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 en_US.UTF-8"
  2284. :term:`GO_IMPORT`
  2285. When inheriting the :ref:`ref-classes-go` class, this mandatory variable
  2286. sets the import path for the Go package that will be created for the code
  2287. to build. If you have a ``go.mod`` file in the source directory, this
  2288. typically matches the path in the ``module`` line in this file.
  2289. Other Go programs importing this package will use this path.
  2290. Here is an example setting from the
  2291. :yocto_git:`go-helloworld_0.1.bb </poky/tree/meta/recipes-extended/go-examples/go-helloworld_0.1.bb>`
  2292. recipe::
  2293. GO_IMPORT = "golang.org/x/example"
  2294. :term:`GO_INSTALL`
  2295. When inheriting the :ref:`ref-classes-go` class, this optional variable
  2296. specifies which packages in the sources should be compiled and
  2297. installed in the Go build space by the
  2298. `go install <https://go.dev/ref/mod#go-install>`__ command.
  2299. Here is an example setting from the
  2300. :oe_git:`crucible </meta-openembedded/tree/meta-oe/recipes-support/crucible/>`
  2301. recipe::
  2302. GO_INSTALL = "\
  2303. ${GO_IMPORT}/cmd/crucible \
  2304. ${GO_IMPORT}/cmd/habtool \
  2305. "
  2306. By default, :term:`GO_INSTALL` is defined as::
  2307. GO_INSTALL ?= "${GO_IMPORT}/..."
  2308. The ``...`` wildcard means that it will catch all
  2309. packages found in the sources.
  2310. See the :term:`GO_INSTALL_FILTEROUT` variable for
  2311. filtering out unwanted packages from the ones
  2312. found from the :term:`GO_INSTALL` value.
  2313. :term:`GO_INSTALL_FILTEROUT`
  2314. When using the Go "vendor" mechanism to bring in dependencies for a Go
  2315. package, the default :term:`GO_INSTALL` setting, which uses the ``...``
  2316. wildcard, will include the vendored packages in the build, which produces
  2317. incorrect results.
  2318. There are also some Go packages that are structured poorly, so that the
  2319. ``...`` wildcard results in building example or test code that should not
  2320. be included in the build, or could fail to build.
  2321. This optional variable allows for filtering out a subset of the sources.
  2322. It defaults to excluding everything under the ``vendor`` subdirectory
  2323. under package's main directory. This is the normal location for vendored
  2324. packages, but it can be overridden by a recipe to filter out other
  2325. subdirectories if needed.
  2326. :term:`GO_WORKDIR`
  2327. When using Go Modules, the current working directory must be the directory
  2328. containing the ``go.mod`` file, or one of its subdirectories. When the
  2329. ``go`` tool is used, it will automatically look for the ``go.mod`` file
  2330. in the Go working directory or in any parent directory, but not in
  2331. subdirectories.
  2332. When using the :ref:`ref-classes-go-mod` class to use Go modules,
  2333. the optional :term:`GO_WORKDIR` variable, defaulting to the value
  2334. of :term:`GO_IMPORT`, allows to specify a different Go working directory.
  2335. :term:`GROUPADD_PARAM`
  2336. When inheriting the :ref:`useradd <ref-classes-useradd>` class,
  2337. this variable specifies for a package what parameters should be
  2338. passed to the ``groupadd`` command if you wish to add a group to the
  2339. system when the package is installed.
  2340. Here is an example from the ``dbus`` recipe::
  2341. GROUPADD_PARAM:${PN} = "-r netdev"
  2342. More than one group can be added by separating each set of different
  2343. groups' parameters with a semicolon.
  2344. Here is an example adding multiple groups from the ``useradd-example.bb``
  2345. file in the ``meta-skeleton`` layer::
  2346. GROUPADD_PARAM:${PN} = "-g 880 group1; -g 890 group2"
  2347. For information on the standard Linux shell command
  2348. ``groupadd``, see https://linux.die.net/man/8/groupadd.
  2349. :term:`GROUPMEMS_PARAM`
  2350. When inheriting the :ref:`useradd <ref-classes-useradd>` class,
  2351. this variable specifies for a package what parameters should be
  2352. passed to the ``groupmems`` command if you wish to modify the members
  2353. of a group when the package is installed.
  2354. For information on the standard Linux shell command ``groupmems``,
  2355. see https://linux.die.net/man/8/groupmems.
  2356. :term:`GRUB_GFXSERIAL`
  2357. Configures the GNU GRand Unified Bootloader (GRUB) to have graphics
  2358. and serial in the boot menu. Set this variable to "1" in your
  2359. ``local.conf`` or distribution configuration file to enable graphics
  2360. and serial in the menu.
  2361. See the :ref:`grub-efi <ref-classes-grub-efi>` class for more
  2362. information on how this variable is used.
  2363. :term:`GRUB_OPTS`
  2364. Additional options to add to the GNU GRand Unified Bootloader (GRUB)
  2365. configuration. Use a semi-colon character (``;``) to separate
  2366. multiple options.
  2367. The :term:`GRUB_OPTS` variable is optional. See the
  2368. :ref:`grub-efi <ref-classes-grub-efi>` class for more information
  2369. on how this variable is used.
  2370. :term:`GRUB_TIMEOUT`
  2371. Specifies the timeout before executing the default ``LABEL`` in the
  2372. GNU GRand Unified Bootloader (GRUB).
  2373. The :term:`GRUB_TIMEOUT` variable is optional. See the
  2374. :ref:`grub-efi <ref-classes-grub-efi>` class for more information
  2375. on how this variable is used.
  2376. :term:`GTKIMMODULES_PACKAGES`
  2377. When inheriting the
  2378. :ref:`gtk-immodules-cache <ref-classes-gtk-immodules-cache>` class,
  2379. this variable specifies the packages that contain the GTK+ input
  2380. method modules being installed when the modules are in packages other
  2381. than the main package.
  2382. :term:`HOMEPAGE`
  2383. Website where more information about the software the recipe is
  2384. building can be found.
  2385. :term:`HOST_ARCH`
  2386. The name of the target architecture, which is normally the same as
  2387. :term:`TARGET_ARCH`. The OpenEmbedded build system
  2388. supports many architectures. Here is an example list of architectures
  2389. supported. This list is by no means complete as the architecture is
  2390. configurable:
  2391. - arm
  2392. - i586
  2393. - x86_64
  2394. - powerpc
  2395. - powerpc64
  2396. - mips
  2397. - mipsel
  2398. :term:`HOST_CC_ARCH`
  2399. Specifies architecture-specific compiler flags that are passed to the
  2400. C compiler.
  2401. Default initialization for :term:`HOST_CC_ARCH` varies depending on what
  2402. is being built:
  2403. - :term:`TARGET_CC_ARCH` when building for the
  2404. target
  2405. - :term:`BUILD_CC_ARCH` when building for the build host (i.e.
  2406. ``-native``)
  2407. - ``BUILDSDK_CC_ARCH`` when building for an SDK (i.e.
  2408. ``nativesdk-``)
  2409. :term:`HOST_OS`
  2410. Specifies the name of the target operating system, which is normally
  2411. the same as the :term:`TARGET_OS`. The variable can
  2412. be set to "linux" for ``glibc``-based systems and to "linux-musl" for
  2413. ``musl``. For ARM/EABI targets, there are also "linux-gnueabi" and
  2414. "linux-musleabi" values possible.
  2415. :term:`HOST_PREFIX`
  2416. Specifies the prefix for the cross-compile toolchain. :term:`HOST_PREFIX`
  2417. is normally the same as :term:`TARGET_PREFIX`.
  2418. :term:`HOST_SYS`
  2419. Specifies the system, including the architecture and the operating
  2420. system, for which the build is occurring in the context of the
  2421. current recipe.
  2422. The OpenEmbedded build system automatically sets this variable based
  2423. on :term:`HOST_ARCH`,
  2424. :term:`HOST_VENDOR`, and
  2425. :term:`HOST_OS` variables.
  2426. .. note::
  2427. You do not need to set the variable yourself.
  2428. Consider these two examples:
  2429. - Given a native recipe on a 32-bit x86 machine running Linux, the
  2430. value is "i686-linux".
  2431. - Given a recipe being built for a little-endian MIPS target running
  2432. Linux, the value might be "mipsel-linux".
  2433. :term:`HOST_VENDOR`
  2434. Specifies the name of the vendor. :term:`HOST_VENDOR` is normally the
  2435. same as :term:`TARGET_VENDOR`.
  2436. :term:`HOSTTOOLS`
  2437. A space-separated list (filter) of tools on the build host that
  2438. should be allowed to be called from within build tasks. Using this
  2439. filter helps reduce the possibility of host contamination. If a tool
  2440. specified in the value of :term:`HOSTTOOLS` is not found on the build
  2441. host, the OpenEmbedded build system produces an error and the build
  2442. is not started.
  2443. For additional information, see
  2444. :term:`HOSTTOOLS_NONFATAL`.
  2445. :term:`HOSTTOOLS_NONFATAL`
  2446. A space-separated list (filter) of tools on the build host that
  2447. should be allowed to be called from within build tasks. Using this
  2448. filter helps reduce the possibility of host contamination. Unlike
  2449. :term:`HOSTTOOLS`, the OpenEmbedded build system
  2450. does not produce an error if a tool specified in the value of
  2451. :term:`HOSTTOOLS_NONFATAL` is not found on the build host. Thus, you can
  2452. use :term:`HOSTTOOLS_NONFATAL` to filter optional host tools.
  2453. :term:`ICECC_CLASS_DISABLE`
  2454. Identifies user classes that you do not want the Icecream distributed
  2455. compile support to consider. This variable is used by the
  2456. :ref:`icecc <ref-classes-icecc>` class. You set this variable in
  2457. your ``local.conf`` file.
  2458. When you list classes using this variable, the recipes inheriting
  2459. those classes will not benefit from distributed compilation across
  2460. remote hosts. Instead they will be built locally.
  2461. :term:`ICECC_DISABLED`
  2462. Disables or enables the ``icecc`` (Icecream) function. For more
  2463. information on this function and best practices for using this
  2464. variable, see the ":ref:`ref-classes-icecc`"
  2465. section.
  2466. Setting this variable to "1" in your ``local.conf`` disables the
  2467. function::
  2468. ICECC_DISABLED ??= "1"
  2469. To enable the function, set the variable as follows::
  2470. ICECC_DISABLED = ""
  2471. :term:`ICECC_ENV_EXEC`
  2472. Points to the ``icecc-create-env`` script that you provide. This
  2473. variable is used by the :ref:`icecc <ref-classes-icecc>` class. You
  2474. set this variable in your ``local.conf`` file.
  2475. If you do not point to a script that you provide, the OpenEmbedded
  2476. build system uses the default script provided by the
  2477. ``icecc-create-env.bb`` recipe, which is a modified version and not
  2478. the one that comes with ``icecc``.
  2479. :term:`ICECC_PARALLEL_MAKE`
  2480. Extra options passed to the ``make`` command during the
  2481. :ref:`ref-tasks-compile` task that specify parallel
  2482. compilation. This variable usually takes the form of "-j x", where x
  2483. represents the maximum number of parallel threads ``make`` can run.
  2484. .. note::
  2485. The options passed affect builds on all enabled machines on the
  2486. network, which are machines running the ``iceccd`` daemon.
  2487. If your enabled machines support multiple cores, coming up with the
  2488. maximum number of parallel threads that gives you the best
  2489. performance could take some experimentation since machine speed,
  2490. network lag, available memory, and existing machine loads can all
  2491. affect build time. Consequently, unlike the
  2492. :term:`PARALLEL_MAKE` variable, there is no
  2493. rule-of-thumb for setting :term:`ICECC_PARALLEL_MAKE` to achieve optimal
  2494. performance.
  2495. If you do not set :term:`ICECC_PARALLEL_MAKE`, the build system does not
  2496. use it (i.e. the system does not detect and assign the number of
  2497. cores as is done with :term:`PARALLEL_MAKE`).
  2498. :term:`ICECC_PATH`
  2499. The location of the ``icecc`` binary. You can set this variable in
  2500. your ``local.conf`` file. If your ``local.conf`` file does not define
  2501. this variable, the :ref:`icecc <ref-classes-icecc>` class attempts
  2502. to define it by locating ``icecc`` using ``which``.
  2503. :term:`ICECC_RECIPE_DISABLE`
  2504. Identifies user recipes that you do not want the Icecream distributed
  2505. compile support to consider. This variable is used by the
  2506. :ref:`icecc <ref-classes-icecc>` class. You set this variable in
  2507. your ``local.conf`` file.
  2508. When you list recipes using this variable, you are excluding them
  2509. from distributed compilation across remote hosts. Instead they will
  2510. be built locally.
  2511. :term:`ICECC_RECIPE_ENABLE`
  2512. Identifies user recipes that use an empty
  2513. :term:`PARALLEL_MAKE` variable that you want to
  2514. force remote distributed compilation on using the Icecream
  2515. distributed compile support. This variable is used by the
  2516. :ref:`icecc <ref-classes-icecc>` class. You set this variable in
  2517. your ``local.conf`` file.
  2518. :term:`IMAGE_BASENAME`
  2519. The base name of image output files. This variable defaults to the
  2520. recipe name (``${``\ :term:`PN`\ ``}``).
  2521. :term:`IMAGE_BOOT_FILES`
  2522. A space-separated list of files installed into the boot partition
  2523. when preparing an image using the Wic tool with the
  2524. ``bootimg-partition`` source plugin. By default,
  2525. the files are
  2526. installed under the same name as the source files. To change the
  2527. installed name, separate it from the original name with a semi-colon
  2528. (;). Source files need to be located in
  2529. :term:`DEPLOY_DIR_IMAGE`. Here are two
  2530. examples::
  2531. IMAGE_BOOT_FILES = "u-boot.img uImage;kernel"
  2532. IMAGE_BOOT_FILES = "u-boot.${UBOOT_SUFFIX} ${KERNEL_IMAGETYPE}"
  2533. Alternatively, source files can be picked up using a glob pattern. In
  2534. this case, the destination file must have the same name as the base
  2535. name of the source file path. To install files into a directory
  2536. within the target location, pass its name after a semi-colon (;).
  2537. Here are two examples::
  2538. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*"
  2539. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*;boot/"
  2540. The first example
  2541. installs all files from ``${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles``
  2542. into the root of the target partition. The second example installs
  2543. the same files into a ``boot`` directory within the target partition.
  2544. You can find information on how to use the Wic tool in the
  2545. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  2546. section of the Yocto Project Development Tasks Manual. Reference
  2547. material for Wic is located in the
  2548. ":doc:`/ref-manual/kickstart`" chapter.
  2549. :term:`IMAGE_BUILDINFO_FILE`
  2550. When using the :ref:`ref-classes-image-buildinfo` class,
  2551. specifies the file in the image to write the build information into. The
  2552. default value is "``${sysconfdir}/buildinfo``".
  2553. :term:`IMAGE_BUILDINFO_VARS`
  2554. When using the :ref:`ref-classes-image-buildinfo` class,
  2555. specifies the list of variables to include in the `Build Configuration`
  2556. section of the output file (as a space-separated list). Defaults to
  2557. ":term:`DISTRO` :term:`DISTRO_VERSION`".
  2558. :term:`IMAGE_CLASSES`
  2559. A list of classes that all images should inherit. This is typically used
  2560. to enable functionality across all image recipes.
  2561. Classes specified in :term:`IMAGE_CLASSES` must be located in the
  2562. ``classes-recipe/`` or ``classes/`` subdirectories.
  2563. :term:`IMAGE_CMD`
  2564. Specifies the command to create the image file for a specific image
  2565. type, which corresponds to the value set in
  2566. :term:`IMAGE_FSTYPES`, (e.g. ``ext3``,
  2567. ``btrfs``, and so forth). When setting this variable, you should use
  2568. an override for the associated type. Here is an example::
  2569. IMAGE_CMD:jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime \
  2570. --output=${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.jffs2 \
  2571. ${EXTRA_IMAGECMD}"
  2572. You typically do not need to set this variable unless you are adding
  2573. support for a new image type. For more examples on how to set this
  2574. variable, see the :ref:`image_types <ref-classes-image_types>`
  2575. class file, which is ``meta/classes/image_types.bbclass``.
  2576. :term:`IMAGE_DEVICE_TABLES`
  2577. Specifies one or more files that contain custom device tables that
  2578. are passed to the ``makedevs`` command as part of creating an image.
  2579. These files list basic device nodes that should be created under
  2580. ``/dev`` within the image. If :term:`IMAGE_DEVICE_TABLES` is not set,
  2581. ``files/device_table-minimal.txt`` is used, which is located by
  2582. :term:`BBPATH`. For details on how you should write
  2583. device table files, see ``meta/files/device_table-minimal.txt`` as an
  2584. example.
  2585. :term:`IMAGE_EFI_BOOT_FILES`
  2586. A space-separated list of files installed into the boot partition
  2587. when preparing an image using the Wic tool with the
  2588. ``bootimg-efi`` source plugin. By default,
  2589. the files are
  2590. installed under the same name as the source files. To change the
  2591. installed name, separate it from the original name with a semi-colon
  2592. (;). Source files need to be located in
  2593. :term:`DEPLOY_DIR_IMAGE`. Here are two
  2594. examples::
  2595. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE};bz2"
  2596. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE} microcode.cpio"
  2597. Alternatively, source files can be picked up using a glob pattern. In
  2598. this case, the destination file must have the same name as the base
  2599. name of the source file path. To install files into a directory
  2600. within the target location, pass its name after a semi-colon (;).
  2601. Here are two examples::
  2602. IMAGE_EFI_BOOT_FILES = "boot/loader/*"
  2603. IMAGE_EFI_BOOT_FILES = "boot/loader/*;boot/"
  2604. The first example
  2605. installs all files from ``${DEPLOY_DIR_IMAGE}/boot/loader/``
  2606. into the root of the target partition. The second example installs
  2607. the same files into a ``boot`` directory within the target partition.
  2608. You can find information on how to use the Wic tool in the
  2609. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  2610. section of the Yocto Project Development Tasks Manual. Reference
  2611. material for Wic is located in the
  2612. ":doc:`/ref-manual/kickstart`" chapter.
  2613. :term:`IMAGE_FEATURES`
  2614. The primary list of features to include in an image. Typically, you
  2615. configure this variable in an image recipe. Although you can use this
  2616. variable from your ``local.conf`` file, which is found in the
  2617. :term:`Build Directory`, best practices dictate that you do
  2618. not.
  2619. .. note::
  2620. To enable extra features from outside the image recipe, use the
  2621. :term:`EXTRA_IMAGE_FEATURES` variable.
  2622. For a list of image features that ships with the Yocto Project, see
  2623. the ":ref:`ref-features-image`" section.
  2624. For an example that shows how to customize your image by using this
  2625. variable, see the ":ref:`dev-manual/customizing-images:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  2626. section in the Yocto Project Development Tasks Manual.
  2627. :term:`IMAGE_FSTYPES`
  2628. Specifies the formats the OpenEmbedded build system uses during the
  2629. build when creating the root filesystem. For example, setting
  2630. :term:`IMAGE_FSTYPES` as follows causes the build system to create root
  2631. filesystems using two formats: ``.ext3`` and ``.tar.bz2``::
  2632. IMAGE_FSTYPES = "ext3 tar.bz2"
  2633. For the complete list of supported image formats from which you can
  2634. choose, see :term:`IMAGE_TYPES`.
  2635. .. note::
  2636. - If an image recipe uses the "inherit image" line and you are
  2637. setting :term:`IMAGE_FSTYPES` inside the recipe, you must set
  2638. :term:`IMAGE_FSTYPES` prior to using the "inherit image" line.
  2639. - Due to the way the OpenEmbedded build system processes this
  2640. variable, you cannot update its contents by using ``:append``
  2641. or ``:prepend``. You must use the ``+=`` operator to add one or
  2642. more options to the :term:`IMAGE_FSTYPES` variable.
  2643. :term:`IMAGE_INSTALL`
  2644. Used by recipes to specify the packages to install into an image
  2645. through the :ref:`image <ref-classes-image>` class. Use the
  2646. :term:`IMAGE_INSTALL` variable with care to avoid ordering issues.
  2647. Image recipes set :term:`IMAGE_INSTALL` to specify the packages to
  2648. install into an image through :ref:`ref-classes-image`. Additionally,
  2649. there are "helper" classes such as the
  2650. :ref:`core-image <ref-classes-core-image>` class which can
  2651. take lists used with :term:`IMAGE_FEATURES` and turn them into
  2652. auto-generated entries in :term:`IMAGE_INSTALL` in addition to its
  2653. default contents.
  2654. When you use this variable, it is best to use it as follows::
  2655. IMAGE_INSTALL:append = " package-name"
  2656. Be sure to include the space
  2657. between the quotation character and the start of the package name or
  2658. names.
  2659. .. note::
  2660. - When working with a
  2661. :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  2662. image, do not use the :term:`IMAGE_INSTALL` variable to specify
  2663. packages for installation. Instead, use the
  2664. :term:`PACKAGE_INSTALL` variable, which
  2665. allows the initial RAM filesystem (initramfs) recipe to use a
  2666. fixed set of packages and not be affected by :term:`IMAGE_INSTALL`.
  2667. For information on creating an :term:`Initramfs`, see the
  2668. ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`"
  2669. section in the Yocto Project Development Tasks Manual.
  2670. - Using :term:`IMAGE_INSTALL` with the
  2671. :ref:`+= <bitbake:bitbake-user-manual/bitbake-user-manual-metadata:appending (+=) and prepending (=+) with spaces>`
  2672. BitBake operator within the ``/conf/local.conf`` file or from
  2673. within an image recipe is not recommended. Use of this operator
  2674. in these ways can cause ordering issues. Since
  2675. :ref:`ref-classes-core-image` sets :term:`IMAGE_INSTALL` to a default
  2676. value using the
  2677. :ref:`?= <bitbake:bitbake-user-manual/bitbake-user-manual-metadata:setting a default value (?=)>`
  2678. operator, using a ``+=`` operation against :term:`IMAGE_INSTALL`
  2679. results in unexpected behavior when used within
  2680. ``conf/local.conf``. Furthermore, the same operation from
  2681. within an image recipe may or may not succeed depending on the
  2682. specific situation. In both these cases, the behavior is
  2683. contrary to how most users expect the ``+=`` operator to work.
  2684. :term:`IMAGE_LINGUAS`
  2685. Specifies the list of locales to install into the image during the
  2686. root filesystem construction process. The OpenEmbedded build system
  2687. automatically splits locale files, which are used for localization,
  2688. into separate packages. Setting the :term:`IMAGE_LINGUAS` variable
  2689. ensures that any locale packages that correspond to packages already
  2690. selected for installation into the image are also installed. Here is
  2691. an example::
  2692. IMAGE_LINGUAS = "pt-br de-de"
  2693. In this example, the build system ensures any Brazilian Portuguese
  2694. and German locale files that correspond to packages in the image are
  2695. installed (i.e. ``*-locale-pt-br`` and ``*-locale-de-de`` as well as
  2696. ``*-locale-pt`` and ``*-locale-de``, since some software packages
  2697. only provide locale files by language and not by country-specific
  2698. language).
  2699. See the :term:`GLIBC_GENERATE_LOCALES`
  2700. variable for information on generating GLIBC locales.
  2701. :term:`IMAGE_LINK_NAME`
  2702. The name of the output image symlink (which does not include
  2703. the version part as :term:`IMAGE_NAME` does). The default value
  2704. is derived using the :term:`IMAGE_BASENAME` and :term:`MACHINE`
  2705. variables::
  2706. IMAGE_LINK_NAME ?= "${IMAGE_BASENAME}-${MACHINE}"
  2707. :term:`IMAGE_MANIFEST`
  2708. The manifest file for the image. This file lists all the installed
  2709. packages that make up the image. The file contains package
  2710. information on a line-per-package basis as follows::
  2711. packagename packagearch version
  2712. The :ref:`rootfs-postcommands <ref-classes-rootfs*>` class defines the manifest
  2713. file as follows::
  2714. IMAGE_MANIFEST ="${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.manifest"
  2715. The location is
  2716. derived using the :term:`IMGDEPLOYDIR`
  2717. and :term:`IMAGE_NAME` variables. You can find
  2718. information on how the image is created in the ":ref:`overview-manual/concepts:image generation`"
  2719. section in the Yocto Project Overview and Concepts Manual.
  2720. :term:`IMAGE_NAME`
  2721. The name of the output image files minus the extension. This variable
  2722. is derived using the :term:`IMAGE_BASENAME`,
  2723. :term:`MACHINE`, and :term:`IMAGE_VERSION_SUFFIX`
  2724. variables::
  2725. IMAGE_NAME ?= "${IMAGE_BASENAME}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  2726. :term:`IMAGE_NAME_SUFFIX`
  2727. Suffix used for the image output filename --- defaults to ``".rootfs"``
  2728. to distinguish the image file from other files created during image
  2729. building; however if this suffix is redundant or not desired you can
  2730. clear the value of this variable (set the value to ""). For example,
  2731. this is typically cleared in initramfs image recipes.
  2732. :term:`IMAGE_OVERHEAD_FACTOR`
  2733. Defines a multiplier that the build system applies to the initial
  2734. image size for cases when the multiplier times the returned disk
  2735. usage value for the image is greater than the sum of
  2736. :term:`IMAGE_ROOTFS_SIZE` and :term:`IMAGE_ROOTFS_EXTRA_SPACE`. The result of
  2737. the multiplier applied to the initial image size creates free disk
  2738. space in the image as overhead. By default, the build process uses a
  2739. multiplier of 1.3 for this variable. This default value results in
  2740. 30% free disk space added to the image when this method is used to
  2741. determine the final generated image size. You should be aware that
  2742. post install scripts and the package management system uses disk
  2743. space inside this overhead area. Consequently, the multiplier does
  2744. not produce an image with all the theoretical free disk space. See
  2745. :term:`IMAGE_ROOTFS_SIZE` for information on how the build system
  2746. determines the overall image size.
  2747. The default 30% free disk space typically gives the image enough room
  2748. to boot and allows for basic post installs while still leaving a
  2749. small amount of free disk space. If 30% free space is inadequate, you
  2750. can increase the default value. For example, the following setting
  2751. gives you 50% free space added to the image::
  2752. IMAGE_OVERHEAD_FACTOR = "1.5"
  2753. Alternatively, you can ensure a specific amount of free disk space is
  2754. added to the image by using the :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  2755. variable.
  2756. :term:`IMAGE_PKGTYPE`
  2757. Defines the package type (i.e. DEB, RPM, IPK, or TAR) used by the
  2758. OpenEmbedded build system. The variable is defined appropriately by
  2759. the :ref:`package_deb <ref-classes-package_deb>`,
  2760. :ref:`package_rpm <ref-classes-package_rpm>`,
  2761. :ref:`package_ipk <ref-classes-package_ipk>`, or
  2762. :ref:`package_tar <ref-classes-package_tar>` class.
  2763. .. note::
  2764. The ``package_tar`` class is broken and is not supported. It is
  2765. recommended that you do not use it.
  2766. The :ref:`populate_sdk_* <ref-classes-populate-sdk-*>` and
  2767. :ref:`image <ref-classes-image>` classes use the :term:`IMAGE_PKGTYPE`
  2768. for packaging up images and SDKs.
  2769. You should not set the :term:`IMAGE_PKGTYPE` manually. Rather, the
  2770. variable is set indirectly through the appropriate
  2771. :ref:`package_* <ref-classes-package>` class using the
  2772. :term:`PACKAGE_CLASSES` variable. The
  2773. OpenEmbedded build system uses the first package type (e.g. DEB, RPM,
  2774. or IPK) that appears with the variable
  2775. .. note::
  2776. Files using the ``.tar`` format are never used as a substitute
  2777. packaging format for DEB, RPM, and IPK formatted files for your image
  2778. or SDK.
  2779. :term:`IMAGE_POSTPROCESS_COMMAND`
  2780. Specifies a list of functions to call once the OpenEmbedded build
  2781. system creates the final image output files. You can specify
  2782. functions separated by semicolons::
  2783. IMAGE_POSTPROCESS_COMMAND += "function; ... "
  2784. If you need to pass the root filesystem path to a command within the
  2785. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  2786. directory that becomes the root filesystem image. See the
  2787. :term:`IMAGE_ROOTFS` variable for more
  2788. information.
  2789. :term:`IMAGE_PREPROCESS_COMMAND`
  2790. Specifies a list of functions to call before the OpenEmbedded build
  2791. system creates the final image output files. You can specify
  2792. functions separated by semicolons::
  2793. IMAGE_PREPROCESS_COMMAND += "function; ... "
  2794. If you need to pass the root filesystem path to a command within the
  2795. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  2796. directory that becomes the root filesystem image. See the
  2797. :term:`IMAGE_ROOTFS` variable for more
  2798. information.
  2799. :term:`IMAGE_ROOTFS`
  2800. The location of the root filesystem while it is under construction
  2801. (i.e. during the :ref:`ref-tasks-rootfs` task). This
  2802. variable is not configurable. Do not change it.
  2803. :term:`IMAGE_ROOTFS_ALIGNMENT`
  2804. Specifies the alignment for the output image file in Kbytes. If the
  2805. size of the image is not a multiple of this value, then the size is
  2806. rounded up to the nearest multiple of the value. The default value is
  2807. "1". See :term:`IMAGE_ROOTFS_SIZE` for
  2808. additional information.
  2809. :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  2810. Defines additional free disk space created in the image in Kbytes. By
  2811. default, this variable is set to "0". This free disk space is added
  2812. to the image after the build system determines the image size as
  2813. described in :term:`IMAGE_ROOTFS_SIZE`.
  2814. This variable is particularly useful when you want to ensure that a
  2815. specific amount of free disk space is available on a device after an
  2816. image is installed and running. For example, to be sure 5 Gbytes of
  2817. free disk space is available, set the variable as follows::
  2818. IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
  2819. For example, the Yocto Project Build Appliance specifically requests
  2820. 40 Gbytes of extra space with the line::
  2821. IMAGE_ROOTFS_EXTRA_SPACE = "41943040"
  2822. :term:`IMAGE_ROOTFS_SIZE`
  2823. Defines the size in Kbytes for the generated image. The OpenEmbedded
  2824. build system determines the final size for the generated image using
  2825. an algorithm that takes into account the initial disk space used for
  2826. the generated image, a requested size for the image, and requested
  2827. additional free disk space to be added to the image. Programatically,
  2828. the build system determines the final size of the generated image as
  2829. follows::
  2830. if (image-du * overhead) < rootfs-size:
  2831. internal-rootfs-size = rootfs-size + xspace
  2832. else:
  2833. internal-rootfs-size = (image-du * overhead) + xspace
  2834. where:
  2835. image-du = Returned value of the du command on the image.
  2836. overhead = IMAGE_OVERHEAD_FACTOR
  2837. rootfs-size = IMAGE_ROOTFS_SIZE
  2838. internal-rootfs-size = Initial root filesystem size before any modifications.
  2839. xspace = IMAGE_ROOTFS_EXTRA_SPACE
  2840. See the :term:`IMAGE_OVERHEAD_FACTOR`
  2841. and :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  2842. variables for related information.
  2843. :term:`IMAGE_TYPEDEP`
  2844. Specifies a dependency from one image type on another. Here is an
  2845. example from the :ref:`image-live <ref-classes-image-live>` class::
  2846. IMAGE_TYPEDEP:live = "ext3"
  2847. In the previous example, the variable ensures that when "live" is
  2848. listed with the :term:`IMAGE_FSTYPES` variable,
  2849. the OpenEmbedded build system produces an ``ext3`` image first since
  2850. one of the components of the live image is an ``ext3`` formatted
  2851. partition containing the root filesystem.
  2852. :term:`IMAGE_TYPES`
  2853. Specifies the complete list of supported image types by default:
  2854. - btrfs
  2855. - container
  2856. - cpio
  2857. - cpio.gz
  2858. - cpio.lz4
  2859. - cpio.lzma
  2860. - cpio.xz
  2861. - cramfs
  2862. - erofs
  2863. - erofs-lz4
  2864. - erofs-lz4hc
  2865. - ext2
  2866. - ext2.bz2
  2867. - ext2.gz
  2868. - ext2.lzma
  2869. - ext3
  2870. - ext3.gz
  2871. - ext4
  2872. - ext4.gz
  2873. - f2fs
  2874. - hddimg
  2875. - iso
  2876. - jffs2
  2877. - jffs2.sum
  2878. - multiubi
  2879. - squashfs
  2880. - squashfs-lz4
  2881. - squashfs-lzo
  2882. - squashfs-xz
  2883. - tar
  2884. - tar.bz2
  2885. - tar.gz
  2886. - tar.lz4
  2887. - tar.xz
  2888. - tar.zst
  2889. - ubi
  2890. - ubifs
  2891. - wic
  2892. - wic.bz2
  2893. - wic.gz
  2894. - wic.lzma
  2895. For more information about these types of images, see
  2896. ``meta/classes/image_types*.bbclass`` in the :term:`Source Directory`.
  2897. :term:`IMAGE_VERSION_SUFFIX`
  2898. Version suffix that is part of the default :term:`IMAGE_NAME` and
  2899. :term:`KERNEL_ARTIFACT_NAME` values.
  2900. Defaults to ``"-${DATETIME}"``, however you could set this to a
  2901. version string that comes from your external build environment if
  2902. desired, and this suffix would then be used consistently across
  2903. the build artifacts.
  2904. :term:`IMGDEPLOYDIR`
  2905. When inheriting the :ref:`image <ref-classes-image>` class directly or
  2906. through the :ref:`core-image <ref-classes-core-image>` class, the
  2907. :term:`IMGDEPLOYDIR` points to a temporary work area for deployed files
  2908. that is set in the ``image`` class as follows::
  2909. IMGDEPLOYDIR = "${WORKDIR}/deploy-${PN}-image-complete"
  2910. Recipes inheriting the ``image`` class should copy files to be
  2911. deployed into :term:`IMGDEPLOYDIR`, and the class will take care of
  2912. copying them into :term:`DEPLOY_DIR_IMAGE` afterwards.
  2913. :term:`INC_PR`
  2914. Helps define the recipe revision for recipes that share a common
  2915. ``include`` file. You can think of this variable as part of the
  2916. recipe revision as set from within an include file.
  2917. Suppose, for example, you have a set of recipes that are used across
  2918. several projects. And, within each of those recipes the revision (its
  2919. :term:`PR` value) is set accordingly. In this case, when
  2920. the revision of those recipes changes, the burden is on you to find
  2921. all those recipes and be sure that they get changed to reflect the
  2922. updated version of the recipe. In this scenario, it can get
  2923. complicated when recipes that are used in many places and provide
  2924. common functionality are upgraded to a new revision.
  2925. A more efficient way of dealing with this situation is to set the
  2926. :term:`INC_PR` variable inside the ``include`` files that the recipes
  2927. share and then expand the :term:`INC_PR` variable within the recipes to
  2928. help define the recipe revision.
  2929. The following provides an example that shows how to use the
  2930. :term:`INC_PR` variable given a common ``include`` file that defines the
  2931. variable. Once the variable is defined in the ``include`` file, you
  2932. can use the variable to set the :term:`PR` values in each recipe. You
  2933. will notice that when you set a recipe's :term:`PR` you can provide more
  2934. granular revisioning by appending values to the :term:`INC_PR` variable::
  2935. recipes-graphics/xorg-font/xorg-font-common.inc:INC_PR = "r2"
  2936. recipes-graphics/xorg-font/encodings_1.0.4.bb:PR = "${INC_PR}.1"
  2937. recipes-graphics/xorg-font/font-util_1.3.0.bb:PR = "${INC_PR}.0"
  2938. recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3"
  2939. The
  2940. first line of the example establishes the baseline revision to be
  2941. used for all recipes that use the ``include`` file. The remaining
  2942. lines in the example are from individual recipes and show how the
  2943. :term:`PR` value is set.
  2944. :term:`INCOMPATIBLE_LICENSE`
  2945. Specifies a space-separated list of license names (as they would
  2946. appear in :term:`LICENSE`) that should be excluded
  2947. from the build (if set globally), or from an image (if set locally
  2948. in an image recipe).
  2949. When the variable is set globally, recipes that provide no alternatives to listed
  2950. incompatible licenses are not built. Packages that are individually
  2951. licensed with the specified incompatible licenses will be deleted.
  2952. Most of the time this does not allow a feasible build (because it becomes impossible
  2953. to satisfy build time dependencies), so the recommended way to
  2954. implement license restrictions is to set the variable in specific
  2955. image recipes where the restrictions must apply. That way there
  2956. are no build time restrictions, but the license check is still
  2957. performed when the image's filesystem is assembled from packages.
  2958. There is some support for wildcards in this variable's value,
  2959. however it is restricted to specific licenses. Currently only
  2960. these wildcards are allowed and expand as follows:
  2961. - ``AGPL-3.0*"``: ``AGPL-3.0-only``, ``AGPL-3.0-or-later``
  2962. - ``GPL-3.0*``: ``GPL-3.0-only``, ``GPL-3.0-or-later``
  2963. - ``LGPL-3.0*``: ``LGPL-3.0-only``, ``LGPL-3.0-or-later``
  2964. .. note::
  2965. This functionality is only regularly tested using the following
  2966. setting::
  2967. INCOMPATIBLE_LICENSE = "GPL-3.0* LGPL-3.0* AGPL-3.0*"
  2968. Although you can use other settings, you might be required to
  2969. remove dependencies on or provide alternatives to components that
  2970. are required to produce a functional system image.
  2971. :term:`INHERIT`
  2972. Causes the named class or classes to be inherited globally. Anonymous
  2973. functions in the class or classes are not executed for the base
  2974. configuration and in each individual recipe. The OpenEmbedded build
  2975. system ignores changes to :term:`INHERIT` in individual recipes.
  2976. For more information on :term:`INHERIT`, see the
  2977. :ref:`bitbake:bitbake-user-manual/bitbake-user-manual-metadata:\`\`inherit\`\` configuration directive`"
  2978. section in the Bitbake User Manual.
  2979. :term:`INHERIT_DISTRO`
  2980. Lists classes that will be inherited at the distribution level. It is
  2981. unlikely that you want to edit this variable.
  2982. The default value of the variable is set as follows in the
  2983. ``meta/conf/distro/defaultsetup.conf`` file::
  2984. INHERIT_DISTRO ?= "debian devshell sstate license remove-libtool"
  2985. :term:`INHIBIT_DEFAULT_DEPS`
  2986. Prevents the default dependencies, namely the C compiler and standard
  2987. C library (libc), from being added to :term:`DEPENDS`.
  2988. This variable is usually used within recipes that do not require any
  2989. compilation using the C compiler.
  2990. Set the variable to "1" to prevent the default dependencies from
  2991. being added.
  2992. :term:`INHIBIT_PACKAGE_DEBUG_SPLIT`
  2993. Prevents the OpenEmbedded build system from splitting out debug
  2994. information during packaging. By default, the build system splits out
  2995. debugging information during the
  2996. :ref:`ref-tasks-package` task. For more information on
  2997. how debug information is split out, see the
  2998. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  2999. variable.
  3000. To prevent the build system from splitting out debug information
  3001. during packaging, set the :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` variable as
  3002. follows::
  3003. INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
  3004. :term:`INHIBIT_PACKAGE_STRIP`
  3005. If set to "1", causes the build to not strip binaries in resulting
  3006. packages and prevents the ``-dbg`` package from containing the source
  3007. files.
  3008. By default, the OpenEmbedded build system strips binaries and puts
  3009. the debugging symbols into ``${``\ :term:`PN`\ ``}-dbg``.
  3010. Consequently, you should not set :term:`INHIBIT_PACKAGE_STRIP` when you
  3011. plan to debug in general.
  3012. :term:`INHIBIT_SYSROOT_STRIP`
  3013. If set to "1", causes the build to not strip binaries in the
  3014. resulting sysroot.
  3015. By default, the OpenEmbedded build system strips binaries in the
  3016. resulting sysroot. When you specifically set the
  3017. :term:`INHIBIT_SYSROOT_STRIP` variable to "1" in your recipe, you inhibit
  3018. this stripping.
  3019. If you want to use this variable, include the
  3020. :ref:`staging <ref-classes-staging>` class. This class uses a
  3021. ``sys_strip()`` function to test for the variable and acts
  3022. accordingly.
  3023. .. note::
  3024. Use of the :term:`INHIBIT_SYSROOT_STRIP` variable occurs in rare and
  3025. special circumstances. For example, suppose you are building
  3026. bare-metal firmware by using an external GCC toolchain. Furthermore,
  3027. even if the toolchain's binaries are strippable, there are other files
  3028. needed for the build that are not strippable.
  3029. :term:`INIT_MANAGER`
  3030. Specifies the system init manager to use. Available options are:
  3031. - ``sysvinit`` - System V init (default for poky)
  3032. - ``systemd`` - systemd
  3033. - ``mdev-busybox`` - mdev provided by busybox
  3034. - ``none`` - no init manager
  3035. More concretely, this is used to include
  3036. ``conf/distro/include/init-manager-${INIT_MANAGER}.inc`` into the global
  3037. configuration. You can have a look at the ``conf/distro/include/init-manager-*.inc``
  3038. files for more information, and also the
  3039. ":ref:`dev-manual/init-manager:selecting an initialization manager`"
  3040. section in the Yocto Project Development Tasks Manual.
  3041. :term:`INITRAMFS_DEPLOY_DIR_IMAGE`
  3042. Indicates the deploy directory used by ``do_bundle_initramfs`` where the
  3043. :term:`INITRAMFS_IMAGE` will be fetched from.
  3044. This variable is set by default to ``${DEPLOY_DIR_IMAGE}`` in the
  3045. :ref:`kernel <ref-classes-kernel>` class and it's only meant to be changed
  3046. when building an initramfs image from a separate multiconfig via :term:`INITRAMFS_MULTICONFIG`.
  3047. :term:`INITRAMFS_FSTYPES`
  3048. Defines the format for the output image of an initial RAM filesystem
  3049. (initramfs), which is used during boot. Supported formats are the
  3050. same as those supported by the
  3051. :term:`IMAGE_FSTYPES` variable.
  3052. The default value of this variable, which is set in the
  3053. ``meta/conf/bitbake.conf`` configuration file in the
  3054. :term:`Source Directory`, is "cpio.gz". The Linux kernel's
  3055. initramfs mechanism, as opposed to the initial RAM filesystem
  3056. `initrd <https://en.wikipedia.org/wiki/Initrd>`__ mechanism, expects
  3057. an optionally compressed cpio archive.
  3058. :term:`INITRAMFS_IMAGE`
  3059. Specifies the :term:`PROVIDES` name of an image
  3060. recipe that is used to build an initial RAM filesystem (initramfs)
  3061. image. In other words, the :term:`INITRAMFS_IMAGE` variable causes an
  3062. additional recipe to be built as a dependency to whatever root
  3063. filesystem recipe you might be using (e.g. ``core-image-sato``). The
  3064. initramfs image recipe you provide should set
  3065. :term:`IMAGE_FSTYPES` to
  3066. :term:`INITRAMFS_FSTYPES`.
  3067. An initramfs image provides a temporary root filesystem used for
  3068. early system initialization (e.g. loading of modules needed to locate
  3069. and mount the "real" root filesystem).
  3070. .. note::
  3071. See the ``meta/recipes-core/images/core-image-minimal-initramfs.bb``
  3072. recipe in the :term:`Source Directory`
  3073. for an example initramfs recipe. To select this sample recipe as
  3074. the one built to provide the initramfs image, set :term:`INITRAMFS_IMAGE`
  3075. to "core-image-minimal-initramfs".
  3076. You can also find more information by referencing the
  3077. ``meta-poky/conf/local.conf.sample.extended`` configuration file in
  3078. the Source Directory, the :ref:`image <ref-classes-image>` class,
  3079. and the :ref:`kernel <ref-classes-kernel>` class to see how to use
  3080. the :term:`INITRAMFS_IMAGE` variable.
  3081. If :term:`INITRAMFS_IMAGE` is empty, which is the default, then no
  3082. initramfs image is built.
  3083. For more information, you can also see the
  3084. :term:`INITRAMFS_IMAGE_BUNDLE`
  3085. variable, which allows the generated image to be bundled inside the
  3086. kernel image. Additionally, for information on creating an :term:`Initramfs`
  3087. image, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  3088. in the Yocto Project Development Tasks Manual.
  3089. :term:`INITRAMFS_IMAGE_BUNDLE`
  3090. Controls whether or not the image recipe specified by
  3091. :term:`INITRAMFS_IMAGE` is run through an
  3092. extra pass
  3093. (:ref:`ref-tasks-bundle_initramfs`) during
  3094. kernel compilation in order to build a single binary that contains
  3095. both the kernel image and the initial RAM filesystem (initramfs)
  3096. image. This makes use of the
  3097. :term:`CONFIG_INITRAMFS_SOURCE` kernel
  3098. feature.
  3099. .. note::
  3100. Bundling the initramfs with the kernel conflates the code in the
  3101. initramfs with the GPLv2 licensed Linux kernel binary. Thus only GPLv2
  3102. compatible software may be part of a bundled initramfs.
  3103. .. note::
  3104. Using an extra compilation pass to bundle the initramfs avoids a
  3105. circular dependency between the kernel recipe and the initramfs
  3106. recipe should the initramfs include kernel modules. Should that be
  3107. the case, the initramfs recipe depends on the kernel for the
  3108. kernel modules, and the kernel depends on the initramfs recipe
  3109. since the initramfs is bundled inside the kernel image.
  3110. The combined binary is deposited into the ``tmp/deploy`` directory,
  3111. which is part of the :term:`Build Directory`.
  3112. Setting the variable to "1" in a configuration file causes the
  3113. OpenEmbedded build system to generate a kernel image with the
  3114. initramfs specified in :term:`INITRAMFS_IMAGE` bundled within::
  3115. INITRAMFS_IMAGE_BUNDLE = "1"
  3116. By default, the
  3117. :ref:`kernel <ref-classes-kernel>` class sets this variable to a
  3118. null string as follows::
  3119. INITRAMFS_IMAGE_BUNDLE ?= ""
  3120. .. note::
  3121. You must set the :term:`INITRAMFS_IMAGE_BUNDLE` variable in a
  3122. configuration file. You cannot set the variable in a recipe file.
  3123. See the
  3124. :yocto_git:`local.conf.sample.extended </poky/tree/meta-poky/conf/local.conf.sample.extended>`
  3125. file for additional information. Also, for information on creating an
  3126. :term:`Initramfs`, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  3127. in the Yocto Project Development Tasks Manual.
  3128. :term:`INITRAMFS_LINK_NAME`
  3129. The link name of the initial RAM filesystem image. This variable is
  3130. set in the ``meta/classes/kernel-artifact-names.bbclass`` file as
  3131. follows::
  3132. INITRAMFS_LINK_NAME ?= "initramfs-${KERNEL_ARTIFACT_LINK_NAME}"
  3133. The value of the
  3134. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3135. file, has the following value::
  3136. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3137. See the :term:`MACHINE` variable for additional
  3138. information.
  3139. :term:`INITRAMFS_MULTICONFIG`
  3140. Defines the multiconfig to create a multiconfig dependency to be used by the :ref:`kernel <ref-classes-kernel>` class.
  3141. This allows the kernel to bundle an :term:`INITRAMFS_IMAGE` coming from
  3142. a separate multiconfig, this is meant to be used in addition to :term:`INITRAMFS_DEPLOY_DIR_IMAGE`.
  3143. For more information on how to bundle an :term:`Initramfs` image from a separate
  3144. multiconfig see the ":ref:`dev-manual/building:Bundling an Initramfs Image From a Separate Multiconfig`"
  3145. section in the Yocto Project Development Tasks Manual.
  3146. :term:`INITRAMFS_NAME`
  3147. The base name of the initial RAM filesystem image. This variable is
  3148. set in the ``meta/classes/kernel-artifact-names.bbclass`` file as
  3149. follows::
  3150. INITRAMFS_NAME ?= "initramfs-${KERNEL_ARTIFACT_NAME}"
  3151. The value of the :term:`KERNEL_ARTIFACT_NAME`
  3152. variable, which is set in the same file, has the following value::
  3153. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  3154. :term:`INITRD`
  3155. Indicates list of filesystem images to concatenate and use as an
  3156. initial RAM disk (``initrd``).
  3157. The :term:`INITRD` variable is an optional variable used with the
  3158. :ref:`image-live <ref-classes-image-live>` class.
  3159. :term:`INITRD_IMAGE`
  3160. When building a "live" bootable image (i.e. when
  3161. :term:`IMAGE_FSTYPES` contains "live"),
  3162. :term:`INITRD_IMAGE` specifies the image recipe that should be built to
  3163. provide the initial RAM disk image. The default value is
  3164. "core-image-minimal-initramfs".
  3165. See the :ref:`image-live <ref-classes-image-live>` class for more
  3166. information.
  3167. :term:`INITSCRIPT_NAME`
  3168. The filename of the initialization script as installed to
  3169. ``${sysconfdir}/init.d``.
  3170. This variable is used in recipes when using :ref:`ref-classes-update-rc.d`.
  3171. The variable is mandatory.
  3172. :term:`INITSCRIPT_PACKAGES`
  3173. A list of the packages that contain initscripts. If multiple packages
  3174. are specified, you need to append the package name to the other
  3175. ``INITSCRIPT_*`` as an override.
  3176. This variable is used in recipes when using :ref:`ref-classes-update-rc.d`.
  3177. The variable is optional and defaults to the :term:`PN`
  3178. variable.
  3179. :term:`INITSCRIPT_PARAMS`
  3180. Specifies the options to pass to ``update-rc.d``. Here is an example::
  3181. INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."
  3182. In this example, the script has a runlevel of 99, starts the script
  3183. in initlevels 2 and 5, and stops the script in levels 0, 1 and 6.
  3184. The variable's default value is "defaults", which is set in the
  3185. :ref:`update-rc.d <ref-classes-update-rc.d>` class.
  3186. The value in :term:`INITSCRIPT_PARAMS` is passed through to the
  3187. ``update-rc.d`` command. For more information on valid parameters,
  3188. please see the ``update-rc.d`` manual page at
  3189. https://manpages.debian.org/buster/init-system-helpers/update-rc.d.8.en.html
  3190. :term:`INSANE_SKIP`
  3191. Specifies the QA checks to skip for a specific package within a
  3192. recipe. For example, to skip the check for symbolic link ``.so``
  3193. files in the main package of a recipe, add the following to the
  3194. recipe. The package name override must be used, which in this example
  3195. is ``${PN}``::
  3196. INSANE_SKIP:${PN} += "dev-so"
  3197. See the ":ref:`ref-classes-insane`" section for a
  3198. list of the valid QA checks you can specify using this variable.
  3199. :term:`INSTALL_TIMEZONE_FILE`
  3200. By default, the ``tzdata`` recipe packages an ``/etc/timezone`` file.
  3201. Set the :term:`INSTALL_TIMEZONE_FILE` variable to "0" at the
  3202. configuration level to disable this behavior.
  3203. :term:`IPK_FEED_URIS`
  3204. When the IPK backend is in use and package management is enabled on
  3205. the target, you can use this variable to set up ``opkg`` in the
  3206. target image to point to package feeds on a nominated server. Once
  3207. the feed is established, you can perform installations or upgrades
  3208. using the package manager at runtime.
  3209. :term:`KARCH`
  3210. Defines the kernel architecture used when assembling the
  3211. configuration. Architectures supported for this release are:
  3212. - powerpc
  3213. - i386
  3214. - x86_64
  3215. - arm
  3216. - qemu
  3217. - mips
  3218. You define the :term:`KARCH` variable in the :ref:`kernel-dev/advanced:bsp descriptions`.
  3219. :term:`KBRANCH`
  3220. A regular expression used by the build process to explicitly identify
  3221. the kernel branch that is validated, patched, and configured during a
  3222. build. You must set this variable to ensure the exact kernel branch
  3223. you want is being used by the build process.
  3224. Values for this variable are set in the kernel's recipe file and the
  3225. kernel's append file. For example, if you are using the
  3226. ``linux-yocto_5.15`` kernel, the kernel recipe file is the
  3227. ``meta/recipes-kernel/linux/linux-yocto_4.12.bb`` file. :term:`KBRANCH`
  3228. is set as follows in that kernel recipe file::
  3229. KBRANCH ?= "standard/base"
  3230. This variable is also used from the kernel's append file to identify
  3231. the kernel branch specific to a particular machine or target
  3232. hardware. Continuing with the previous kernel example, the kernel's
  3233. append file (i.e. ``linux-yocto_4.12.bbappend``) is located in the
  3234. BSP layer for a given machine. For example, the append file for the
  3235. Beaglebone, EdgeRouter, and generic versions of both 32 and 64-bit IA
  3236. machines (``meta-yocto-bsp``) is named
  3237. ``meta-yocto-bsp/recipes-kernel/linux/linux-yocto_4.15.bbappend``.
  3238. Here are the related statements from that append file::
  3239. KBRANCH:genericx86 = "v5.15/standard/base"
  3240. KBRANCH:genericx86-64 = "v5.15/standard/base"
  3241. KBRANCH:edgerouter = "v5.15/standard/edgerouter"
  3242. KBRANCH:beaglebone-yocto = "v5.15/standard/beaglebone"
  3243. The :term:`KBRANCH` statements
  3244. identify the kernel branch to use when building for each supported
  3245. BSP.
  3246. :term:`KBUILD_DEFCONFIG`
  3247. When used with the :ref:`kernel-yocto <ref-classes-kernel-yocto>`
  3248. class, specifies an "in-tree" kernel configuration file for use
  3249. during a kernel build.
  3250. Typically, when using a ``defconfig`` to configure a kernel during a
  3251. build, you place the file in your layer in the same manner as you
  3252. would place patch files and configuration fragment files (i.e.
  3253. "out-of-tree"). However, if you want to use a ``defconfig`` file that
  3254. is part of the kernel tree (i.e. "in-tree"), you can use the
  3255. :term:`KBUILD_DEFCONFIG` variable and append the
  3256. :term:`KMACHINE` variable to point to the
  3257. ``defconfig`` file.
  3258. To use the variable, set it in the append file for your kernel recipe
  3259. using the following form::
  3260. KBUILD_DEFCONFIG_KMACHINE ?= defconfig_file
  3261. Here is an example from a "raspberrypi2" :term:`KMACHINE` build that uses
  3262. a ``defconfig`` file named "bcm2709_defconfig"::
  3263. KBUILD_DEFCONFIG:raspberrypi2 = "bcm2709_defconfig"
  3264. As an alternative, you can use the following within your append file::
  3265. KBUILD_DEFCONFIG:pn-linux-yocto ?= "defconfig_file"
  3266. For more
  3267. information on how to use the :term:`KBUILD_DEFCONFIG` variable, see the
  3268. ":ref:`kernel-dev/common:using an "in-tree" \`\`defconfig\`\` file`"
  3269. section in the Yocto Project Linux Kernel Development Manual.
  3270. :term:`KCONFIG_MODE`
  3271. When used with the :ref:`kernel-yocto <ref-classes-kernel-yocto>`
  3272. class, specifies the kernel configuration values to use for options
  3273. not specified in the provided ``defconfig`` file. Valid options are::
  3274. KCONFIG_MODE = "alldefconfig"
  3275. KCONFIG_MODE = "allnoconfig"
  3276. In ``alldefconfig`` mode the options not explicitly specified will be
  3277. assigned their Kconfig default value. In ``allnoconfig`` mode the
  3278. options not explicitly specified will be disabled in the kernel
  3279. config.
  3280. In case :term:`KCONFIG_MODE` is not set the behaviour will depend on where
  3281. the ``defconfig`` file is coming from. An "in-tree" ``defconfig`` file
  3282. will be handled in ``alldefconfig`` mode, a ``defconfig`` file placed
  3283. in ``${WORKDIR}`` through a meta-layer will be handled in
  3284. ``allnoconfig`` mode.
  3285. An "in-tree" ``defconfig`` file can be selected via the
  3286. :term:`KBUILD_DEFCONFIG` variable. :term:`KCONFIG_MODE` does not need to
  3287. be explicitly set.
  3288. A ``defconfig`` file compatible with ``allnoconfig`` mode can be
  3289. generated by copying the ``.config`` file from a working Linux kernel
  3290. build, renaming it to ``defconfig`` and placing it into the Linux
  3291. kernel ``${WORKDIR}`` through your meta-layer. :term:`KCONFIG_MODE` does
  3292. not need to be explicitly set.
  3293. A ``defconfig`` file compatible with ``alldefconfig`` mode can be
  3294. generated using the
  3295. :ref:`ref-tasks-savedefconfig`
  3296. task and placed into the Linux kernel ``${WORKDIR}`` through your
  3297. meta-layer. Explicitely set :term:`KCONFIG_MODE`::
  3298. KCONFIG_MODE = "alldefconfig"
  3299. :term:`KERNEL_ALT_IMAGETYPE`
  3300. Specifies an alternate kernel image type for creation in addition to
  3301. the kernel image type specified using the
  3302. :term:`KERNEL_IMAGETYPE` variable.
  3303. :term:`KERNEL_ARTIFACT_NAME`
  3304. Specifies the name of all of the build artifacts. You can change the
  3305. name of the artifacts by changing the :term:`KERNEL_ARTIFACT_NAME`
  3306. variable.
  3307. The value of :term:`KERNEL_ARTIFACT_NAME`, which is set in the
  3308. ``meta/classes/kernel-artifact-names.bbclass`` file, has the
  3309. following default value::
  3310. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  3311. See the :term:`PKGE`, :term:`PKGV`, :term:`PKGR`, :term:`MACHINE`
  3312. and :term:`IMAGE_VERSION_SUFFIX` variables for additional information.
  3313. :term:`KERNEL_CLASSES`
  3314. A list of classes defining kernel image types that the
  3315. :ref:`kernel <ref-classes-kernel>` class should inherit. You
  3316. typically append this variable to enable extended image types. An
  3317. example is the "kernel-fitimage", which enables fitImage support and
  3318. resides in ``meta/classes/kernel-fitimage.bbclass``. You can register
  3319. custom kernel image types with the :ref:`kernel <ref-classes-kernel>` class using this
  3320. variable.
  3321. :term:`KERNEL_DEBUG_TIMESTAMPS`
  3322. If set to "1", enables timestamping functionality during building
  3323. the kernel. The default is "0" to disable this for reproducibility
  3324. reasons.
  3325. :term:`KERNEL_DEVICETREE`
  3326. Specifies the name of the generated Linux kernel device tree (i.e.
  3327. the ``.dtb``) file.
  3328. .. note::
  3329. There is legacy support for specifying the full path to the device
  3330. tree. However, providing just the ``.dtb`` file is preferred.
  3331. In order to use this variable, the :ref:`ref-classes-kernel-devicetree`
  3332. class must be inherited.
  3333. :term:`KERNEL_DEVICETREE_BUNDLE`
  3334. When set to "1", this variable allows to bundle the Linux kernel
  3335. and the Device Tree Binary together in a single file.
  3336. This feature is currently only supported on the "arm" (32 bit)
  3337. architecture.
  3338. This variable is set to "0" by default by the
  3339. :ref:`ref-classes-kernel-devicetree` class.
  3340. :term:`KERNEL_DTB_LINK_NAME`
  3341. The link name of the kernel device tree binary (DTB). This variable
  3342. is set in the ``meta/classes/kernel-artifact-names.bbclass`` file as
  3343. follows::
  3344. KERNEL_DTB_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3345. The
  3346. value of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in
  3347. the same file, has the following value::
  3348. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3349. See the :term:`MACHINE` variable for additional
  3350. information.
  3351. :term:`KERNEL_DTB_NAME`
  3352. The base name of the kernel device tree binary (DTB). This variable
  3353. is set in the ``meta/classes/kernel-artifact-names.bbclass`` file as
  3354. follows::
  3355. KERNEL_DTB_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3356. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3357. :term:`KERNEL_DTBDEST`
  3358. This variable, used by the :ref:`ref-classes-kernel-devicetree`
  3359. class, allows to change the installation directory of the DTB
  3360. (Device Tree Binary) files.
  3361. It is set by default to "${KERNEL_IMAGEDEST}" by the
  3362. :ref:`ref-classes-kernel` class.
  3363. :term:`KERNEL_DTBVENDORED`
  3364. This variable, used by the :ref:`ref-classes-kernel-devicetree`,
  3365. allows to ignore vendor subdirectories when installing DTB
  3366. (Device Tree Binary) files, when it is set to "false".
  3367. To keep vendor subdirectories, set this variable to "true".
  3368. It is set by default to "false" by the :ref:`ref-classes-kernel` class.
  3369. :term:`KERNEL_DTC_FLAGS`
  3370. Specifies the ``dtc`` flags that are passed to the Linux kernel build
  3371. system when generating the device trees (via ``DTC_FLAGS`` environment
  3372. variable).
  3373. In order to use this variable, the
  3374. :ref:`kernel-devicetree <ref-classes-kernel-devicetree>` class must
  3375. be inherited.
  3376. :term:`KERNEL_EXTRA_ARGS`
  3377. Specifies additional ``make`` command-line arguments the OpenEmbedded
  3378. build system passes on when compiling the kernel.
  3379. :term:`KERNEL_FEATURES`
  3380. Includes additional kernel metadata. In the OpenEmbedded build
  3381. system, the default Board Support Packages (BSPs)
  3382. :term:`Metadata` is provided through the
  3383. :term:`KMACHINE` and :term:`KBRANCH`
  3384. variables. You can use the :term:`KERNEL_FEATURES` variable from within
  3385. the kernel recipe or kernel append file to further add metadata for
  3386. all BSPs or specific BSPs.
  3387. The metadata you add through this variable includes config fragments
  3388. and features descriptions, which usually includes patches as well as
  3389. config fragments. You typically override the :term:`KERNEL_FEATURES`
  3390. variable for a specific machine. In this way, you can provide
  3391. validated, but optional, sets of kernel configurations and features.
  3392. For example, the following example from the ``linux-yocto-rt_4.12``
  3393. kernel recipe adds "netfilter" and "taskstats" features to all BSPs
  3394. as well as "virtio" configurations to all QEMU machines. The last two
  3395. statements add specific configurations to targeted machine types::
  3396. KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc"
  3397. KERNEL_FEATURES:append = "${KERNEL_EXTRA_FEATURES}"
  3398. KERNEL_FEATURES:append:qemuall = "cfg/virtio.scc"
  3399. KERNEL_FEATURES:append:qemux86 = " cfg/sound.scc cfg/paravirt_kvm.scc"
  3400. KERNEL_FEATURES:append:qemux86-64 = "cfg/sound.scc"
  3401. :term:`KERNEL_FIT_LINK_NAME`
  3402. The link name of the kernel flattened image tree (FIT) image. This
  3403. variable is set in the ``meta/classes/kernel-artifact-names.bbclass``
  3404. file as follows::
  3405. KERNEL_FIT_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3406. The value of the
  3407. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3408. file, has the following value::
  3409. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3410. See the :term:`MACHINE` variable for additional
  3411. information.
  3412. :term:`KERNEL_FIT_NAME`
  3413. The base name of the kernel flattened image tree (FIT) image. This
  3414. variable is set in the ``meta/classes/kernel-artifact-names.bbclass``
  3415. file as follows::
  3416. KERNEL_FIT_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3417. The value of the :term:`KERNEL_ARTIFACT_NAME`
  3418. variable, which is set in the same file, has the following value::
  3419. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  3420. :term:`KERNEL_IMAGE_LINK_NAME`
  3421. The link name for the kernel image. This variable is set in the
  3422. ``meta/classes/kernel-artifact-names.bbclass`` file as follows::
  3423. KERNEL_IMAGE_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3424. The value of
  3425. the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3426. file, has the following value::
  3427. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3428. See the :term:`MACHINE` variable for additional
  3429. information.
  3430. :term:`KERNEL_IMAGE_MAXSIZE`
  3431. Specifies the maximum size of the kernel image file in kilobytes. If
  3432. :term:`KERNEL_IMAGE_MAXSIZE` is set, the size of the kernel image file is
  3433. checked against the set value during the
  3434. :ref:`ref-tasks-sizecheck` task. The task fails if
  3435. the kernel image file is larger than the setting.
  3436. :term:`KERNEL_IMAGE_MAXSIZE` is useful for target devices that have a
  3437. limited amount of space in which the kernel image must be stored.
  3438. By default, this variable is not set, which means the size of the
  3439. kernel image is not checked.
  3440. :term:`KERNEL_IMAGE_NAME`
  3441. The base name of the kernel image. This variable is set in the
  3442. ``meta/classes/kernel-artifact-names.bbclass`` file as follows::
  3443. KERNEL_IMAGE_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3444. The value of the
  3445. :term:`KERNEL_ARTIFACT_NAME` variable,
  3446. which is set in the same file, has the following value::
  3447. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  3448. :term:`KERNEL_IMAGETYPE`
  3449. The type of kernel to build for a device, usually set by the machine
  3450. configuration files and defaults to "zImage". This variable is used
  3451. when building the kernel and is passed to ``make`` as the target to
  3452. build.
  3453. To build additional kernel image types, use :term:`KERNEL_IMAGETYPES`.
  3454. :term:`KERNEL_IMAGETYPES`
  3455. Lists additional types of kernel images to build for a device in addition
  3456. to image type specified in :term:`KERNEL_IMAGETYPE`. Usually set by the
  3457. machine configuration files.
  3458. :term:`KERNEL_MODULE_AUTOLOAD`
  3459. Lists kernel modules that need to be auto-loaded during boot.
  3460. .. note::
  3461. This variable replaces the deprecated :term:`module_autoload`
  3462. variable.
  3463. You can use the :term:`KERNEL_MODULE_AUTOLOAD` variable anywhere that it
  3464. can be recognized by the kernel recipe or by an out-of-tree kernel
  3465. module recipe (e.g. a machine configuration file, a distribution
  3466. configuration file, an append file for the recipe, or the recipe
  3467. itself).
  3468. Specify it as follows::
  3469. KERNEL_MODULE_AUTOLOAD += "module_name1 module_name2 module_name3"
  3470. Including :term:`KERNEL_MODULE_AUTOLOAD` causes the OpenEmbedded build
  3471. system to populate the ``/etc/modules-load.d/modname.conf`` file with
  3472. the list of modules to be auto-loaded on boot. The modules appear
  3473. one-per-line in the file. Here is an example of the most common use
  3474. case::
  3475. KERNEL_MODULE_AUTOLOAD += "module_name"
  3476. For information on how to populate the ``modname.conf`` file with
  3477. ``modprobe.d`` syntax lines, see the :term:`KERNEL_MODULE_PROBECONF` variable.
  3478. :term:`KERNEL_MODULE_PROBECONF`
  3479. Provides a list of modules for which the OpenEmbedded build system
  3480. expects to find ``module_conf_``\ modname values that specify
  3481. configuration for each of the modules. For information on how to
  3482. provide those module configurations, see the
  3483. :term:`module_conf_* <module_conf>` variable.
  3484. :term:`KERNEL_PACKAGE_NAME`
  3485. Specifies the base name of the kernel packages, such as "kernel"
  3486. in the kernel packages such as "kernel-modules", "kernel-image" and
  3487. "kernel-dbg".
  3488. The default value for this variable is set to "kernel" by the
  3489. :ref:`ref-classes-kernel` class.
  3490. :term:`KERNEL_PATH`
  3491. The location of the kernel sources. This variable is set to the value
  3492. of the :term:`STAGING_KERNEL_DIR` within
  3493. the :ref:`module <ref-classes-module>` class. For information on
  3494. how this variable is used, see the
  3495. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  3496. section in the Yocto Project Linux Kernel Development Manual.
  3497. To help maximize compatibility with out-of-tree drivers used to build
  3498. modules, the OpenEmbedded build system also recognizes and uses the
  3499. :term:`KERNEL_SRC` variable, which is identical to
  3500. the :term:`KERNEL_PATH` variable. Both variables are common variables
  3501. used by external Makefiles to point to the kernel source directory.
  3502. :term:`KERNEL_SRC`
  3503. The location of the kernel sources. This variable is set to the value
  3504. of the :term:`STAGING_KERNEL_DIR` within
  3505. the :ref:`module <ref-classes-module>` class. For information on
  3506. how this variable is used, see the
  3507. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  3508. section in the Yocto Project Linux Kernel Development Manual.
  3509. To help maximize compatibility with out-of-tree drivers used to build
  3510. modules, the OpenEmbedded build system also recognizes and uses the
  3511. :term:`KERNEL_PATH` variable, which is identical
  3512. to the :term:`KERNEL_SRC` variable. Both variables are common variables
  3513. used by external Makefiles to point to the kernel source directory.
  3514. :term:`KERNEL_VERSION`
  3515. Specifies the version of the kernel as extracted from ``version.h``
  3516. or ``utsrelease.h`` within the kernel sources. Effects of setting
  3517. this variable do not take effect until the kernel has been
  3518. configured. Consequently, attempting to refer to this variable in
  3519. contexts prior to configuration will not work.
  3520. :term:`KERNELDEPMODDEPEND`
  3521. Specifies whether the data referenced through
  3522. :term:`PKGDATA_DIR` is needed or not.
  3523. :term:`KERNELDEPMODDEPEND` does not control whether or not that data
  3524. exists, but simply whether or not it is used. If you do not need to
  3525. use the data, set the :term:`KERNELDEPMODDEPEND` variable in your
  3526. ``initramfs`` recipe. Setting the variable there when the data is not
  3527. needed avoids a potential dependency loop.
  3528. :term:`KFEATURE_DESCRIPTION`
  3529. Provides a short description of a configuration fragment. You use
  3530. this variable in the ``.scc`` file that describes a configuration
  3531. fragment file. Here is the variable used in a file named ``smp.scc``
  3532. to describe SMP being enabled::
  3533. define KFEATURE_DESCRIPTION "Enable SMP"
  3534. :term:`KMACHINE`
  3535. The machine as known by the kernel. Sometimes the machine name used
  3536. by the kernel does not match the machine name used by the
  3537. OpenEmbedded build system. For example, the machine name that the
  3538. OpenEmbedded build system understands as ``core2-32-intel-common``
  3539. goes by a different name in the Linux Yocto kernel. The kernel
  3540. understands that machine as ``intel-core2-32``. For cases like these,
  3541. the :term:`KMACHINE` variable maps the kernel machine name to the
  3542. OpenEmbedded build system machine name.
  3543. These mappings between different names occur in the Yocto Linux
  3544. Kernel's ``meta`` branch. As an example take a look in the
  3545. ``common/recipes-kernel/linux/linux-yocto_3.19.bbappend`` file::
  3546. LINUX_VERSION:core2-32-intel-common = "3.19.0"
  3547. COMPATIBLE_MACHINE:core2-32-intel-common = "${MACHINE}"
  3548. SRCREV_meta:core2-32-intel-common = "8897ef68b30e7426bc1d39895e71fb155d694974"
  3549. SRCREV_machine:core2-32-intel-common = "43b9eced9ba8a57add36af07736344dcc383f711"
  3550. KMACHINE:core2-32-intel-common = "intel-core2-32"
  3551. KBRANCH:core2-32-intel-common = "standard/base"
  3552. KERNEL_FEATURES:append:core2-32-intel-common = "${KERNEL_FEATURES_INTEL_COMMON}"
  3553. The :term:`KMACHINE` statement says
  3554. that the kernel understands the machine name as "intel-core2-32".
  3555. However, the OpenEmbedded build system understands the machine as
  3556. "core2-32-intel-common".
  3557. :term:`KTYPE`
  3558. Defines the kernel type to be used in assembling the configuration.
  3559. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  3560. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  3561. section in the
  3562. Yocto Project Linux Kernel Development Manual for more information on
  3563. kernel types.
  3564. You define the :term:`KTYPE` variable in the
  3565. :ref:`kernel-dev/advanced:bsp descriptions`. The
  3566. value you use must match the value used for the
  3567. :term:`LINUX_KERNEL_TYPE` value used by the
  3568. kernel recipe.
  3569. :term:`LABELS`
  3570. Provides a list of targets for automatic configuration.
  3571. See the :ref:`grub-efi <ref-classes-grub-efi>` class for more
  3572. information on how this variable is used.
  3573. :term:`LAYERDEPENDS`
  3574. Lists the layers, separated by spaces, on which this recipe depends.
  3575. Optionally, you can specify a specific layer version for a dependency
  3576. by adding it to the end of the layer name. Here is an example::
  3577. LAYERDEPENDS_mylayer = "anotherlayer (=3)"
  3578. In this previous example,
  3579. version 3 of "anotherlayer" is compared against
  3580. :term:`LAYERVERSION`\ ``_anotherlayer``.
  3581. An error is produced if any dependency is missing or the version
  3582. numbers (if specified) do not match exactly. This variable is used in
  3583. the ``conf/layer.conf`` file and must be suffixed with the name of
  3584. the specific layer (e.g. ``LAYERDEPENDS_mylayer``).
  3585. :term:`LAYERDIR`
  3586. When used inside the ``layer.conf`` configuration file, this variable
  3587. provides the path of the current layer. This variable is not
  3588. available outside of ``layer.conf`` and references are expanded
  3589. immediately when parsing of the file completes.
  3590. :term:`LAYERRECOMMENDS`
  3591. Lists the layers, separated by spaces, recommended for use with this
  3592. layer.
  3593. Optionally, you can specify a specific layer version for a
  3594. recommendation by adding the version to the end of the layer name.
  3595. Here is an example::
  3596. LAYERRECOMMENDS_mylayer = "anotherlayer (=3)"
  3597. In this previous example, version 3 of "anotherlayer" is compared
  3598. against ``LAYERVERSION_anotherlayer``.
  3599. This variable is used in the ``conf/layer.conf`` file and must be
  3600. suffixed with the name of the specific layer (e.g.
  3601. ``LAYERRECOMMENDS_mylayer``).
  3602. :term:`LAYERSERIES_COMPAT`
  3603. Lists the versions of the :term:`OpenEmbedded-Core (OE-Core)` for which
  3604. a layer is compatible. Using the :term:`LAYERSERIES_COMPAT` variable
  3605. allows the layer maintainer to indicate which combinations of the
  3606. layer and OE-Core can be expected to work. The variable gives the
  3607. system a way to detect when a layer has not been tested with new
  3608. releases of OE-Core (e.g. the layer is not maintained).
  3609. To specify the OE-Core versions for which a layer is compatible, use
  3610. this variable in your layer's ``conf/layer.conf`` configuration file.
  3611. For the list, use the Yocto Project
  3612. :yocto_wiki:`Release Name </Releases>` (e.g.
  3613. &DISTRO_NAME_NO_CAP;). To specify multiple OE-Core versions for the
  3614. layer, use a space-separated list::
  3615. LAYERSERIES_COMPAT_layer_root_name = "&DISTRO_NAME_NO_CAP; &DISTRO_NAME_NO_CAP_MINUS_ONE;"
  3616. .. note::
  3617. Setting :term:`LAYERSERIES_COMPAT` is required by the Yocto Project
  3618. Compatible version 2 standard.
  3619. The OpenEmbedded build system produces a warning if the variable
  3620. is not set for any given layer.
  3621. See the ":ref:`dev-manual/layers:creating your own layer`"
  3622. section in the Yocto Project Development Tasks Manual.
  3623. :term:`LAYERVERSION`
  3624. Optionally specifies the version of a layer as a single number. You
  3625. can use this within :term:`LAYERDEPENDS` for
  3626. another layer in order to depend on a specific version of the layer.
  3627. This variable is used in the ``conf/layer.conf`` file and must be
  3628. suffixed with the name of the specific layer (e.g.
  3629. ``LAYERVERSION_mylayer``).
  3630. :term:`LD`
  3631. The minimal command and arguments used to run the linker.
  3632. :term:`LDFLAGS`
  3633. Specifies the flags to pass to the linker. This variable is exported
  3634. to an environment variable and thus made visible to the software
  3635. being built during the compilation step.
  3636. Default initialization for :term:`LDFLAGS` varies depending on what is
  3637. being built:
  3638. - :term:`TARGET_LDFLAGS` when building for the
  3639. target
  3640. - :term:`BUILD_LDFLAGS` when building for the
  3641. build host (i.e. ``-native``)
  3642. - :term:`BUILDSDK_LDFLAGS` when building for
  3643. an SDK (i.e. ``nativesdk-``)
  3644. :term:`LEAD_SONAME`
  3645. Specifies the lead (or primary) compiled library file (i.e. ``.so``)
  3646. that the :ref:`debian <ref-classes-debian>` class applies its
  3647. naming policy to given a recipe that packages multiple libraries.
  3648. This variable works in conjunction with the :ref:`debian <ref-classes-debian>` class.
  3649. :term:`LIC_FILES_CHKSUM`
  3650. Checksums of the license text in the recipe source code.
  3651. This variable tracks changes in license text of the source code
  3652. files. If the license text is changed, it will trigger a build
  3653. failure, which gives the developer an opportunity to review any
  3654. license change.
  3655. This variable must be defined for all recipes (unless
  3656. :term:`LICENSE` is set to "CLOSED").
  3657. For more information, see the ":ref:`dev-manual/licenses:tracking license changes`"
  3658. section in the Yocto Project Development Tasks Manual.
  3659. :term:`LICENSE`
  3660. The list of source licenses for the recipe. Follow these rules:
  3661. - Do not use spaces within individual license names.
  3662. - Separate license names using \| (pipe) when there is a choice
  3663. between licenses.
  3664. - Separate license names using & (ampersand) when there are
  3665. multiple licenses for different parts of the source.
  3666. - You can use spaces between license names.
  3667. - For standard licenses, use the names of the files in
  3668. ``meta/files/common-licenses/`` or the
  3669. :term:`SPDXLICENSEMAP` flag names defined in
  3670. ``meta/conf/licenses.conf``.
  3671. Here are some examples::
  3672. LICENSE = "LGPL-2.1-only | GPL-3.0-only"
  3673. LICENSE = "MPL-1.0 & LGPL-2.1-only"
  3674. LICENSE = "GPL-2.0-or-later"
  3675. The first example is from the
  3676. recipes for Qt, which the user may choose to distribute under either
  3677. the LGPL version 2.1 or GPL version 3. The second example is from
  3678. Cairo where two licenses cover different parts of the source code.
  3679. The final example is from ``sysstat``, which presents a single
  3680. license.
  3681. You can also specify licenses on a per-package basis to handle
  3682. situations where components of the output have different licenses.
  3683. For example, a piece of software whose code is licensed under GPLv2
  3684. but has accompanying documentation licensed under the GNU Free
  3685. Documentation License 1.2 could be specified as follows::
  3686. LICENSE = "GFDL-1.2 & GPL-2.0-only"
  3687. LICENSE:${PN} = "GPL-2.0.only"
  3688. LICENSE:${PN}-doc = "GFDL-1.2"
  3689. :term:`LICENSE_CREATE_PACKAGE`
  3690. Setting :term:`LICENSE_CREATE_PACKAGE` to "1" causes the OpenEmbedded
  3691. build system to create an extra package (i.e.
  3692. ``${``\ :term:`PN`\ ``}-lic``) for each recipe and to add
  3693. those packages to the
  3694. :term:`RRECOMMENDS`\ ``:${PN}``.
  3695. The ``${PN}-lic`` package installs a directory in
  3696. ``/usr/share/licenses`` named ``${PN}``, which is the recipe's base
  3697. name, and installs files in that directory that contain license and
  3698. copyright information (i.e. copies of the appropriate license files
  3699. from ``meta/common-licenses`` that match the licenses specified in
  3700. the :term:`LICENSE` variable of the recipe metadata
  3701. and copies of files marked in
  3702. :term:`LIC_FILES_CHKSUM` as containing
  3703. license text).
  3704. For related information on providing license text, see the
  3705. :term:`COPY_LIC_DIRS` variable, the
  3706. :term:`COPY_LIC_MANIFEST` variable, and the
  3707. ":ref:`dev-manual/licenses:providing license text`"
  3708. section in the Yocto Project Development Tasks Manual.
  3709. :term:`LICENSE_FLAGS`
  3710. Specifies additional flags for a recipe you must allow through
  3711. :term:`LICENSE_FLAGS_ACCEPTED` in
  3712. order for the recipe to be built. When providing multiple flags,
  3713. separate them with spaces.
  3714. This value is independent of :term:`LICENSE` and is
  3715. typically used to mark recipes that might require additional licenses
  3716. in order to be used in a commercial product. For more information,
  3717. see the
  3718. ":ref:`dev-manual/licenses:enabling commercially licensed recipes`"
  3719. section in the Yocto Project Development Tasks Manual.
  3720. :term:`LICENSE_FLAGS_ACCEPTED`
  3721. Lists license flags that when specified in
  3722. :term:`LICENSE_FLAGS` within a recipe should not
  3723. prevent that recipe from being built. For more information, see the
  3724. ":ref:`dev-manual/licenses:enabling commercially licensed recipes`"
  3725. section in the Yocto Project Development Tasks Manual.
  3726. :term:`LICENSE_PATH`
  3727. Path to additional licenses used during the build. By default, the
  3728. OpenEmbedded build system uses :term:`COMMON_LICENSE_DIR` to define the
  3729. directory that holds common license text used during the build. The
  3730. :term:`LICENSE_PATH` variable allows you to extend that location to other
  3731. areas that have additional licenses::
  3732. LICENSE_PATH += "path-to-additional-common-licenses"
  3733. :term:`LINUX_KERNEL_TYPE`
  3734. Defines the kernel type to be used in assembling the configuration.
  3735. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  3736. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  3737. section in the
  3738. Yocto Project Linux Kernel Development Manual for more information on
  3739. kernel types.
  3740. If you do not specify a :term:`LINUX_KERNEL_TYPE`, it defaults to
  3741. "standard". Together with :term:`KMACHINE`, the
  3742. :term:`LINUX_KERNEL_TYPE` variable defines the search arguments used by
  3743. the kernel tools to find the appropriate description within the
  3744. kernel :term:`Metadata` with which to build out the sources
  3745. and configuration.
  3746. :term:`LINUX_VERSION`
  3747. The Linux version from ``kernel.org`` on which the Linux kernel image
  3748. being built using the OpenEmbedded build system is based. You define
  3749. this variable in the kernel recipe. For example, the
  3750. ``linux-yocto-3.4.bb`` kernel recipe found in
  3751. ``meta/recipes-kernel/linux`` defines the variables as follows::
  3752. LINUX_VERSION ?= "3.4.24"
  3753. The :term:`LINUX_VERSION` variable is used to define :term:`PV`
  3754. for the recipe::
  3755. PV = "${LINUX_VERSION}+git${SRCPV}"
  3756. :term:`LINUX_VERSION_EXTENSION`
  3757. A string extension compiled into the version string of the Linux
  3758. kernel built with the OpenEmbedded build system. You define this
  3759. variable in the kernel recipe. For example, the linux-yocto kernel
  3760. recipes all define the variable as follows::
  3761. LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}"
  3762. Defining this variable essentially sets the Linux kernel
  3763. configuration item ``CONFIG_LOCALVERSION``, which is visible through
  3764. the ``uname`` command. Here is an example that shows the extension
  3765. assuming it was set as previously shown::
  3766. $ uname -r
  3767. 3.7.0-rc8-custom
  3768. :term:`LOG_DIR`
  3769. Specifies the directory to which the OpenEmbedded build system writes
  3770. overall log files. The default directory is ``${TMPDIR}/log``.
  3771. For the directory containing logs specific to each task, see the
  3772. :term:`T` variable.
  3773. :term:`MACHINE`
  3774. Specifies the target device for which the image is built. You define
  3775. :term:`MACHINE` in the ``local.conf`` file found in the
  3776. :term:`Build Directory`. By default, :term:`MACHINE` is set to
  3777. "qemux86", which is an x86-based architecture machine to be emulated
  3778. using QEMU::
  3779. MACHINE ?= "qemux86"
  3780. The variable corresponds to a machine configuration file of the same
  3781. name, through which machine-specific configurations are set. Thus,
  3782. when :term:`MACHINE` is set to "qemux86", the corresponding
  3783. ``qemux86.conf`` machine configuration file can be found in
  3784. the :term:`Source Directory` in
  3785. ``meta/conf/machine``.
  3786. The list of machines supported by the Yocto Project as shipped
  3787. include the following::
  3788. MACHINE ?= "qemuarm"
  3789. MACHINE ?= "qemuarm64"
  3790. MACHINE ?= "qemumips"
  3791. MACHINE ?= "qemumips64"
  3792. MACHINE ?= "qemuppc"
  3793. MACHINE ?= "qemux86"
  3794. MACHINE ?= "qemux86-64"
  3795. MACHINE ?= "genericx86"
  3796. MACHINE ?= "genericx86-64"
  3797. MACHINE ?= "beaglebone"
  3798. MACHINE ?= "edgerouter"
  3799. The last five are Yocto Project reference hardware
  3800. boards, which are provided in the ``meta-yocto-bsp`` layer.
  3801. .. note::
  3802. Adding additional Board Support Package (BSP) layers to your
  3803. configuration adds new possible settings for :term:`MACHINE`.
  3804. :term:`MACHINE_ARCH`
  3805. Specifies the name of the machine-specific architecture. This
  3806. variable is set automatically from :term:`MACHINE` or
  3807. :term:`TUNE_PKGARCH`. You should not hand-edit
  3808. the :term:`MACHINE_ARCH` variable.
  3809. :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  3810. A list of required machine-specific packages to install as part of
  3811. the image being built. The build process depends on these packages
  3812. being present. Furthermore, because this is a "machine-essential"
  3813. variable, the list of packages are essential for the machine to boot.
  3814. The impact of this variable affects images based on
  3815. ``packagegroup-core-boot``, including the ``core-image-minimal``
  3816. image.
  3817. This variable is similar to the
  3818. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS` variable with the exception
  3819. that the image being built has a build dependency on the variable's
  3820. list of packages. In other words, the image will not build if a file
  3821. in this list is not found.
  3822. As an example, suppose the machine for which you are building
  3823. requires ``example-init`` to be run during boot to initialize the
  3824. hardware. In this case, you would use the following in the machine's
  3825. ``.conf`` configuration file::
  3826. MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "example-init"
  3827. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS`
  3828. A list of recommended machine-specific packages to install as part of
  3829. the image being built. The build process does not depend on these
  3830. packages being present. However, because this is a
  3831. "machine-essential" variable, the list of packages are essential for
  3832. the machine to boot. The impact of this variable affects images based
  3833. on ``packagegroup-core-boot``, including the ``core-image-minimal``
  3834. image.
  3835. This variable is similar to the :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  3836. variable with the exception that the image being built does not have
  3837. a build dependency on the variable's list of packages. In other
  3838. words, the image will still build if a package in this list is not
  3839. found. Typically, this variable is used to handle essential kernel
  3840. modules, whose functionality may be selected to be built into the
  3841. kernel rather than as a module, in which case a package will not be
  3842. produced.
  3843. Consider an example where you have a custom kernel where a specific
  3844. touchscreen driver is required for the machine to be usable. However,
  3845. the driver can be built as a module or into the kernel depending on
  3846. the kernel configuration. If the driver is built as a module, you
  3847. want it to be installed. But, when the driver is built into the
  3848. kernel, you still want the build to succeed. This variable sets up a
  3849. "recommends" relationship so that in the latter case, the build will
  3850. not fail due to the missing package. To accomplish this, assuming the
  3851. package for the module was called ``kernel-module-ab123``, you would
  3852. use the following in the machine's ``.conf`` configuration file::
  3853. MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "kernel-module-ab123"
  3854. .. note::
  3855. In this example, the ``kernel-module-ab123`` recipe needs to
  3856. explicitly set its :term:`PACKAGES` variable to ensure that BitBake
  3857. does not use the kernel recipe's :term:`PACKAGES_DYNAMIC` variable to
  3858. satisfy the dependency.
  3859. Some examples of these machine essentials are flash, screen,
  3860. keyboard, mouse, or touchscreen drivers (depending on the machine).
  3861. :term:`MACHINE_EXTRA_RDEPENDS`
  3862. A list of machine-specific packages to install as part of the image
  3863. being built that are not essential for the machine to boot. However,
  3864. the build process for more fully-featured images depends on the
  3865. packages being present.
  3866. This variable affects all images based on ``packagegroup-base``,
  3867. which does not include the ``core-image-minimal`` or
  3868. ``core-image-full-cmdline`` images.
  3869. The variable is similar to the :term:`MACHINE_EXTRA_RRECOMMENDS` variable
  3870. with the exception that the image being built has a build dependency
  3871. on the variable's list of packages. In other words, the image will
  3872. not build if a file in this list is not found.
  3873. An example is a machine that has WiFi capability but is not essential
  3874. for the machine to boot the image. However, if you are building a
  3875. more fully-featured image, you want to enable the WiFi. The package
  3876. containing the firmware for the WiFi hardware is always expected to
  3877. exist, so it is acceptable for the build process to depend upon
  3878. finding the package. In this case, assuming the package for the
  3879. firmware was called ``wifidriver-firmware``, you would use the
  3880. following in the ``.conf`` file for the machine::
  3881. MACHINE_EXTRA_RDEPENDS += "wifidriver-firmware"
  3882. :term:`MACHINE_EXTRA_RRECOMMENDS`
  3883. A list of machine-specific packages to install as part of the image
  3884. being built that are not essential for booting the machine. The image
  3885. being built has no build dependency on this list of packages.
  3886. This variable affects only images based on ``packagegroup-base``,
  3887. which does not include the ``core-image-minimal`` or
  3888. ``core-image-full-cmdline`` images.
  3889. This variable is similar to the :term:`MACHINE_EXTRA_RDEPENDS` variable
  3890. with the exception that the image being built does not have a build
  3891. dependency on the variable's list of packages. In other words, the
  3892. image will build if a file in this list is not found.
  3893. An example is a machine that has WiFi capability but is not essential
  3894. For the machine to boot the image. However, if you are building a
  3895. more fully-featured image, you want to enable WiFi. In this case, the
  3896. package containing the WiFi kernel module will not be produced if the
  3897. WiFi driver is built into the kernel, in which case you still want
  3898. the build to succeed instead of failing as a result of the package
  3899. not being found. To accomplish this, assuming the package for the
  3900. module was called ``kernel-module-examplewifi``, you would use the
  3901. following in the ``.conf`` file for the machine::
  3902. MACHINE_EXTRA_RRECOMMENDS += "kernel-module-examplewifi"
  3903. :term:`MACHINE_FEATURES`
  3904. Specifies the list of hardware features the
  3905. :term:`MACHINE` is capable of supporting. For related
  3906. information on enabling features, see the
  3907. :term:`DISTRO_FEATURES`,
  3908. :term:`COMBINED_FEATURES`, and
  3909. :term:`IMAGE_FEATURES` variables.
  3910. For a list of hardware features supported by the Yocto Project as
  3911. shipped, see the ":ref:`ref-features-machine`" section.
  3912. :term:`MACHINE_FEATURES_BACKFILL`
  3913. Features to be added to :term:`MACHINE_FEATURES` if not also present in
  3914. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`.
  3915. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  3916. not intended to be user-configurable. It is best to just reference
  3917. the variable to see which machine features are being backfilled for
  3918. all machine configurations. See the ":ref:`ref-features-backfill`"
  3919. section for more information.
  3920. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`
  3921. Features from :term:`MACHINE_FEATURES_BACKFILL` that should not be
  3922. backfilled (i.e. added to :term:`MACHINE_FEATURES`) during the build. See
  3923. the ":ref:`ref-features-backfill`" section for more information.
  3924. :term:`MACHINEOVERRIDES`
  3925. A colon-separated list of overrides that apply to the current
  3926. machine. By default, this list includes the value of
  3927. :term:`MACHINE`.
  3928. You can extend :term:`MACHINEOVERRIDES` to add extra overrides that
  3929. should apply to a machine. For example, all machines emulated in QEMU
  3930. (e.g. ``qemuarm``, ``qemux86``, and so forth) include a file named
  3931. ``meta/conf/machine/include/qemu.inc`` that prepends the following
  3932. override to :term:`MACHINEOVERRIDES`::
  3933. MACHINEOVERRIDES =. "qemuall:"
  3934. This
  3935. override allows variables to be overridden for all machines emulated
  3936. in QEMU, like in the following example from the ``connman-conf``
  3937. recipe::
  3938. SRC_URI:append:qemuall = " file://wired.config \
  3939. file://wired-setup \
  3940. "
  3941. The underlying mechanism behind
  3942. :term:`MACHINEOVERRIDES` is simply that it is included in the default
  3943. value of :term:`OVERRIDES`.
  3944. :term:`MAINTAINER`
  3945. The email address of the distribution maintainer.
  3946. :term:`MESON_BUILDTYPE`
  3947. Value of the Meson ``--buildtype`` argument used by the
  3948. :ref:`ref-classes-meson` class. It defaults to ``debug`` if
  3949. :term:`DEBUG_BUILD` is set to "1", and ``plain`` otherwise.
  3950. See `Meson build options <https://mesonbuild.com/Builtin-options.html>`__
  3951. for the values you could set in a recipe. Values such as ``plain``,
  3952. ``debug``, ``debugoptimized``, ``release`` and ``minsize`` allow
  3953. you to specify the inclusion of debugging symbols and the compiler
  3954. optimizations (none, performance or size).
  3955. :term:`METADATA_BRANCH`
  3956. The branch currently checked out for the OpenEmbedded-Core layer (path
  3957. determined by :term:`COREBASE`).
  3958. :term:`METADATA_REVISION`
  3959. The revision currently checked out for the OpenEmbedded-Core layer (path
  3960. determined by :term:`COREBASE`).
  3961. :term:`MIME_XDG_PACKAGES`
  3962. The current implementation of the :ref:`mime-xdg <ref-classes-mime-xdg>`
  3963. class cannot detect ``.desktop`` files installed through absolute
  3964. symbolic links. Use this setting to make the class create post-install
  3965. and post-remove scripts for these packages anyway, to invoke the
  3966. ``update-destop-database`` command.
  3967. :term:`MIRRORS`
  3968. Specifies additional paths from which the OpenEmbedded build system
  3969. gets source code. When the build system searches for source code, it
  3970. first tries the local download directory. If that location fails, the
  3971. build system tries locations defined by
  3972. :term:`PREMIRRORS`, the upstream source, and then
  3973. locations specified by :term:`MIRRORS` in that order.
  3974. The default value for :term:`MIRRORS` is defined in the
  3975. ``meta/classes-global/mirrors.bbclass`` file in the core metadata layer.
  3976. :term:`MLPREFIX`
  3977. Specifies a prefix has been added to :term:`PN` to create a
  3978. special version of a recipe or package (i.e. a Multilib version). The
  3979. variable is used in places where the prefix needs to be added to or
  3980. removed from a the name (e.g. the :term:`BPN` variable).
  3981. :term:`MLPREFIX` gets set when a prefix has been added to :term:`PN`.
  3982. .. note::
  3983. The "ML" in :term:`MLPREFIX` stands for "MultiLib". This representation is
  3984. historical and comes from a time when ``nativesdk`` was a suffix
  3985. rather than a prefix on the recipe name. When ``nativesdk`` was turned
  3986. into a prefix, it made sense to set :term:`MLPREFIX` for it as well.
  3987. To help understand when :term:`MLPREFIX` might be needed, consider when
  3988. :term:`BBCLASSEXTEND` is used to provide a
  3989. ``nativesdk`` version of a recipe in addition to the target version.
  3990. If that recipe declares build-time dependencies on tasks in other
  3991. recipes by using :term:`DEPENDS`, then a dependency on
  3992. "foo" will automatically get rewritten to a dependency on
  3993. "nativesdk-foo". However, dependencies like the following will not
  3994. get rewritten automatically::
  3995. do_foo[depends] += "recipe:do_foo"
  3996. If you want such a dependency to also get transformed, you can do the
  3997. following::
  3998. do_foo[depends] += "${MLPREFIX}recipe:do_foo"
  3999. :term:`module_autoload`
  4000. This variable has been replaced by the :term:`KERNEL_MODULE_AUTOLOAD`
  4001. variable. You should replace all occurrences of :term:`module_autoload`
  4002. with additions to :term:`KERNEL_MODULE_AUTOLOAD`, for example::
  4003. module_autoload_rfcomm = "rfcomm"
  4004. should now be replaced with::
  4005. KERNEL_MODULE_AUTOLOAD += "rfcomm"
  4006. See the :term:`KERNEL_MODULE_AUTOLOAD` variable for more information.
  4007. :term:`module_conf`
  4008. Specifies `modprobe.d <https://linux.die.net/man/5/modprobe.d>`_
  4009. syntax lines for inclusion in the ``/etc/modprobe.d/modname.conf``
  4010. file.
  4011. You can use this variable anywhere that it can be recognized by the
  4012. kernel recipe or out-of-tree kernel module recipe (e.g. a machine
  4013. configuration file, a distribution configuration file, an append file
  4014. for the recipe, or the recipe itself). If you use this variable, you
  4015. must also be sure to list the module name in the
  4016. :term:`KERNEL_MODULE_PROBECONF`
  4017. variable.
  4018. Here is the general syntax::
  4019. module_conf_module_name = "modprobe.d-syntax"
  4020. You must use the kernel module name override.
  4021. Run ``man modprobe.d`` in the shell to find out more information on
  4022. the exact syntax you want to provide with :term:`module_conf`.
  4023. Including :term:`module_conf` causes the OpenEmbedded build system to
  4024. populate the ``/etc/modprobe.d/modname.conf`` file with
  4025. ``modprobe.d`` syntax lines. Here is an example that adds the options
  4026. ``arg1`` and ``arg2`` to a module named ``mymodule``::
  4027. module_conf_mymodule = "options mymodule arg1=val1 arg2=val2"
  4028. For information on how to specify kernel modules to auto-load on
  4029. boot, see the :term:`KERNEL_MODULE_AUTOLOAD` variable.
  4030. :term:`MODULE_TARBALL_DEPLOY`
  4031. Controls creation of the ``modules-*.tgz`` file. Set this variable to
  4032. "0" to disable creation of this file, which contains all of the
  4033. kernel modules resulting from a kernel build.
  4034. :term:`MODULE_TARBALL_LINK_NAME`
  4035. The link name of the kernel module tarball. This variable is set in
  4036. the ``meta/classes/kernel-artifact-names.bbclass`` file as follows::
  4037. MODULE_TARBALL_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  4038. The value
  4039. of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the
  4040. same file, has the following value::
  4041. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  4042. See the :term:`MACHINE` variable for additional information.
  4043. :term:`MODULE_TARBALL_NAME`
  4044. The base name of the kernel module tarball. This variable is set in
  4045. the ``meta/classes/kernel-artifact-names.bbclass`` file as follows::
  4046. MODULE_TARBALL_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  4047. The value of the :term:`KERNEL_ARTIFACT_NAME` variable,
  4048. which is set in the same file, has the following value::
  4049. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  4050. :term:`MULTIMACH_TARGET_SYS`
  4051. Uniquely identifies the type of the target system for which packages
  4052. are being built. This variable allows output for different types of
  4053. target systems to be put into different subdirectories of the same
  4054. output directory.
  4055. The default value of this variable is::
  4056. ${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}
  4057. Some classes (e.g.
  4058. :ref:`cross-canadian <ref-classes-cross-canadian>`) modify the
  4059. :term:`MULTIMACH_TARGET_SYS` value.
  4060. See the :term:`STAMP` variable for an example. See the
  4061. :term:`STAGING_DIR_TARGET` variable for more information.
  4062. :term:`NATIVELSBSTRING`
  4063. A string identifying the host distribution. Strings consist of the
  4064. host distributor ID followed by the release, as reported by the
  4065. ``lsb_release`` tool or as read from ``/etc/lsb-release``. For
  4066. example, when running a build on Ubuntu 12.10, the value is
  4067. "Ubuntu-12.10". If this information is unable to be determined, the
  4068. value resolves to "Unknown".
  4069. This variable is used by default to isolate native shared state
  4070. packages for different distributions (e.g. to avoid problems with
  4071. ``glibc`` version incompatibilities). Additionally, the variable is
  4072. checked against
  4073. :term:`SANITY_TESTED_DISTROS` if that
  4074. variable is set.
  4075. :term:`NM`
  4076. The minimal command and arguments to run ``nm``.
  4077. :term:`NO_GENERIC_LICENSE`
  4078. Avoids QA errors when you use a non-common, non-CLOSED license in a
  4079. recipe. There are packages, such as the linux-firmware package, with many
  4080. licenses that are not in any way common. Also, new licenses are added
  4081. occasionally to avoid introducing a lot of common license files,
  4082. which are only applicable to a specific package.
  4083. :term:`NO_GENERIC_LICENSE` is used to allow copying a license that does
  4084. not exist in common licenses.
  4085. The following example shows how to add :term:`NO_GENERIC_LICENSE` to a
  4086. recipe::
  4087. NO_GENERIC_LICENSE[license_name] = "license_file_in_fetched_source"
  4088. Here is an example that
  4089. uses the ``LICENSE.Abilis.txt`` file as the license from the fetched
  4090. source::
  4091. NO_GENERIC_LICENSE[Firmware-Abilis] = "LICENSE.Abilis.txt"
  4092. :term:`NO_RECOMMENDATIONS`
  4093. Prevents installation of all "recommended-only" packages.
  4094. Recommended-only packages are packages installed only through the
  4095. :term:`RRECOMMENDS` variable). Setting the
  4096. :term:`NO_RECOMMENDATIONS` variable to "1" turns this feature on::
  4097. NO_RECOMMENDATIONS = "1"
  4098. You can set this variable globally in your ``local.conf`` file or you
  4099. can attach it to a specific image recipe by using the recipe name
  4100. override::
  4101. NO_RECOMMENDATIONS:pn-target_image = "1"
  4102. It is important to realize that if you choose to not install packages
  4103. using this variable and some other packages are dependent on them
  4104. (i.e. listed in a recipe's :term:`RDEPENDS`
  4105. variable), the OpenEmbedded build system ignores your request and
  4106. will install the packages to avoid dependency errors.
  4107. .. note::
  4108. Some recommended packages might be required for certain system
  4109. functionality, such as kernel modules. It is up to you to add
  4110. packages with the :term:`IMAGE_INSTALL` variable.
  4111. This variable is only supported when using the IPK and RPM
  4112. packaging backends. DEB is not supported.
  4113. See the :term:`BAD_RECOMMENDATIONS` and
  4114. the :term:`PACKAGE_EXCLUDE` variables for
  4115. related information.
  4116. :term:`NOAUTOPACKAGEDEBUG`
  4117. Disables auto package from splitting ``.debug`` files. If a recipe
  4118. requires ``FILES:${PN}-dbg`` to be set manually, the
  4119. :term:`NOAUTOPACKAGEDEBUG` can be defined allowing you to define the
  4120. content of the debug package. For example::
  4121. NOAUTOPACKAGEDEBUG = "1"
  4122. FILES:${PN}-dev = "${includedir}/${QT_DIR_NAME}/Qt/*"
  4123. FILES:${PN}-dbg = "/usr/src/debug/"
  4124. FILES:${QT_BASE_NAME}-demos-doc = "${docdir}/${QT_DIR_NAME}/qch/qt.qch"
  4125. :term:`NON_MULTILIB_RECIPES`
  4126. A list of recipes that should not be built for multilib. OE-Core's
  4127. ``multilib.conf`` file defines a reasonable starting point for this
  4128. list with::
  4129. NON_MULTILIB_RECIPES = "grub grub-efi make-mod-scripts ovmf u-boot"
  4130. :term:`OBJCOPY`
  4131. The minimal command and arguments to run ``objcopy``.
  4132. :term:`OBJDUMP`
  4133. The minimal command and arguments to run ``objdump``.
  4134. :term:`OE_BINCONFIG_EXTRA_MANGLE`
  4135. When inheriting the :ref:`binconfig <ref-classes-binconfig>` class,
  4136. this variable specifies additional arguments passed to the "sed"
  4137. command. The sed command alters any paths in configuration scripts
  4138. that have been set up during compilation. Inheriting this class
  4139. results in all paths in these scripts being changed to point into the
  4140. ``sysroots/`` directory so that all builds that use the script will
  4141. use the correct directories for the cross compiling layout.
  4142. See the ``meta/classes/binconfig.bbclass`` in the
  4143. :term:`Source Directory` for details on how this class
  4144. applies these additional sed command arguments.
  4145. :term:`OECMAKE_GENERATOR`
  4146. A variable for the :ref:`ref-classes-cmake` class, allowing to choose
  4147. which back-end will be generated by CMake to build an application.
  4148. By default, this variable is set to ``Ninja``, which is faster than GNU
  4149. make, but if building is broken with Ninja, a recipe can use this
  4150. variable to use GNU make instead::
  4151. OECMAKE_GENERATOR = "Unix Makefiles"
  4152. :term:`OE_IMPORTS`
  4153. An internal variable used to tell the OpenEmbedded build system what
  4154. Python modules to import for every Python function run by the system.
  4155. .. note::
  4156. Do not set this variable. It is for internal use only.
  4157. :term:`OE_INIT_ENV_SCRIPT`
  4158. The name of the build environment setup script for the purposes of
  4159. setting up the environment within the extensible SDK. The default
  4160. value is "oe-init-build-env".
  4161. If you use a custom script to set up your build environment, set the
  4162. :term:`OE_INIT_ENV_SCRIPT` variable to its name.
  4163. :term:`OE_TERMINAL`
  4164. Controls how the OpenEmbedded build system spawns interactive
  4165. terminals on the host development system (e.g. using the BitBake
  4166. command with the ``-c devshell`` command-line option). For more
  4167. information, see the ":ref:`dev-manual/development-shell:using a development shell`" section in
  4168. the Yocto Project Development Tasks Manual.
  4169. You can use the following values for the :term:`OE_TERMINAL` variable:
  4170. - auto
  4171. - gnome
  4172. - xfce
  4173. - rxvt
  4174. - screen
  4175. - konsole
  4176. - none
  4177. :term:`OEROOT`
  4178. The directory from which the top-level build environment setup script
  4179. is sourced. The Yocto Project provides a top-level build environment
  4180. setup script: :ref:`structure-core-script`. When you run this
  4181. script, the :term:`OEROOT` variable resolves to the directory that
  4182. contains the script.
  4183. For additional information on how this variable is used, see the
  4184. initialization script.
  4185. :term:`OEQA_REPRODUCIBLE_TEST_PACKAGE`
  4186. Set the package manager(s) for build reproducibility testing.
  4187. See :yocto_git:`reproducible.py </poky/tree/meta/lib/oeqa/selftest/cases/reproducible.py>`
  4188. and :doc:`/test-manual/reproducible-builds`.
  4189. :term:`OEQA_REPRODUCIBLE_TEST_TARGET`
  4190. Set build target for build reproducibility testing. By default
  4191. all available recipes are compiled with "bitbake world", see also :term:`EXCLUDE_FROM_WORLD`
  4192. and :doc:`/test-manual/reproducible-builds`.
  4193. :term:`OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS`
  4194. Set build targets which can be rebuilt using :ref:`shared state <overview-manual/concepts:shared state cache>`
  4195. when running build reproducibility tests. See :doc:`/test-manual/reproducible-builds`.
  4196. :term:`OLDEST_KERNEL`
  4197. Declares the oldest version of the Linux kernel that the produced
  4198. binaries must support. This variable is passed into the build of the
  4199. Embedded GNU C Library (``glibc``).
  4200. The default for this variable comes from the
  4201. ``meta/conf/bitbake.conf`` configuration file. You can override this
  4202. default by setting the variable in a custom distribution
  4203. configuration file.
  4204. :term:`OPKGBUILDCMD`
  4205. The variable :term:`OPKGBUILDCMD` specifies the command used to build opkg
  4206. packages when using the :ref:`ref-classes-package_ipk` class. It is
  4207. defined in :ref:`ref-classes-package_ipk` as::
  4208. OPKGBUILDCMD ??= 'opkg-build -Z zstd -a "${ZSTD_DEFAULTS}"'
  4209. :term:`OVERRIDES`
  4210. A colon-separated list of overrides that currently apply. Overrides
  4211. are a BitBake mechanism that allows variables to be selectively
  4212. overridden at the end of parsing. The set of overrides in
  4213. :term:`OVERRIDES` represents the "state" during building, which includes
  4214. the current recipe being built, the machine for which it is being
  4215. built, and so forth.
  4216. As an example, if the string "an-override" appears as an element in
  4217. the colon-separated list in :term:`OVERRIDES`, then the following
  4218. assignment will override ``FOO`` with the value "overridden" at the
  4219. end of parsing::
  4220. FOO:an-override = "overridden"
  4221. See the
  4222. ":ref:`bitbake:bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  4223. section in the BitBake User Manual for more information on the
  4224. overrides mechanism.
  4225. The default value of :term:`OVERRIDES` includes the values of the
  4226. :term:`CLASSOVERRIDE`,
  4227. :term:`MACHINEOVERRIDES`, and
  4228. :term:`DISTROOVERRIDES` variables. Another
  4229. important override included by default is ``pn-${PN}``. This override
  4230. allows variables to be set for a single recipe within configuration
  4231. (``.conf``) files. Here is an example::
  4232. FOO:pn-myrecipe = "myrecipe-specific value"
  4233. .. note::
  4234. An easy way to see what overrides apply is to search for :term:`OVERRIDES`
  4235. in the output of the ``bitbake -e`` command. See the
  4236. ":ref:`dev-manual/debugging:viewing variable values`" section in the Yocto
  4237. Project Development Tasks Manual for more information.
  4238. :term:`P`
  4239. The recipe name and version. :term:`P` is comprised of the following::
  4240. ${PN}-${PV}
  4241. :term:`PACKAGE_ADD_METADATA`
  4242. This variable defines additional metadata to add to packages.
  4243. You may find you need to inject additional metadata into packages.
  4244. This variable allows you to do that by setting the injected data as
  4245. the value. Multiple fields can be added by splitting the content with
  4246. the literal separator "\n".
  4247. The suffixes '_IPK', '_DEB', or '_RPM' can be applied to the variable
  4248. to do package type specific settings. It can also be made package
  4249. specific by using the package name as a suffix.
  4250. You can find out more about applying this variable in the
  4251. ":ref:`dev-manual/packages:adding custom metadata to packages`"
  4252. section in the Yocto Project Development Tasks Manual.
  4253. :term:`PACKAGE_ARCH`
  4254. The architecture of the resulting package or packages.
  4255. By default, the value of this variable is set to
  4256. :term:`TUNE_PKGARCH` when building for the
  4257. target, :term:`BUILD_ARCH` when building for the
  4258. build host, and "${SDK_ARCH}-${SDKPKGSUFFIX}" when building for the
  4259. SDK.
  4260. .. note::
  4261. See :term:`SDK_ARCH` for more information.
  4262. However, if your recipe's output packages are built specific to the
  4263. target machine rather than generally for the architecture of the
  4264. machine, you should set :term:`PACKAGE_ARCH` to the value of
  4265. :term:`MACHINE_ARCH` in the recipe as follows::
  4266. PACKAGE_ARCH = "${MACHINE_ARCH}"
  4267. :term:`PACKAGE_ARCHS`
  4268. Specifies a list of architectures compatible with the target machine.
  4269. This variable is set automatically and should not normally be
  4270. hand-edited. Entries are separated using spaces and listed in order
  4271. of priority. The default value for :term:`PACKAGE_ARCHS` is "all any
  4272. noarch ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}".
  4273. :term:`PACKAGE_BEFORE_PN`
  4274. Enables easily adding packages to :term:`PACKAGES` before ``${PN}`` so
  4275. that those added packages can pick up files that would normally be
  4276. included in the default package.
  4277. :term:`PACKAGE_CLASSES`
  4278. This variable, which is set in the ``local.conf`` configuration file
  4279. found in the ``conf`` folder of the
  4280. :term:`Build Directory`, specifies the package manager the
  4281. OpenEmbedded build system uses when packaging data.
  4282. You can provide one or more of the following arguments for the
  4283. variable: PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk
  4284. package_tar"
  4285. .. note::
  4286. While it is a legal option, the ``package_tar``
  4287. class has limited functionality due to no support for package
  4288. dependencies by that backend. Therefore, it is recommended that
  4289. you do not use it.
  4290. The build system uses only the first argument in the list as the
  4291. package manager when creating your image or SDK. However, packages
  4292. will be created using any additional packaging classes you specify.
  4293. For example, if you use the following in your ``local.conf`` file::
  4294. PACKAGE_CLASSES ?= "package_ipk"
  4295. The OpenEmbedded build system uses
  4296. the IPK package manager to create your image or SDK.
  4297. For information on packaging and build performance effects as a
  4298. result of the package manager in use, see the
  4299. ":ref:`ref-classes-package`" section.
  4300. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  4301. Determines how to split up and package debug and source information
  4302. when creating debugging packages to be used with the GNU Project
  4303. Debugger (GDB). In general, based on the value of this variable,
  4304. you can combine the source and debug info in a single package,
  4305. you can break out the source into a separate package that can be
  4306. installed independently, or you can choose to not have the source
  4307. packaged at all.
  4308. The possible values of :term:`PACKAGE_DEBUG_SPLIT_STYLE` variable:
  4309. - "``.debug``": All debugging and source info is placed in a single
  4310. ``*-dbg`` package; debug symbol files are placed next to the
  4311. binary in a ``.debug`` directory so that, if a binary is installed
  4312. into ``/bin``, the corresponding debug symbol file is installed
  4313. in ``/bin/.debug``. Source files are installed in the same ``*-dbg``
  4314. package under ``/usr/src/debug``.
  4315. - "``debug-file-directory``": As above, all debugging and source info
  4316. is placed in a single ``*-dbg`` package; debug symbol files are
  4317. placed entirely under the directory ``/usr/lib/debug`` and separated
  4318. by the path from where the binary is installed, so that if a binary
  4319. is installed in ``/bin``, the corresponding debug symbols are installed
  4320. in ``/usr/lib/debug/bin``, and so on. As above, source is installed
  4321. in the same package under ``/usr/src/debug``.
  4322. - "``debug-with-srcpkg``": Debugging info is placed in the standard
  4323. ``*-dbg`` package as with the ``.debug`` value, while source is
  4324. placed in a separate ``*-src`` package, which can be installed
  4325. independently. This is the default setting for this variable,
  4326. as defined in Poky's ``bitbake.conf`` file.
  4327. - "``debug-without-src``": The same behavior as with the ``.debug``
  4328. setting, but no source is packaged at all.
  4329. .. note::
  4330. Much of the above package splitting can be overridden via
  4331. use of the :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` variable.
  4332. You can find out more about debugging using GDB by reading the
  4333. ":ref:`dev-manual/debugging:debugging with the gnu project debugger (gdb) remotely`" section
  4334. in the Yocto Project Development Tasks Manual.
  4335. :term:`PACKAGE_EXCLUDE`
  4336. Lists packages that should not be installed into an image. For
  4337. example::
  4338. PACKAGE_EXCLUDE = "package_name package_name package_name ..."
  4339. You can set this variable globally in your ``local.conf`` file or you
  4340. can attach it to a specific image recipe by using the recipe name
  4341. override::
  4342. PACKAGE_EXCLUDE:pn-target_image = "package_name"
  4343. If you choose to not install a package using this variable and some
  4344. other package is dependent on it (i.e. listed in a recipe's
  4345. :term:`RDEPENDS` variable), the OpenEmbedded build
  4346. system generates a fatal installation error. Because the build system
  4347. halts the process with a fatal error, you can use the variable with
  4348. an iterative development process to remove specific components from a
  4349. system.
  4350. This variable is supported only when using the IPK and RPM
  4351. packaging backends. DEB is not supported.
  4352. See the :term:`NO_RECOMMENDATIONS` and the
  4353. :term:`BAD_RECOMMENDATIONS` variables for
  4354. related information.
  4355. :term:`PACKAGE_EXCLUDE_COMPLEMENTARY`
  4356. Prevents specific packages from being installed when you are
  4357. installing complementary packages.
  4358. You might find that you want to prevent installing certain packages
  4359. when you are installing complementary packages. For example, if you
  4360. are using :term:`IMAGE_FEATURES` to install
  4361. ``dev-pkgs``, you might not want to install all packages from a
  4362. particular multilib. If you find yourself in this situation, you can
  4363. use the :term:`PACKAGE_EXCLUDE_COMPLEMENTARY` variable to specify regular
  4364. expressions to match the packages you want to exclude.
  4365. :term:`PACKAGE_EXTRA_ARCHS`
  4366. Specifies the list of architectures compatible with the device CPU.
  4367. This variable is useful when you build for several different devices
  4368. that use miscellaneous processors such as XScale and ARM926-EJS.
  4369. :term:`PACKAGE_FEED_ARCHS`
  4370. Optionally specifies the package architectures used as part of the
  4371. package feed URIs during the build. When used, the
  4372. :term:`PACKAGE_FEED_ARCHS` variable is appended to the final package feed
  4373. URI, which is constructed using the
  4374. :term:`PACKAGE_FEED_URIS` and
  4375. :term:`PACKAGE_FEED_BASE_PATHS`
  4376. variables.
  4377. .. note::
  4378. You can use the :term:`PACKAGE_FEED_ARCHS`
  4379. variable to allow specific package architectures. If you do
  4380. not need to allow specific architectures, which is a common
  4381. case, you can omit this variable. Omitting the variable results in
  4382. all available architectures for the current machine being included
  4383. into remote package feeds.
  4384. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4385. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4386. defined in your ``local.conf`` file::
  4387. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4388. https://example.com/packagerepos/updates"
  4389. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4390. PACKAGE_FEED_ARCHS = "all core2-64"
  4391. Given these settings, the resulting package feeds are as follows:
  4392. .. code-block:: none
  4393. https://example.com/packagerepos/release/rpm/all
  4394. https://example.com/packagerepos/release/rpm/core2-64
  4395. https://example.com/packagerepos/release/rpm-dev/all
  4396. https://example.com/packagerepos/release/rpm-dev/core2-64
  4397. https://example.com/packagerepos/updates/rpm/all
  4398. https://example.com/packagerepos/updates/rpm/core2-64
  4399. https://example.com/packagerepos/updates/rpm-dev/all
  4400. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4401. :term:`PACKAGE_FEED_BASE_PATHS`
  4402. Specifies the base path used when constructing package feed URIs. The
  4403. :term:`PACKAGE_FEED_BASE_PATHS` variable makes up the middle portion of a
  4404. package feed URI used by the OpenEmbedded build system. The base path
  4405. lies between the :term:`PACKAGE_FEED_URIS`
  4406. and :term:`PACKAGE_FEED_ARCHS` variables.
  4407. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4408. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4409. defined in your ``local.conf`` file::
  4410. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4411. https://example.com/packagerepos/updates"
  4412. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4413. PACKAGE_FEED_ARCHS = "all core2-64"
  4414. Given these settings, the resulting package feeds are as follows:
  4415. .. code-block:: none
  4416. https://example.com/packagerepos/release/rpm/all
  4417. https://example.com/packagerepos/release/rpm/core2-64
  4418. https://example.com/packagerepos/release/rpm-dev/all
  4419. https://example.com/packagerepos/release/rpm-dev/core2-64
  4420. https://example.com/packagerepos/updates/rpm/all
  4421. https://example.com/packagerepos/updates/rpm/core2-64
  4422. https://example.com/packagerepos/updates/rpm-dev/all
  4423. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4424. :term:`PACKAGE_FEED_URIS`
  4425. Specifies the front portion of the package feed URI used by the
  4426. OpenEmbedded build system. Each final package feed URI is comprised
  4427. of :term:`PACKAGE_FEED_URIS`,
  4428. :term:`PACKAGE_FEED_BASE_PATHS`, and
  4429. :term:`PACKAGE_FEED_ARCHS` variables.
  4430. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4431. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4432. defined in your ``local.conf`` file::
  4433. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4434. https://example.com/packagerepos/updates"
  4435. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4436. PACKAGE_FEED_ARCHS = "all core2-64"
  4437. Given these settings, the resulting package feeds are as follows:
  4438. .. code-block:: none
  4439. https://example.com/packagerepos/release/rpm/all
  4440. https://example.com/packagerepos/release/rpm/core2-64
  4441. https://example.com/packagerepos/release/rpm-dev/all
  4442. https://example.com/packagerepos/release/rpm-dev/core2-64
  4443. https://example.com/packagerepos/updates/rpm/all
  4444. https://example.com/packagerepos/updates/rpm/core2-64
  4445. https://example.com/packagerepos/updates/rpm-dev/all
  4446. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4447. :term:`PACKAGE_INSTALL`
  4448. The final list of packages passed to the package manager for
  4449. installation into the image.
  4450. Because the package manager controls actual installation of all
  4451. packages, the list of packages passed using :term:`PACKAGE_INSTALL` is
  4452. not the final list of packages that are actually installed. This
  4453. variable is internal to the image construction code. Consequently, in
  4454. general, you should use the
  4455. :term:`IMAGE_INSTALL` variable to specify
  4456. packages for installation. The exception to this is when working with
  4457. the :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  4458. image. When working with an initial RAM filesystem (initramfs) image,
  4459. use the :term:`PACKAGE_INSTALL` variable. For information on creating an
  4460. :term:`Initramfs`, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  4461. in the Yocto Project Development Tasks Manual.
  4462. :term:`PACKAGE_INSTALL_ATTEMPTONLY`
  4463. Specifies a list of packages the OpenEmbedded build system attempts
  4464. to install when creating an image. If a listed package fails to
  4465. install, the build system does not generate an error. This variable
  4466. is generally not user-defined.
  4467. :term:`PACKAGE_PREPROCESS_FUNCS`
  4468. Specifies a list of functions run to pre-process the
  4469. :term:`PKGD` directory prior to splitting the files out
  4470. to individual packages.
  4471. :term:`PACKAGE_WRITE_DEPS`
  4472. Specifies a list of dependencies for post-installation and
  4473. pre-installation scripts on native/cross tools. If your
  4474. post-installation or pre-installation script can execute at root filesystem
  4475. creation time rather than on the target but depends on a native tool
  4476. in order to execute, you need to list the tools in
  4477. :term:`PACKAGE_WRITE_DEPS`.
  4478. For information on running post-installation scripts, see the
  4479. ":ref:`dev-manual/new-recipe:post-installation scripts`"
  4480. section in the Yocto Project Development Tasks Manual.
  4481. :term:`PACKAGECONFIG`
  4482. This variable provides a means of enabling or disabling features of a
  4483. recipe on a per-recipe basis. :term:`PACKAGECONFIG` blocks are defined in
  4484. recipes when you specify features and then arguments that define
  4485. feature behaviors. Here is the basic block structure (broken over
  4486. multiple lines for readability)::
  4487. PACKAGECONFIG ??= "f1 f2 f3 ..."
  4488. PACKAGECONFIG[f1] = "\
  4489. --with-f1, \
  4490. --without-f1, \
  4491. build-deps-for-f1, \
  4492. runtime-deps-for-f1, \
  4493. runtime-recommends-for-f1, \
  4494. packageconfig-conflicts-for-f1"
  4495. PACKAGECONFIG[f2] = "\
  4496. ... and so on and so on ...
  4497. The :term:`PACKAGECONFIG` variable itself specifies a space-separated
  4498. list of the features to enable. Following the features, you can
  4499. determine the behavior of each feature by providing up to six
  4500. order-dependent arguments, which are separated by commas. You can
  4501. omit any argument you like but must retain the separating commas. The
  4502. order is important and specifies the following:
  4503. #. Extra arguments that should be added to :term:`PACKAGECONFIG_CONFARGS`
  4504. if the feature is enabled.
  4505. #. Extra arguments that should be added to :term:`PACKAGECONFIG_CONFARGS`
  4506. if the feature is disabled.
  4507. #. Additional build dependencies (:term:`DEPENDS`)
  4508. that should be added if the feature is enabled.
  4509. #. Additional runtime dependencies (:term:`RDEPENDS`)
  4510. that should be added if the feature is enabled.
  4511. #. Additional runtime recommendations
  4512. (:term:`RRECOMMENDS`) that should be added if
  4513. the feature is enabled.
  4514. #. Any conflicting (that is, mutually exclusive) :term:`PACKAGECONFIG`
  4515. settings for this feature.
  4516. Consider the following :term:`PACKAGECONFIG` block taken from the
  4517. ``librsvg`` recipe. In this example the feature is ``gtk``, which has
  4518. three arguments that determine the feature's behavior.
  4519. ::
  4520. PACKAGECONFIG[gtk] = "--with-gtk3,--without-gtk3,gtk+3"
  4521. The
  4522. ``--with-gtk3`` and ``gtk+3`` arguments apply only if the feature is
  4523. enabled. In this case, ``--with-gtk3`` is added to the configure
  4524. script argument list and ``gtk+3`` is added to :term:`DEPENDS`. On the
  4525. other hand, if the feature is disabled say through a ``.bbappend``
  4526. file in another layer, then the second argument ``--without-gtk3`` is
  4527. added to the configure script instead.
  4528. The basic :term:`PACKAGECONFIG` structure previously described holds true
  4529. regardless of whether you are creating a block or changing a block.
  4530. When creating a block, use the structure inside your recipe.
  4531. If you want to change an existing :term:`PACKAGECONFIG` block, you can do
  4532. so one of two ways:
  4533. - *Append file:* Create an append file named
  4534. ``recipename.bbappend`` in your layer and override the value of
  4535. :term:`PACKAGECONFIG`. You can either completely override the
  4536. variable::
  4537. PACKAGECONFIG = "f4 f5"
  4538. Or, you can just append the variable::
  4539. PACKAGECONFIG:append = " f4"
  4540. - *Configuration file:* This method is identical to changing the
  4541. block through an append file except you edit your ``local.conf``
  4542. or ``mydistro.conf`` file. As with append files previously
  4543. described, you can either completely override the variable::
  4544. PACKAGECONFIG:pn-recipename = "f4 f5"
  4545. Or, you can just amend the variable::
  4546. PACKAGECONFIG:append:pn-recipename = " f4"
  4547. Consider the following example of a :ref:`ref-classes-cmake` recipe with a systemd service
  4548. in which :term:`PACKAGECONFIG` is used to transform the systemd service
  4549. into a feature that can be easily enabled or disabled via :term:`PACKAGECONFIG`::
  4550. example.c
  4551. example.service
  4552. CMakeLists.txt
  4553. The ``CMakeLists.txt`` file contains::
  4554. if(WITH_SYSTEMD)
  4555. install(FILES ${PROJECT_SOURCE_DIR}/example.service DESTINATION /etc/systemd/systemd)
  4556. endif(WITH_SYSTEMD)
  4557. In order to enable the installation of ``example.service`` we need to
  4558. ensure that ``-DWITH_SYSTEMD=ON`` is passed to the ``cmake`` command
  4559. execution. Recipes that have ``CMakeLists.txt`` generally inherit the
  4560. :ref:`ref-classes-cmake` class, that runs ``cmake`` with
  4561. :term:`EXTRA_OECMAKE`, which :term:`PACKAGECONFIG_CONFARGS` will be
  4562. appended to. Now, knowing that :term:`PACKAGECONFIG_CONFARGS` is
  4563. automatically filled with either the first or second element of
  4564. :term:`PACKAGECONFIG` flag value, the recipe would be like::
  4565. inherit cmake
  4566. PACKAGECONFIG = "systemd"
  4567. PACKAGECONFIG[systemd] = "-DWITH_SYSTEMD=ON,-DWITH_SYSTEMD=OFF"
  4568. A side note to this recipe is to check if ``systemd`` is in fact the used :term:`INIT_MANAGER`
  4569. or not::
  4570. PACKAGECONFIG = "${@'systemd' if d.getVar('INIT_MANAGER') == 'systemd' else ''}"
  4571. :term:`PACKAGECONFIG_CONFARGS`
  4572. A space-separated list of configuration options generated from the
  4573. :term:`PACKAGECONFIG` setting.
  4574. Classes such as :ref:`autotools <ref-classes-autotools>` and
  4575. :ref:`cmake <ref-classes-cmake>` use :term:`PACKAGECONFIG_CONFARGS` to
  4576. pass :term:`PACKAGECONFIG` options to ``configure`` and ``cmake``,
  4577. respectively. If you are using :term:`PACKAGECONFIG` but not a class that
  4578. handles the ``do_configure`` task, then you need to use
  4579. :term:`PACKAGECONFIG_CONFARGS` appropriately.
  4580. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY`
  4581. For recipes inheriting the
  4582. :ref:`packagegroup <ref-classes-packagegroup>` class, setting
  4583. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY` to "1" specifies that the
  4584. normal complementary packages (i.e. ``-dev``, ``-dbg``, and so forth)
  4585. should not be automatically created by the ``packagegroup`` recipe,
  4586. which is the default behavior.
  4587. :term:`PACKAGES`
  4588. The list of packages the recipe creates. The default value is the
  4589. following::
  4590. ${PN}-src ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}
  4591. During packaging, the :ref:`ref-tasks-package` task
  4592. goes through :term:`PACKAGES` and uses the :term:`FILES`
  4593. variable corresponding to each package to assign files to the
  4594. package. If a file matches the :term:`FILES` variable for more than one
  4595. package in :term:`PACKAGES`, it will be assigned to the earliest
  4596. (leftmost) package.
  4597. Packages in the variable's list that are empty (i.e. where none of
  4598. the patterns in ``FILES:``\ pkg match any files installed by the
  4599. :ref:`ref-tasks-install` task) are not generated,
  4600. unless generation is forced through the
  4601. :term:`ALLOW_EMPTY` variable.
  4602. :term:`PACKAGES_DYNAMIC`
  4603. A promise that your recipe satisfies runtime dependencies for
  4604. optional modules that are found in other recipes.
  4605. :term:`PACKAGES_DYNAMIC` does not actually satisfy the dependencies, it
  4606. only states that they should be satisfied. For example, if a hard,
  4607. runtime dependency (:term:`RDEPENDS`) of another
  4608. package is satisfied at build time through the :term:`PACKAGES_DYNAMIC`
  4609. variable, but a package with the module name is never actually
  4610. produced, then the other package will be broken. Thus, if you attempt
  4611. to include that package in an image, you will get a dependency
  4612. failure from the packaging system during the
  4613. :ref:`ref-tasks-rootfs` task.
  4614. Typically, if there is a chance that such a situation can occur and
  4615. the package that is not created is valid without the dependency being
  4616. satisfied, then you should use :term:`RRECOMMENDS`
  4617. (a soft runtime dependency) instead of :term:`RDEPENDS`.
  4618. For an example of how to use the :term:`PACKAGES_DYNAMIC` variable when
  4619. you are splitting packages, see the
  4620. ":ref:`dev-manual/packages:handling optional module packaging`"
  4621. section in the Yocto Project Development Tasks Manual.
  4622. :term:`PACKAGESPLITFUNCS`
  4623. Specifies a list of functions run to perform additional splitting of
  4624. files into individual packages. Recipes can either prepend to this
  4625. variable or prepend to the ``populate_packages`` function in order to
  4626. perform additional package splitting. In either case, the function
  4627. should set :term:`PACKAGES`,
  4628. :term:`FILES`, :term:`RDEPENDS` and
  4629. other packaging variables appropriately in order to perform the
  4630. desired splitting.
  4631. :term:`PARALLEL_MAKE`
  4632. Extra options passed to the ``make`` command during the
  4633. :ref:`ref-tasks-compile` task in order to specify
  4634. parallel compilation on the local build host. This variable is
  4635. usually in the form "-j x", where x represents the maximum number of
  4636. parallel threads ``make`` can run.
  4637. .. note::
  4638. In order for :term:`PARALLEL_MAKE` to be effective, ``make`` must be
  4639. called with ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy way to ensure
  4640. this is to use the ``oe_runmake`` function.
  4641. By default, the OpenEmbedded build system automatically sets this
  4642. variable to be equal to the number of cores the build system uses.
  4643. .. note::
  4644. If the software being built experiences dependency issues during
  4645. the ``do_compile`` task that result in race conditions, you can clear
  4646. the :term:`PARALLEL_MAKE` variable within the recipe as a workaround. For
  4647. information on addressing race conditions, see the
  4648. ":ref:`dev-manual/debugging:debugging parallel make races`"
  4649. section in the Yocto Project Development Tasks Manual.
  4650. For single socket systems (i.e. one CPU), you should not have to
  4651. override this variable to gain optimal parallelism during builds.
  4652. However, if you have very large systems that employ multiple physical
  4653. CPUs, you might want to make sure the :term:`PARALLEL_MAKE` variable is
  4654. not set higher than "-j 20".
  4655. For more information on speeding up builds, see the
  4656. ":ref:`dev-manual/speeding-up-build:speeding up a build`"
  4657. section in the Yocto Project Development Tasks Manual.
  4658. :term:`PARALLEL_MAKEINST`
  4659. Extra options passed to the ``make install`` command during the
  4660. :ref:`ref-tasks-install` task in order to specify
  4661. parallel installation. This variable defaults to the value of
  4662. :term:`PARALLEL_MAKE`.
  4663. .. note::
  4664. In order for :term:`PARALLEL_MAKEINST` to be effective, ``make`` must
  4665. be called with
  4666. ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy
  4667. way to ensure this is to use the ``oe_runmake`` function.
  4668. If the software being built experiences dependency issues during
  4669. the ``do_install`` task that result in race conditions, you can
  4670. clear the :term:`PARALLEL_MAKEINST` variable within the recipe as a
  4671. workaround. For information on addressing race conditions, see the
  4672. ":ref:`dev-manual/debugging:debugging parallel make races`"
  4673. section in the Yocto Project Development Tasks Manual.
  4674. :term:`PATCHRESOLVE`
  4675. Determines the action to take when a patch fails. You can set this
  4676. variable to one of two values: "noop" and "user".
  4677. The default value of "noop" causes the build to simply fail when the
  4678. OpenEmbedded build system cannot successfully apply a patch. Setting
  4679. the value to "user" causes the build system to launch a shell and
  4680. places you in the right location so that you can manually resolve the
  4681. conflicts.
  4682. Set this variable in your ``local.conf`` file.
  4683. :term:`PATCHTOOL`
  4684. Specifies the utility used to apply patches for a recipe during the
  4685. :ref:`ref-tasks-patch` task. You can specify one of
  4686. three utilities: "patch", "quilt", or "git". The default utility used
  4687. is "quilt" except for the quilt-native recipe itself. Because the
  4688. quilt tool is not available at the time quilt-native is being
  4689. patched, it uses "patch".
  4690. If you wish to use an alternative patching tool, set the variable in
  4691. the recipe using one of the following::
  4692. PATCHTOOL = "patch"
  4693. PATCHTOOL = "quilt"
  4694. PATCHTOOL = "git"
  4695. :term:`PE`
  4696. The epoch of the recipe. By default, this variable is unset. The
  4697. variable is used to make upgrades possible when the versioning scheme
  4698. changes in some backwards incompatible way.
  4699. :term:`PE` is the default value of the :term:`PKGE` variable.
  4700. :term:`PEP517_BUILD_API`
  4701. When used by recipes that inherit the :ref:`python_pep517
  4702. <ref-classes-python_pep517>` class, specifies the entry point to the
  4703. PEP-517 compliant build API (such as ``flit_core.buildapi``).
  4704. :term:`PEP517_WHEEL_PATH`
  4705. When used by recipes that inherit the
  4706. :ref:`python_pep517 <ref-classes-python_pep517>` class,
  4707. denotes the path to ``dist/`` (short for distribution) where the
  4708. binary archive ``wheel`` is built.
  4709. :term:`PF`
  4710. Specifies the recipe or package name and includes all version and
  4711. revision numbers (i.e. ``glibc-2.13-r20+svnr15508/`` and
  4712. ``bash-4.2-r1/``). This variable is comprised of the following:
  4713. ${:term:`PN`}-${:term:`EXTENDPE`}${:term:`PV`}-${:term:`PR`}
  4714. :term:`PIXBUF_PACKAGES`
  4715. When inheriting the :ref:`pixbufcache <ref-classes-pixbufcache>`
  4716. class, this variable identifies packages that contain the pixbuf
  4717. loaders used with ``gdk-pixbuf``. By default, the ``pixbufcache``
  4718. class assumes that the loaders are in the recipe's main package (i.e.
  4719. ``${``\ :term:`PN`\ ``}``). Use this variable if the
  4720. loaders you need are in a package other than that main package.
  4721. :term:`PKG`
  4722. The name of the resulting package created by the OpenEmbedded build
  4723. system.
  4724. .. note::
  4725. When using the :term:`PKG` variable, you must use a package name override.
  4726. For example, when the :ref:`debian <ref-classes-debian>` class
  4727. renames the output package, it does so by setting
  4728. ``PKG:packagename``.
  4729. :term:`PKG_CONFIG_PATH`
  4730. The path to ``pkg-config`` files for the current build context.
  4731. ``pkg-config`` reads this variable from the environment.
  4732. :term:`PKGD`
  4733. Points to the destination directory for files to be packaged before
  4734. they are split into individual packages. This directory defaults to
  4735. the following::
  4736. ${WORKDIR}/package
  4737. Do not change this default.
  4738. :term:`PKGDATA_DIR`
  4739. Points to a shared, global-state directory that holds data generated
  4740. during the packaging process. During the packaging process, the
  4741. :ref:`ref-tasks-packagedata` task packages data
  4742. for each recipe and installs it into this temporary, shared area.
  4743. This directory defaults to the following, which you should not
  4744. change::
  4745. ${STAGING_DIR_HOST}/pkgdata
  4746. For examples of how this data is used, see the
  4747. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  4748. section in the Yocto Project Overview and Concepts Manual and the
  4749. ":ref:`dev-manual/debugging:viewing package information with \`\`oe-pkgdata-util\`\``"
  4750. section in the Yocto Project Development Tasks Manual. For more
  4751. information on the shared, global-state directory, see
  4752. :term:`STAGING_DIR_HOST`.
  4753. :term:`PKGDEST`
  4754. Points to the parent directory for files to be packaged after they
  4755. have been split into individual packages. This directory defaults to
  4756. the following::
  4757. ${WORKDIR}/packages-split
  4758. Under this directory, the build system creates directories for each
  4759. package specified in :term:`PACKAGES`. Do not change
  4760. this default.
  4761. :term:`PKGDESTWORK`
  4762. Points to a temporary work area where the
  4763. :ref:`ref-tasks-package` task saves package metadata.
  4764. The :term:`PKGDESTWORK` location defaults to the following::
  4765. ${WORKDIR}/pkgdata
  4766. Do not change this default.
  4767. The :ref:`ref-tasks-packagedata` task copies the
  4768. package metadata from :term:`PKGDESTWORK` to
  4769. :term:`PKGDATA_DIR` to make it available globally.
  4770. :term:`PKGE`
  4771. The epoch of the package(s) built by the recipe. By default, :term:`PKGE`
  4772. is set to :term:`PE`.
  4773. :term:`PKGR`
  4774. The revision of the package(s) built by the recipe. By default,
  4775. :term:`PKGR` is set to :term:`PR`.
  4776. :term:`PKGV`
  4777. The version of the package(s) built by the recipe. By default,
  4778. :term:`PKGV` is set to :term:`PV`.
  4779. :term:`PN`
  4780. This variable can have two separate functions depending on the
  4781. context: a recipe name or a resulting package name.
  4782. :term:`PN` refers to a recipe name in the context of a file used by the
  4783. OpenEmbedded build system as input to create a package. The name is
  4784. normally extracted from the recipe file name. For example, if the
  4785. recipe is named ``expat_2.0.1.bb``, then the default value of :term:`PN`
  4786. will be "expat".
  4787. The variable refers to a package name in the context of a file
  4788. created or produced by the OpenEmbedded build system.
  4789. If applicable, the :term:`PN` variable also contains any special suffix
  4790. or prefix. For example, using ``bash`` to build packages for the
  4791. native machine, :term:`PN` is ``bash-native``. Using ``bash`` to build
  4792. packages for the target and for Multilib, :term:`PN` would be ``bash``
  4793. and ``lib64-bash``, respectively.
  4794. :term:`POPULATE_SDK_POST_HOST_COMMAND`
  4795. Specifies a list of functions to call once the OpenEmbedded build
  4796. system has created the host part of the SDK. You can specify
  4797. functions separated by semicolons::
  4798. POPULATE_SDK_POST_HOST_COMMAND += "function; ... "
  4799. If you need to pass the SDK path to a command within a function, you
  4800. can use ``${SDK_DIR}``, which points to the parent directory used by
  4801. the OpenEmbedded build system when creating SDK output. See the
  4802. :term:`SDK_DIR` variable for more information.
  4803. :term:`POPULATE_SDK_POST_TARGET_COMMAND`
  4804. Specifies a list of functions to call once the OpenEmbedded build
  4805. system has created the target part of the SDK. You can specify
  4806. functions separated by semicolons::
  4807. POPULATE_SDK_POST_TARGET_COMMAND += "function; ... "
  4808. If you need to pass the SDK path to a command within a function, you
  4809. can use ``${SDK_DIR}``, which points to the parent directory used by
  4810. the OpenEmbedded build system when creating SDK output. See the
  4811. :term:`SDK_DIR` variable for more information.
  4812. :term:`PR`
  4813. The revision of the recipe. The default value for this variable is
  4814. "r0". Subsequent revisions of the recipe conventionally have the
  4815. values "r1", "r2", and so forth. When :term:`PV` increases,
  4816. :term:`PR` is conventionally reset to "r0".
  4817. .. note::
  4818. The OpenEmbedded build system does not need the aid of :term:`PR`
  4819. to know when to rebuild a recipe. The build system uses the task
  4820. :ref:`input checksums <overview-manual/concepts:checksums (signatures)>` along with the
  4821. :ref:`stamp <structure-build-tmp-stamps>` and
  4822. :ref:`overview-manual/concepts:shared state cache`
  4823. mechanisms.
  4824. The :term:`PR` variable primarily becomes significant when a package
  4825. manager dynamically installs packages on an already built image. In
  4826. this case, :term:`PR`, which is the default value of
  4827. :term:`PKGR`, helps the package manager distinguish which
  4828. package is the most recent one in cases where many packages have the
  4829. same :term:`PV` (i.e. :term:`PKGV`). A component having many packages with
  4830. the same :term:`PV` usually means that the packages all install the same
  4831. upstream version, but with later (:term:`PR`) version packages including
  4832. packaging fixes.
  4833. .. note::
  4834. :term:`PR` does not need to be increased for changes that do not change the
  4835. package contents or metadata.
  4836. Because manually managing :term:`PR` can be cumbersome and error-prone,
  4837. an automated solution exists. See the
  4838. ":ref:`dev-manual/packages:working with a pr service`" section
  4839. in the Yocto Project Development Tasks Manual for more information.
  4840. :term:`PREFERRED_PROVIDER`
  4841. If multiple recipes provide the same item, this variable determines
  4842. which recipe is preferred and thus provides the item (i.e. the
  4843. preferred provider). You should always suffix this variable with the
  4844. name of the provided item. And, you should define the variable using
  4845. the preferred recipe's name (:term:`PN`). Here is a common
  4846. example::
  4847. PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
  4848. In the previous example, multiple recipes are providing "virtual/kernel".
  4849. The :term:`PREFERRED_PROVIDER` variable is set with the name (:term:`PN`) of
  4850. the recipe you prefer to provide "virtual/kernel".
  4851. Here are more examples::
  4852. PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86"
  4853. PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
  4854. For more
  4855. information, see the ":ref:`dev-manual/new-recipe:using virtual providers`"
  4856. section in the Yocto Project Development Tasks Manual.
  4857. .. note::
  4858. If you use a ``virtual/\*`` item with :term:`PREFERRED_PROVIDER`, then any
  4859. recipe that :term:`PROVIDES` that item but is not selected (defined)
  4860. by :term:`PREFERRED_PROVIDER` is prevented from building, which is usually
  4861. desirable since this mechanism is designed to select between mutually
  4862. exclusive alternative providers.
  4863. :term:`PREFERRED_VERSION`
  4864. If there are multiple versions of a recipe available, this variable
  4865. determines which version should be given preference. You must always
  4866. suffix the variable with the :term:`PN` you want to select (`python` in
  4867. the first example below), and you should specify the :term:`PV`
  4868. accordingly (`3.4.0` in the example).
  4869. The :term:`PREFERRED_VERSION` variable supports limited wildcard use
  4870. through the "``%``" character. You can use the character to match any
  4871. number of characters, which can be useful when specifying versions
  4872. that contain long revision numbers that potentially change. Here are
  4873. two examples::
  4874. PREFERRED_VERSION_python = "3.4.0"
  4875. PREFERRED_VERSION_linux-yocto = "5.0%"
  4876. .. note::
  4877. The use of the "%" character is limited in that it only works at the end of the
  4878. string. You cannot use the wildcard character in any other
  4879. location of the string.
  4880. The specified version is matched against :term:`PV`, which
  4881. does not necessarily match the version part of the recipe's filename.
  4882. For example, consider two recipes ``foo_1.2.bb`` and ``foo_git.bb``
  4883. where ``foo_git.bb`` contains the following assignment::
  4884. PV = "1.1+git${SRCPV}"
  4885. In this case, the correct way to select
  4886. ``foo_git.bb`` is by using an assignment such as the following::
  4887. PREFERRED_VERSION_foo = "1.1+git%"
  4888. Compare that previous example
  4889. against the following incorrect example, which does not work::
  4890. PREFERRED_VERSION_foo = "git"
  4891. Sometimes the :term:`PREFERRED_VERSION` variable can be set by
  4892. configuration files in a way that is hard to change. You can use
  4893. :term:`OVERRIDES` to set a machine-specific
  4894. override. Here is an example::
  4895. PREFERRED_VERSION_linux-yocto:qemux86 = "5.0%"
  4896. Although not recommended, worst case, you can also use the
  4897. "forcevariable" override, which is the strongest override possible.
  4898. Here is an example::
  4899. PREFERRED_VERSION_linux-yocto:forcevariable = "5.0%"
  4900. .. note::
  4901. The ``:forcevariable`` override is not handled specially. This override
  4902. only works because the default value of :term:`OVERRIDES` includes "forcevariable".
  4903. If a recipe with the specified version is not available, a warning
  4904. message will be shown. See :term:`REQUIRED_VERSION` if you want this
  4905. to be an error instead.
  4906. :term:`PREMIRRORS`
  4907. Specifies additional paths from which the OpenEmbedded build system
  4908. gets source code. When the build system searches for source code, it
  4909. first tries the local download directory. If that location fails, the
  4910. build system tries locations defined by :term:`PREMIRRORS`, the upstream
  4911. source, and then locations specified by
  4912. :term:`MIRRORS` in that order.
  4913. The default value for :term:`PREMIRRORS` is defined in the
  4914. ``meta/classes-global/mirrors.bbclass`` file in the core metadata layer.
  4915. Typically, you could add a specific server for the build system to
  4916. attempt before any others by adding something like the following to
  4917. the ``local.conf`` configuration file in the
  4918. :term:`Build Directory`::
  4919. PREMIRRORS:prepend = "\
  4920. git://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  4921. ftp://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  4922. http://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  4923. https://.*/.* &YOCTO_DL_URL;/mirror/sources/"
  4924. These changes cause the
  4925. build system to intercept Git, FTP, HTTP, and HTTPS requests and
  4926. direct them to the ``http://`` sources mirror. You can use
  4927. ``file://`` URLs to point to local directories or network shares as
  4928. well.
  4929. :term:`PRIORITY`
  4930. Indicates the importance of a package.
  4931. :term:`PRIORITY` is considered to be part of the distribution policy
  4932. because the importance of any given recipe depends on the purpose for
  4933. which the distribution is being produced. Thus, :term:`PRIORITY` is not
  4934. normally set within recipes.
  4935. You can set :term:`PRIORITY` to "required", "standard", "extra", and
  4936. "optional", which is the default.
  4937. :term:`PRIVATE_LIBS`
  4938. Specifies libraries installed within a recipe that should be ignored
  4939. by the OpenEmbedded build system's shared library resolver. This
  4940. variable is typically used when software being built by a recipe has
  4941. its own private versions of a library normally provided by another
  4942. recipe. In this case, you would not want the package containing the
  4943. private libraries to be set as a dependency on other unrelated
  4944. packages that should instead depend on the package providing the
  4945. standard version of the library.
  4946. Libraries specified in this variable should be specified by their
  4947. file name. For example, from the Firefox recipe in meta-browser::
  4948. PRIVATE_LIBS = "libmozjs.so \
  4949. libxpcom.so \
  4950. libnspr4.so \
  4951. libxul.so \
  4952. libmozalloc.so \
  4953. libplc4.so \
  4954. libplds4.so"
  4955. For more information, see the
  4956. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  4957. section in the Yocto Project Overview and Concepts Manual.
  4958. :term:`PROVIDES`
  4959. A list of aliases by which a particular recipe can be known. By
  4960. default, a recipe's own :term:`PN` is implicitly already in its
  4961. :term:`PROVIDES` list and therefore does not need to mention that it
  4962. provides itself. If a recipe uses :term:`PROVIDES`, the additional
  4963. aliases are synonyms for the recipe and can be useful for satisfying
  4964. dependencies of other recipes during the build as specified by
  4965. :term:`DEPENDS`.
  4966. Consider the following example :term:`PROVIDES` statement from the recipe
  4967. file ``eudev_3.2.9.bb``::
  4968. PROVIDES += "udev"
  4969. The :term:`PROVIDES` statement
  4970. results in the "eudev" recipe also being available as simply "udev".
  4971. .. note::
  4972. A recipe's own recipe name (:term:`PN`) is always implicitly prepended
  4973. to `PROVIDES`, so while using "+=" in the above example may not be
  4974. strictly necessary it is recommended to avoid confusion.
  4975. In addition to providing recipes under alternate names, the
  4976. :term:`PROVIDES` mechanism is also used to implement virtual targets. A
  4977. virtual target is a name that corresponds to some particular
  4978. functionality (e.g. a Linux kernel). Recipes that provide the
  4979. functionality in question list the virtual target in :term:`PROVIDES`.
  4980. Recipes that depend on the functionality in question can include the
  4981. virtual target in :term:`DEPENDS` to leave the choice of provider open.
  4982. Conventionally, virtual targets have names on the form
  4983. "virtual/function" (e.g. "virtual/kernel"). The slash is simply part
  4984. of the name and has no syntactical significance.
  4985. The :term:`PREFERRED_PROVIDER` variable is
  4986. used to select which particular recipe provides a virtual target.
  4987. .. note::
  4988. A corresponding mechanism for virtual runtime dependencies (packages)
  4989. exists. However, the mechanism does not depend on any special
  4990. functionality beyond ordinary variable assignments. For example,
  4991. :term:`VIRTUAL-RUNTIME_dev_manager <VIRTUAL-RUNTIME>` refers to the
  4992. package of the component that manages the ``/dev`` directory.
  4993. Setting the "preferred provider" for runtime dependencies is as
  4994. simple as using the following assignment in a configuration file::
  4995. VIRTUAL-RUNTIME_dev_manager = "udev"
  4996. :term:`PRSERV_HOST`
  4997. The network based :term:`PR` service host and port.
  4998. The ``conf/local.conf.sample.extended`` configuration file in the
  4999. :term:`Source Directory` shows how the
  5000. :term:`PRSERV_HOST` variable is set::
  5001. PRSERV_HOST = "localhost:0"
  5002. You must
  5003. set the variable if you want to automatically start a local :ref:`PR
  5004. service <dev-manual/packages:working with a pr service>`. You can
  5005. set :term:`PRSERV_HOST` to other values to use a remote PR service.
  5006. :term:`PSEUDO_IGNORE_PATHS`
  5007. A comma-separated (without spaces) list of path prefixes that should be ignored
  5008. by pseudo when monitoring and recording file operations, in order to avoid
  5009. problems with files being written to outside of the pseudo context and
  5010. reduce pseudo's overhead. A path is ignored if it matches any prefix in the list
  5011. and can include partial directory (or file) names.
  5012. :term:`PTEST_ENABLED`
  5013. Specifies whether or not :ref:`Package
  5014. Test <test-manual/ptest:testing packages with ptest>` (ptest)
  5015. functionality is enabled when building a recipe. You should not set
  5016. this variable directly. Enabling and disabling building Package Tests
  5017. at build time should be done by adding "ptest" to (or removing it
  5018. from) :term:`DISTRO_FEATURES`.
  5019. :term:`PV`
  5020. The version of the recipe. The version is normally extracted from the
  5021. recipe filename. For example, if the recipe is named
  5022. ``expat_2.0.1.bb``, then the default value of :term:`PV` will be "2.0.1".
  5023. :term:`PV` is generally not overridden within a recipe unless it is
  5024. building an unstable (i.e. development) version from a source code
  5025. repository (e.g. Git or Subversion).
  5026. :term:`PV` is the default value of the :term:`PKGV` variable.
  5027. :term:`PYPI_PACKAGE`
  5028. When inheriting the :ref:`pypi <ref-classes-pypi>` class, specifies the
  5029. `PyPI <https://pypi.org/>`__ package name to be built. The default value
  5030. is set based upon :term:`BPN` (stripping any "python-" or "python3-"
  5031. prefix off if present), however for some packages it will need to be set
  5032. explicitly if that will not match the package name (e.g. where the
  5033. package name has a prefix, underscores, uppercase letters etc.)
  5034. :term:`PYTHON_ABI`
  5035. When used by recipes that inherit the
  5036. :ref:`setuptools3 <ref-classes-setuptools3>` class, denotes the
  5037. Application Binary Interface (ABI) currently in use for Python. By
  5038. default, the ABI is "m". You do not have to set this variable as the
  5039. OpenEmbedded build system sets it for you.
  5040. The OpenEmbedded build system uses the ABI to construct directory
  5041. names used when installing the Python headers and libraries in
  5042. sysroot (e.g. ``.../python3.3m/...``).
  5043. :term:`PYTHON_PN`
  5044. When used by recipes that inherit the
  5045. :ref:`setuptools3 <ref-classes-setuptools3>` classe, specifies the
  5046. major Python version being built. For Python 3.x, :term:`PYTHON_PN` would
  5047. be "python3". You do not have to set this variable as the
  5048. OpenEmbedded build system automatically sets it for you.
  5049. The variable allows recipes to use common infrastructure such as the
  5050. following::
  5051. DEPENDS += "${PYTHON_PN}-native"
  5052. In the previous example,
  5053. the version of the dependency is :term:`PYTHON_PN`.
  5054. :term:`QA_EMPTY_DIRS`
  5055. Specifies a list of directories that are expected to be empty when
  5056. packaging; if ``empty-dirs`` appears in :term:`ERROR_QA` or
  5057. :term:`WARN_QA` these will be checked and an error or warning
  5058. (respectively) will be produced.
  5059. The default :term:`QA_EMPTY_DIRS` value is set in
  5060. :ref:`insane.bbclass <ref-classes-insane>`.
  5061. :term:`QA_EMPTY_DIRS_RECOMMENDATION`
  5062. Specifies a recommendation for why a directory must be empty,
  5063. which will be included in the error message if a specific directory
  5064. is found to contain files. Must be overridden with the directory
  5065. path to match on.
  5066. If no recommendation is specified for a directory, then the default
  5067. "but it is expected to be empty" will be used.
  5068. An example message shows if files were present in '/dev'::
  5069. QA_EMPTY_DIRS_RECOMMENDATION:/dev = "but all devices must be created at runtime"
  5070. :term:`RANLIB`
  5071. The minimal command and arguments to run ``ranlib``.
  5072. :term:`RCONFLICTS`
  5073. The list of packages that conflict with packages. Note that packages
  5074. will not be installed if conflicting packages are not first removed.
  5075. Like all package-controlling variables, you must always use them in
  5076. conjunction with a package name override. Here is an example::
  5077. RCONFLICTS:${PN} = "another_conflicting_package_name"
  5078. BitBake, which the OpenEmbedded build system uses, supports
  5079. specifying versioned dependencies. Although the syntax varies
  5080. depending on the packaging format, BitBake hides these differences
  5081. from you. Here is the general syntax to specify versions with the
  5082. :term:`RCONFLICTS` variable::
  5083. RCONFLICTS:${PN} = "package (operator version)"
  5084. For ``operator``, you can specify the following:
  5085. - =
  5086. - <
  5087. - >
  5088. - <=
  5089. - >=
  5090. For example, the following sets up a dependency on version 1.2 or
  5091. greater of the package ``foo``::
  5092. RCONFLICTS:${PN} = "foo (>= 1.2)"
  5093. :term:`RDEPENDS`
  5094. Lists runtime dependencies of a package. These dependencies are other
  5095. packages that must be installed in order for the package to function
  5096. correctly. As an example, the following assignment declares that the
  5097. package ``foo`` needs the packages ``bar`` and ``baz`` to be
  5098. installed::
  5099. RDEPENDS:foo = "bar baz"
  5100. The most common types of package
  5101. runtime dependencies are automatically detected and added. Therefore,
  5102. most recipes do not need to set :term:`RDEPENDS`. For more information,
  5103. see the
  5104. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5105. section in the Yocto Project Overview and Concepts Manual.
  5106. The practical effect of the above :term:`RDEPENDS` assignment is that
  5107. ``bar`` and ``baz`` will be declared as dependencies inside the
  5108. package ``foo`` when it is written out by one of the
  5109. :ref:`do_package_write_\* <ref-tasks-package_write_deb>` tasks.
  5110. Exactly how this is done depends on which package format is used,
  5111. which is determined by
  5112. :term:`PACKAGE_CLASSES`. When the
  5113. corresponding package manager installs the package, it will know to
  5114. also install the packages on which it depends.
  5115. To ensure that the packages ``bar`` and ``baz`` get built, the
  5116. previous :term:`RDEPENDS` assignment also causes a task dependency to be
  5117. added. This dependency is from the recipe's
  5118. :ref:`ref-tasks-build` (not to be confused with
  5119. :ref:`ref-tasks-compile`) task to the
  5120. ``do_package_write_*`` task of the recipes that build ``bar`` and
  5121. ``baz``.
  5122. The names of the packages you list within :term:`RDEPENDS` must be the
  5123. names of other packages --- they cannot be recipe names. Although
  5124. package names and recipe names usually match, the important point
  5125. here is that you are providing package names within the :term:`RDEPENDS`
  5126. variable. For an example of the default list of packages created from
  5127. a recipe, see the :term:`PACKAGES` variable.
  5128. Because the :term:`RDEPENDS` variable applies to packages being built,
  5129. you should always use the variable in a form with an attached package
  5130. name (remember that a single recipe can build multiple packages). For
  5131. example, suppose you are building a development package that depends
  5132. on the ``perl`` package. In this case, you would use the following
  5133. :term:`RDEPENDS` statement::
  5134. RDEPENDS:${PN}-dev += "perl"
  5135. In the example,
  5136. the development package depends on the ``perl`` package. Thus, the
  5137. :term:`RDEPENDS` variable has the ``${PN}-dev`` package name as part of
  5138. the variable.
  5139. .. note::
  5140. ``RDEPENDS:${PN}-dev`` includes ``${``\ :term:`PN`\ ``}``
  5141. by default. This default is set in the BitBake configuration file
  5142. (``meta/conf/bitbake.conf``). Be careful not to accidentally remove
  5143. ``${PN}`` when modifying ``RDEPENDS:${PN}-dev``. Use the "+=" operator
  5144. rather than the "=" operator.
  5145. The package names you use with :term:`RDEPENDS` must appear as they would
  5146. in the :term:`PACKAGES` variable. The :term:`PKG` variable
  5147. allows a different name to be used for the final package (e.g. the
  5148. :ref:`debian <ref-classes-debian>` class uses this to rename
  5149. packages), but this final package name cannot be used with
  5150. :term:`RDEPENDS`, which makes sense as :term:`RDEPENDS` is meant to be
  5151. independent of the package format used.
  5152. BitBake, which the OpenEmbedded build system uses, supports
  5153. specifying versioned dependencies. Although the syntax varies
  5154. depending on the packaging format, BitBake hides these differences
  5155. from you. Here is the general syntax to specify versions with the
  5156. :term:`RDEPENDS` variable::
  5157. RDEPENDS:${PN} = "package (operator version)"
  5158. For ``operator``, you can specify the following:
  5159. - =
  5160. - <
  5161. - >
  5162. - <=
  5163. - >=
  5164. For version, provide the version number.
  5165. .. note::
  5166. You can use :term:`EXTENDPKGV` to provide a full package version
  5167. specification.
  5168. For example, the following sets up a dependency on version 1.2 or
  5169. greater of the package ``foo``::
  5170. RDEPENDS:${PN} = "foo (>= 1.2)"
  5171. For information on build-time dependencies, see the
  5172. :term:`DEPENDS` variable. You can also see the
  5173. ":ref:`bitbake:bitbake-user-manual/bitbake-user-manual-metadata:tasks`" and
  5174. ":ref:`bitbake:bitbake-user-manual/bitbake-user-manual-execution:dependencies`" sections in the
  5175. BitBake User Manual for additional information on tasks and
  5176. dependencies.
  5177. :term:`RECIPE_MAINTAINER`
  5178. This variable defines the name and e-mail address of the maintainer of a
  5179. recipe. Such information can be used by human users submitted changes,
  5180. and by automated tools to send notifications, for example about
  5181. vulnerabilities or source updates.
  5182. The variable can be defined in a global distribution :oe_git:`maintainers.inc
  5183. </openembedded-core/tree/meta/conf/distro/include/maintainers.inc>` file::
  5184. meta/conf/distro/include/maintainers.inc:RECIPE_MAINTAINER:pn-sysvinit = "Ross Burton <ross.burton@arm.com>"
  5185. It can also be directly defined in a recipe,
  5186. for example in the ``libgpiod`` one::
  5187. RECIPE_MAINTAINER = "Bartosz Golaszewski <brgl@bgdev.pl>"
  5188. :term:`RECIPE_NO_UPDATE_REASON`
  5189. If a recipe should not be replaced by a more recent upstream version,
  5190. putting the reason why in this variable in a recipe allows
  5191. ``devtool check-upgrade-status`` command to display it, as explained
  5192. in the ":ref:`ref-manual/devtool-reference:checking on the upgrade status of a recipe`"
  5193. section.
  5194. :term:`RECIPE_SYSROOT`
  5195. This variable points to the directory that holds all files populated from
  5196. recipes specified in :term:`DEPENDS`. As the name indicates,
  5197. think of this variable as a custom root (``/``) for the recipe that will be
  5198. used by the compiler in order to find headers and other files needed to complete
  5199. its job.
  5200. This variable is related to :term:`STAGING_DIR_HOST` or :term:`STAGING_DIR_TARGET`
  5201. according to the type of the recipe and the build target.
  5202. To better understand this variable, consider the following examples:
  5203. - For ``#include <header.h>``, ``header.h`` should be in ``"${RECIPE_SYSROOT}/usr/include"``
  5204. - For ``-lexample``, ``libexample.so`` should be in ``"${RECIPE_SYSROOT}/lib"``
  5205. or other library sysroot directories.
  5206. The default value is ``"${WORKDIR}/recipe-sysroot"``.
  5207. Do not modify it.
  5208. :term:`RECIPE_SYSROOT_NATIVE`
  5209. This is similar to :term:`RECIPE_SYSROOT` but the populated files are from
  5210. ``-native`` recipes. This allows a recipe built for the target machine to
  5211. use ``native`` tools.
  5212. This variable is related to :term:`STAGING_DIR_NATIVE`.
  5213. The default value is ``"${WORKDIR}/recipe-sysroot-native"``.
  5214. Do not modify it.
  5215. :term:`REPODIR`
  5216. See :term:`bitbake:REPODIR` in the BitBake manual.
  5217. :term:`REQUIRED_DISTRO_FEATURES`
  5218. When inheriting the
  5219. :ref:`features_check <ref-classes-features_check>`
  5220. class, this variable identifies distribution features that must exist
  5221. in the current configuration in order for the OpenEmbedded build
  5222. system to build the recipe. In other words, if the
  5223. :term:`REQUIRED_DISTRO_FEATURES` variable lists a feature that does not
  5224. appear in :term:`DISTRO_FEATURES` within the current configuration, then
  5225. the recipe will be skipped, and if the build system attempts to build
  5226. the recipe then an error will be triggered.
  5227. :term:`REQUIRED_VERSION`
  5228. If there are multiple versions of a recipe available, this variable
  5229. determines which version should be given preference.
  5230. :term:`REQUIRED_VERSION` works in exactly the same manner as
  5231. :term:`PREFERRED_VERSION`, except that if the specified version is not
  5232. available then an error message is shown and the build fails
  5233. immediately.
  5234. If both :term:`REQUIRED_VERSION` and :term:`PREFERRED_VERSION` are set
  5235. for the same recipe, the :term:`REQUIRED_VERSION` value applies.
  5236. :term:`RM_WORK_EXCLUDE`
  5237. With ``rm_work`` enabled, this variable specifies a list of recipes
  5238. whose work directories should not be removed. See the
  5239. ":ref:`ref-classes-rm-work`" section for more
  5240. details.
  5241. :term:`ROOT_HOME`
  5242. Defines the root home directory. By default, this directory is set as
  5243. follows in the BitBake configuration file::
  5244. ROOT_HOME ??= "/home/root"
  5245. .. note::
  5246. This default value is likely used because some embedded solutions
  5247. prefer to have a read-only root filesystem and prefer to keep
  5248. writeable data in one place.
  5249. You can override the default by setting the variable in any layer or
  5250. in the ``local.conf`` file. Because the default is set using a "weak"
  5251. assignment (i.e. "??="), you can use either of the following forms to
  5252. define your override::
  5253. ROOT_HOME = "/root"
  5254. ROOT_HOME ?= "/root"
  5255. These
  5256. override examples use ``/root``, which is probably the most commonly
  5257. used override.
  5258. :term:`ROOTFS`
  5259. Indicates a filesystem image to include as the root filesystem.
  5260. The :term:`ROOTFS` variable is an optional variable used with the
  5261. :ref:`image-live <ref-classes-image-live>` class.
  5262. :term:`ROOTFS_POSTINSTALL_COMMAND`
  5263. Specifies a list of functions to call after the OpenEmbedded build
  5264. system has installed packages. You can specify functions separated by
  5265. semicolons::
  5266. ROOTFS_POSTINSTALL_COMMAND += "function; ... "
  5267. If you need to pass the root filesystem path to a command within a
  5268. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5269. directory that becomes the root filesystem image. See the
  5270. :term:`IMAGE_ROOTFS` variable for more
  5271. information.
  5272. :term:`ROOTFS_POSTPROCESS_COMMAND`
  5273. Specifies a list of functions to call once the OpenEmbedded build
  5274. system has created the root filesystem. You can specify functions
  5275. separated by semicolons::
  5276. ROOTFS_POSTPROCESS_COMMAND += "function; ... "
  5277. If you need to pass the root filesystem path to a command within a
  5278. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5279. directory that becomes the root filesystem image. See the
  5280. :term:`IMAGE_ROOTFS` variable for more
  5281. information.
  5282. :term:`ROOTFS_POSTUNINSTALL_COMMAND`
  5283. Specifies a list of functions to call after the OpenEmbedded build
  5284. system has removed unnecessary packages. When runtime package
  5285. management is disabled in the image, several packages are removed
  5286. including ``base-passwd``, ``shadow``, and ``update-alternatives``.
  5287. You can specify functions separated by semicolons::
  5288. ROOTFS_POSTUNINSTALL_COMMAND += "function; ... "
  5289. If you need to pass the root filesystem path to a command within a
  5290. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5291. directory that becomes the root filesystem image. See the
  5292. :term:`IMAGE_ROOTFS` variable for more
  5293. information.
  5294. :term:`ROOTFS_PREPROCESS_COMMAND`
  5295. Specifies a list of functions to call before the OpenEmbedded build
  5296. system has created the root filesystem. You can specify functions
  5297. separated by semicolons::
  5298. ROOTFS_PREPROCESS_COMMAND += "function; ... "
  5299. If you need to pass the root filesystem path to a command within a
  5300. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5301. directory that becomes the root filesystem image. See the
  5302. :term:`IMAGE_ROOTFS` variable for more
  5303. information.
  5304. :term:`RPROVIDES`
  5305. A list of package name aliases that a package also provides. These
  5306. aliases are useful for satisfying runtime dependencies of other
  5307. packages both during the build and on the target (as specified by
  5308. :term:`RDEPENDS`).
  5309. .. note::
  5310. A package's own name is implicitly already in its :term:`RPROVIDES` list.
  5311. As with all package-controlling variables, you must always use the
  5312. variable in conjunction with a package name override. Here is an
  5313. example::
  5314. RPROVIDES:${PN} = "widget-abi-2"
  5315. :term:`RRECOMMENDS`
  5316. A list of packages that extends the usability of a package being
  5317. built. The package being built does not depend on this list of
  5318. packages in order to successfully build, but rather uses them for
  5319. extended usability. To specify runtime dependencies for packages, see
  5320. the :term:`RDEPENDS` variable.
  5321. The package manager will automatically install the :term:`RRECOMMENDS`
  5322. list of packages when installing the built package. However, you can
  5323. prevent listed packages from being installed by using the
  5324. :term:`BAD_RECOMMENDATIONS`,
  5325. :term:`NO_RECOMMENDATIONS`, and
  5326. :term:`PACKAGE_EXCLUDE` variables.
  5327. Packages specified in :term:`RRECOMMENDS` need not actually be produced.
  5328. However, there must be a recipe providing each package, either
  5329. through the :term:`PACKAGES` or
  5330. :term:`PACKAGES_DYNAMIC` variables or the
  5331. :term:`RPROVIDES` variable, or an error will occur
  5332. during the build. If such a recipe does exist and the package is not
  5333. produced, the build continues without error.
  5334. Because the :term:`RRECOMMENDS` variable applies to packages being built,
  5335. you should always attach an override to the variable to specify the
  5336. particular package whose usability is being extended. For example,
  5337. suppose you are building a development package that is extended to
  5338. support wireless functionality. In this case, you would use the
  5339. following::
  5340. RRECOMMENDS:${PN}-dev += "wireless_package_name"
  5341. In the
  5342. example, the package name (``${PN}-dev``) must appear as it would in
  5343. the :term:`PACKAGES` namespace before any renaming of the output package
  5344. by classes such as :ref:`ref-classes-debian`.
  5345. BitBake, which the OpenEmbedded build system uses, supports
  5346. specifying versioned recommends. Although the syntax varies depending
  5347. on the packaging format, BitBake hides these differences from you.
  5348. Here is the general syntax to specify versions with the
  5349. :term:`RRECOMMENDS` variable::
  5350. RRECOMMENDS:${PN} = "package (operator version)"
  5351. For ``operator``, you can specify the following:
  5352. - =
  5353. - <
  5354. - >
  5355. - <=
  5356. - >=
  5357. For example, the following sets up a recommend on version 1.2 or
  5358. greater of the package ``foo``::
  5359. RRECOMMENDS:${PN} = "foo (>= 1.2)"
  5360. :term:`RREPLACES`
  5361. A list of packages replaced by a package. The package manager uses
  5362. this variable to determine which package should be installed to
  5363. replace other package(s) during an upgrade. In order to also have the
  5364. other package(s) removed at the same time, you must add the name of
  5365. the other package to the :term:`RCONFLICTS` variable.
  5366. As with all package-controlling variables, you must use this variable
  5367. in conjunction with a package name override. Here is an example::
  5368. RREPLACES:${PN} = "other_package_being_replaced"
  5369. BitBake, which the OpenEmbedded build system uses, supports
  5370. specifying versioned replacements. Although the syntax varies
  5371. depending on the packaging format, BitBake hides these differences
  5372. from you. Here is the general syntax to specify versions with the
  5373. :term:`RREPLACES` variable::
  5374. RREPLACES:${PN} = "package (operator version)"
  5375. For ``operator``, you can specify the following:
  5376. - =
  5377. - <
  5378. - >
  5379. - <=
  5380. - >=
  5381. For example, the following sets up a replacement using version 1.2
  5382. or greater of the package ``foo``::
  5383. RREPLACES:${PN} = "foo (>= 1.2)"
  5384. :term:`RSUGGESTS`
  5385. A list of additional packages that you can suggest for installation
  5386. by the package manager at the time a package is installed. Not all
  5387. package managers support this functionality.
  5388. As with all package-controlling variables, you must always use this
  5389. variable in conjunction with a package name override. Here is an
  5390. example::
  5391. RSUGGESTS:${PN} = "useful_package another_package"
  5392. :term:`S`
  5393. The location in the :term:`Build Directory` where
  5394. unpacked recipe source code resides. By default, this directory is
  5395. ``${``\ :term:`WORKDIR`\ ``}/${``\ :term:`BPN`\ ``}-${``\ :term:`PV`\ ``}``,
  5396. where ``${BPN}`` is the base recipe name and ``${PV}`` is the recipe
  5397. version. If the source tarball extracts the code to a directory named
  5398. anything other than ``${BPN}-${PV}``, or if the source code is
  5399. fetched from an SCM such as Git or Subversion, then you must set
  5400. :term:`S` in the recipe so that the OpenEmbedded build system knows where
  5401. to find the unpacked source.
  5402. As an example, assume a :term:`Source Directory`
  5403. top-level folder named ``poky`` and a default Build Directory at
  5404. ``poky/build``. In this case, the work directory the build system
  5405. uses to keep the unpacked recipe for ``db`` is the following::
  5406. poky/build/tmp/work/qemux86-poky-linux/db/5.1.19-r3/db-5.1.19
  5407. The unpacked source code resides in the ``db-5.1.19`` folder.
  5408. This next example assumes a Git repository. By default, Git
  5409. repositories are cloned to ``${WORKDIR}/git`` during
  5410. :ref:`ref-tasks-fetch`. Since this path is different
  5411. from the default value of :term:`S`, you must set it specifically so the
  5412. source can be located::
  5413. SRC_URI = "git://path/to/repo.git;branch=main"
  5414. S = "${WORKDIR}/git"
  5415. :term:`SANITY_REQUIRED_UTILITIES`
  5416. Specifies a list of command-line utilities that should be checked for
  5417. during the initial sanity checking process when running BitBake. If
  5418. any of the utilities are not installed on the build host, then
  5419. BitBake immediately exits with an error.
  5420. :term:`SANITY_TESTED_DISTROS`
  5421. A list of the host distribution identifiers that the build system has
  5422. been tested against. Identifiers consist of the host distributor ID
  5423. followed by the release, as reported by the ``lsb_release`` tool or
  5424. as read from ``/etc/lsb-release``. Separate the list items with
  5425. explicit newline characters (``\n``). If :term:`SANITY_TESTED_DISTROS` is
  5426. not empty and the current value of
  5427. :term:`NATIVELSBSTRING` does not appear in the
  5428. list, then the build system reports a warning that indicates the
  5429. current host distribution has not been tested as a build host.
  5430. :term:`SDK_ARCH`
  5431. The target architecture for the SDK. Typically, you do not directly
  5432. set this variable. Instead, use :term:`SDKMACHINE`.
  5433. :term:`SDK_CUSTOM_TEMPLATECONF`
  5434. When building the extensible SDK, if :term:`SDK_CUSTOM_TEMPLATECONF` is set to
  5435. "1" and a ``conf/templateconf.conf`` file exists in the build directory
  5436. (:term:`TOPDIR`) then this will be copied into the SDK.
  5437. :term:`SDK_DEPLOY`
  5438. The directory set up and used by the
  5439. :ref:`populate_sdk_base <ref-classes-populate-sdk>` class to which
  5440. the SDK is deployed. The ``populate_sdk_base`` class defines
  5441. :term:`SDK_DEPLOY` as follows::
  5442. SDK_DEPLOY = "${TMPDIR}/deploy/sdk"
  5443. :term:`SDK_DIR`
  5444. The parent directory used by the OpenEmbedded build system when
  5445. creating SDK output. The
  5446. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class defines
  5447. the variable as follows::
  5448. SDK_DIR = "${WORKDIR}/sdk"
  5449. .. note::
  5450. The :term:`SDK_DIR` directory is a temporary directory as it is part of
  5451. :term:`WORKDIR`. The final output directory is :term:`SDK_DEPLOY`.
  5452. :term:`SDK_EXT_TYPE`
  5453. Controls whether or not shared state artifacts are copied into the
  5454. extensible SDK. The default value of "full" copies all of the
  5455. required shared state artifacts into the extensible SDK. The value
  5456. "minimal" leaves these artifacts out of the SDK.
  5457. .. note::
  5458. If you set the variable to "minimal", you need to ensure
  5459. :term:`SSTATE_MIRRORS` is set in the SDK's configuration to enable the
  5460. artifacts to be fetched as needed.
  5461. :term:`SDK_HOST_MANIFEST`
  5462. The manifest file for the host part of the SDK. This file lists all
  5463. the installed packages that make up the host part of the SDK. The
  5464. file contains package information on a line-per-package basis as
  5465. follows::
  5466. packagename packagearch version
  5467. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  5468. defines the manifest file as follows::
  5469. SDK_HOST_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.host.manifest"
  5470. The location is derived using the :term:`SDK_DEPLOY` and
  5471. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  5472. :term:`SDK_INCLUDE_PKGDATA`
  5473. When set to "1", specifies to include the packagedata for all recipes
  5474. in the "world" target in the extensible SDK. Including this data
  5475. allows the ``devtool search`` command to find these recipes in search
  5476. results, as well as allows the ``devtool add`` command to map
  5477. dependencies more effectively.
  5478. .. note::
  5479. Enabling the :term:`SDK_INCLUDE_PKGDATA`
  5480. variable significantly increases build time because all of world
  5481. needs to be built. Enabling the variable also slightly increases
  5482. the size of the extensible SDK.
  5483. :term:`SDK_INCLUDE_TOOLCHAIN`
  5484. When set to "1", specifies to include the toolchain in the extensible
  5485. SDK. Including the toolchain is useful particularly when
  5486. :term:`SDK_EXT_TYPE` is set to "minimal" to keep
  5487. the SDK reasonably small but you still want to provide a usable
  5488. toolchain. For example, suppose you want to use the toolchain from an
  5489. IDE or from other tools and you do not want to perform additional
  5490. steps to install the toolchain.
  5491. The :term:`SDK_INCLUDE_TOOLCHAIN` variable defaults to "0" if
  5492. :term:`SDK_EXT_TYPE` is set to "minimal", and defaults to "1" if
  5493. :term:`SDK_EXT_TYPE` is set to "full".
  5494. :term:`SDK_NAME`
  5495. The base name for SDK output files. The default value (as set in
  5496. ``meta-poky/conf/distro/poky.conf``) is derived from the
  5497. :term:`DISTRO`,
  5498. :term:`TCLIBC`,
  5499. :term:`SDKMACHINE`,
  5500. :term:`IMAGE_BASENAME`,
  5501. :term:`TUNE_PKGARCH`, and
  5502. :term:`MACHINE` variables::
  5503. SDK_NAME = "${DISTRO}-${TCLIBC}-${SDKMACHINE}-${IMAGE_BASENAME}-${TUNE_PKGARCH}-${MACHINE}"
  5504. :term:`SDK_OS`
  5505. Specifies the operating system for which the SDK will be built. The
  5506. default value is the value of :term:`BUILD_OS`.
  5507. :term:`SDK_OUTPUT`
  5508. The location used by the OpenEmbedded build system when creating SDK
  5509. output. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>`
  5510. class defines the variable as follows::
  5511. SDK_DIR = "${WORKDIR}/sdk"
  5512. SDK_OUTPUT = "${SDK_DIR}/image"
  5513. SDK_DEPLOY = "${DEPLOY_DIR}/sdk"
  5514. .. note::
  5515. The :term:`SDK_OUTPUT` directory is a temporary directory as it is part of
  5516. :term:`WORKDIR` by way of :term:`SDK_DIR`. The final output directory is
  5517. :term:`SDK_DEPLOY`.
  5518. :term:`SDK_PACKAGE_ARCHS`
  5519. Specifies a list of architectures compatible with the SDK machine.
  5520. This variable is set automatically and should not normally be
  5521. hand-edited. Entries are separated using spaces and listed in order
  5522. of priority. The default value for :term:`SDK_PACKAGE_ARCHS` is "all any
  5523. noarch ${SDK_ARCH}-${SDKPKGSUFFIX}".
  5524. :term:`SDK_POSTPROCESS_COMMAND`
  5525. Specifies a list of functions to call once the OpenEmbedded build
  5526. system creates the SDK. You can specify functions separated by
  5527. semicolons: SDK_POSTPROCESS_COMMAND += "function; ... "
  5528. If you need to pass an SDK path to a command within a function, you
  5529. can use ``${SDK_DIR}``, which points to the parent directory used by
  5530. the OpenEmbedded build system when creating SDK output. See the
  5531. :term:`SDK_DIR` variable for more information.
  5532. :term:`SDK_PREFIX`
  5533. The toolchain binary prefix used for ``nativesdk`` recipes. The
  5534. OpenEmbedded build system uses the :term:`SDK_PREFIX` value to set the
  5535. :term:`TARGET_PREFIX` when building
  5536. ``nativesdk`` recipes. The default value is "${SDK_SYS}-".
  5537. :term:`SDK_RECRDEP_TASKS`
  5538. A list of shared state tasks added to the extensible SDK. By default,
  5539. the following tasks are added:
  5540. - do_populate_lic
  5541. - do_package_qa
  5542. - do_populate_sysroot
  5543. - do_deploy
  5544. Despite the default value of "" for the
  5545. :term:`SDK_RECRDEP_TASKS` variable, the above four tasks are always added
  5546. to the SDK. To specify tasks beyond these four, you need to use the
  5547. :term:`SDK_RECRDEP_TASKS` variable (e.g. you are defining additional
  5548. tasks that are needed in order to build
  5549. :term:`SDK_TARGETS`).
  5550. :term:`SDK_SYS`
  5551. Specifies the system, including the architecture and the operating
  5552. system, for which the SDK will be built.
  5553. The OpenEmbedded build system automatically sets this variable based
  5554. on :term:`SDK_ARCH`,
  5555. :term:`SDK_VENDOR`, and
  5556. :term:`SDK_OS`. You do not need to set the :term:`SDK_SYS`
  5557. variable yourself.
  5558. :term:`SDK_TARGET_MANIFEST`
  5559. The manifest file for the target part of the SDK. This file lists all
  5560. the installed packages that make up the target part of the SDK. The
  5561. file contains package information on a line-per-package basis as
  5562. follows::
  5563. packagename packagearch version
  5564. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  5565. defines the manifest file as follows::
  5566. SDK_TARGET_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.target.manifest"
  5567. The location is derived using the :term:`SDK_DEPLOY` and
  5568. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  5569. :term:`SDK_TARGETS`
  5570. A list of targets to install from shared state as part of the
  5571. standard or extensible SDK installation. The default value is "${PN}"
  5572. (i.e. the image from which the SDK is built).
  5573. The :term:`SDK_TARGETS` variable is an internal variable and typically
  5574. would not be changed.
  5575. :term:`SDK_TITLE`
  5576. The title to be printed when running the SDK installer. By default,
  5577. this title is based on the :term:`DISTRO_NAME` or
  5578. :term:`DISTRO` variable and is set in the
  5579. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  5580. follows::
  5581. SDK_TITLE ??= "${@d.getVar('DISTRO_NAME') or d.getVar('DISTRO')} SDK"
  5582. For the default distribution "poky",
  5583. :term:`SDK_TITLE` is set to "Poky (Yocto Project Reference Distro)".
  5584. For information on how to change this default title, see the
  5585. ":ref:`sdk-manual/appendix-customizing:changing the extensible sdk installer title`"
  5586. section in the Yocto Project Application Development and the
  5587. Extensible Software Development Kit (eSDK) manual.
  5588. :term:`SDK_UPDATE_URL`
  5589. An optional URL for an update server for the extensible SDK. If set,
  5590. the value is used as the default update server when running
  5591. ``devtool sdk-update`` within the extensible SDK.
  5592. :term:`SDK_VENDOR`
  5593. Specifies the name of the SDK vendor.
  5594. :term:`SDK_VERSION`
  5595. Specifies the version of the SDK. The Poky distribution configuration file
  5596. (``/meta-poky/conf/distro/poky.conf``) sets the default
  5597. :term:`SDK_VERSION` as follows::
  5598. SDK_VERSION = "${@d.getVar('DISTRO_VERSION').replace('snapshot-${METADATA_REVISION}', 'snapshot')}"
  5599. For additional information, see the
  5600. :term:`DISTRO_VERSION` and
  5601. :term:`METADATA_REVISION` variables.
  5602. :term:`SDKEXTPATH`
  5603. The default installation directory for the Extensible SDK. By
  5604. default, this directory is based on the :term:`DISTRO`
  5605. variable and is set in the
  5606. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  5607. follows::
  5608. SDKEXTPATH ??= "~/${@d.getVar('DISTRO')}_sdk"
  5609. For the
  5610. default distribution "poky", the :term:`SDKEXTPATH` is set to "poky_sdk".
  5611. For information on how to change this default directory, see the
  5612. ":ref:`sdk-manual/appendix-customizing:changing the default sdk installation directory`"
  5613. section in the Yocto Project Application Development and the
  5614. Extensible Software Development Kit (eSDK) manual.
  5615. :term:`SDKIMAGE_FEATURES`
  5616. Equivalent to :term:`IMAGE_FEATURES`. However, this variable applies to
  5617. the SDK generated from an image using the following command::
  5618. $ bitbake -c populate_sdk imagename
  5619. :term:`SDKMACHINE`
  5620. The machine for which the SDK is built. In other words, the SDK is built
  5621. such that it runs on the target you specify with the :term:`SDKMACHINE`
  5622. value. The value points to a corresponding ``.conf`` file under
  5623. ``conf/machine-sdk/`` in the enabled layers, for example ``aarch64``,
  5624. ``i586``, ``i686``, ``ppc64``, ``ppc64le``, and ``x86_64`` are
  5625. :oe_git:`available in OpenEmbedded-Core </openembedded-core/tree/meta/conf/machine-sdk>`.
  5626. The variable defaults to :term:`BUILD_ARCH` so that SDKs are built for the
  5627. architecture of the build machine.
  5628. .. note::
  5629. You cannot set the :term:`SDKMACHINE`
  5630. variable in your distribution configuration file. If you do, the
  5631. configuration will not take effect.
  5632. :term:`SDKPATH`
  5633. Defines the path used to collect the SDK components and build the
  5634. installer.
  5635. :term:`SDKPATHINSTALL`
  5636. Defines the path offered to the user for installation of the SDK that
  5637. is generated by the OpenEmbedded build system. The path appears as
  5638. the default location for installing the SDK when you run the SDK's
  5639. installation script. You can override the offered path when you run
  5640. the script.
  5641. :term:`SDKTARGETSYSROOT`
  5642. The full path to the sysroot used for cross-compilation within an SDK
  5643. as it will be when installed into the default
  5644. :term:`SDKPATHINSTALL`.
  5645. :term:`SECTION`
  5646. The section in which packages should be categorized. Package
  5647. management utilities can make use of this variable.
  5648. :term:`SELECTED_OPTIMIZATION`
  5649. Specifies the optimization flags passed to the C compiler when
  5650. building for the target. The flags are passed through the default
  5651. value of the :term:`TARGET_CFLAGS` variable.
  5652. The :term:`SELECTED_OPTIMIZATION` variable takes the value of
  5653. :term:`FULL_OPTIMIZATION` unless :term:`DEBUG_BUILD` = "1", in which
  5654. case the value of :term:`DEBUG_OPTIMIZATION` is used.
  5655. :term:`SERIAL_CONSOLE`
  5656. Defines a serial console (TTY) to enable using
  5657. `getty <https://en.wikipedia.org/wiki/Getty_(Unix)>`__. Provide a
  5658. value that specifies the baud rate followed by the TTY device name
  5659. separated by a space. You cannot specify more than one TTY device::
  5660. SERIAL_CONSOLE = "115200 ttyS0"
  5661. .. note::
  5662. The :term:`SERIAL_CONSOLE` variable is deprecated. Please use the
  5663. :term:`SERIAL_CONSOLES` variable.
  5664. :term:`SERIAL_CONSOLES`
  5665. Defines a serial console (TTY) to enable using
  5666. `getty <https://en.wikipedia.org/wiki/Getty_(Unix)>`__. Provide a
  5667. value that specifies the baud rate followed by the TTY device name
  5668. separated by a semicolon. Use spaces to separate multiple devices::
  5669. SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1"
  5670. :term:`SERIAL_CONSOLES_CHECK`
  5671. Specifies serial consoles, which must be listed in
  5672. :term:`SERIAL_CONSOLES`, to check against
  5673. ``/proc/console`` before enabling them using getty. This variable
  5674. allows aliasing in the format: <device>:<alias>. If a device was
  5675. listed as "sclp_line0" in ``/dev/`` and "ttyS0" was listed in
  5676. ``/proc/console``, you would do the following::
  5677. SERIAL_CONSOLES_CHECK = "slcp_line0:ttyS0"
  5678. This variable is currently only supported with SysVinit (i.e. not
  5679. with systemd). Note that :term:`SERIAL_CONSOLES_CHECK` also requires
  5680. ``/etc/inittab`` to be writable when used with SysVinit. This makes it
  5681. incompatible with customizations such as the following::
  5682. EXTRA_IMAGE_FEATURES += "read-only-rootfs"
  5683. :term:`SETUPTOOLS_BUILD_ARGS`
  5684. When used by recipes that inherit the
  5685. :ref:`setuptools3 <ref-classes-setuptools3>` class, this variable can
  5686. be used to specify additional arguments to be passed to ``setup.py build``
  5687. in the ``setuptools3_do_compile()`` task.
  5688. :term:`SETUPTOOLS_INSTALL_ARGS`
  5689. When used by recipes that inherit the
  5690. :ref:`setuptools3 <ref-classes-setuptools3>` class, this variable can
  5691. be used to specify additional arguments to be passed to ``setup.py install``
  5692. in the ``setuptools3_do_install()`` task.
  5693. :term:`SETUPTOOLS_SETUP_PATH`
  5694. When used by recipes that inherit the
  5695. :ref:`setuptools3 <ref-classes-setuptools3>` class, this variable should
  5696. be used to specify the directory in which the ``setup.py`` file is
  5697. located if it is not at the root of the source tree (as specified by
  5698. :term:`S`). For example, in a recipe where the sources are fetched from
  5699. a Git repository and ``setup.py`` is in a ``python/pythonmodule``
  5700. subdirectory, you would have this::
  5701. S = "${WORKDIR}/git"
  5702. SETUPTOOLS_SETUP_PATH = "${S}/python/pythonmodule"
  5703. :term:`SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS`
  5704. A list of recipe dependencies that should not be used to determine
  5705. signatures of tasks from one recipe when they depend on tasks from
  5706. another recipe. For example::
  5707. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "intone->mplayer2"
  5708. In the previous example, ``intone`` depends on ``mplayer2``.
  5709. You can use the special token ``"*"`` on the left-hand side of the
  5710. dependency to match all recipes except the one on the right-hand
  5711. side. Here is an example::
  5712. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "*->quilt-native"
  5713. In the previous example, all recipes except ``quilt-native`` ignore
  5714. task signatures from the ``quilt-native`` recipe when determining
  5715. their task signatures.
  5716. Use of this variable is one mechanism to remove dependencies that
  5717. affect task signatures and thus force rebuilds when a recipe changes.
  5718. .. note::
  5719. If you add an inappropriate dependency for a recipe relationship,
  5720. the software might break during runtime if the interface of the
  5721. second recipe was changed after the first recipe had been built.
  5722. :term:`SIGGEN_EXCLUDERECIPES_ABISAFE`
  5723. A list of recipes that are completely stable and will never change.
  5724. The ABI for the recipes in the list are presented by output from the
  5725. tasks run to build the recipe. Use of this variable is one way to
  5726. remove dependencies from one recipe on another that affect task
  5727. signatures and thus force rebuilds when the recipe changes.
  5728. .. note::
  5729. If you add an inappropriate variable to this list, the software
  5730. might break at runtime if the interface of the recipe was changed
  5731. after the other had been built.
  5732. :term:`SIGGEN_LOCKEDSIGS`
  5733. The list of locked tasks, with the form::
  5734. SIGGEN_LOCKEDSIGS += "<package>:<task>:<signature>"
  5735. If ``<signature>`` exists for the specified ``<task>`` and ``<package>``
  5736. in the sstate cache, BitBake will use the cached output instead of
  5737. rebuilding the ``<task>``. If it does not exist, BitBake will build the
  5738. ``<task>`` and the sstate cache will be used next time.
  5739. Example::
  5740. SIGGEN_LOCKEDSIGS += "bc:do_compile:09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0"
  5741. You can obtain the signature of all the tasks for the recipe ``bc`` using::
  5742. bitbake -S none bc
  5743. Then you can look at files in ``build/tmp/stamps/<arch>/bc`` and look for
  5744. files like: ``<PV>.do_compile.sigdata.09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0``.
  5745. :term:`SIGGEN_LOCKEDSIGS_TASKSIG_CHECK`
  5746. Specifies the debug level of task signature check. 3 levels are supported:
  5747. * ``info``: displays a "Note" message to remind the user that a task is locked
  5748. and the current signature matches the locked one.
  5749. * ``warn``: displays a "Warning" message if a task is locked and the current
  5750. signature does not match the locked one.
  5751. * ``error``: same as warn but displays an "Error" message and aborts.
  5752. :term:`SIGGEN_LOCKEDSIGS_TYPES`
  5753. Allowed overrides for :term:`SIGGEN_LOCKEDSIGS`. This is mainly used
  5754. for architecture specific locks. A common value for
  5755. :term:`SIGGEN_LOCKEDSIGS_TYPES` is ``${PACKAGE_ARCHS}``::
  5756. SIGGEN_LOCKEDSIGS_TYPES += "${PACKAGE_ARCHS}"
  5757. SIGGEN_LOCKEDSIGS_core2-64 += "bc:do_compile:09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0"
  5758. SIGGEN_LOCKEDSIGS_cortexa57 += "bc:do_compile:12178eb6d55ef602a8fe638e49862fd247e07b228f0f08967697b655bfe4bb61"
  5759. Here, the ``do_compile`` task from ``bc`` will be locked only for
  5760. ``core2-64`` and ``cortexa57`` but not for other architectures such as
  5761. ``mips32r2``.
  5762. :term:`SITEINFO_BITS`
  5763. Specifies the number of bits for the target system CPU. The value
  5764. should be either "32" or "64".
  5765. :term:`SITEINFO_ENDIANNESS`
  5766. Specifies the endian byte order of the target system. The value
  5767. should be either "le" for little-endian or "be" for big-endian.
  5768. :term:`SKIP_FILEDEPS`
  5769. Enables removal of all files from the "Provides" section of an RPM
  5770. package. Removal of these files is required for packages containing
  5771. prebuilt binaries and libraries such as ``libstdc++`` and ``glibc``.
  5772. To enable file removal, set the variable to "1" in your
  5773. ``conf/local.conf`` configuration file in your:
  5774. :term:`Build Directory`.
  5775. ::
  5776. SKIP_FILEDEPS = "1"
  5777. :term:`SKIP_RECIPE`
  5778. Used to prevent the OpenEmbedded build system from building a given
  5779. recipe. Specify the :term:`PN` value as a variable flag (``varflag``)
  5780. and provide a reason, which will be reported when attempting to
  5781. build the recipe.
  5782. To prevent a recipe from being built, use the :term:`SKIP_RECIPE`
  5783. variable in your ``local.conf`` file or distribution configuration.
  5784. Here is an example which prevents ``myrecipe`` from being built::
  5785. SKIP_RECIPE[myrecipe] = "Not supported by our organization."
  5786. :term:`SOC_FAMILY`
  5787. Groups together machines based upon the same family of SOC (System On
  5788. Chip). You typically set this variable in a common ``.inc`` file that
  5789. you include in the configuration files of all the machines.
  5790. .. note::
  5791. You must include ``conf/machine/include/soc-family.inc`` for this
  5792. variable to appear in :term:`MACHINEOVERRIDES`.
  5793. :term:`SOLIBS`
  5794. Defines the suffix for shared libraries used on the target platform.
  5795. By default, this suffix is ".so.*" for all Linux-based systems and is
  5796. defined in the ``meta/conf/bitbake.conf`` configuration file.
  5797. You will see this variable referenced in the default values of
  5798. ``FILES:${PN}``.
  5799. :term:`SOLIBSDEV`
  5800. Defines the suffix for the development symbolic link (symlink) for
  5801. shared libraries on the target platform. By default, this suffix is
  5802. ".so" for Linux-based systems and is defined in the
  5803. ``meta/conf/bitbake.conf`` configuration file.
  5804. You will see this variable referenced in the default values of
  5805. ``FILES:${PN}-dev``.
  5806. :term:`SOURCE_DATE_EPOCH`
  5807. This defines a date expressed in number of seconds since
  5808. the UNIX EPOCH (01 Jan 1970 00:00:00 UTC), which is used by
  5809. multiple build systems to force a timestamp in built binaries.
  5810. Many upstream projects already support this variable.
  5811. You will find more details in the `official specifications
  5812. <https://reproducible-builds.org/specs/source-date-epoch/>`__.
  5813. A value for each recipe is computed from the sources by
  5814. :oe_git:`meta/lib/oe/reproducible.py </openembedded-core/tree/meta/lib/oe/reproducible.py>`.
  5815. If a recipe wishes to override the default behavior, it should set its
  5816. own :term:`SOURCE_DATE_EPOCH` value::
  5817. SOURCE_DATE_EPOCH = "1613559011"
  5818. :term:`SOURCE_MIRROR_FETCH`
  5819. When you are fetching files to create a mirror of sources (i.e.
  5820. creating a source mirror), setting :term:`SOURCE_MIRROR_FETCH` to "1" in
  5821. your ``local.conf`` configuration file ensures the source for all
  5822. recipes are fetched regardless of whether or not a recipe is
  5823. compatible with the configuration. A recipe is considered
  5824. incompatible with the currently configured machine when either or
  5825. both the :term:`COMPATIBLE_MACHINE`
  5826. variable and :term:`COMPATIBLE_HOST` variables
  5827. specify compatibility with a machine other than that of the current
  5828. machine or host.
  5829. .. note::
  5830. Do not set the :term:`SOURCE_MIRROR_FETCH`
  5831. variable unless you are creating a source mirror. In other words,
  5832. do not set the variable during a normal build.
  5833. :term:`SOURCE_MIRROR_URL`
  5834. Defines your own :term:`PREMIRRORS` from which to
  5835. first fetch source before attempting to fetch from the upstream
  5836. specified in :term:`SRC_URI`.
  5837. To use this variable, you must globally inherit the
  5838. :ref:`own-mirrors <ref-classes-own-mirrors>` class and then provide
  5839. the URL to your mirrors. Here is the general syntax::
  5840. INHERIT += "own-mirrors"
  5841. SOURCE_MIRROR_URL = "http://example.com/my_source_mirror"
  5842. .. note::
  5843. You can specify only a single URL in :term:`SOURCE_MIRROR_URL`.
  5844. .. note::
  5845. If the mirror is protected behind a username and password, the
  5846. :term:`build host` needs to be configured so the :term:`build system
  5847. <OpenEmbedded Build System>` is able to fetch from the mirror.
  5848. The recommended way to do that is by setting the following parameters
  5849. in ``$HOME/.netrc`` (``$HOME`` being the :term:`build host` home
  5850. directory)::
  5851. machine example.com
  5852. login <user>
  5853. password <password>
  5854. This file requires permissions set to ``400`` or ``600`` to prevent
  5855. other users from reading the file::
  5856. chmod 600 "$HOME/.netrc"
  5857. Another method to configure the username and password is from the URL
  5858. in :term:`SOURCE_MIRROR_URL` directly, with the ``user`` and ``pswd``
  5859. parameters::
  5860. SOURCE_MIRROR_URL = "http://example.com/my_source_mirror;user=<user>;pswd=<password>"
  5861. :term:`SPDX_ARCHIVE_PACKAGED`
  5862. This option allows to add to :term:`SPDX` output compressed archives
  5863. of the files in the generated target packages.
  5864. Such archives are available in
  5865. ``tmp/deploy/spdx/MACHINE/packages/packagename.tar.zst``
  5866. under the :term:`Build Directory`.
  5867. Enable this option as follows::
  5868. SPDX_ARCHIVE_PACKAGED = "1"
  5869. According to our tests on release 4.1 "langdale", building
  5870. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling this
  5871. option multiplied the size of the ``tmp/deploy/spdx`` directory by a
  5872. factor of 13 (+1.6 GiB for this image), compared to just using the
  5873. :ref:`create-spdx <ref-classes-create-spdx>` class with no option.
  5874. Note that this option doesn't increase the size of :term:`SPDX`
  5875. files in ``tmp/deploy/images/MACHINE``.
  5876. :term:`SPDX_ARCHIVE_SOURCES`
  5877. This option allows to add to :term:`SPDX` output compressed archives
  5878. of the sources for packages installed on the target. It currently
  5879. only works when :term:`SPDX_INCLUDE_SOURCES` is set.
  5880. This is one way of fulfilling "source code access" license
  5881. requirements.
  5882. Such source archives are available in
  5883. ``tmp/deploy/spdx/MACHINE/recipes/recipe-packagename.tar.zst``
  5884. under the :term:`Build Directory`.
  5885. Enable this option as follows::
  5886. SPDX_INCLUDE_SOURCES = "1"
  5887. SPDX_ARCHIVE_SOURCES = "1"
  5888. According to our tests on release 4.1 "langdale", building
  5889. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling
  5890. these options multiplied the size of the ``tmp/deploy/spdx``
  5891. directory by a factor of 11 (+1.4 GiB for this image),
  5892. compared to just using the :ref:`create-spdx <ref-classes-create-spdx>`
  5893. class with no option.
  5894. Note that using this option only marginally increases the size
  5895. of the :term:`SPDX` output in ``tmp/deploy/images/MACHINE/``
  5896. (+ 0.07\% with the tested image), compared to just enabling
  5897. :term:`SPDX_INCLUDE_SOURCES`.
  5898. :term:`SPDX_INCLUDE_SOURCES`
  5899. This option allows to add a description of the source files used to build
  5900. the host tools and the target packages, to the ``spdx.json`` files in
  5901. ``tmp/deploy/spdx/MACHINE/recipes/`` under the :term:`Build Directory`.
  5902. As a consequence, the ``spdx.json`` files under the ``by-namespace`` and
  5903. ``packages`` subdirectories in ``tmp/deploy/spdx/MACHINE`` are also
  5904. modified to include references to such source file descriptions.
  5905. Enable this option as follows::
  5906. SPDX_INCLUDE_SOURCES = "1"
  5907. According to our tests on release 4.1 "langdale", building
  5908. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling
  5909. this option multiplied the total size of the ``tmp/deploy/spdx``
  5910. directory by a factor of 3 (+291 MiB for this image),
  5911. and the size of the ``IMAGE-MACHINE.spdx.tar.zst`` in
  5912. ``tmp/deploy/images/MACHINE`` by a factor of 130 (+15 MiB for this
  5913. image), compared to just using the
  5914. :ref:`create-spdx <ref-classes-create-spdx>` class with no option.
  5915. :term:`SPDX_NAMESPACE_PREFIX`
  5916. This option could be used in order to change the prefix of ``spdxDocument``
  5917. and the prefix of ``documentNamespace``. It is set by default to
  5918. ``http://spdx.org/spdxdoc``.
  5919. :term:`SPDX_PRETTY`
  5920. This option makes the SPDX output more human-readable, using
  5921. identation and newlines, instead of the default output in a
  5922. single line::
  5923. SPDX_PRETTY = "1"
  5924. The generated SPDX files are approximately 20% bigger, but
  5925. this option is recommended if you want to inspect the SPDX
  5926. output files with a text editor.
  5927. :term:`SPDXLICENSEMAP`
  5928. Maps commonly used license names to their SPDX counterparts found in
  5929. ``meta/files/common-licenses/``. For the default :term:`SPDXLICENSEMAP`
  5930. mappings, see the ``meta/conf/licenses.conf`` file.
  5931. For additional information, see the :term:`LICENSE`
  5932. variable.
  5933. :term:`SPECIAL_PKGSUFFIX`
  5934. A list of prefixes for :term:`PN` used by the OpenEmbedded
  5935. build system to create variants of recipes or packages. The list
  5936. specifies the prefixes to strip off during certain circumstances such
  5937. as the generation of the :term:`BPN` variable.
  5938. :term:`SPL_BINARY`
  5939. The file type for the Secondary Program Loader (SPL). Some devices
  5940. use an SPL from which to boot (e.g. the BeagleBone development
  5941. board). For such cases, you can declare the file type of the SPL
  5942. binary in the ``u-boot.inc`` include file, which is used in the
  5943. U-Boot recipe.
  5944. The SPL file type is set to "null" by default in the ``u-boot.inc``
  5945. file as follows::
  5946. # Some versions of u-boot build an SPL (Second Program Loader) image that
  5947. # should be packaged along with the u-boot binary as well as placed in the
  5948. # deploy directory. For those versions they can set the following variables
  5949. # to allow packaging the SPL.
  5950. SPL_BINARY ?= ""
  5951. SPL_BINARYNAME ?= "${@os.path.basename(d.getVar("SPL_BINARY"))}"
  5952. SPL_IMAGE ?= "${SPL_BINARYNAME}-${MACHINE}-${PV}-${PR}"
  5953. SPL_SYMLINK ?= "${SPL_BINARYNAME}-${MACHINE}"
  5954. The :term:`SPL_BINARY` variable helps form
  5955. various ``SPL_*`` variables used by the OpenEmbedded build system.
  5956. See the BeagleBone machine configuration example in the
  5957. ":ref:`dev-manual/layers:adding a layer using the \`\`bitbake-layers\`\` script`"
  5958. section in the Yocto Project Board Support Package Developer's Guide
  5959. for additional information.
  5960. :term:`SPL_MKIMAGE_DTCOPTS`
  5961. Options for the device tree compiler passed to ``mkimage -D`` feature
  5962. while creating a FIT image with the :ref:`ref-classes-uboot-sign`
  5963. class. If :term:`SPL_MKIMAGE_DTCOPTS` is not set then the
  5964. :ref:`ref-classes-uboot-sign` class will not pass the ``-D`` option
  5965. to ``mkimage``.
  5966. The default value is set to "" by the :ref:`ref-classes-uboot-config`
  5967. class.
  5968. :term:`SPL_SIGN_ENABLE`
  5969. Enable signing of the U-Boot FIT image. The default value is "0".
  5970. This variable is used by the :ref:`ref-classes-uboot-sign` class.
  5971. :term:`SPL_SIGN_KEYDIR`
  5972. Location of the directory containing the RSA key and certificate used for
  5973. signing the U-Boot FIT image, used by the :ref:`ref-classes-uboot-sign`
  5974. class.
  5975. :term:`SPL_SIGN_KEYNAME`
  5976. The name of keys used by the :ref:`ref-classes-uboot-sign` class
  5977. for signing U-Boot FIT image stored in the :term:`SPL_SIGN_KEYDIR`
  5978. directory. If we have for example a ``dev.key`` key and a ``dev.crt``
  5979. certificate stored in the :term:`SPL_SIGN_KEYDIR` directory, you will
  5980. have to set :term:`SPL_SIGN_KEYNAME` to ``dev``.
  5981. :term:`SPLASH`
  5982. This variable, used by the :ref:`ref-classes-image` class, allows
  5983. to choose splashscreen applications. Set it to the names of packages
  5984. for such applications to use. This variable is set by default to
  5985. ``psplash``.
  5986. :term:`SPLASH_IMAGES`
  5987. This variable, used by the ``psplash`` recipe, allows to customize
  5988. the default splashscreen image.
  5989. Specified images in PNG format are converted to ``.h`` files by the recipe,
  5990. and are included in the ``psplash`` binary, so you won't find them in
  5991. the root filesystem.
  5992. To make such a change, it is recommended to customize the
  5993. ``psplash`` recipe in a custom layer. Here is an example structure for
  5994. an ``ACME`` board::
  5995. meta-acme/recipes-core/psplash
  5996. ├── files
  5997. │   └── logo-acme.png
  5998. └── psplash_%.bbappend
  5999. And here are the contents of the ``psplash_%.bbappend`` file in
  6000. this example::
  6001. SPLASH_IMAGES = "file://logo-acme.png;outsuffix=default"
  6002. FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  6003. You could even add specific configuration options for ``psplash``,
  6004. for example::
  6005. EXTRA_OECONF += "--disable-startup-msg --enable-img-fullscreen"
  6006. For information on append files, see the
  6007. ":ref:`dev-manual/layers:appending other layers metadata with your layer`"
  6008. section.
  6009. :term:`SRC_URI`
  6010. See the BitBake manual for the initial description for this variable:
  6011. :term:`bitbake:SRC_URI`.
  6012. The following features are added by OpenEmbedded and the Yocto Project.
  6013. There are standard and recipe-specific options. Here are standard ones:
  6014. - ``apply`` --- whether to apply the patch or not. The default
  6015. action is to apply the patch.
  6016. - ``striplevel`` --- which striplevel to use when applying the
  6017. patch. The default level is 1.
  6018. - ``patchdir`` --- specifies the directory in which the patch should
  6019. be applied. The default is ``${``\ :term:`S`\ ``}``.
  6020. Here are options specific to recipes building code from a revision
  6021. control system:
  6022. - ``mindate`` --- apply the patch only if
  6023. :term:`SRCDATE` is equal to or greater than
  6024. ``mindate``.
  6025. - ``maxdate`` --- apply the patch only if :term:`SRCDATE` is not later
  6026. than ``maxdate``.
  6027. - ``minrev`` --- apply the patch only if :term:`SRCREV` is equal to or
  6028. greater than ``minrev``.
  6029. - ``maxrev`` --- apply the patch only if :term:`SRCREV` is not later
  6030. than ``maxrev``.
  6031. - ``rev`` --- apply the patch only if :term:`SRCREV` is equal to
  6032. ``rev``.
  6033. - ``notrev`` --- apply the patch only if :term:`SRCREV` is not equal to
  6034. ``rev``.
  6035. .. note::
  6036. If you want the build system to pick up files specified through
  6037. a :term:`SRC_URI` statement from your append file, you need to be
  6038. sure to extend the :term:`FILESPATH` variable by also using the
  6039. :term:`FILESEXTRAPATHS` variable from within your append file.
  6040. :term:`SRC_URI_OVERRIDES_PACKAGE_ARCH`
  6041. By default, the OpenEmbedded build system automatically detects
  6042. whether :term:`SRC_URI` contains files that are machine-specific. If so,
  6043. the build system automatically changes :term:`PACKAGE_ARCH`. Setting this
  6044. variable to "0" disables this behavior.
  6045. :term:`SRCDATE`
  6046. The date of the source code used to build the package. This variable
  6047. applies only if the source was fetched from a Source Code Manager
  6048. (SCM).
  6049. :term:`SRCPV`
  6050. Returns the version string of the current package. This string is
  6051. used to help define the value of :term:`PV`.
  6052. The :term:`SRCPV` variable is defined in the ``meta/conf/bitbake.conf``
  6053. configuration file in the :term:`Source Directory` as
  6054. follows::
  6055. SRCPV = "${@bb.fetch2.get_srcrev(d)}"
  6056. Recipes that need to define :term:`PV` do so with the help of the
  6057. :term:`SRCPV`. For example, the ``ofono`` recipe (``ofono_git.bb``)
  6058. located in ``meta/recipes-connectivity`` in the Source Directory
  6059. defines :term:`PV` as follows::
  6060. PV = "0.12-git${SRCPV}"
  6061. :term:`SRCREV`
  6062. The revision of the source code used to build the package. This
  6063. variable applies to Subversion, Git, Mercurial, and Bazaar only. Note
  6064. that if you want to build a fixed revision and you want to avoid
  6065. performing a query on the remote repository every time BitBake parses
  6066. your recipe, you should specify a :term:`SRCREV` that is a full revision
  6067. identifier (e.g. the full SHA hash in git) and not just a tag.
  6068. .. note::
  6069. For information on limitations when inheriting the latest revision
  6070. of software using :term:`SRCREV`, see the :term:`AUTOREV` variable
  6071. description and the
  6072. ":ref:`dev-manual/packages:automatically incrementing a package version number`"
  6073. section, which is in the Yocto Project Development Tasks Manual.
  6074. :term:`SRCTREECOVEREDTASKS`
  6075. A list of tasks that are typically not relevant (and therefore skipped)
  6076. when building using the :ref:`externalsrc <ref-classes-externalsrc>`
  6077. class. The default value as set in that class file is the set of tasks
  6078. that are rarely needed when using external source::
  6079. SRCTREECOVEREDTASKS ?= "do_patch do_unpack do_fetch"
  6080. The notable exception is when processing external kernel source as
  6081. defined in the :ref:`kernel-yocto <ref-classes-kernel-yocto>`
  6082. class file (formatted for aesthetics)::
  6083. SRCTREECOVEREDTASKS += "\
  6084. do_validate_branches \
  6085. do_kernel_configcheck \
  6086. do_kernel_checkout \
  6087. do_fetch \
  6088. do_unpack \
  6089. do_patch \
  6090. "
  6091. See the associated :term:`EXTERNALSRC` and :term:`EXTERNALSRC_BUILD`
  6092. variables for more information.
  6093. :term:`SSTATE_DIR`
  6094. The directory for the shared state cache.
  6095. :term:`SSTATE_EXCLUDEDEPS_SYSROOT`
  6096. This variable allows to specify indirect dependencies to exclude
  6097. from sysroots, for example to avoid the situations when a dependency on
  6098. any ``-native`` recipe will pull in all dependencies of that recipe
  6099. in the recipe sysroot. This behaviour might not always be wanted,
  6100. for example when that ``-native`` recipe depends on build tools
  6101. that are not relevant for the current recipe.
  6102. This way, irrelevant dependencies are ignored, which could have
  6103. prevented the reuse of prebuilt artifacts stored in the Shared
  6104. State Cache.
  6105. :term:`SSTATE_EXCLUDEDEPS_SYSROOT` is evaluated as two regular
  6106. expressions of recipe and dependency to ignore. An example
  6107. is the rule in :oe_git:`meta/conf/layer.conf </openembedded-core/tree/meta/conf/layer.conf>`::
  6108. # Nothing needs to depend on libc-initial
  6109. # base-passwd/shadow-sysroot don't need their dependencies
  6110. SSTATE_EXCLUDEDEPS_SYSROOT += "\
  6111. .*->.*-initial.* \
  6112. .*(base-passwd|shadow-sysroot)->.* \
  6113. "
  6114. The ``->`` substring represents the dependency between
  6115. the two regular expressions.
  6116. :term:`SSTATE_MIRROR_ALLOW_NETWORK`
  6117. If set to "1", allows fetches from mirrors that are specified in
  6118. :term:`SSTATE_MIRRORS` to work even when
  6119. fetching from the network is disabled by setting :term:`BB_NO_NETWORK` to
  6120. "1". Using the :term:`SSTATE_MIRROR_ALLOW_NETWORK` variable is useful if
  6121. you have set :term:`SSTATE_MIRRORS` to point to an internal server for
  6122. your shared state cache, but you want to disable any other fetching
  6123. from the network.
  6124. :term:`SSTATE_MIRRORS`
  6125. Configures the OpenEmbedded build system to search other mirror
  6126. locations for prebuilt cache data objects before building out the
  6127. data. This variable works like fetcher :term:`MIRRORS`
  6128. and :term:`PREMIRRORS` and points to the cache
  6129. locations to check for the shared state (sstate) objects.
  6130. You can specify a filesystem directory or a remote URL such as HTTP
  6131. or FTP. The locations you specify need to contain the shared state
  6132. cache (sstate-cache) results from previous builds. The sstate-cache
  6133. you point to can also be from builds on other machines.
  6134. When pointing to sstate build artifacts on another machine that uses
  6135. a different GCC version for native builds, you must configure
  6136. :term:`SSTATE_MIRRORS` with a regular expression that maps local search
  6137. paths to server paths. The paths need to take into account
  6138. :term:`NATIVELSBSTRING` set by the
  6139. :ref:`uninative <ref-classes-uninative>` class. For example, the
  6140. following maps the local search path ``universal-4.9`` to the
  6141. server-provided path server_url_sstate_path::
  6142. SSTATE_MIRRORS ?= "file://universal-4.9/(.*) https://server_url_sstate_path/universal-4.8/\1"
  6143. If a mirror uses the same structure as
  6144. :term:`SSTATE_DIR`, you need to add "PATH" at the
  6145. end as shown in the examples below. The build system substitutes the
  6146. correct path within the directory structure.
  6147. ::
  6148. SSTATE_MIRRORS ?= "\
  6149. file://.* https://someserver.tld/share/sstate/PATH;downloadfilename=PATH \
  6150. file://.* file:///some-local-dir/sstate/PATH"
  6151. .. note::
  6152. If the mirror is protected behind a username and password, the
  6153. :term:`build host` needs to be configured so the :term:`build system
  6154. <OpenEmbedded Build System>` is able to download the sstate cache using
  6155. authentication.
  6156. The recommended way to do that is by setting the following parameters
  6157. in ``$HOME/.netrc`` (``$HOME`` being the :term:`build host` home
  6158. directory)::
  6159. machine someserver.tld
  6160. login <user>
  6161. password <password>
  6162. This file requires permissions set to ``400`` or ``600`` to prevent
  6163. other users from reading the file::
  6164. chmod 600 "$HOME/.netrc"
  6165. Another method to configure the username and password is from the
  6166. URL in :term:`SSTATE_MIRRORS` directly, with the ``user`` and ``pswd``
  6167. parameters::
  6168. SSTATE_MIRRORS ?= "\
  6169. file://.* https://someserver.tld/share/sstate/PATH;user=<user>;pswd=<password>;downloadfilename=PATH \
  6170. "
  6171. The Yocto Project actually shares the cache data objects built by its
  6172. autobuilder::
  6173. SSTATE_MIRRORS ?= "file://.* http://cdn.jsdelivr.net/yocto/sstate/all/PATH;downloadfilename=PATH"
  6174. As such binary artifacts are built for the generic QEMU machines
  6175. supported by the various Poky releases, they are less likely to be
  6176. reusable in real projects building binaries optimized for a specific
  6177. CPU family.
  6178. :term:`SSTATE_SCAN_FILES`
  6179. Controls the list of files the OpenEmbedded build system scans for
  6180. hardcoded installation paths. The variable uses a space-separated
  6181. list of filenames (not paths) with standard wildcard characters
  6182. allowed.
  6183. During a build, the OpenEmbedded build system creates a shared state
  6184. (sstate) object during the first stage of preparing the sysroots.
  6185. That object is scanned for hardcoded paths for original installation
  6186. locations. The list of files that are scanned for paths is controlled
  6187. by the :term:`SSTATE_SCAN_FILES` variable. Typically, recipes add files
  6188. they want to be scanned to the value of :term:`SSTATE_SCAN_FILES` rather
  6189. than the variable being comprehensively set. The
  6190. :ref:`sstate <ref-classes-sstate>` class specifies the default list
  6191. of files.
  6192. For details on the process, see the
  6193. :ref:`staging <ref-classes-staging>` class.
  6194. :term:`STAGING_BASE_LIBDIR_NATIVE`
  6195. Specifies the path to the ``/lib`` subdirectory of the sysroot
  6196. directory for the build host.
  6197. :term:`STAGING_BASELIBDIR`
  6198. Specifies the path to the ``/lib`` subdirectory of the sysroot
  6199. directory for the target for which the current recipe is being built
  6200. (:term:`STAGING_DIR_HOST`).
  6201. :term:`STAGING_BINDIR`
  6202. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  6203. directory for the target for which the current recipe is being built
  6204. (:term:`STAGING_DIR_HOST`).
  6205. :term:`STAGING_BINDIR_CROSS`
  6206. Specifies the path to the directory containing binary configuration
  6207. scripts. These scripts provide configuration information for other
  6208. software that wants to make use of libraries or include files
  6209. provided by the software associated with the script.
  6210. .. note::
  6211. This style of build configuration has been largely replaced by
  6212. ``pkg-config``. Consequently, if ``pkg-config`` is supported by the
  6213. library to which you are linking, it is recommended you use
  6214. ``pkg-config`` instead of a provided configuration script.
  6215. :term:`STAGING_BINDIR_NATIVE`
  6216. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  6217. directory for the build host.
  6218. :term:`STAGING_DATADIR`
  6219. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  6220. directory for the target for which the current recipe is being built
  6221. (:term:`STAGING_DIR_HOST`).
  6222. :term:`STAGING_DATADIR_NATIVE`
  6223. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  6224. directory for the build host.
  6225. :term:`STAGING_DIR`
  6226. Helps construct the ``recipe-sysroots`` directory, which is used
  6227. during packaging.
  6228. For information on how staging for recipe-specific sysroots occurs,
  6229. see the :ref:`ref-tasks-populate_sysroot`
  6230. task, the ":ref:`sdk-manual/extensible:sharing files between recipes`"
  6231. section in the Yocto Project Development Tasks Manual, the
  6232. ":ref:`overview-manual/concepts:configuration, compilation, and staging`"
  6233. section in the Yocto Project Overview and Concepts Manual, and the
  6234. :term:`SYSROOT_DIRS` variable.
  6235. .. note::
  6236. Recipes should never write files directly under the :term:`STAGING_DIR`
  6237. directory because the OpenEmbedded build system manages the
  6238. directory automatically. Instead, files should be installed to
  6239. ``${``\ :term:`D`\ ``}`` within your recipe's :ref:`ref-tasks-install`
  6240. task and then the OpenEmbedded build system will stage a subset of
  6241. those files into the sysroot.
  6242. :term:`STAGING_DIR_HOST`
  6243. Specifies the path to the sysroot directory for the system on which
  6244. the component is built to run (the system that hosts the component).
  6245. For most recipes, this sysroot is the one in which that recipe's
  6246. :ref:`ref-tasks-populate_sysroot` task copies
  6247. files. Exceptions include ``-native`` recipes, where the
  6248. ``do_populate_sysroot`` task instead uses
  6249. :term:`STAGING_DIR_NATIVE`. Depending on
  6250. the type of recipe and the build target, :term:`STAGING_DIR_HOST` can
  6251. have the following values:
  6252. - For recipes building for the target machine, the value is
  6253. "${:term:`STAGING_DIR`}/${:term:`MACHINE`}".
  6254. - For native recipes building for the build host, the value is empty
  6255. given the assumption that when building for the build host, the
  6256. build host's own directories should be used.
  6257. .. note::
  6258. ``-native`` recipes are not installed into host paths like such
  6259. as ``/usr``. Rather, these recipes are installed into
  6260. :term:`STAGING_DIR_NATIVE`. When compiling ``-native`` recipes,
  6261. standard build environment variables such as
  6262. :term:`CPPFLAGS` and
  6263. :term:`CFLAGS` are set up so that both host paths
  6264. and :term:`STAGING_DIR_NATIVE` are searched for libraries and
  6265. headers using, for example, GCC's ``-isystem`` option.
  6266. Thus, the emphasis is that the ``STAGING_DIR*`` variables
  6267. should be viewed as input variables by tasks such as
  6268. :ref:`ref-tasks-configure`,
  6269. :ref:`ref-tasks-compile`, and
  6270. :ref:`ref-tasks-install`. Having the real system
  6271. root correspond to :term:`STAGING_DIR_HOST` makes conceptual sense
  6272. for ``-native`` recipes, as they make use of host headers and
  6273. libraries.
  6274. Check :term:`RECIPE_SYSROOT` and :term:`RECIPE_SYSROOT_NATIVE`.
  6275. :term:`STAGING_DIR_NATIVE`
  6276. Specifies the path to the sysroot directory used when building
  6277. components that run on the build host itself.
  6278. The default value is ``"${RECIPE_SYSROOT_NATIVE}"``,
  6279. check :term:`RECIPE_SYSROOT_NATIVE`.
  6280. :term:`STAGING_DIR_TARGET`
  6281. Specifies the path to the sysroot used for the system for which the
  6282. component generates code. For components that do not generate code,
  6283. which is the majority, :term:`STAGING_DIR_TARGET` is set to match
  6284. :term:`STAGING_DIR_HOST`.
  6285. Some recipes build binaries that can run on the target system but
  6286. those binaries in turn generate code for another different system
  6287. (e.g. cross-canadian recipes). Using terminology from GNU, the
  6288. primary system is referred to as the "HOST" and the secondary, or
  6289. different, system is referred to as the "TARGET". Thus, the binaries
  6290. run on the "HOST" system and generate binaries for the "TARGET"
  6291. system. The :term:`STAGING_DIR_HOST` variable points to the sysroot used
  6292. for the "HOST" system, while :term:`STAGING_DIR_TARGET` points to the
  6293. sysroot used for the "TARGET" system.
  6294. :term:`STAGING_ETCDIR_NATIVE`
  6295. Specifies the path to the ``/etc`` subdirectory of the sysroot
  6296. directory for the build host.
  6297. :term:`STAGING_EXECPREFIXDIR`
  6298. Specifies the path to the ``/usr`` subdirectory of the sysroot
  6299. directory for the target for which the current recipe is being built
  6300. (:term:`STAGING_DIR_HOST`).
  6301. :term:`STAGING_INCDIR`
  6302. Specifies the path to the ``/usr/include`` subdirectory of the
  6303. sysroot directory for the target for which the current recipe being
  6304. built (:term:`STAGING_DIR_HOST`).
  6305. :term:`STAGING_INCDIR_NATIVE`
  6306. Specifies the path to the ``/usr/include`` subdirectory of the
  6307. sysroot directory for the build host.
  6308. :term:`STAGING_KERNEL_BUILDDIR`
  6309. Points to the directory containing the kernel build artifacts.
  6310. Recipes building software that needs to access kernel build artifacts
  6311. (e.g. ``systemtap-uprobes``) can look in the directory specified with
  6312. the :term:`STAGING_KERNEL_BUILDDIR` variable to find these artifacts
  6313. after the kernel has been built.
  6314. :term:`STAGING_KERNEL_DIR`
  6315. The directory with kernel headers that are required to build
  6316. out-of-tree modules.
  6317. :term:`STAGING_LIBDIR`
  6318. Specifies the path to the ``/usr/lib`` 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_LIBDIR_NATIVE`
  6322. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  6323. directory for the build host.
  6324. :term:`STAMP`
  6325. Specifies the base path used to create recipe stamp files. The path
  6326. to an actual stamp file is constructed by evaluating this string and
  6327. then appending additional information. Currently, the default
  6328. assignment for :term:`STAMP` as set in the ``meta/conf/bitbake.conf``
  6329. file is::
  6330. STAMP = "${STAMPS_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}"
  6331. For information on how BitBake uses stamp files to determine if a
  6332. task should be rerun, see the
  6333. ":ref:`overview-manual/concepts:stamp files and the rerunning of tasks`"
  6334. section in the Yocto Project Overview and Concepts Manual.
  6335. See :term:`STAMPS_DIR`,
  6336. :term:`MULTIMACH_TARGET_SYS`,
  6337. :term:`PN`, :term:`EXTENDPE`,
  6338. :term:`PV`, and :term:`PR` for related variable
  6339. information.
  6340. :term:`STAMPS_DIR`
  6341. Specifies the base directory in which the OpenEmbedded build system
  6342. places stamps. The default directory is ``${TMPDIR}/stamps``.
  6343. :term:`STRIP`
  6344. The minimal command and arguments to run ``strip``, which is used to
  6345. strip symbols.
  6346. :term:`SUMMARY`
  6347. The short (72 characters or less) summary of the binary package for
  6348. packaging systems such as ``opkg``, ``rpm``, or ``dpkg``. By default,
  6349. :term:`SUMMARY` is used to define the
  6350. :term:`DESCRIPTION` variable if :term:`DESCRIPTION` is
  6351. not set in the recipe.
  6352. :term:`SVNDIR`
  6353. The directory in which files checked out of a Subversion system are
  6354. stored.
  6355. :term:`SYSLINUX_DEFAULT_CONSOLE`
  6356. Specifies the kernel boot default console. If you want to use a
  6357. console other than the default, set this variable in your recipe as
  6358. follows where "X" is the console number you want to use::
  6359. SYSLINUX_DEFAULT_CONSOLE = "console=ttyX"
  6360. The :ref:`syslinux <ref-classes-syslinux>` class initially sets
  6361. this variable to null but then checks for a value later.
  6362. :term:`SYSLINUX_OPTS`
  6363. Lists additional options to add to the syslinux file. You need to set
  6364. this variable in your recipe. If you want to list multiple options,
  6365. separate the options with a semicolon character (``;``).
  6366. The :ref:`syslinux <ref-classes-syslinux>` class uses this variable
  6367. to create a set of options.
  6368. :term:`SYSLINUX_SERIAL`
  6369. Specifies the alternate serial port or turns it off. To turn off
  6370. serial, set this variable to an empty string in your recipe. The
  6371. variable's default value is set in the
  6372. :ref:`syslinux <ref-classes-syslinux>` class as follows::
  6373. SYSLINUX_SERIAL ?= "0 115200"
  6374. The class checks for and uses the variable as needed.
  6375. :term:`SYSLINUX_SERIAL_TTY`
  6376. Specifies the alternate console=tty... kernel boot argument. The
  6377. variable's default value is set in the
  6378. :ref:`syslinux <ref-classes-syslinux>` class as follows::
  6379. SYSLINUX_SERIAL_TTY ?= "console=ttyS0,115200"
  6380. The class checks for and uses the variable as needed.
  6381. :term:`SYSLINUX_SPLASH`
  6382. An ``.LSS`` file used as the background for the VGA boot menu when
  6383. you use the boot menu. You need to set this variable in your recipe.
  6384. The :ref:`syslinux <ref-classes-syslinux>` class checks for this
  6385. variable and if found, the OpenEmbedded build system installs the
  6386. splash screen.
  6387. :term:`SYSROOT_DESTDIR`
  6388. Points to the temporary directory under the work directory (default
  6389. "``${``\ :term:`WORKDIR`\ ``}/sysroot-destdir``")
  6390. where the files populated into the sysroot are assembled during the
  6391. :ref:`ref-tasks-populate_sysroot` task.
  6392. :term:`SYSROOT_DIRS`
  6393. Directories that are staged into the sysroot by the
  6394. :ref:`ref-tasks-populate_sysroot` task. By
  6395. default, the following directories are staged::
  6396. SYSROOT_DIRS = " \
  6397. ${includedir} \
  6398. ${libdir} \
  6399. ${base_libdir} \
  6400. ${nonarch_base_libdir} \
  6401. ${datadir} \
  6402. /sysroot-only \
  6403. "
  6404. Consider the following example in which you need to manipulate this variable.
  6405. Assume you have a recipe ``A`` that provides a shared library ``.so.*`` that is
  6406. installed into a custom folder other than "``${libdir}``"
  6407. or "``${base_libdir}``", let's say "``/opt/lib``".
  6408. .. note::
  6409. This is not a recommended way to deal with shared libraries, but this
  6410. is just to show the usefulness of setting :term:`SYSROOT_DIRS`.
  6411. When a recipe ``B`` :term:`DEPENDS` on ``A``, it means what is in
  6412. :term:`SYSROOT_DIRS` will be copied from :term:`D` of the recipe ``A``
  6413. into ``B``'s :term:`SYSROOT_DESTDIR` that is "``${WORKDIR}/sysroot-destdir``".
  6414. Now, since ``/opt/lib`` is not in :term:`SYSROOT_DIRS`, it will never be copied to
  6415. ``A``'s :term:`RECIPE_SYSROOT`, which is "``${WORKDIR}/recipe-sysroot``". So,
  6416. the linking process will fail.
  6417. To fix this, you need to add ``/opt/lib`` to :term:`SYSROOT_DIRS`::
  6418. SYSROOT_DIRS:append = " /opt/lib"
  6419. .. note::
  6420. Even after setting ``/opt/lib`` to :term:`SYSROOT_DIRS`, the linking process will still fail
  6421. because the linker does not know that location, since :term:`TARGET_LDFLAGS`
  6422. doesn't contain it (if your recipe is for the target). Therefore, so you should add::
  6423. TARGET_LDFLAGS:append = " -L${RECIPE_SYSROOT}/opt/lib"
  6424. :term:`SYSROOT_DIRS_IGNORE`
  6425. Directories that are not staged into the sysroot by the
  6426. :ref:`ref-tasks-populate_sysroot` task. You
  6427. can use this variable to exclude certain subdirectories of
  6428. directories listed in :term:`SYSROOT_DIRS` from
  6429. staging. By default, the following directories are not staged::
  6430. SYSROOT_DIRS_IGNORE = " \
  6431. ${mandir} \
  6432. ${docdir} \
  6433. ${infodir} \
  6434. ${datadir}/X11/locale \
  6435. ${datadir}/applications \
  6436. ${datadir}/bash-completion \
  6437. ${datadir}/fonts \
  6438. ${datadir}/gtk-doc/html \
  6439. ${datadir}/installed-tests \
  6440. ${datadir}/locale \
  6441. ${datadir}/pixmaps \
  6442. ${datadir}/terminfo \
  6443. ${libdir}/${BPN}/ptest \
  6444. "
  6445. :term:`SYSROOT_DIRS_NATIVE`
  6446. Extra directories staged into the sysroot by the
  6447. :ref:`ref-tasks-populate_sysroot` task for
  6448. ``-native`` recipes, in addition to those specified in
  6449. :term:`SYSROOT_DIRS`. By default, the following
  6450. extra directories are staged::
  6451. SYSROOT_DIRS_NATIVE = " \
  6452. ${bindir} \
  6453. ${sbindir} \
  6454. ${base_bindir} \
  6455. ${base_sbindir} \
  6456. ${libexecdir} \
  6457. ${sysconfdir} \
  6458. ${localstatedir} \
  6459. "
  6460. .. note::
  6461. Programs built by ``-native`` recipes run directly from the sysroot
  6462. (:term:`STAGING_DIR_NATIVE`), which is why additional directories
  6463. containing program executables and supporting files need to be staged.
  6464. :term:`SYSROOT_PREPROCESS_FUNCS`
  6465. A list of functions to execute after files are staged into the
  6466. sysroot. These functions are usually used to apply additional
  6467. processing on the staged files, or to stage additional files.
  6468. :term:`SYSTEMD_AUTO_ENABLE`
  6469. When inheriting the :ref:`systemd <ref-classes-systemd>` class,
  6470. this variable specifies whether the specified service in
  6471. :term:`SYSTEMD_SERVICE` should start
  6472. automatically or not. By default, the service is enabled to
  6473. automatically start at boot time. The default setting is in the
  6474. :ref:`systemd <ref-classes-systemd>` class as follows::
  6475. SYSTEMD_AUTO_ENABLE ??= "enable"
  6476. You can disable the service by setting the variable to "disable".
  6477. :term:`SYSTEMD_BOOT_CFG`
  6478. When :term:`EFI_PROVIDER` is set to
  6479. "systemd-boot", the :term:`SYSTEMD_BOOT_CFG` variable specifies the
  6480. configuration file that should be used. By default, the
  6481. :ref:`systemd-boot <ref-classes-systemd-boot>` class sets the
  6482. :term:`SYSTEMD_BOOT_CFG` as follows::
  6483. SYSTEMD_BOOT_CFG ?= "${S}/loader.conf"
  6484. For information on Systemd-boot, see the `Systemd-boot
  6485. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6486. :term:`SYSTEMD_BOOT_ENTRIES`
  6487. When :term:`EFI_PROVIDER` is set to
  6488. "systemd-boot", the :term:`SYSTEMD_BOOT_ENTRIES` variable specifies a
  6489. list of entry files (``*.conf``) to install that contain one boot
  6490. entry per file. By default, the
  6491. :ref:`systemd-boot <ref-classes-systemd-boot>` class sets the
  6492. :term:`SYSTEMD_BOOT_ENTRIES` as follows::
  6493. SYSTEMD_BOOT_ENTRIES ?= ""
  6494. For information on Systemd-boot, see the `Systemd-boot
  6495. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6496. :term:`SYSTEMD_BOOT_TIMEOUT`
  6497. When :term:`EFI_PROVIDER` is set to
  6498. "systemd-boot", the :term:`SYSTEMD_BOOT_TIMEOUT` variable specifies the
  6499. boot menu timeout in seconds. By default, the
  6500. :ref:`systemd-boot <ref-classes-systemd-boot>` class sets the
  6501. :term:`SYSTEMD_BOOT_TIMEOUT` as follows::
  6502. SYSTEMD_BOOT_TIMEOUT ?= "10"
  6503. For information on Systemd-boot, see the `Systemd-boot
  6504. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6505. :term:`SYSTEMD_PACKAGES`
  6506. When inheriting the :ref:`systemd <ref-classes-systemd>` class,
  6507. this variable locates the systemd unit files when they are not found
  6508. in the main recipe's package. By default, the :term:`SYSTEMD_PACKAGES`
  6509. variable is set such that the systemd unit files are assumed to
  6510. reside in the recipes main package::
  6511. SYSTEMD_PACKAGES ?= "${PN}"
  6512. If these unit files are not in this recipe's main package, you need
  6513. to use :term:`SYSTEMD_PACKAGES` to list the package or packages in which
  6514. the build system can find the systemd unit files.
  6515. :term:`SYSTEMD_SERVICE`
  6516. When inheriting the :ref:`systemd <ref-classes-systemd>` class,
  6517. this variable specifies the systemd service name for a package.
  6518. When you specify this file in your recipe, use a package name
  6519. override to indicate the package to which the value applies. Here is
  6520. an example from the connman recipe::
  6521. SYSTEMD_SERVICE:${PN} = "connman.service"
  6522. :term:`SYSVINIT_ENABLED_GETTYS`
  6523. When using :ref:`SysVinit <dev-manual/new-recipe:enabling system services>`,
  6524. specifies a space-separated list of the virtual terminals that should
  6525. run a `getty <https://en.wikipedia.org/wiki/Getty_%28Unix%29>`__
  6526. (allowing login), assuming :term:`USE_VT` is not set to
  6527. "0".
  6528. The default value for :term:`SYSVINIT_ENABLED_GETTYS` is "1" (i.e. only
  6529. run a getty on the first virtual terminal).
  6530. :term:`T`
  6531. This variable points to a directory were BitBake places temporary
  6532. files, which consist mostly of task logs and scripts, when building a
  6533. particular recipe. The variable is typically set as follows::
  6534. T = "${WORKDIR}/temp"
  6535. The :term:`WORKDIR` is the directory into which
  6536. BitBake unpacks and builds the recipe. The default ``bitbake.conf``
  6537. file sets this variable.
  6538. The :term:`T` variable is not to be confused with the
  6539. :term:`TMPDIR` variable, which points to the root of
  6540. the directory tree where BitBake places the output of an entire
  6541. build.
  6542. :term:`TARGET_ARCH`
  6543. The target machine's architecture. The OpenEmbedded build system
  6544. supports many architectures. Here is an example list of architectures
  6545. supported. This list is by no means complete as the architecture is
  6546. configurable:
  6547. - arm
  6548. - i586
  6549. - x86_64
  6550. - powerpc
  6551. - powerpc64
  6552. - mips
  6553. - mipsel
  6554. For additional information on machine architectures, see the
  6555. :term:`TUNE_ARCH` variable.
  6556. :term:`TARGET_AS_ARCH`
  6557. Specifies architecture-specific assembler flags for the target
  6558. system. :term:`TARGET_AS_ARCH` is initialized from
  6559. :term:`TUNE_ASARGS` by default in the BitBake
  6560. configuration file (``meta/conf/bitbake.conf``)::
  6561. TARGET_AS_ARCH = "${TUNE_ASARGS}"
  6562. :term:`TARGET_CC_ARCH`
  6563. Specifies architecture-specific C compiler flags for the target
  6564. system. :term:`TARGET_CC_ARCH` is initialized from
  6565. :term:`TUNE_CCARGS` by default.
  6566. .. note::
  6567. It is a common workaround to append :term:`LDFLAGS` to
  6568. :term:`TARGET_CC_ARCH` in recipes that build software for the target that
  6569. would not otherwise respect the exported :term:`LDFLAGS` variable.
  6570. :term:`TARGET_CC_KERNEL_ARCH`
  6571. This is a specific kernel compiler flag for a CPU or Application
  6572. Binary Interface (ABI) tune. The flag is used rarely and only for
  6573. cases where a userspace :term:`TUNE_CCARGS` is not
  6574. compatible with the kernel compilation. The :term:`TARGET_CC_KERNEL_ARCH`
  6575. variable allows the kernel (and associated modules) to use a
  6576. different configuration. See the
  6577. ``meta/conf/machine/include/arm/feature-arm-thumb.inc`` file in the
  6578. :term:`Source Directory` for an example.
  6579. :term:`TARGET_CFLAGS`
  6580. Specifies the flags to pass to the C compiler when building for the
  6581. target. When building in the target context,
  6582. :term:`CFLAGS` is set to the value of this variable by
  6583. default.
  6584. Additionally, the SDK's environment setup script sets the :term:`CFLAGS`
  6585. variable in the environment to the :term:`TARGET_CFLAGS` value so that
  6586. executables built using the SDK also have the flags applied.
  6587. :term:`TARGET_CPPFLAGS`
  6588. Specifies the flags to pass to the C pre-processor (i.e. to both the
  6589. C and the C++ compilers) when building for the target. When building
  6590. in the target context, :term:`CPPFLAGS` is set to the
  6591. value of this variable by default.
  6592. Additionally, the SDK's environment setup script sets the
  6593. :term:`CPPFLAGS` variable in the environment to the :term:`TARGET_CPPFLAGS`
  6594. value so that executables built using the SDK also have the flags
  6595. applied.
  6596. :term:`TARGET_CXXFLAGS`
  6597. Specifies the flags to pass to the C++ compiler when building for the
  6598. target. When building in the target context,
  6599. :term:`CXXFLAGS` is set to the value of this variable
  6600. by default.
  6601. Additionally, the SDK's environment setup script sets the
  6602. :term:`CXXFLAGS` variable in the environment to the :term:`TARGET_CXXFLAGS`
  6603. value so that executables built using the SDK also have the flags
  6604. applied.
  6605. :term:`TARGET_FPU`
  6606. Specifies the method for handling FPU code. For FPU-less targets,
  6607. which include most ARM CPUs, the variable must be set to "soft". If
  6608. not, the kernel emulation gets used, which results in a performance
  6609. penalty.
  6610. :term:`TARGET_LD_ARCH`
  6611. Specifies architecture-specific linker flags for the target system.
  6612. :term:`TARGET_LD_ARCH` is initialized from
  6613. :term:`TUNE_LDARGS` by default in the BitBake
  6614. configuration file (``meta/conf/bitbake.conf``)::
  6615. TARGET_LD_ARCH = "${TUNE_LDARGS}"
  6616. :term:`TARGET_LDFLAGS`
  6617. Specifies the flags to pass to the linker when building for the
  6618. target. When building in the target context,
  6619. :term:`LDFLAGS` is set to the value of this variable
  6620. by default.
  6621. Additionally, the SDK's environment setup script sets the
  6622. :term:`LDFLAGS` variable in the environment to the
  6623. :term:`TARGET_LDFLAGS` value so that executables built using the SDK also
  6624. have the flags applied.
  6625. :term:`TARGET_OS`
  6626. Specifies the target's operating system. The variable can be set to
  6627. "linux" for glibc-based systems (GNU C Library) and to "linux-musl"
  6628. for musl libc. For ARM/EABI targets, the possible values are
  6629. "linux-gnueabi" and "linux-musleabi".
  6630. :term:`TARGET_PREFIX`
  6631. Specifies the prefix used for the toolchain binary target tools.
  6632. Depending on the type of recipe and the build target,
  6633. :term:`TARGET_PREFIX` is set as follows:
  6634. - For recipes building for the target machine, the value is
  6635. "${:term:`TARGET_SYS`}-".
  6636. - For native recipes, the build system sets the variable to the
  6637. value of :term:`BUILD_PREFIX`.
  6638. - For native SDK recipes (``nativesdk``), the build system sets the
  6639. variable to the value of :term:`SDK_PREFIX`.
  6640. :term:`TARGET_SYS`
  6641. Specifies the system, including the architecture and the operating
  6642. system, for which the build is occurring in the context of the
  6643. current recipe.
  6644. The OpenEmbedded build system automatically sets this variable based
  6645. on :term:`TARGET_ARCH`,
  6646. :term:`TARGET_VENDOR`, and
  6647. :term:`TARGET_OS` variables.
  6648. .. note::
  6649. You do not need to set the :term:`TARGET_SYS` variable yourself.
  6650. Consider these two examples:
  6651. - Given a native recipe on a 32-bit, x86 machine running Linux, the
  6652. value is "i686-linux".
  6653. - Given a recipe being built for a little-endian, MIPS target
  6654. running Linux, the value might be "mipsel-linux".
  6655. :term:`TARGET_VENDOR`
  6656. Specifies the name of the target vendor.
  6657. :term:`TCLIBC`
  6658. Specifies the GNU standard C library (``libc``) variant to use during
  6659. the build process.
  6660. You can select "glibc", "musl", "newlib", or "baremetal".
  6661. :term:`TCLIBCAPPEND`
  6662. Specifies a suffix to be appended onto the
  6663. :term:`TMPDIR` value. The suffix identifies the
  6664. ``libc`` variant for building. When you are building for multiple
  6665. variants with the same :term:`Build Directory`, this
  6666. mechanism ensures that output for different ``libc`` variants is kept
  6667. separate to avoid potential conflicts.
  6668. In the ``defaultsetup.conf`` file, the default value of
  6669. :term:`TCLIBCAPPEND` is "-${TCLIBC}". However, distros such as poky,
  6670. which normally only support one ``libc`` variant, set
  6671. :term:`TCLIBCAPPEND` to "" in their distro configuration file resulting
  6672. in no suffix being applied.
  6673. :term:`TCMODE`
  6674. Specifies the toolchain selector. :term:`TCMODE` controls the
  6675. characteristics of the generated packages and images by telling the
  6676. OpenEmbedded build system which toolchain profile to use. By default,
  6677. the OpenEmbedded build system builds its own internal toolchain. The
  6678. variable's default value is "default", which uses that internal
  6679. toolchain.
  6680. .. note::
  6681. If :term:`TCMODE` is set to a value other than "default", then it is your
  6682. responsibility to ensure that the toolchain is compatible with the
  6683. default toolchain. Using older or newer versions of these
  6684. components might cause build problems. See the Release Notes for
  6685. the Yocto Project release for the specific components with which
  6686. the toolchain must be compatible. To access the Release Notes, go
  6687. to the :yocto_home:`Downloads </software-overview/downloads>`
  6688. page on the Yocto Project website and click on the "RELEASE
  6689. INFORMATION" link for the appropriate release.
  6690. The :term:`TCMODE` variable is similar to :term:`TCLIBC`,
  6691. which controls the variant of the GNU standard C library (``libc``)
  6692. used during the build process: ``glibc`` or ``musl``.
  6693. With additional layers, it is possible to use a pre-compiled external
  6694. toolchain. One example is the Sourcery G++ Toolchain. The support for
  6695. this toolchain resides in the separate Mentor Graphics
  6696. ``meta-sourcery`` layer at
  6697. https://github.com/MentorEmbedded/meta-sourcery/.
  6698. The layer's ``README`` file contains information on how to use the
  6699. Sourcery G++ Toolchain as an external toolchain. In summary, you must
  6700. be sure to add the layer to your ``bblayers.conf`` file in front of
  6701. the ``meta`` layer and then set the ``EXTERNAL_TOOLCHAIN`` variable
  6702. in your ``local.conf`` file to the location in which you installed
  6703. the toolchain.
  6704. The fundamentals used for this example apply to any external
  6705. toolchain. You can use ``meta-sourcery`` as a template for adding
  6706. support for other external toolchains.
  6707. :term:`TEST_EXPORT_DIR`
  6708. The location the OpenEmbedded build system uses to export tests when
  6709. the :term:`TEST_EXPORT_ONLY` variable is set
  6710. to "1".
  6711. The :term:`TEST_EXPORT_DIR` variable defaults to
  6712. ``"${TMPDIR}/testimage/${PN}"``.
  6713. :term:`TEST_EXPORT_ONLY`
  6714. Specifies to export the tests only. Set this variable to "1" if you
  6715. do not want to run the tests but you want them to be exported in a
  6716. manner that you to run them outside of the build system.
  6717. :term:`TEST_LOG_DIR`
  6718. Holds the SSH log and the boot log for QEMU machines. The
  6719. :term:`TEST_LOG_DIR` variable defaults to ``"${WORKDIR}/testimage"``.
  6720. .. note::
  6721. Actual test results reside in the task log (``log.do_testimage``),
  6722. which is in the ``${WORKDIR}/temp/`` directory.
  6723. :term:`TEST_POWERCONTROL_CMD`
  6724. For automated hardware testing, specifies the command to use to
  6725. control the power of the target machine under test. Typically, this
  6726. command would point to a script that performs the appropriate action
  6727. (e.g. interacting with a web-enabled power strip). The specified
  6728. command should expect to receive as the last argument "off", "on" or
  6729. "cycle" specifying to power off, on, or cycle (power off and then
  6730. power on) the device, respectively.
  6731. :term:`TEST_POWERCONTROL_EXTRA_ARGS`
  6732. For automated hardware testing, specifies additional arguments to
  6733. pass through to the command specified in
  6734. :term:`TEST_POWERCONTROL_CMD`. Setting
  6735. :term:`TEST_POWERCONTROL_EXTRA_ARGS` is optional. You can use it if you
  6736. wish, for example, to separate the machine-specific and
  6737. non-machine-specific parts of the arguments.
  6738. :term:`TEST_QEMUBOOT_TIMEOUT`
  6739. The time in seconds allowed for an image to boot before automated
  6740. runtime tests begin to run against an image. The default timeout
  6741. period to allow the boot process to reach the login prompt is 500
  6742. seconds. You can specify a different value in the ``local.conf``
  6743. file.
  6744. For more information on testing images, see the
  6745. ":ref:`test-manual/runtime-testing:performing automated runtime testing`"
  6746. section in the Yocto Project Test Environment Manual.
  6747. :term:`TEST_SERIALCONTROL_CMD`
  6748. For automated hardware testing, specifies the command to use to
  6749. connect to the serial console of the target machine under test. This
  6750. command simply needs to connect to the serial console and forward
  6751. that connection to standard input and output as any normal terminal
  6752. program does.
  6753. For example, to use the Picocom terminal program on serial device
  6754. ``/dev/ttyUSB0`` at 115200bps, you would set the variable as follows::
  6755. TEST_SERIALCONTROL_CMD = "picocom /dev/ttyUSB0 -b 115200"
  6756. :term:`TEST_SERIALCONTROL_EXTRA_ARGS`
  6757. For automated hardware testing, specifies additional arguments to
  6758. pass through to the command specified in
  6759. :term:`TEST_SERIALCONTROL_CMD`. Setting
  6760. :term:`TEST_SERIALCONTROL_EXTRA_ARGS` is optional. You can use it if you
  6761. wish, for example, to separate the machine-specific and
  6762. non-machine-specific parts of the command.
  6763. :term:`TEST_SERVER_IP`
  6764. The IP address of the build machine (host machine). This IP address
  6765. is usually automatically detected. However, if detection fails, this
  6766. variable needs to be set to the IP address of the build machine (i.e.
  6767. where the build is taking place).
  6768. .. note::
  6769. The :term:`TEST_SERVER_IP` variable is only used for a small number of
  6770. tests such as the "dnf" test suite, which needs to download packages
  6771. from ``WORKDIR/oe-rootfs-repo``.
  6772. :term:`TEST_SUITES`
  6773. An ordered list of tests (modules) to run against an image when
  6774. performing automated runtime testing.
  6775. The OpenEmbedded build system provides a core set of tests that can
  6776. be used against images.
  6777. .. note::
  6778. Currently, there is only support for running these tests under
  6779. QEMU.
  6780. Tests include ``ping``, ``ssh``, ``df`` among others. You can add
  6781. your own tests to the list of tests by appending :term:`TEST_SUITES` as
  6782. follows::
  6783. TEST_SUITES:append = " mytest"
  6784. Alternatively, you can
  6785. provide the "auto" option to have all applicable tests run against
  6786. the image.
  6787. ::
  6788. TEST_SUITES:append = " auto"
  6789. Using this option causes the
  6790. build system to automatically run tests that are applicable to the
  6791. image. Tests that are not applicable are skipped.
  6792. The order in which tests are run is important. Tests that depend on
  6793. another test must appear later in the list than the test on which
  6794. they depend. For example, if you append the list of tests with two
  6795. tests (``test_A`` and ``test_B``) where ``test_B`` is dependent on
  6796. ``test_A``, then you must order the tests as follows::
  6797. TEST_SUITES = "test_A test_B"
  6798. For more information on testing images, see the
  6799. ":ref:`test-manual/runtime-testing:performing automated runtime testing`"
  6800. section in the Yocto Project Test Environment Manual.
  6801. :term:`TEST_TARGET`
  6802. Specifies the target controller to use when running tests against a
  6803. test image. The default controller to use is "qemu"::
  6804. TEST_TARGET = "qemu"
  6805. A target controller is a class that defines how an image gets
  6806. deployed on a target and how a target is started. A layer can extend
  6807. the controllers by adding a module in the layer's
  6808. ``/lib/oeqa/controllers`` directory and by inheriting the
  6809. ``BaseTarget`` class, which is an abstract class that cannot be used
  6810. as a value of :term:`TEST_TARGET`.
  6811. You can provide the following arguments with :term:`TEST_TARGET`:
  6812. - *"qemu":* Boots a QEMU image and runs the tests. See the
  6813. ":ref:`test-manual/runtime-testing:enabling runtime tests on qemu`" section
  6814. in the Yocto Project Test Environment Manual for more
  6815. information.
  6816. - *"simpleremote":* Runs the tests on target hardware that is
  6817. already up and running. The hardware can be on the network or it
  6818. can be a device running an image on QEMU. You must also set
  6819. :term:`TEST_TARGET_IP` when you use
  6820. "simpleremote".
  6821. .. note::
  6822. This argument is defined in
  6823. ``meta/lib/oeqa/controllers/simpleremote.py``.
  6824. For information on running tests on hardware, see the
  6825. ":ref:`test-manual/runtime-testing:enabling runtime tests on hardware`"
  6826. section in the Yocto Project Test Environment Manual.
  6827. :term:`TEST_TARGET_IP`
  6828. The IP address of your hardware under test. The :term:`TEST_TARGET_IP`
  6829. variable has no effect when :term:`TEST_TARGET` is
  6830. set to "qemu".
  6831. When you specify the IP address, you can also include a port. Here is
  6832. an example::
  6833. TEST_TARGET_IP = "192.168.1.4:2201"
  6834. Specifying a port is
  6835. useful when SSH is started on a non-standard port or in cases when
  6836. your hardware under test is behind a firewall or network that is not
  6837. directly accessible from your host and you need to do port address
  6838. translation.
  6839. :term:`TESTIMAGE_AUTO`
  6840. Automatically runs the series of automated tests for images when an
  6841. image is successfully built. Setting :term:`TESTIMAGE_AUTO` to "1" causes
  6842. any image that successfully builds to automatically boot under QEMU.
  6843. Using the variable also adds in dependencies so that any SDK for
  6844. which testing is requested is automatically built first.
  6845. These tests are written in Python making use of the ``unittest``
  6846. module, and the majority of them run commands on the target system
  6847. over ``ssh``. You can set this variable to "1" in your ``local.conf``
  6848. file in the :term:`Build Directory` to have the
  6849. OpenEmbedded build system automatically run these tests after an
  6850. image successfully builds:
  6851. TESTIMAGE_AUTO = "1"
  6852. For more information
  6853. on enabling, running, and writing these tests, see the
  6854. ":ref:`test-manual/runtime-testing:performing automated runtime testing`"
  6855. section in the Yocto Project Test Environment Manual and the
  6856. ":ref:`ref-classes-testimage`" section.
  6857. :term:`THISDIR`
  6858. The directory in which the file BitBake is currently parsing is
  6859. located. Do not manually set this variable.
  6860. :term:`TIME`
  6861. The time the build was started. Times appear using the hour, minute,
  6862. and second (HMS) format (e.g. "140159" for one minute and fifty-nine
  6863. seconds past 1400 hours).
  6864. :term:`TMPDIR`
  6865. This variable is the base directory the OpenEmbedded build system
  6866. uses for all build output and intermediate files (other than the
  6867. shared state cache). By default, the :term:`TMPDIR` variable points to
  6868. ``tmp`` within the :term:`Build Directory`.
  6869. If you want to establish this directory in a location other than the
  6870. default, you can uncomment and edit the following statement in the
  6871. ``conf/local.conf`` file in the :term:`Source Directory`::
  6872. #TMPDIR = "${TOPDIR}/tmp"
  6873. An example use for this scenario is to set :term:`TMPDIR` to a local disk,
  6874. which does not use NFS, while having the Build Directory use NFS.
  6875. The filesystem used by :term:`TMPDIR` must have standard filesystem
  6876. semantics (i.e. mixed-case files are unique, POSIX file locking, and
  6877. persistent inodes). Due to various issues with NFS and bugs in some
  6878. implementations, NFS does not meet this minimum requirement.
  6879. Consequently, :term:`TMPDIR` cannot be on NFS.
  6880. :term:`TOOLCHAIN_HOST_TASK`
  6881. This variable lists packages the OpenEmbedded build system uses when
  6882. building an SDK, which contains a cross-development environment. The
  6883. packages specified by this variable are part of the toolchain set
  6884. that runs on the :term:`SDKMACHINE`, and each
  6885. package should usually have the prefix ``nativesdk-``. For example,
  6886. consider the following command when building an SDK::
  6887. $ bitbake -c populate_sdk imagename
  6888. In this case, a default list of packages is
  6889. set in this variable, but you can add additional packages to the
  6890. list. See the
  6891. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  6892. in the Yocto Project Application Development and the Extensible
  6893. Software Development Kit (eSDK) manual for more information.
  6894. For background information on cross-development toolchains in the
  6895. Yocto Project development environment, see the
  6896. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  6897. section in the Yocto Project Overview and Concepts Manual. For
  6898. information on setting up a cross-development environment, see the
  6899. :doc:`/sdk-manual/index` manual.
  6900. Note that this variable applies to building an SDK, not an eSDK,
  6901. in which case the :term:`TOOLCHAIN_HOST_TASK_ESDK` setting should be
  6902. used instead.
  6903. :term:`TOOLCHAIN_HOST_TASK_ESDK`
  6904. This variable allows to extend what is installed in the host
  6905. portion of an eSDK. This is similar to :term:`TOOLCHAIN_HOST_TASK`
  6906. applying to SDKs.
  6907. :term:`TOOLCHAIN_OPTIONS`
  6908. This variable holds extra options passed to the compiler and the linker
  6909. for non ``-native`` recipes as they have to point to their custom
  6910. ``sysroot`` folder pointed to by :term:`RECIPE_SYSROOT`::
  6911. TOOLCHAIN_OPTIONS = " --sysroot=${RECIPE_SYSROOT}"
  6912. Native recipes don't need this variable to be set, as they are
  6913. built for the host machine with the native compiler.
  6914. :term:`TOOLCHAIN_OUTPUTNAME`
  6915. This variable defines the name used for the toolchain output. The
  6916. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class sets
  6917. the :term:`TOOLCHAIN_OUTPUTNAME` variable as follows::
  6918. TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${SDK_VERSION}"
  6919. See
  6920. the :term:`SDK_NAME` and
  6921. :term:`SDK_VERSION` variables for additional
  6922. information.
  6923. :term:`TOOLCHAIN_TARGET_TASK`
  6924. This variable lists packages the OpenEmbedded build system uses when
  6925. it creates the target part of an SDK (i.e. the part built for the
  6926. target hardware), which includes libraries and headers. Use this
  6927. variable to add individual packages to the part of the SDK that runs
  6928. on the target. See the
  6929. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  6930. in the Yocto Project Application Development and the Extensible
  6931. Software Development Kit (eSDK) manual for more information.
  6932. For background information on cross-development toolchains in the
  6933. Yocto Project development environment, see the
  6934. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  6935. section in the Yocto Project Overview and Concepts Manual. For
  6936. information on setting up a cross-development environment, see the
  6937. :doc:`/sdk-manual/index` manual.
  6938. :term:`TRANSLATED_TARGET_ARCH`
  6939. A sanitized version of :term:`TARGET_ARCH`. This
  6940. variable is used where the architecture is needed in a value where
  6941. underscores are not allowed, for example within package filenames. In
  6942. this case, dash characters replace any underscore characters used in
  6943. :term:`TARGET_ARCH`.
  6944. Do not edit this variable.
  6945. :term:`TUNE_ARCH`
  6946. The GNU canonical architecture for a specific architecture (i.e.
  6947. ``arm``, ``armeb``, ``mips``, ``mips64``, and so forth). BitBake uses
  6948. this value to setup configuration.
  6949. :term:`TUNE_ARCH` definitions are specific to a given architecture. The
  6950. definitions can be a single static definition, or can be dynamically
  6951. adjusted. You can see details for a given CPU family by looking at
  6952. the architecture's ``README`` file. For example, the
  6953. ``meta/conf/machine/include/mips/README`` file in the
  6954. :term:`Source Directory` provides information for
  6955. :term:`TUNE_ARCH` specific to the ``mips`` architecture.
  6956. :term:`TUNE_ARCH` is tied closely to
  6957. :term:`TARGET_ARCH`, which defines the target
  6958. machine's architecture. The BitBake configuration file
  6959. (``meta/conf/bitbake.conf``) sets :term:`TARGET_ARCH` as follows::
  6960. TARGET_ARCH = "${TUNE_ARCH}"
  6961. The following list, which is by no means complete since architectures
  6962. are configurable, shows supported machine architectures:
  6963. - arm
  6964. - i586
  6965. - x86_64
  6966. - powerpc
  6967. - powerpc64
  6968. - mips
  6969. - mipsel
  6970. :term:`TUNE_ASARGS`
  6971. Specifies architecture-specific assembler flags for the target
  6972. system. The set of flags is based on the selected tune features.
  6973. :term:`TUNE_ASARGS` is set using the tune include files, which are
  6974. typically under ``meta/conf/machine/include/`` and are influenced
  6975. through :term:`TUNE_FEATURES`. For example, the
  6976. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  6977. for the x86 architecture as follows::
  6978. TUNE_ASARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-x32", "", d)}"
  6979. .. note::
  6980. Board Support Packages (BSPs) select the tune. The selected tune,
  6981. in turn, affects the tune variables themselves (i.e. the tune can
  6982. supply its own set of flags).
  6983. :term:`TUNE_CCARGS`
  6984. Specifies architecture-specific C compiler flags for the target
  6985. system. The set of flags is based on the selected tune features.
  6986. :term:`TUNE_CCARGS` is set using the tune include files, which are
  6987. typically under ``meta/conf/machine/include/`` and are influenced
  6988. through :term:`TUNE_FEATURES`.
  6989. .. note::
  6990. Board Support Packages (BSPs) select the tune. The selected tune,
  6991. in turn, affects the tune variables themselves (i.e. the tune can
  6992. supply its own set of flags).
  6993. :term:`TUNE_FEATURES`
  6994. Features used to "tune" a compiler for optimal use given a specific
  6995. processor. The features are defined within the tune files and allow
  6996. arguments (i.e. ``TUNE_*ARGS``) to be dynamically generated based on
  6997. the features.
  6998. The OpenEmbedded build system verifies the features to be sure they
  6999. are not conflicting and that they are supported.
  7000. The BitBake configuration file (``meta/conf/bitbake.conf``) defines
  7001. :term:`TUNE_FEATURES` as follows::
  7002. TUNE_FEATURES ??= "${TUNE_FEATURES:tune-${DEFAULTTUNE}}"
  7003. See the :term:`DEFAULTTUNE` variable for more information.
  7004. :term:`TUNE_LDARGS`
  7005. Specifies architecture-specific linker flags for the target system.
  7006. The set of flags is based on the selected tune features.
  7007. :term:`TUNE_LDARGS` is set using the tune include files, which are
  7008. typically under ``meta/conf/machine/include/`` and are influenced
  7009. through :term:`TUNE_FEATURES`. For example, the
  7010. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  7011. for the x86 architecture as follows::
  7012. TUNE_LDARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-m elf32_x86_64", "", d)}"
  7013. .. note::
  7014. Board Support Packages (BSPs) select the tune. The selected tune,
  7015. in turn, affects the tune variables themselves (i.e. the tune can
  7016. supply its own set of flags).
  7017. :term:`TUNE_PKGARCH`
  7018. The package architecture understood by the packaging system to define
  7019. the architecture, ABI, and tuning of output packages. The specific
  7020. tune is defined using the "_tune" override as follows::
  7021. TUNE_PKGARCH:tune-tune = "tune"
  7022. These tune-specific package architectures are defined in the machine
  7023. include files. Here is an example of the "core2-32" tuning as used in
  7024. the ``meta/conf/machine/include/x86/tune-core2.inc`` file::
  7025. TUNE_PKGARCH:tune-core2-32 = "core2-32"
  7026. :term:`TUNECONFLICTS[feature]`
  7027. Specifies CPU or Application Binary Interface (ABI) tuning features
  7028. that conflict with feature.
  7029. Known tuning conflicts are specified in the machine include files in
  7030. the :term:`Source Directory`. Here is an example from
  7031. the ``meta/conf/machine/include/mips/arch-mips.inc`` include file
  7032. that lists the "o32" and "n64" features as conflicting with the "n32"
  7033. feature::
  7034. TUNECONFLICTS[n32] = "o32 n64"
  7035. :term:`TUNEVALID[feature]`
  7036. Specifies a valid CPU or Application Binary Interface (ABI) tuning
  7037. feature. The specified feature is stored as a flag. Valid features
  7038. are specified in the machine include files (e.g.
  7039. ``meta/conf/machine/include/arm/arch-arm.inc``). Here is an example
  7040. from that file::
  7041. TUNEVALID[bigendian] = "Enable big-endian mode."
  7042. See the machine include files in the :term:`Source Directory`
  7043. for these features.
  7044. :term:`UBOOT_BINARY`
  7045. Specifies the name of the binary build by U-Boot.
  7046. :term:`UBOOT_CONFIG`
  7047. Configures one or more U-Boot configurations to build. Each
  7048. configuration can define the :term:`UBOOT_MACHINE` and optionally the
  7049. :term:`IMAGE_FSTYPES` and the :term:`UBOOT_BINARY`.
  7050. Here is an example from the ``meta-freescale`` layer. ::
  7051. UBOOT_CONFIG ??= "sdcard-ifc-secure-boot sdcard-ifc sdcard-qspi lpuart qspi secure-boot nor"
  7052. UBOOT_CONFIG[nor] = "ls1021atwr_nor_defconfig"
  7053. UBOOT_CONFIG[sdcard-ifc] = "ls1021atwr_sdcard_ifc_defconfig,,u-boot-with-spl-pbl.bin"
  7054. UBOOT_CONFIG[sdcard-qspi] = "ls1021atwr_sdcard_qspi_defconfig,,u-boot-with-spl-pbl.bin"
  7055. UBOOT_CONFIG[lpuart] = "ls1021atwr_nor_lpuart_defconfig"
  7056. UBOOT_CONFIG[qspi] = "ls1021atwr_qspi_defconfig"
  7057. UBOOT_CONFIG[secure-boot] = "ls1021atwr_nor_SECURE_BOOT_defconfig"
  7058. UBOOT_CONFIG[sdcard-ifc-secure-boot] = "ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig,,u-boot-with-spl-pbl.bin"
  7059. In this example, all possible seven configurations are selected. Each
  7060. configuration specifies "..._defconfig" as :term:`UBOOT_MACHINE`, and
  7061. the "sd..." configurations define an individual name for
  7062. :term:`UBOOT_BINARY`. No configuration defines a second parameter for
  7063. :term:`IMAGE_FSTYPES` to use for the U-Boot image.
  7064. For more information on how the :term:`UBOOT_CONFIG` is handled, see the
  7065. :ref:`uboot-config <ref-classes-uboot-config>`
  7066. class.
  7067. :term:`UBOOT_DTB_LOADADDRESS`
  7068. Specifies the load address for the dtb image used by U-Boot. During FIT
  7069. image creation, the :term:`UBOOT_DTB_LOADADDRESS` variable is used in
  7070. :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to specify
  7071. the load address to be used in
  7072. creating the dtb sections of Image Tree Source for the FIT image.
  7073. :term:`UBOOT_DTBO_LOADADDRESS`
  7074. Specifies the load address for the dtbo image used by U-Boot. During FIT
  7075. image creation, the :term:`UBOOT_DTBO_LOADADDRESS` variable is used in
  7076. :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to specify the load address to be used in
  7077. creating the dtbo sections of Image Tree Source for the FIT image.
  7078. :term:`UBOOT_ENTRYPOINT`
  7079. Specifies the entry point for the U-Boot image. During U-Boot image
  7080. creation, the :term:`UBOOT_ENTRYPOINT` variable is passed as a
  7081. command-line parameter to the ``uboot-mkimage`` utility.
  7082. :term:`UBOOT_FIT_DESC`
  7083. Specifies the description string encoded into a U-Boot fitImage. The default
  7084. value is set by the :ref:`ref-classes-uboot-sign` class as follows::
  7085. UBOOT_FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
  7086. :term:`UBOOT_FIT_GENERATE_KEYS`
  7087. Decides whether to generate the keys for signing the U-Boot fitImage if
  7088. they don't already exist. The keys are created in :term:`SPL_SIGN_KEYDIR`.
  7089. The default value is "0".
  7090. Enable this as follows::
  7091. UBOOT_FIT_GENERATE_KEYS = "1"
  7092. This variable is used in the :ref:`ref-classes-uboot-sign` class.
  7093. :term:`UBOOT_FIT_HASH_ALG`
  7094. Specifies the hash algorithm used in creating the U-Boot FIT Image.
  7095. It is set by default to ``sha256`` by the :ref:`ref-classes-uboot-sign`
  7096. class.
  7097. :term:`UBOOT_FIT_KEY_GENRSA_ARGS`
  7098. Arguments to ``openssl genrsa`` for generating a RSA private key for
  7099. signing the U-Boot FIT image. The default value of this variable
  7100. is set to "-F4" by the :ref:`ref-classes-uboot-sign` class.
  7101. :term:`UBOOT_FIT_KEY_REQ_ARGS`
  7102. Arguments to ``openssl req`` for generating a certificate for signing
  7103. the U-Boot FIT image. The default value is "-batch -new" by the
  7104. :ref:`ref-classes-uboot-sign` class, "batch" for
  7105. non interactive mode and "new" for generating new keys.
  7106. :term:`UBOOT_FIT_KEY_SIGN_PKCS`
  7107. Format for the public key certificate used for signing the U-Boot FIT
  7108. image. The default value is set to "x509" by the
  7109. :ref:`ref-classes-uboot-sign` class.
  7110. :term:`UBOOT_FIT_SIGN_ALG`
  7111. Specifies the signature algorithm used in creating the U-Boot FIT Image.
  7112. This variable is set by default to "rsa2048" by the
  7113. :ref:`ref-classes-uboot-sign` class.
  7114. :term:`UBOOT_FIT_SIGN_NUMBITS`
  7115. Size of the private key used in signing the U-Boot FIT image, in number
  7116. of bits. The default value for this variable is set to "2048"
  7117. by the :ref:`ref-classes-uboot-sign` class.
  7118. :term:`UBOOT_FITIMAGE_ENABLE`
  7119. This variable allows to generate a FIT image for U-Boot, which is one
  7120. of the ways to implement a verified boot process.
  7121. Its default value is "0", so set it to "1" to enable this functionality::
  7122. UBOOT_FITIMAGE_ENABLE = "1"
  7123. See the :ref:`ref-classes-uboot-sign` class for details.
  7124. :term:`UBOOT_LOADADDRESS`
  7125. Specifies the load address for the U-Boot image. During U-Boot image
  7126. creation, the :term:`UBOOT_LOADADDRESS` variable is passed as a
  7127. command-line parameter to the ``uboot-mkimage`` utility.
  7128. :term:`UBOOT_LOCALVERSION`
  7129. Appends a string to the name of the local version of the U-Boot
  7130. image. For example, assuming the version of the U-Boot image built
  7131. was "2013.10", the full version string reported by U-Boot would be
  7132. "2013.10-yocto" given the following statement::
  7133. UBOOT_LOCALVERSION = "-yocto"
  7134. :term:`UBOOT_MACHINE`
  7135. Specifies the value passed on the ``make`` command line when building
  7136. a U-Boot image. The value indicates the target platform
  7137. configuration. You typically set this variable from the machine
  7138. configuration file (i.e. ``conf/machine/machine_name.conf``).
  7139. Please see the "Selection of Processor Architecture and Board Type"
  7140. section in the U-Boot README for valid values for this variable.
  7141. :term:`UBOOT_MAKE_TARGET`
  7142. Specifies the target called in the ``Makefile``. The default target
  7143. is "all".
  7144. :term:`UBOOT_MKIMAGE`
  7145. Specifies the name of the mkimage command as used by the
  7146. :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to assemble
  7147. the FIT image. This can be used to substitute an alternative command, wrapper
  7148. script or function if desired. The default is "uboot-mkimage".
  7149. :term:`UBOOT_MKIMAGE_DTCOPTS`
  7150. Options for the device tree compiler passed to mkimage '-D'
  7151. feature while creating FIT image in :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class.
  7152. If :term:`UBOOT_MKIMAGE_DTCOPTS` is not set then kernel-fitimage will not
  7153. pass the ``-D`` option to mkimage.
  7154. :term:`UBOOT_MKIMAGE_SIGN`
  7155. Specifies the name of the mkimage command as used by the
  7156. :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to sign
  7157. the FIT image after it has been assembled (if enabled). This can be used
  7158. to substitute an alternative command, wrapper script or function if
  7159. desired. The default is "${:term:`UBOOT_MKIMAGE`}".
  7160. :term:`UBOOT_MKIMAGE_SIGN_ARGS`
  7161. Optionally specifies additional arguments for the
  7162. :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to pass to the
  7163. mkimage command when signing the FIT image.
  7164. :term:`UBOOT_RD_ENTRYPOINT`
  7165. Specifies the entrypoint for the RAM disk image.
  7166. During FIT image creation, the
  7167. :term:`UBOOT_RD_ENTRYPOINT` variable is used
  7168. in :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to specify the
  7169. entrypoint to be used in creating the Image Tree Source for
  7170. the FIT image.
  7171. :term:`UBOOT_RD_LOADADDRESS`
  7172. Specifies the load address for the RAM disk image.
  7173. During FIT image creation, the
  7174. :term:`UBOOT_RD_LOADADDRESS` variable is used
  7175. in :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to specify the
  7176. load address to be used in creating the Image Tree Source for
  7177. the FIT image.
  7178. :term:`UBOOT_SIGN_ENABLE`
  7179. Enable signing of FIT image. The default value is "0".
  7180. :term:`UBOOT_SIGN_KEYDIR`
  7181. Location of the directory containing the RSA key and
  7182. certificate used for signing FIT image.
  7183. :term:`UBOOT_SIGN_KEYNAME`
  7184. The name of keys used for signing U-Boot FIT image stored in
  7185. :term:`UBOOT_SIGN_KEYDIR` directory. For e.g. dev.key key and dev.crt
  7186. certificate stored in :term:`UBOOT_SIGN_KEYDIR` directory will have
  7187. :term:`UBOOT_SIGN_KEYNAME` set to "dev".
  7188. :term:`UBOOT_SUFFIX`
  7189. Points to the generated U-Boot extension. For example, ``u-boot.sb``
  7190. has a ``.sb`` extension.
  7191. The default U-Boot extension is ``.bin``
  7192. :term:`UBOOT_TARGET`
  7193. Specifies the target used for building U-Boot. The target is passed
  7194. directly as part of the "make" command (e.g. SPL and AIS). If you do
  7195. not specifically set this variable, the OpenEmbedded build process
  7196. passes and uses "all" for the target during the U-Boot building
  7197. process.
  7198. :term:`UNKNOWN_CONFIGURE_OPT_IGNORE`
  7199. Specifies a list of options that, if reported by the configure script
  7200. as being invalid, should not generate a warning during the
  7201. :ref:`ref-tasks-configure` task. Normally, invalid
  7202. configure options are simply not passed to the configure script (e.g.
  7203. should be removed from :term:`EXTRA_OECONF` or
  7204. :term:`PACKAGECONFIG_CONFARGS`).
  7205. However, there are common options that are passed to all
  7206. configure scripts at a class level, but might not be valid for some
  7207. configure scripts. Therefore warnings about these options are useless.
  7208. For these cases, the options are added to :term:`UNKNOWN_CONFIGURE_OPT_IGNORE`.
  7209. The configure arguments check that uses
  7210. :term:`UNKNOWN_CONFIGURE_OPT_IGNORE` is part of the
  7211. :ref:`insane <ref-classes-insane>` class and is only enabled if the
  7212. recipe inherits the :ref:`autotools <ref-classes-autotools>` class.
  7213. :term:`UPDATERCPN`
  7214. For recipes inheriting the
  7215. :ref:`update-rc.d <ref-classes-update-rc.d>` class, :term:`UPDATERCPN`
  7216. specifies the package that contains the initscript that is enabled.
  7217. The default value is "${PN}". Given that almost all recipes that
  7218. install initscripts package them in the main package for the recipe,
  7219. you rarely need to set this variable in individual recipes.
  7220. :term:`UPSTREAM_CHECK_COMMITS`
  7221. You can perform a per-recipe check for what the latest upstream
  7222. source code version is by calling ``devtool latest-version recipe``. If
  7223. the recipe source code is provided from Git repositories, but
  7224. releases are not identified by Git tags, set :term:`UPSTREAM_CHECK_COMMITS`
  7225. to ``1`` in the recipe, and the OpenEmbedded build system
  7226. will compare the latest commit with the one currently specified
  7227. by the recipe (:term:`SRCREV`).
  7228. ::
  7229. UPSTREAM_CHECK_COMMITS = "1"
  7230. :term:`UPSTREAM_CHECK_GITTAGREGEX`
  7231. You can perform a per-recipe check for what the latest upstream
  7232. source code version is by calling ``devtool latest-version recipe``. If
  7233. the recipe source code is provided from Git repositories, the
  7234. OpenEmbedded build system determines the latest upstream version by
  7235. picking the latest tag from the list of all repository tags.
  7236. You can use the :term:`UPSTREAM_CHECK_GITTAGREGEX` variable to provide a
  7237. regular expression to filter only the relevant tags should the
  7238. default filter not work correctly.
  7239. ::
  7240. UPSTREAM_CHECK_GITTAGREGEX = "git_tag_regex"
  7241. :term:`UPSTREAM_CHECK_REGEX`
  7242. Use the :term:`UPSTREAM_CHECK_REGEX` variable to specify a different
  7243. regular expression instead of the default one when the package
  7244. checking system is parsing the page found using
  7245. :term:`UPSTREAM_CHECK_URI`.
  7246. ::
  7247. UPSTREAM_CHECK_REGEX = "package_regex"
  7248. :term:`UPSTREAM_CHECK_URI`
  7249. You can perform a per-recipe check for what the latest upstream
  7250. source code version is by calling ``devtool latest-version recipe``. If
  7251. the source code is provided from tarballs, the latest version is
  7252. determined by fetching the directory listing where the tarball is and
  7253. attempting to find a later tarball. When this approach does not work,
  7254. you can use :term:`UPSTREAM_CHECK_URI` to provide a different URI that
  7255. contains the link to the latest tarball.
  7256. ::
  7257. UPSTREAM_CHECK_URI = "recipe_url"
  7258. :term:`UPSTREAM_VERSION_UNKNOWN`
  7259. You can perform a per-recipe check for what the latest upstream
  7260. source code version is by calling ``devtool latest-version recipe``.
  7261. If no combination of the :term:`UPSTREAM_CHECK_URI`, :term:`UPSTREAM_CHECK_REGEX`,
  7262. :term:`UPSTREAM_CHECK_GITTAGREGEX` and :term:`UPSTREAM_CHECK_COMMITS` variables in
  7263. the recipe allows to determine what the latest upstream version is,
  7264. you can set :term:`UPSTREAM_VERSION_UNKNOWN` to ``1`` in the recipe
  7265. to acknowledge that the check cannot be performed.
  7266. ::
  7267. UPSTREAM_VERSION_UNKNOWN = "1"
  7268. :term:`USE_DEVFS`
  7269. Determines if ``devtmpfs`` is used for ``/dev`` population. The
  7270. default value used for :term:`USE_DEVFS` is "1" when no value is
  7271. specifically set. Typically, you would set :term:`USE_DEVFS` to "0" for a
  7272. statically populated ``/dev`` directory.
  7273. See the ":ref:`dev-manual/device-manager:selecting a device manager`" section in
  7274. the Yocto Project Development Tasks Manual for information on how to
  7275. use this variable.
  7276. :term:`USE_VT`
  7277. When using
  7278. :ref:`SysVinit <dev-manual/new-recipe:enabling system services>`,
  7279. determines whether or not to run a :wikipedia:`getty <Getty_(Unix)>`
  7280. on any virtual terminals in order to enable logging in through those
  7281. terminals.
  7282. The default value used for :term:`USE_VT` is "1" when no default value is
  7283. specifically set. Typically, you would set :term:`USE_VT` to "0" in the
  7284. machine configuration file for machines that do not have a graphical
  7285. display attached and therefore do not need virtual terminal
  7286. functionality.
  7287. :term:`USER_CLASSES`
  7288. A list of classes to globally inherit. These classes are used by the
  7289. OpenEmbedded build system to enable extra features.
  7290. The default list is set in your ``local.conf`` file::
  7291. USER_CLASSES ?= "buildstats"
  7292. For more information, see
  7293. ``meta-poky/conf/local.conf.sample`` in the :term:`Source Directory`.
  7294. :term:`USERADD_ERROR_DYNAMIC`
  7295. If set to ``error``, forces the OpenEmbedded build system to produce
  7296. an error if the user identification (``uid``) and group
  7297. identification (``gid``) values are not defined in any of the files
  7298. listed in :term:`USERADD_UID_TABLES` and
  7299. :term:`USERADD_GID_TABLES`. If set to
  7300. ``warn``, a warning will be issued instead.
  7301. The default behavior for the build system is to dynamically apply
  7302. ``uid`` and ``gid`` values. Consequently, the
  7303. :term:`USERADD_ERROR_DYNAMIC` variable is by default not set. If you plan
  7304. on using statically assigned ``gid`` and ``uid`` values, you should
  7305. set the :term:`USERADD_ERROR_DYNAMIC` variable in your ``local.conf``
  7306. file as follows::
  7307. USERADD_ERROR_DYNAMIC = "error"
  7308. Overriding the
  7309. default behavior implies you are going to also take steps to set
  7310. static ``uid`` and ``gid`` values through use of the
  7311. :term:`USERADDEXTENSION`,
  7312. :term:`USERADD_UID_TABLES`, and
  7313. :term:`USERADD_GID_TABLES` variables.
  7314. .. note::
  7315. There is a difference in behavior between setting
  7316. :term:`USERADD_ERROR_DYNAMIC` to ``error`` and setting it to ``warn``.
  7317. When it is set to ``warn``, the build system will report a warning for
  7318. every undefined ``uid`` and ``gid`` in any recipe. But when it is set
  7319. to ``error``, it will only report errors for recipes that are actually
  7320. built.
  7321. This saves you from having to add static IDs for recipes that you
  7322. know will never be built.
  7323. :term:`USERADD_GID_TABLES`
  7324. Specifies a password file to use for obtaining static group
  7325. identification (``gid``) values when the OpenEmbedded build system
  7326. adds a group to the system during package installation.
  7327. When applying static group identification (``gid``) values, the
  7328. OpenEmbedded build system looks in :term:`BBPATH` for a
  7329. ``files/group`` file and then applies those ``uid`` values. Set the
  7330. variable as follows in your ``local.conf`` file::
  7331. USERADD_GID_TABLES = "files/group"
  7332. .. note::
  7333. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  7334. causes the build system to use static ``gid`` values.
  7335. :term:`USERADD_PACKAGES`
  7336. When inheriting the :ref:`useradd <ref-classes-useradd>` class,
  7337. this variable specifies the individual packages within the recipe
  7338. that require users and/or groups to be added.
  7339. You must set this variable if the recipe inherits the class. For
  7340. example, the following enables adding a user for the main package in
  7341. a recipe::
  7342. USERADD_PACKAGES = "${PN}"
  7343. .. note::
  7344. It follows that if you are going to use the :term:`USERADD_PACKAGES`
  7345. variable, you need to set one or more of the :term:`USERADD_PARAM`,
  7346. :term:`GROUPADD_PARAM`, or :term:`GROUPMEMS_PARAM` variables.
  7347. :term:`USERADD_PARAM`
  7348. When inheriting the :ref:`useradd <ref-classes-useradd>` class,
  7349. this variable specifies for a package what parameters should pass to
  7350. the ``useradd`` command if you add a user to the system when the
  7351. package is installed.
  7352. Here is an example from the ``dbus`` recipe::
  7353. USERADD_PARAM:${PN} = "--system --home ${localstatedir}/lib/dbus \
  7354. --no-create-home --shell /bin/false \
  7355. --user-group messagebus"
  7356. For information on the
  7357. standard Linux shell command ``useradd``, see
  7358. https://linux.die.net/man/8/useradd.
  7359. :term:`USERADD_UID_TABLES`
  7360. Specifies a password file to use for obtaining static user
  7361. identification (``uid``) values when the OpenEmbedded build system
  7362. adds a user to the system during package installation.
  7363. When applying static user identification (``uid``) values, the
  7364. OpenEmbedded build system looks in :term:`BBPATH` for a
  7365. ``files/passwd`` file and then applies those ``uid`` values. Set the
  7366. variable as follows in your ``local.conf`` file::
  7367. USERADD_UID_TABLES = "files/passwd"
  7368. .. note::
  7369. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  7370. causes the build system to use static ``uid`` values.
  7371. :term:`USERADDEXTENSION`
  7372. When set to "useradd-staticids", causes the OpenEmbedded build system
  7373. to base all user and group additions on a static ``passwd`` and
  7374. ``group`` files found in :term:`BBPATH`.
  7375. To use static user identification (``uid``) and group identification
  7376. (``gid``) values, set the variable as follows in your ``local.conf``
  7377. file: USERADDEXTENSION = "useradd-staticids"
  7378. .. note::
  7379. Setting this variable to use static ``uid`` and ``gid``
  7380. values causes the OpenEmbedded build system to employ the
  7381. :ref:`ref-classes-useradd` class.
  7382. If you use static ``uid`` and ``gid`` information, you must also
  7383. specify the ``files/passwd`` and ``files/group`` files by setting the
  7384. :term:`USERADD_UID_TABLES` and
  7385. :term:`USERADD_GID_TABLES` variables.
  7386. Additionally, you should also set the
  7387. :term:`USERADD_ERROR_DYNAMIC` variable.
  7388. :term:`VIRTUAL-RUNTIME`
  7389. :term:`VIRTUAL-RUNTIME` is a commonly used prefix for defining virtual
  7390. packages for runtime usage, typically for use in :term:`RDEPENDS`
  7391. or in image definitions.
  7392. An example is ``VIRTUAL-RUNTIME_base-utils`` that makes it possible
  7393. to either use BusyBox based utilities::
  7394. VIRTUAL-RUNTIME_base-utils = "busybox"
  7395. or their full featured implementations from GNU Coreutils
  7396. and other projects::
  7397. VIRTUAL-RUNTIME_base-utils = "packagegroup-core-base-utils"
  7398. Here are two examples using this virtual runtime package. The
  7399. first one is in :yocto_git:`initramfs-framework_1.0.bb
  7400. </poky/tree/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb?h=scarthgap>`::
  7401. RDEPENDS:${PN} += "${VIRTUAL-RUNTIME_base-utils}"
  7402. The second example is in the :yocto_git:`core-image-initramfs-boot
  7403. </poky/tree/meta/recipes-core/images/core-image-initramfs-boot.bb?h=scarthgap>`
  7404. image definition::
  7405. PACKAGE_INSTALL = "${INITRAMFS_SCRIPTS} ${VIRTUAL-RUNTIME_base-utils} base-passwd"
  7406. :term:`VOLATILE_LOG_DIR`
  7407. Specifies the persistence of the target's ``/var/log`` directory,
  7408. which is used to house postinstall target log files.
  7409. By default, :term:`VOLATILE_LOG_DIR` is set to "yes", which means the
  7410. file is not persistent. You can override this setting by setting the
  7411. variable to "no" to make the log directory persistent.
  7412. :term:`WARN_QA`
  7413. Specifies the quality assurance checks whose failures are reported as
  7414. warnings by the OpenEmbedded build system. You set this variable in
  7415. your distribution configuration file. For a list of the checks you
  7416. can control with this variable, see the
  7417. ":ref:`ref-classes-insane`" section.
  7418. :term:`WIC_CREATE_EXTRA_ARGS`
  7419. If the :term:`IMAGE_FSTYPES` variable contains "wic", the build
  7420. will generate a
  7421. :ref:`Wic image <dev-manual/wic:creating partitioned images using wic>`
  7422. automatically when BitBake builds an image recipe. As part of
  7423. this process BitBake will invoke the "`wic create`" command. The
  7424. :term:`WIC_CREATE_EXTRA_ARGS` variable is placed at the end of this
  7425. command which allows the user to supply additional arguments.
  7426. One such useful purpose for this mechanism is to add the ``-D`` (or
  7427. ``--debug``) argument to the "`wic create`" command. This increases the
  7428. amount of debugging information written out to the Wic log during the
  7429. Wic creation process.
  7430. :term:`WKS_FILE`
  7431. Specifies the location of the Wic kickstart file that is used by the
  7432. OpenEmbedded build system to create a partitioned image
  7433. (``image.wic``). For information on how to create a partitioned
  7434. image, see the
  7435. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  7436. section in the Yocto Project Development Tasks Manual. For details on
  7437. the kickstart file format, see the ":doc:`/ref-manual/kickstart`" Chapter.
  7438. :term:`WKS_FILE_DEPENDS`
  7439. When placed in the recipe that builds your image, this variable lists
  7440. build-time dependencies. The :term:`WKS_FILE_DEPENDS` variable is only
  7441. applicable when Wic images are active (i.e. when
  7442. :term:`IMAGE_FSTYPES` contains entries related
  7443. to Wic). If your recipe does not create Wic images, the variable has
  7444. no effect.
  7445. The :term:`WKS_FILE_DEPENDS` variable is similar to the
  7446. :term:`DEPENDS` variable. When you use the variable in
  7447. your recipe that builds the Wic image, dependencies you list in the
  7448. :term:`WKS_FILE_DEPENDS` variable are added to the :term:`DEPENDS` variable.
  7449. With the :term:`WKS_FILE_DEPENDS` variable, you have the possibility to
  7450. specify a list of additional dependencies (e.g. native tools,
  7451. bootloaders, and so forth), that are required to build Wic images.
  7452. Here is an example::
  7453. WKS_FILE_DEPENDS = "some-native-tool"
  7454. In the
  7455. previous example, some-native-tool would be replaced with an actual
  7456. native tool on which the build would depend.
  7457. :term:`WKS_FILES`
  7458. Specifies a list of candidate Wic kickstart files to be used by the
  7459. OpenEmbedded build system to create a partitioned image. Only the
  7460. first one that is found, from left to right, will be used.
  7461. This is only useful when there are multiple ``.wks`` files that can be
  7462. used to produce an image. A typical case is when multiple layers are
  7463. used for different hardware platforms, each supplying a different
  7464. ``.wks`` file. In this case, you specify all possible ones through
  7465. :term:`WKS_FILES`.
  7466. If only one ``.wks`` file is used, set :term:`WKS_FILE` instead.
  7467. :term:`WORKDIR`
  7468. The pathname of the work directory in which the OpenEmbedded build
  7469. system builds a recipe. This directory is located within the
  7470. :term:`TMPDIR` directory structure and is specific to
  7471. the recipe being built and the system for which it is being built.
  7472. The :term:`WORKDIR` directory is defined as follows::
  7473. ${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}
  7474. The actual directory depends on several things:
  7475. - :term:`TMPDIR`: The top-level build output directory
  7476. - :term:`MULTIMACH_TARGET_SYS`: The target system identifier
  7477. - :term:`PN`: The recipe name
  7478. - :term:`EXTENDPE`: The epoch --- if :term:`PE` is not specified, which
  7479. is usually the case for most recipes, then `EXTENDPE` is blank.
  7480. - :term:`PV`: The recipe version
  7481. - :term:`PR`: The recipe revision
  7482. As an example, assume a Source Directory top-level folder name
  7483. ``poky``, a default Build Directory at ``poky/build``, and a
  7484. ``qemux86-poky-linux`` machine target system. Furthermore, suppose
  7485. your recipe is named ``foo_1.3.0-r0.bb``. In this case, the work
  7486. directory the build system uses to build the package would be as
  7487. follows::
  7488. poky/build/tmp/work/qemux86-poky-linux/foo/1.3.0-r0
  7489. :term:`XSERVER`
  7490. Specifies the packages that should be installed to provide an X
  7491. server and drivers for the current machine, assuming your image
  7492. directly includes ``packagegroup-core-x11-xserver`` or, perhaps
  7493. indirectly, includes "x11-base" in
  7494. :term:`IMAGE_FEATURES`.
  7495. The default value of :term:`XSERVER`, if not specified in the machine
  7496. configuration, is "xserver-xorg xf86-video-fbdev xf86-input-evdev".
  7497. :term:`XZ_THREADS`
  7498. Specifies the number of parallel threads that should be used when
  7499. using xz compression.
  7500. By default this scales with core count, but is never set less than 2
  7501. to ensure that multi-threaded mode is always used so that the output
  7502. file contents are deterministic. Builds will work with a value of 1
  7503. but the output will differ compared to the output from the compression
  7504. generated when more than one thread is used.
  7505. On systems where many tasks run in parallel, setting a limit to this
  7506. can be helpful in controlling system resource usage.
  7507. :term:`XZ_MEMLIMIT`
  7508. Specifies the maximum memory the xz compression should use as a percentage
  7509. of system memory. If unconstrained the xz compressor can use large amounts of
  7510. memory and become problematic with parallelism elsewhere in the build.
  7511. "50%" has been found to be a good value.
  7512. :term:`ZSTD_THREADS`
  7513. Specifies the number of parallel threads that should be used when
  7514. using ZStandard compression.
  7515. By default this scales with core count, but is never set less than 2
  7516. to ensure that multi-threaded mode is always used so that the output
  7517. file contents are deterministic. Builds will work with a value of 1
  7518. but the output will differ compared to the output from the compression
  7519. generated when more than one thread is used.
  7520. On systems where many tasks run in parallel, setting a limit to this
  7521. can be helpful in controlling system resource usage.