variables.rst 373 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739
  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. :term:`ABIEXTENSION`
  17. Extension to the Application Binary Interface (ABI) field of the GNU
  18. canonical architecture name (e.g. "eabi").
  19. ABI extensions are set in the machine include files. For example, the
  20. ``meta/conf/machine/include/arm/arch-arm.inc`` file sets the
  21. following extension::
  22. ABIEXTENSION = "eabi"
  23. :term:`ALLOW_EMPTY`
  24. Specifies whether to produce an output package even if it is empty.
  25. By default, BitBake does not produce empty packages. This default
  26. behavior can cause issues when there is an
  27. :term:`RDEPENDS` or some other hard runtime
  28. requirement on the existence of the package.
  29. Like all package-controlling variables, you must always use them in
  30. conjunction with a package name override, as in::
  31. ALLOW_EMPTY_${PN} = "1"
  32. ALLOW_EMPTY_${PN}-dev = "1"
  33. ALLOW_EMPTY_${PN}-staticdev = "1"
  34. :term:`ALTERNATIVE`
  35. Lists commands in a package that need an alternative binary naming
  36. scheme. Sometimes the same command is provided in multiple packages.
  37. When this occurs, the OpenEmbedded build system needs to use the
  38. alternatives system to create a different binary naming scheme so the
  39. commands can co-exist.
  40. To use the variable, list out the package's commands that are also
  41. provided by another package. For example, if the ``busybox`` package
  42. has four such commands, you identify them as follows::
  43. ALTERNATIVE_busybox = "sh sed test bracket"
  44. For more information on the alternatives system, see the
  45. ":ref:`update-alternatives.bbclass <ref-classes-update-alternatives>`"
  46. section.
  47. :term:`ALTERNATIVE_LINK_NAME`
  48. Used by the alternatives system to map duplicated commands to actual
  49. locations. For example, if the ``bracket`` command provided by the
  50. ``busybox`` package is duplicated through another package, you must
  51. use the :term:`ALTERNATIVE_LINK_NAME` variable to specify the actual
  52. location::
  53. ALTERNATIVE_LINK_NAME[bracket] = "/usr/bin/["
  54. In this example, the binary for the ``bracket`` command (i.e. ``[``)
  55. from the ``busybox`` package resides in ``/usr/bin/``.
  56. .. note::
  57. If :term:`ALTERNATIVE_LINK_NAME` is not defined, it defaults to ``${bindir}/name``.
  58. For more information on the alternatives system, see the
  59. ":ref:`update-alternatives.bbclass <ref-classes-update-alternatives>`"
  60. section.
  61. :term:`ALTERNATIVE_PRIORITY`
  62. Used by the alternatives system to create default priorities for
  63. duplicated commands. You can use the variable to create a single
  64. default regardless of the command name or package, a default for
  65. specific duplicated commands regardless of the package, or a default
  66. for specific commands tied to particular packages. Here are the
  67. available syntax forms::
  68. ALTERNATIVE_PRIORITY = "priority"
  69. ALTERNATIVE_PRIORITY[name] = "priority"
  70. ALTERNATIVE_PRIORITY_pkg[name] = "priority"
  71. For more information on the alternatives system, see the
  72. ":ref:`update-alternatives.bbclass <ref-classes-update-alternatives>`"
  73. section.
  74. :term:`ALTERNATIVE_TARGET`
  75. Used by the alternatives system to create default link locations for
  76. duplicated commands. You can use the variable to create a single
  77. default location for all duplicated commands regardless of the
  78. command name or package, a default for specific duplicated commands
  79. regardless of the package, or a default for specific commands tied to
  80. particular packages. Here are the available syntax forms::
  81. ALTERNATIVE_TARGET = "target"
  82. ALTERNATIVE_TARGET[name] = "target"
  83. ALTERNATIVE_TARGET_pkg[name] = "target"
  84. .. note::
  85. If :term:`ALTERNATIVE_TARGET` is not defined, it inherits the value
  86. from the :term:`ALTERNATIVE_LINK_NAME` variable.
  87. If :term:`ALTERNATIVE_LINK_NAME` and :term:`ALTERNATIVE_TARGET` are the
  88. same, the target for :term:`ALTERNATIVE_TARGET` has "``.{BPN}``"
  89. appended to it.
  90. Finally, if the file referenced has not been renamed, the
  91. alternatives system will rename it to avoid the need to rename
  92. alternative files in the :ref:`ref-tasks-install`
  93. task while retaining support for the command if necessary.
  94. For more information on the alternatives system, see the
  95. ":ref:`update-alternatives.bbclass <ref-classes-update-alternatives>`"
  96. 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:`AUTO_SYSLINUXMENU`
  161. Enables creating an automatic menu for the syslinux bootloader. You
  162. must set this variable in your recipe. The
  163. :ref:`syslinux <ref-classes-syslinux>` class checks this variable.
  164. :term:`AUTOREV`
  165. When :term:`SRCREV` is set to the value of this variable, it specifies to
  166. use the latest source revision in the repository. Here is an example::
  167. SRCREV = "${AUTOREV}"
  168. If you use the previous statement to retrieve the latest version of
  169. software, you need to be sure :term:`PV` contains
  170. ``${``\ :term:`SRCPV`\ ``}``. For example, suppose you
  171. have a kernel recipe that inherits the
  172. :ref:`kernel <ref-classes-kernel>` class and you use the previous
  173. statement. In this example, ``${SRCPV}`` does not automatically get
  174. into :term:`PV`. Consequently, you need to change :term:`PV` in your recipe
  175. so that it does contain ``${SRCPV}``.
  176. For more information see the
  177. ":ref:`dev-manual/common-tasks:automatically incrementing a package version number`"
  178. section in the Yocto Project Development Tasks Manual.
  179. :term:`AVAILABLE_LICENSES`
  180. List of licenses found in the directories specified by
  181. :term:`COMMON_LICENSE_DIR` and
  182. :term:`LICENSE_PATH`.
  183. .. note::
  184. It is assumed that all changes to :term:`COMMON_LICENSE_DIR` and
  185. :term:`LICENSE_PATH` have been done before :term:`AVAILABLE_LICENSES`
  186. is defined (in :ref:`ref-classes-license`).
  187. :term:`AVAILTUNES`
  188. The list of defined CPU and Application Binary Interface (ABI)
  189. tunings (i.e. "tunes") available for use by the OpenEmbedded build
  190. system.
  191. The list simply presents the tunes that are available. Not all tunes
  192. may be compatible with a particular machine configuration, or with
  193. each other in a
  194. :ref:`Multilib <dev-manual/common-tasks:combining multiple versions of library files into one image>`
  195. configuration.
  196. To add a tune to the list, be sure to append it with spaces using the
  197. "+=" BitBake operator. Do not simply replace the list by using the
  198. "=" operator. See the
  199. ":ref:`Basic Syntax <bitbake:bitbake-user-manual/bitbake-user-manual-metadata:basic syntax>`" section in the BitBake
  200. User Manual for more information.
  201. :term:`AZ_SAS`
  202. Azure Storage Shared Access Signature, when using the
  203. :ref:`Azure Storage fetcher (az://) <bitbake:bitbake-user-manual/bitbake-user-manual-fetching:fetchers>`
  204. This variable can be defined to be used by the fetcher to authenticate
  205. and gain access to non-public artifacts.
  206. ::
  207. AZ_SAS = ""se=2021-01-01&sp=r&sv=2018-11-09&sr=c&skoid=<skoid>&sig=<signature>""
  208. For more information see Microsoft's Azure Storage documentation at
  209. https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview
  210. :term:`B`
  211. The directory within the :term:`Build Directory` in
  212. which the OpenEmbedded build system places generated objects during a
  213. recipe's build process. By default, this directory is the same as the
  214. :term:`S` directory, which is defined as::
  215. S = "${WORKDIR}/${BP}"
  216. You can separate the (:term:`S`) directory and the directory pointed to
  217. by the :term:`B` variable. Most Autotools-based recipes support
  218. separating these directories. The build system defaults to using
  219. separate directories for ``gcc`` and some kernel recipes.
  220. :term:`BAD_RECOMMENDATIONS`
  221. Lists "recommended-only" packages to not install. Recommended-only
  222. packages are packages installed only through the
  223. :term:`RRECOMMENDS` variable. You can prevent any
  224. of these "recommended" packages from being installed by listing them
  225. with the :term:`BAD_RECOMMENDATIONS` variable::
  226. BAD_RECOMMENDATIONS = "package_name package_name package_name ..."
  227. You can set this variable globally in your ``local.conf`` file or you
  228. can attach it to a specific image recipe by using the recipe name
  229. override::
  230. BAD_RECOMMENDATIONS_pn-target_image = "package_name"
  231. It is important to realize that if you choose to not install packages
  232. using this variable and some other packages are dependent on them
  233. (i.e. listed in a recipe's :term:`RDEPENDS`
  234. variable), the OpenEmbedded build system ignores your request and
  235. will install the packages to avoid dependency errors.
  236. This variable is supported only when using the IPK and RPM
  237. packaging backends. DEB is not supported.
  238. See the :term:`NO_RECOMMENDATIONS` and the
  239. :term:`PACKAGE_EXCLUDE` variables for related
  240. information.
  241. :term:`BASE_LIB`
  242. The library directory name for the CPU or Application Binary
  243. Interface (ABI) tune. The :term:`BASE_LIB` applies only in the Multilib
  244. context. See the ":ref:`dev-manual/common-tasks:combining multiple versions of library files into one image`"
  245. section in the Yocto Project Development Tasks Manual for information
  246. on Multilib.
  247. The :term:`BASE_LIB` variable is defined in the machine include files in
  248. the :term:`Source Directory`. If Multilib is not
  249. being used, the value defaults to "lib".
  250. :term:`BASE_WORKDIR`
  251. Points to the base of the work directory for all recipes. The default
  252. value is "${TMPDIR}/work".
  253. :term:`BB_ALLOWED_NETWORKS`
  254. Specifies a space-delimited list of hosts that the fetcher is allowed
  255. to use to obtain the required source code. Following are
  256. considerations surrounding this variable:
  257. - This host list is only used if :term:`BB_NO_NETWORK` is either not set
  258. or set to "0".
  259. - There is limited support for wildcard matching against the beginning of
  260. host names. For example, the following setting matches
  261. ``git.gnu.org``, ``ftp.gnu.org``, and ``foo.git.gnu.org``.
  262. ::
  263. BB_ALLOWED_NETWORKS = "*.gnu.org"
  264. .. note::
  265. The use of the "``*``" character only works at the beginning of
  266. a host name and it must be isolated from the remainder of the
  267. host name. You cannot use the wildcard character in any other
  268. location of the name or combined with the front part of the
  269. name.
  270. For example, ``*.foo.bar`` is supported, while ``*aa.foo.bar``
  271. is not.
  272. - Mirrors not in the host list are skipped and logged in debug.
  273. - Attempts to access networks not in the host list cause a failure.
  274. Using :term:`BB_ALLOWED_NETWORKS` in conjunction with
  275. :term:`PREMIRRORS` is very useful. Adding the host
  276. you want to use to :term:`PREMIRRORS` results in the source code being
  277. fetched from an allowed location and avoids raising an error when a
  278. host that is not allowed is in a :term:`SRC_URI`
  279. statement. This is because the fetcher does not attempt to use the
  280. host listed in :term:`SRC_URI` after a successful fetch from the
  281. :term:`PREMIRRORS` occurs.
  282. :term:`BB_DANGLINGAPPENDS_WARNONLY`
  283. Defines how BitBake handles situations where an append file
  284. (``.bbappend``) has no corresponding recipe file (``.bb``). This
  285. condition often occurs when layers get out of sync (e.g. ``oe-core``
  286. bumps a recipe version and the old recipe no longer exists and the
  287. other layer has not been updated to the new version of the recipe
  288. yet).
  289. The default fatal behavior is safest because it is the sane reaction
  290. given something is out of sync. It is important to realize when your
  291. changes are no longer being applied.
  292. You can change the default behavior by setting this variable to "1",
  293. "yes", or "true" in your ``local.conf`` file, which is located in the
  294. :term:`Build Directory`: Here is an example::
  295. BB_DANGLINGAPPENDS_WARNONLY = "1"
  296. :term:`BB_DISKMON_DIRS`
  297. Monitors disk space and available inodes during the build and allows
  298. you to control the build based on these parameters.
  299. Disk space monitoring is disabled by default. To enable monitoring,
  300. add the :term:`BB_DISKMON_DIRS` variable to your ``conf/local.conf`` file
  301. found in the :term:`Build Directory`. Use the
  302. following form:
  303. .. code-block:: none
  304. BB_DISKMON_DIRS = "action,dir,threshold [...]"
  305. where:
  306. action is:
  307. ABORT: Immediately abort the build when
  308. a threshold is broken.
  309. STOPTASKS: Stop the build after the currently
  310. executing tasks have finished when
  311. a threshold is broken.
  312. WARN: Issue a warning but continue the
  313. build when a threshold is broken.
  314. Subsequent warnings are issued as
  315. defined by the BB_DISKMON_WARNINTERVAL
  316. variable, which must be defined in
  317. the conf/local.conf file.
  318. dir is:
  319. Any directory you choose. You can specify one or
  320. more directories to monitor by separating the
  321. groupings with a space. If two directories are
  322. on the same device, only the first directory
  323. is monitored.
  324. threshold is:
  325. Either the minimum available disk space,
  326. the minimum number of free inodes, or
  327. both. You must specify at least one. To
  328. omit one or the other, simply omit the value.
  329. Specify the threshold using G, M, K for Gbytes,
  330. Mbytes, and Kbytes, respectively. If you do
  331. not specify G, M, or K, Kbytes is assumed by
  332. default. Do not use GB, MB, or KB.
  333. Here are some examples::
  334. BB_DISKMON_DIRS = "ABORT,${TMPDIR},1G,100K WARN,${SSTATE_DIR},1G,100K"
  335. BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},1G"
  336. BB_DISKMON_DIRS = "ABORT,${TMPDIR},,100K"
  337. The first example works only if you also provide the
  338. :term:`BB_DISKMON_WARNINTERVAL`
  339. variable in the ``conf/local.conf``. This example causes the build
  340. system to immediately abort when either the disk space in
  341. ``${TMPDIR}`` drops below 1 Gbyte or the available free inodes drops
  342. below 100 Kbytes. Because two directories are provided with the
  343. variable, the build system also issue a warning when the disk space
  344. in the ``${SSTATE_DIR}`` directory drops below 1 Gbyte or the number
  345. of free inodes drops below 100 Kbytes. Subsequent warnings are issued
  346. during intervals as defined by the :term:`BB_DISKMON_WARNINTERVAL`
  347. variable.
  348. The second example stops the build after all currently executing
  349. tasks complete when the minimum disk space in the ``${TMPDIR}``
  350. directory drops below 1 Gbyte. No disk monitoring occurs for the free
  351. inodes in this case.
  352. The final example immediately aborts the build when the number of
  353. free inodes in the ``${TMPDIR}`` directory drops below 100 Kbytes. No
  354. disk space monitoring for the directory itself occurs in this case.
  355. :term:`BB_DISKMON_WARNINTERVAL`
  356. Defines the disk space and free inode warning intervals. To set these
  357. intervals, define the variable in your ``conf/local.conf`` file in
  358. the :term:`Build Directory`.
  359. If you are going to use the :term:`BB_DISKMON_WARNINTERVAL` variable, you
  360. must also use the :term:`BB_DISKMON_DIRS`
  361. variable and define its action as "WARN". During the build,
  362. subsequent warnings are issued each time disk space or number of free
  363. inodes further reduces by the respective interval.
  364. If you do not provide a :term:`BB_DISKMON_WARNINTERVAL` variable and you
  365. do use :term:`BB_DISKMON_DIRS` with the "WARN" action, the disk
  366. monitoring interval defaults to the following::
  367. BB_DISKMON_WARNINTERVAL = "50M,5K"
  368. When specifying the variable in your configuration file, use the
  369. following form:
  370. .. code-block:: none
  371. BB_DISKMON_WARNINTERVAL = "disk_space_interval,disk_inode_interval"
  372. where:
  373. disk_space_interval is:
  374. An interval of memory expressed in either
  375. G, M, or K for Gbytes, Mbytes, or Kbytes,
  376. respectively. You cannot use GB, MB, or KB.
  377. disk_inode_interval is:
  378. An interval of free inodes expressed in either
  379. G, M, or K for Gbytes, Mbytes, or Kbytes,
  380. respectively. You cannot use GB, MB, or KB.
  381. Here is an example::
  382. BB_DISKMON_DIRS = "WARN,${SSTATE_DIR},1G,100K"
  383. BB_DISKMON_WARNINTERVAL = "50M,5K"
  384. These variables cause the
  385. OpenEmbedded build system to issue subsequent warnings each time the
  386. available disk space further reduces by 50 Mbytes or the number of
  387. free inodes further reduces by 5 Kbytes in the ``${SSTATE_DIR}``
  388. directory. Subsequent warnings based on the interval occur each time
  389. a respective interval is reached beyond the initial warning (i.e. 1
  390. Gbytes and 100 Kbytes).
  391. :term:`BB_GENERATE_MIRROR_TARBALLS`
  392. Causes tarballs of the source control repositories (e.g. Git
  393. repositories), including metadata, to be placed in the
  394. :term:`DL_DIR` directory.
  395. For performance reasons, creating and placing tarballs of these
  396. repositories is not the default action by the OpenEmbedded build
  397. system.
  398. ::
  399. BB_GENERATE_MIRROR_TARBALLS = "1"
  400. Set this variable in your
  401. ``local.conf`` file in the :term:`Build Directory`.
  402. Once you have the tarballs containing your source files, you can
  403. clean up your :term:`DL_DIR` directory by deleting any Git or other
  404. source control work directories.
  405. :term:`BB_NUMBER_THREADS`
  406. The maximum number of tasks BitBake should run in parallel at any one
  407. time. The OpenEmbedded build system automatically configures this
  408. variable to be equal to the number of cores on the build system. For
  409. example, a system with a dual core processor that also uses
  410. hyper-threading causes the :term:`BB_NUMBER_THREADS` variable to default
  411. to "4".
  412. For single socket systems (i.e. one CPU), you should not have to
  413. override this variable to gain optimal parallelism during builds.
  414. However, if you have very large systems that employ multiple physical
  415. CPUs, you might want to make sure the :term:`BB_NUMBER_THREADS` variable
  416. is not set higher than "20".
  417. For more information on speeding up builds, see the
  418. ":ref:`dev-manual/common-tasks:speeding up a build`"
  419. section in the Yocto Project Development Tasks Manual.
  420. :term:`BB_SERVER_TIMEOUT`
  421. Specifies the time (in seconds) after which to unload the BitBake
  422. server due to inactivity. Set :term:`BB_SERVER_TIMEOUT` to determine how
  423. long the BitBake server stays resident between invocations.
  424. For example, the following statement in your ``local.conf`` file
  425. instructs the server to be unloaded after 20 seconds of inactivity::
  426. BB_SERVER_TIMEOUT = "20"
  427. If you want the server to never be unloaded,
  428. set :term:`BB_SERVER_TIMEOUT` to "-1".
  429. :term:`BBCLASSEXTEND`
  430. Allows you to extend a recipe so that it builds variants of the
  431. software. There are common variants for recipes as "natives" like
  432. ``quilt-native``, which is a copy of Quilt built to run on the build
  433. system; "crosses" such as ``gcc-cross``, which is a compiler built to
  434. run on the build machine but produces binaries that run on the target
  435. :term:`MACHINE`; "nativesdk", which targets the SDK
  436. machine instead of :term:`MACHINE`; and "mulitlibs" in the form
  437. "``multilib:``\ multilib_name".
  438. To build a different variant of the recipe with a minimal amount of
  439. code, it usually is as simple as adding the following to your recipe::
  440. BBCLASSEXTEND =+ "native nativesdk"
  441. BBCLASSEXTEND =+ "multilib:multilib_name"
  442. .. note::
  443. Internally, the :term:`BBCLASSEXTEND` mechanism generates recipe
  444. variants by rewriting variable values and applying overrides such
  445. as ``_class-native``. For example, to generate a native version of
  446. a recipe, a :term:`DEPENDS` on "foo" is rewritten
  447. to a :term:`DEPENDS` on "foo-native".
  448. Even when using :term:`BBCLASSEXTEND`, the recipe is only parsed once.
  449. Parsing once adds some limitations. For example, it is not
  450. possible to include a different file depending on the variant,
  451. since ``include`` statements are processed when the recipe is
  452. parsed.
  453. :term:`BBFILE_COLLECTIONS`
  454. Lists the names of configured layers. These names are used to find
  455. the other ``BBFILE_*`` variables. Typically, each layer will append
  456. its name to this variable in its ``conf/layer.conf`` file.
  457. :term:`BBFILE_PATTERN`
  458. Variable that expands to match files from
  459. :term:`BBFILES` in a particular layer. This variable
  460. is used in the ``conf/layer.conf`` file and must be suffixed with the
  461. name of the specific layer (e.g. ``BBFILE_PATTERN_emenlow``).
  462. :term:`BBFILE_PRIORITY`
  463. Assigns the priority for recipe files in each layer.
  464. This variable is useful in situations where the same recipe appears
  465. in more than one layer. Setting this variable allows you to
  466. prioritize a layer against other layers that contain the same recipe
  467. - effectively letting you control the precedence for the multiple
  468. layers. The precedence established through this variable stands
  469. regardless of a recipe's version (:term:`PV` variable). For
  470. example, a layer that has a recipe with a higher :term:`PV` value but for
  471. which the :term:`BBFILE_PRIORITY` is set to have a lower precedence still
  472. has a lower precedence.
  473. A larger value for the :term:`BBFILE_PRIORITY` variable results in a
  474. higher precedence. For example, the value 6 has a higher precedence
  475. than the value 5. If not specified, the :term:`BBFILE_PRIORITY` variable
  476. is set based on layer dependencies (see the :term:`LAYERDEPENDS` variable
  477. for more information. The default priority, if unspecified for a
  478. layer with no dependencies, is the lowest defined priority + 1 (or 1
  479. if no priorities are defined).
  480. .. tip::
  481. You can use the command ``bitbake-layers show-layers``
  482. to list all configured layers along with their priorities.
  483. :term:`BBFILES`
  484. A space-separated list of recipe files BitBake uses to build
  485. software.
  486. When specifying recipe files, you can pattern match using Python's
  487. `glob <https://docs.python.org/3/library/glob.html>`_ syntax.
  488. For details on the syntax, see the documentation by following the
  489. previous link.
  490. :term:`BBFILES_DYNAMIC`
  491. Activates content when identified layers are present. You identify
  492. the layers by the collections that the layers define.
  493. Use the :term:`BBFILES_DYNAMIC` variable to avoid ``.bbappend`` files
  494. whose corresponding ``.bb`` file is in a layer that attempts to
  495. modify other layers through ``.bbappend`` but does not want to
  496. introduce a hard dependency on those other layers.
  497. Use the following form for :term:`BBFILES_DYNAMIC`:
  498. collection_name:filename_pattern The following example identifies two
  499. collection names and two filename patterns::
  500. BBFILES_DYNAMIC += " \
  501. clang-layer:${LAYERDIR}/bbappends/meta-clang/*/*/*.bbappend \
  502. core:${LAYERDIR}/bbappends/openembedded-core/meta/*/*/*.bbappend \
  503. "
  504. This next example shows an error message that occurs because invalid
  505. entries are found, which cause parsing to abort:
  506. .. code-block:: none
  507. ERROR: BBFILES_DYNAMIC entries must be of the form <collection name>:<filename pattern>, not:
  508. /work/my-layer/bbappends/meta-security-isafw/*/*/*.bbappend
  509. /work/my-layer/bbappends/openembedded-core/meta/*/*/*.bbappend
  510. :term:`BBINCLUDELOGS`
  511. Variable that controls how BitBake displays logs on build failure.
  512. :term:`BBINCLUDELOGS_LINES`
  513. If :term:`BBINCLUDELOGS` is set, specifies the
  514. maximum number of lines from the task log file to print when
  515. reporting a failed task. If you do not set :term:`BBINCLUDELOGS_LINES`,
  516. the entire log is printed.
  517. :term:`BBLAYERS`
  518. Lists the layers to enable during the build. This variable is defined
  519. in the ``bblayers.conf`` configuration file in the :term:`Build Directory`.
  520. Here is an example::
  521. BBLAYERS = " \
  522. /home/scottrif/poky/meta \
  523. /home/scottrif/poky/meta-poky \
  524. /home/scottrif/poky/meta-yocto-bsp \
  525. /home/scottrif/poky/meta-mykernel \
  526. "
  527. This example enables four layers, one of which is a custom,
  528. user-defined layer named ``meta-mykernel``.
  529. :term:`BBMASK`
  530. Prevents BitBake from processing recipes and recipe append files.
  531. You can use the :term:`BBMASK` variable to "hide" these ``.bb`` and
  532. ``.bbappend`` files. BitBake ignores any recipe or recipe append
  533. files that match any of the expressions. It is as if BitBake does not
  534. see them at all. Consequently, matching files are not parsed or
  535. otherwise used by BitBake.
  536. The values you provide are passed to Python's regular expression
  537. compiler. Consequently, the syntax follows Python's Regular
  538. Expression (re) syntax. The expressions are compared against the full
  539. paths to the files. For complete syntax information, see Python's
  540. documentation at https://docs.python.org/3/library/re.html#regular-expression-syntax.
  541. The following example uses a complete regular expression to tell
  542. BitBake to ignore all recipe and recipe append files in the
  543. ``meta-ti/recipes-misc/`` directory::
  544. BBMASK = "meta-ti/recipes-misc/"
  545. If you want to mask out multiple directories or recipes, you can
  546. specify multiple regular expression fragments. This next example
  547. masks out multiple directories and individual recipes::
  548. BBMASK += "/meta-ti/recipes-misc/ meta-ti/recipes-ti/packagegroup/"
  549. BBMASK += "/meta-oe/recipes-support/"
  550. BBMASK += "/meta-foo/.*/openldap"
  551. BBMASK += "opencv.*\.bbappend"
  552. BBMASK += "lzma"
  553. .. note::
  554. When specifying a directory name, use the trailing slash character
  555. to ensure you match just that directory name.
  556. :term:`BBMULTICONFIG`
  557. Specifies each additional separate configuration when you are
  558. building targets with multiple configurations. Use this variable in
  559. your ``conf/local.conf`` configuration file. Specify a
  560. multiconfigname for each configuration file you are using. For
  561. example, the following line specifies three configuration files::
  562. BBMULTICONFIG = "configA configB configC"
  563. Each configuration file you
  564. use must reside in the :term:`Build Directory`
  565. ``conf/multiconfig`` directory (e.g.
  566. build_directory\ ``/conf/multiconfig/configA.conf``).
  567. For information on how to use :term:`BBMULTICONFIG` in an environment
  568. that supports building targets with multiple configurations, see the
  569. ":ref:`dev-manual/common-tasks:building images for multiple targets using multiple configurations`"
  570. section in the Yocto Project Development Tasks Manual.
  571. :term:`BBPATH`
  572. Used by BitBake to locate ``.bbclass`` and configuration files. This
  573. variable is analogous to the ``PATH`` variable.
  574. .. note::
  575. If you run BitBake from a directory outside of the
  576. :term:`Build Directory`, you must be sure to set :term:`BBPATH`
  577. to point to the Build Directory. Set the variable as you would any
  578. environment variable and then run BitBake::
  579. $ BBPATH = "build_directory"
  580. $ export BBPATH
  581. $ bitbake target
  582. :term:`BBSERVER`
  583. If defined in the BitBake environment, :term:`BBSERVER` points to the
  584. BitBake remote server.
  585. Use the following format to export the variable to the BitBake
  586. environment::
  587. export BBSERVER=localhost:$port
  588. By default, :term:`BBSERVER` also appears in
  589. :term:`bitbake:BB_HASHBASE_WHITELIST`.
  590. Consequently, :term:`BBSERVER` is excluded from checksum and dependency
  591. data.
  592. :term:`BINCONFIG`
  593. When inheriting the
  594. :ref:`binconfig-disabled <ref-classes-binconfig-disabled>` class,
  595. this variable specifies binary configuration scripts to disable in
  596. favor of using ``pkg-config`` to query the information. The
  597. ``binconfig-disabled`` class will modify the specified scripts to
  598. return an error so that calls to them can be easily found and
  599. replaced.
  600. To add multiple scripts, separate them by spaces. Here is an example
  601. from the ``libpng`` recipe::
  602. BINCONFIG = "${bindir}/libpng-config ${bindir}/libpng16-config"
  603. :term:`BINCONFIG_GLOB`
  604. When inheriting the :ref:`binconfig <ref-classes-binconfig>` class,
  605. this variable specifies a wildcard for configuration scripts that
  606. need editing. The scripts are edited to correct any paths that have
  607. been set up during compilation so that they are correct for use when
  608. installed into the sysroot and called by the build processes of other
  609. recipes.
  610. .. note::
  611. The :term:`BINCONFIG_GLOB` variable uses
  612. `shell globbing <https://tldp.org/LDP/abs/html/globbingref.html>`__,
  613. which is recognition and expansion of wildcards during pattern
  614. matching. Shell globbing is very similar to
  615. `fnmatch <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__
  616. and `glob <https://docs.python.org/3/library/glob.html>`__.
  617. For more information on how this variable works, see
  618. ``meta/classes/binconfig.bbclass`` in the :term:`Source Directory`.
  619. You can also find general
  620. information on the class in the
  621. ":ref:`binconfig.bbclass <ref-classes-binconfig>`" section.
  622. :term:`BP`
  623. The base recipe name and version but without any special recipe name
  624. suffix (i.e. ``-native``, ``lib64-``, and so forth). :term:`BP` is
  625. comprised of the following::
  626. ${BPN}-${PV}
  627. :term:`BPN`
  628. This variable is a version of the :term:`PN` variable with
  629. common prefixes and suffixes removed, such as ``nativesdk-``,
  630. ``-cross``, ``-native``, and multilib's ``lib64-`` and ``lib32-``.
  631. The exact lists of prefixes and suffixes removed are specified by the
  632. :term:`MLPREFIX` and
  633. :term:`SPECIAL_PKGSUFFIX` variables,
  634. respectively.
  635. :term:`BUGTRACKER`
  636. Specifies a URL for an upstream bug tracking website for a recipe.
  637. The OpenEmbedded build system does not use this variable. Rather, the
  638. variable is a useful pointer in case a bug in the software being
  639. built needs to be manually reported.
  640. :term:`BUILD_ARCH`
  641. Specifies the architecture of the build host (e.g. ``i686``). The
  642. OpenEmbedded build system sets the value of :term:`BUILD_ARCH` from the
  643. machine name reported by the ``uname`` command.
  644. :term:`BUILD_AS_ARCH`
  645. Specifies the architecture-specific assembler flags for the build
  646. host. By default, the value of :term:`BUILD_AS_ARCH` is empty.
  647. :term:`BUILD_CC_ARCH`
  648. Specifies the architecture-specific C compiler flags for the build
  649. host. By default, the value of :term:`BUILD_CC_ARCH` is empty.
  650. :term:`BUILD_CCLD`
  651. Specifies the linker command to be used for the build host when the C
  652. compiler is being used as the linker. By default, :term:`BUILD_CCLD`
  653. points to GCC and passes as arguments the value of
  654. :term:`BUILD_CC_ARCH`, assuming
  655. :term:`BUILD_CC_ARCH` is set.
  656. :term:`BUILD_CFLAGS`
  657. Specifies the flags to pass to the C compiler when building for the
  658. build host. When building in the ``-native`` context,
  659. :term:`CFLAGS` is set to the value of this variable by
  660. default.
  661. :term:`BUILD_CPPFLAGS`
  662. Specifies the flags to pass to the C preprocessor (i.e. to both the C
  663. and the C++ compilers) when building for the build host. When
  664. building in the ``-native`` context, :term:`CPPFLAGS`
  665. is set to the value of this variable by default.
  666. :term:`BUILD_CXXFLAGS`
  667. Specifies the flags to pass to the C++ compiler when building for the
  668. build host. When building in the ``-native`` context,
  669. :term:`CXXFLAGS` is set to the value of this variable
  670. by default.
  671. :term:`BUILD_FC`
  672. Specifies the Fortran compiler command for the build host. By
  673. default, :term:`BUILD_FC` points to Gfortran and passes as arguments the
  674. value of :term:`BUILD_CC_ARCH`, assuming
  675. :term:`BUILD_CC_ARCH` is set.
  676. :term:`BUILD_LD`
  677. Specifies the linker command for the build host. By default,
  678. :term:`BUILD_LD` points to the GNU linker (ld) and passes as arguments
  679. the value of :term:`BUILD_LD_ARCH`, assuming
  680. :term:`BUILD_LD_ARCH` is set.
  681. :term:`BUILD_LD_ARCH`
  682. Specifies architecture-specific linker flags for the build host. By
  683. default, the value of :term:`BUILD_LD_ARCH` is empty.
  684. :term:`BUILD_LDFLAGS`
  685. Specifies the flags to pass to the linker when building for the build
  686. host. When building in the ``-native`` context,
  687. :term:`LDFLAGS` is set to the value of this variable
  688. by default.
  689. :term:`BUILD_OPTIMIZATION`
  690. Specifies the optimization flags passed to the C compiler when
  691. building for the build host or the SDK. The flags are passed through
  692. the :term:`BUILD_CFLAGS` and
  693. :term:`BUILDSDK_CFLAGS` default values.
  694. The default value of the :term:`BUILD_OPTIMIZATION` variable is "-O2
  695. -pipe".
  696. :term:`BUILD_OS`
  697. Specifies the operating system in use on the build host (e.g.
  698. "linux"). The OpenEmbedded build system sets the value of
  699. :term:`BUILD_OS` from the OS reported by the ``uname`` command - the
  700. first word, converted to lower-case characters.
  701. :term:`BUILD_PREFIX`
  702. The toolchain binary prefix used for native recipes. The OpenEmbedded
  703. build system uses the :term:`BUILD_PREFIX` value to set the
  704. :term:`TARGET_PREFIX` when building for
  705. ``native`` recipes.
  706. :term:`BUILD_STRIP`
  707. Specifies the command to be used to strip debugging symbols from
  708. binaries produced for the build host. By default, :term:`BUILD_STRIP`
  709. points to
  710. ``${``\ :term:`BUILD_PREFIX`\ ``}strip``.
  711. :term:`BUILD_SYS`
  712. Specifies the system, including the architecture and the operating
  713. system, to use when building for the build host (i.e. when building
  714. ``native`` recipes).
  715. The OpenEmbedded build system automatically sets this variable based
  716. on :term:`BUILD_ARCH`,
  717. :term:`BUILD_VENDOR`, and
  718. :term:`BUILD_OS`. You do not need to set the
  719. :term:`BUILD_SYS` variable yourself.
  720. :term:`BUILD_VENDOR`
  721. Specifies the vendor name to use when building for the build host.
  722. The default value is an empty string ("").
  723. :term:`BUILDDIR`
  724. Points to the location of the :term:`Build Directory`.
  725. You can define this directory indirectly through the
  726. :ref:`structure-core-script` script by passing in a Build
  727. Directory path when you run the script. If you run the script and do
  728. not provide a Build Directory path, the :term:`BUILDDIR` defaults to
  729. ``build`` in the current directory.
  730. :term:`BUILDHISTORY_COMMIT`
  731. When inheriting the :ref:`buildhistory <ref-classes-buildhistory>`
  732. class, this variable specifies whether or not to commit the build
  733. history output in a local Git repository. If set to "1", this local
  734. repository will be maintained automatically by the ``buildhistory``
  735. class and a commit will be created on every build for changes to each
  736. top-level subdirectory of the build history output (images, packages,
  737. and sdk). If you want to track changes to build history over time,
  738. you should set this value to "1".
  739. By default, the ``buildhistory`` class does not commit the build
  740. history output in a local Git repository::
  741. BUILDHISTORY_COMMIT ?= "0"
  742. :term:`BUILDHISTORY_COMMIT_AUTHOR`
  743. When inheriting the :ref:`buildhistory <ref-classes-buildhistory>`
  744. class, this variable specifies the author to use for each Git commit.
  745. In order for the :term:`BUILDHISTORY_COMMIT_AUTHOR` variable to work, the
  746. :term:`BUILDHISTORY_COMMIT` variable must
  747. be set to "1".
  748. Git requires that the value you provide for the
  749. :term:`BUILDHISTORY_COMMIT_AUTHOR` variable takes the form of "name
  750. email@host". Providing an email address or host that is not valid
  751. does not produce an error.
  752. By default, the ``buildhistory`` class sets the variable as follows::
  753. BUILDHISTORY_COMMIT_AUTHOR ?= "buildhistory <buildhistory@${DISTRO}>"
  754. :term:`BUILDHISTORY_DIR`
  755. When inheriting the :ref:`buildhistory <ref-classes-buildhistory>`
  756. class, this variable specifies the directory in which build history
  757. information is kept. For more information on how the variable works,
  758. see the ``buildhistory.class``.
  759. By default, the ``buildhistory`` class sets the directory as follows::
  760. BUILDHISTORY_DIR ?= "${TOPDIR}/buildhistory"
  761. :term:`BUILDHISTORY_FEATURES`
  762. When inheriting the :ref:`buildhistory <ref-classes-buildhistory>`
  763. class, this variable specifies the build history features to be
  764. enabled. For more information on how build history works, see the
  765. ":ref:`dev-manual/common-tasks:maintaining build output quality`"
  766. section in the Yocto Project Development Tasks Manual.
  767. You can specify these features in the form of a space-separated list:
  768. - *image:* Analysis of the contents of images, which includes the
  769. list of installed packages among other things.
  770. - *package:* Analysis of the contents of individual packages.
  771. - *sdk:* Analysis of the contents of the software development kit
  772. (SDK).
  773. - *task:* Save output file signatures for
  774. :ref:`shared state <overview-manual/concepts:shared state cache>`
  775. (sstate) tasks.
  776. This saves one file per task and lists the SHA-256 checksums for
  777. each file staged (i.e. the output of the task).
  778. By default, the ``buildhistory`` class enables the following
  779. features::
  780. BUILDHISTORY_FEATURES ?= "image package sdk"
  781. :term:`BUILDHISTORY_IMAGE_FILES`
  782. When inheriting the :ref:`buildhistory <ref-classes-buildhistory>`
  783. class, this variable specifies a list of paths to files copied from
  784. the image contents into the build history directory under an
  785. "image-files" directory in the directory for the image, so that you
  786. can track the contents of each file. The default is to copy
  787. ``/etc/passwd`` and ``/etc/group``, which allows you to monitor for
  788. changes in user and group entries. You can modify the list to include
  789. any file. Specifying an invalid path does not produce an error.
  790. Consequently, you can include files that might not always be present.
  791. By default, the ``buildhistory`` class provides paths to the
  792. following files::
  793. BUILDHISTORY_IMAGE_FILES ?= "/etc/passwd /etc/group"
  794. :term:`BUILDHISTORY_PATH_PREFIX_STRIP`
  795. When inheriting the :ref:`buildhistory <ref-classes-buildhistory>`
  796. class, this variable specifies a common path prefix that should be
  797. stripped off the beginning of paths in the task signature list when the
  798. ``task`` feature is active in :term:`BUILDHISTORY_FEATURES`. This can be
  799. useful when build history is populated from multiple sources that may not
  800. all use the same top level directory.
  801. By default, the ``buildhistory`` class sets the variable as follows::
  802. BUILDHISTORY_PATH_PREFIX_STRIP ?= ""
  803. In this case, no prefixes will be stripped.
  804. :term:`BUILDHISTORY_PUSH_REPO`
  805. When inheriting the :ref:`buildhistory <ref-classes-buildhistory>`
  806. class, this variable optionally specifies a remote repository to
  807. which build history pushes Git changes. In order for
  808. :term:`BUILDHISTORY_PUSH_REPO` to work,
  809. :term:`BUILDHISTORY_COMMIT` must be set to
  810. "1".
  811. The repository should correspond to a remote address that specifies a
  812. repository as understood by Git, or alternatively to a remote name
  813. that you have set up manually using ``git remote`` within the local
  814. repository.
  815. By default, the ``buildhistory`` class sets the variable as follows::
  816. BUILDHISTORY_PUSH_REPO ?= ""
  817. :term:`BUILDSDK_CFLAGS`
  818. Specifies the flags to pass to the C compiler when building for the
  819. SDK. When building in the ``nativesdk-`` context,
  820. :term:`CFLAGS` is set to the value of this variable by
  821. default.
  822. :term:`BUILDSDK_CPPFLAGS`
  823. Specifies the flags to pass to the C pre-processor (i.e. to both the
  824. C and the C++ compilers) when building for the SDK. When building in
  825. the ``nativesdk-`` context, :term:`CPPFLAGS` is set
  826. to the value of this variable by default.
  827. :term:`BUILDSDK_CXXFLAGS`
  828. Specifies the flags to pass to the C++ compiler when building for the
  829. SDK. When building in the ``nativesdk-`` context,
  830. :term:`CXXFLAGS` is set to the value of this variable
  831. by default.
  832. :term:`BUILDSDK_LDFLAGS`
  833. Specifies the flags to pass to the linker when building for the SDK.
  834. When building in the ``nativesdk-`` context,
  835. :term:`LDFLAGS` is set to the value of this variable
  836. by default.
  837. :term:`BUILDSTATS_BASE`
  838. Points to the location of the directory that holds build statistics
  839. when you use and enable the
  840. :ref:`buildstats <ref-classes-buildstats>` class. The
  841. :term:`BUILDSTATS_BASE` directory defaults to
  842. ``${``\ :term:`TMPDIR`\ ``}/buildstats/``.
  843. :term:`BUSYBOX_SPLIT_SUID`
  844. For the BusyBox recipe, specifies whether to split the output
  845. executable file into two parts: one for features that require
  846. ``setuid root``, and one for the remaining features (i.e. those that
  847. do not require ``setuid root``).
  848. The :term:`BUSYBOX_SPLIT_SUID` variable defaults to "1", which results in
  849. splitting the output executable file. Set the variable to "0" to get
  850. a single output executable file.
  851. :term:`CACHE`
  852. Specifies the directory BitBake uses to store a cache of the
  853. :term:`Metadata` so it does not need to be parsed every time
  854. BitBake is started.
  855. :term:`CC`
  856. The minimal command and arguments used to run the C compiler.
  857. :term:`CFLAGS`
  858. Specifies the flags to pass to the C compiler. This variable is
  859. exported to an environment variable and thus made visible to the
  860. software being built during the compilation step.
  861. Default initialization for :term:`CFLAGS` varies depending on what is
  862. being built:
  863. - :term:`TARGET_CFLAGS` when building for the
  864. target
  865. - :term:`BUILD_CFLAGS` when building for the
  866. build host (i.e. ``-native``)
  867. - :term:`BUILDSDK_CFLAGS` when building for
  868. an SDK (i.e. ``nativesdk-``)
  869. :term:`CLASSOVERRIDE`
  870. An internal variable specifying the special class override that
  871. should currently apply (e.g. "class-target", "class-native", and so
  872. forth). The classes that use this variable (e.g.
  873. :ref:`native <ref-classes-native>`,
  874. :ref:`nativesdk <ref-classes-nativesdk>`, and so forth) set the
  875. variable to appropriate values.
  876. .. note::
  877. :term:`CLASSOVERRIDE` gets its default "class-target" value from the
  878. ``bitbake.conf`` file.
  879. As an example, the following override allows you to install extra
  880. files, but only when building for the target::
  881. do_install_append_class-target() {
  882. install my-extra-file ${D}${sysconfdir}
  883. }
  884. Here is an example where ``FOO`` is set to
  885. "native" when building for the build host, and to "other" when not
  886. building for the build host::
  887. FOO_class-native = "native"
  888. FOO = "other"
  889. The underlying mechanism behind :term:`CLASSOVERRIDE` is simply
  890. that it is included in the default value of
  891. :term:`OVERRIDES`.
  892. :term:`CLEANBROKEN`
  893. If set to "1" within a recipe, :term:`CLEANBROKEN` specifies that the
  894. ``make clean`` command does not work for the software being built.
  895. Consequently, the OpenEmbedded build system will not try to run
  896. ``make clean`` during the :ref:`ref-tasks-configure`
  897. task, which is the default behavior.
  898. :term:`COMBINED_FEATURES`
  899. Provides a list of hardware features that are enabled in both
  900. :term:`MACHINE_FEATURES` and
  901. :term:`DISTRO_FEATURES`. This select list of
  902. features contains features that make sense to be controlled both at
  903. the machine and distribution configuration level. For example, the
  904. "bluetooth" feature requires hardware support but should also be
  905. optional at the distribution level, in case the hardware supports
  906. Bluetooth but you do not ever intend to use it.
  907. :term:`COMMON_LICENSE_DIR`
  908. Points to ``meta/files/common-licenses`` in the
  909. :term:`Source Directory`, which is where generic license
  910. files reside.
  911. :term:`COMPATIBLE_HOST`
  912. A regular expression that resolves to one or more hosts (when the
  913. recipe is native) or one or more targets (when the recipe is
  914. non-native) with which a recipe is compatible. The regular expression
  915. is matched against :term:`HOST_SYS`. You can use the
  916. variable to stop recipes from being built for classes of systems with
  917. which the recipes are not compatible. Stopping these builds is
  918. particularly useful with kernels. The variable also helps to increase
  919. parsing speed since the build system skips parsing recipes not
  920. compatible with the current system.
  921. :term:`COMPATIBLE_MACHINE`
  922. A regular expression that resolves to one or more target machines
  923. with which a recipe is compatible. The regular expression is matched
  924. against :term:`MACHINEOVERRIDES`. You can use
  925. the variable to stop recipes from being built for machines with which
  926. the recipes are not compatible. Stopping these builds is particularly
  927. useful with kernels. The variable also helps to increase parsing
  928. speed since the build system skips parsing recipes not compatible
  929. with the current machine.
  930. :term:`COMPLEMENTARY_GLOB`
  931. Defines wildcards to match when installing a list of complementary
  932. packages for all the packages explicitly (or implicitly) installed in
  933. an image.
  934. .. note::
  935. The :term:`COMPLEMENTARY_GLOB` variable uses Unix filename pattern matching
  936. (`fnmatch <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__),
  937. which is similar to the Unix style pathname pattern expansion
  938. (`glob <https://docs.python.org/3/library/glob.html>`__).
  939. The resulting list of complementary packages is associated with an
  940. item that can be added to
  941. :term:`IMAGE_FEATURES`. An example usage of
  942. this is the "dev-pkgs" item that when added to :term:`IMAGE_FEATURES`
  943. will install -dev packages (containing headers and other development
  944. files) for every package in the image.
  945. To add a new feature item pointing to a wildcard, use a variable flag
  946. to specify the feature item name and use the value to specify the
  947. wildcard. Here is an example::
  948. COMPLEMENTARY_GLOB[dev-pkgs] = '*-dev'
  949. :term:`COMPONENTS_DIR`
  950. Stores sysroot components for each recipe. The OpenEmbedded build
  951. system uses :term:`COMPONENTS_DIR` when constructing recipe-specific
  952. sysroots for other recipes.
  953. The default is
  954. "``${``\ :term:`STAGING_DIR`\ ``}-components``."
  955. (i.e.
  956. "``${``\ :term:`TMPDIR`\ ``}/sysroots-components``").
  957. :term:`CONF_VERSION`
  958. Tracks the version of the local configuration file (i.e.
  959. ``local.conf``). The value for :term:`CONF_VERSION` increments each time
  960. ``build/conf/`` compatibility changes.
  961. :term:`CONFFILES`
  962. Identifies editable or configurable files that are part of a package.
  963. If the Package Management System (PMS) is being used to update
  964. packages on the target system, it is possible that configuration
  965. files you have changed after the original installation and that you
  966. now want to remain unchanged are overwritten. In other words,
  967. editable files might exist in the package that you do not want reset
  968. as part of the package update process. You can use the :term:`CONFFILES`
  969. variable to list the files in the package that you wish to prevent
  970. the PMS from overwriting during this update process.
  971. To use the :term:`CONFFILES` variable, provide a package name override
  972. that identifies the resulting package. Then, provide a
  973. space-separated list of files. Here is an example::
  974. CONFFILES_${PN} += "${sysconfdir}/file1 \
  975. ${sysconfdir}/file2 ${sysconfdir}/file3"
  976. There is a relationship between the :term:`CONFFILES` and :term:`FILES`
  977. variables. The files listed within :term:`CONFFILES` must be a subset of
  978. the files listed within :term:`FILES`. Because the configuration files
  979. you provide with :term:`CONFFILES` are simply being identified so that
  980. the PMS will not overwrite them, it makes sense that the files must
  981. already be included as part of the package through the :term:`FILES`
  982. variable.
  983. .. note::
  984. When specifying paths as part of the :term:`CONFFILES` variable, it is
  985. good practice to use appropriate path variables.
  986. For example, ``${sysconfdir}`` rather than ``/etc`` or ``${bindir}``
  987. rather than ``/usr/bin``. You can find a list of these variables at
  988. the top of the ``meta/conf/bitbake.conf`` file in the
  989. :term:`Source Directory`.
  990. :term:`CONFIG_INITRAMFS_SOURCE`
  991. Identifies the initial RAM filesystem (initramfs) source files. The
  992. OpenEmbedded build system receives and uses this kernel Kconfig
  993. variable as an environment variable. By default, the variable is set
  994. to null ("").
  995. The :term:`CONFIG_INITRAMFS_SOURCE` can be either a single cpio archive
  996. with a ``.cpio`` suffix or a space-separated list of directories and
  997. files for building the initramfs image. A cpio archive should contain
  998. a filesystem archive to be used as an initramfs image. Directories
  999. should contain a filesystem layout to be included in the initramfs
  1000. image. Files should contain entries according to the format described
  1001. by the ``usr/gen_init_cpio`` program in the kernel tree.
  1002. If you specify multiple directories and files, the initramfs image
  1003. will be the aggregate of all of them.
  1004. For information on creating an initramfs, see the
  1005. ":ref:`dev-manual/common-tasks:building an initial ram filesystem (initramfs) image`" section
  1006. in the Yocto Project Development Tasks Manual.
  1007. :term:`CONFIG_SITE`
  1008. A list of files that contains ``autoconf`` test results relevant to
  1009. the current build. This variable is used by the Autotools utilities
  1010. when running ``configure``.
  1011. :term:`CONFIGURE_FLAGS`
  1012. The minimal arguments for GNU configure.
  1013. :term:`CONFLICT_DISTRO_FEATURES`
  1014. When inheriting the
  1015. :ref:`features_check <ref-classes-features_check>`
  1016. class, this variable identifies distribution features that would be
  1017. in conflict should the recipe be built. In other words, if the
  1018. :term:`CONFLICT_DISTRO_FEATURES` variable lists a feature that also
  1019. appears in :term:`DISTRO_FEATURES` within the current configuration, then
  1020. the recipe will be skipped, and if the build system attempts to build
  1021. the recipe then an error will be triggered.
  1022. :term:`COPYLEFT_LICENSE_EXCLUDE`
  1023. A space-separated list of licenses to exclude from the source
  1024. archived by the :ref:`archiver <ref-classes-archiver>` class. In
  1025. other words, if a license in a recipe's
  1026. :term:`LICENSE` value is in the value of
  1027. :term:`COPYLEFT_LICENSE_EXCLUDE`, then its source is not archived by the
  1028. class.
  1029. .. note::
  1030. The :term:`COPYLEFT_LICENSE_EXCLUDE` variable takes precedence over the
  1031. :term:`COPYLEFT_LICENSE_INCLUDE` variable.
  1032. The default value, which is "CLOSED Proprietary", for
  1033. :term:`COPYLEFT_LICENSE_EXCLUDE` is set by the
  1034. :ref:`copyleft_filter <ref-classes-copyleft_filter>` class, which
  1035. is inherited by the ``archiver`` class.
  1036. :term:`COPYLEFT_LICENSE_INCLUDE`
  1037. A space-separated list of licenses to include in the source archived
  1038. by the :ref:`archiver <ref-classes-archiver>` class. In other
  1039. words, if a license in a recipe's :term:`LICENSE`
  1040. value is in the value of :term:`COPYLEFT_LICENSE_INCLUDE`, then its
  1041. source is archived by the class.
  1042. The default value is set by the
  1043. :ref:`copyleft_filter <ref-classes-copyleft_filter>` class, which
  1044. is inherited by the ``archiver`` class. The default value includes
  1045. "GPL*", "LGPL*", and "AGPL*".
  1046. :term:`COPYLEFT_PN_EXCLUDE`
  1047. A list of recipes to exclude in the source archived by the
  1048. :ref:`archiver <ref-classes-archiver>` class. The
  1049. :term:`COPYLEFT_PN_EXCLUDE` variable overrides the license inclusion and
  1050. exclusion caused through the
  1051. :term:`COPYLEFT_LICENSE_INCLUDE` and
  1052. :term:`COPYLEFT_LICENSE_EXCLUDE`
  1053. variables, respectively.
  1054. The default value, which is "" indicating to not explicitly exclude
  1055. any recipes by name, for :term:`COPYLEFT_PN_EXCLUDE` is set by the
  1056. :ref:`copyleft_filter <ref-classes-copyleft_filter>` class, which
  1057. is inherited by the ``archiver`` class.
  1058. :term:`COPYLEFT_PN_INCLUDE`
  1059. A list of recipes to include in the source archived by the
  1060. :ref:`archiver <ref-classes-archiver>` class. The
  1061. :term:`COPYLEFT_PN_INCLUDE` variable overrides the license inclusion and
  1062. exclusion caused through the
  1063. :term:`COPYLEFT_LICENSE_INCLUDE` and
  1064. :term:`COPYLEFT_LICENSE_EXCLUDE`
  1065. variables, respectively.
  1066. The default value, which is "" indicating to not explicitly include
  1067. any recipes by name, for :term:`COPYLEFT_PN_INCLUDE` is set by the
  1068. :ref:`copyleft_filter <ref-classes-copyleft_filter>` class, which
  1069. is inherited by the ``archiver`` class.
  1070. :term:`COPYLEFT_RECIPE_TYPES`
  1071. A space-separated list of recipe types to include in the source
  1072. archived by the :ref:`archiver <ref-classes-archiver>` class.
  1073. Recipe types are ``target``, ``native``, ``nativesdk``, ``cross``,
  1074. ``crosssdk``, and ``cross-canadian``.
  1075. The default value, which is "target*", for :term:`COPYLEFT_RECIPE_TYPES`
  1076. is set by the :ref:`copyleft_filter <ref-classes-copyleft_filter>`
  1077. class, which is inherited by the ``archiver`` class.
  1078. :term:`COPY_LIC_DIRS`
  1079. If set to "1" along with the
  1080. :term:`COPY_LIC_MANIFEST` variable, the
  1081. OpenEmbedded build system copies into the image the license files,
  1082. which are located in ``/usr/share/common-licenses``, for each
  1083. package. The license files are placed in directories within the image
  1084. itself during build time.
  1085. .. note::
  1086. The :term:`COPY_LIC_DIRS` does not offer a path for adding licenses for
  1087. newly installed packages to an image, which might be most suitable for
  1088. read-only filesystems that cannot be upgraded. See the
  1089. :term:`LICENSE_CREATE_PACKAGE` variable for additional information.
  1090. You can also reference the ":ref:`dev-manual/common-tasks:providing license text`"
  1091. section in the Yocto Project Development Tasks Manual for
  1092. information on providing license text.
  1093. :term:`COPY_LIC_MANIFEST`
  1094. If set to "1", the OpenEmbedded build system copies the license
  1095. manifest for the image to
  1096. ``/usr/share/common-licenses/license.manifest`` within the image
  1097. itself during build time.
  1098. .. note::
  1099. The :term:`COPY_LIC_MANIFEST` does not offer a path for adding licenses for
  1100. newly installed packages to an image, which might be most suitable for
  1101. read-only filesystems that cannot be upgraded. See the
  1102. :term:`LICENSE_CREATE_PACKAGE` variable for additional information.
  1103. You can also reference the ":ref:`dev-manual/common-tasks:providing license text`"
  1104. section in the Yocto Project Development Tasks Manual for
  1105. information on providing license text.
  1106. :term:`CORE_IMAGE_EXTRA_INSTALL`
  1107. Specifies the list of packages to be added to the image. You should
  1108. only set this variable in the ``local.conf`` configuration file found
  1109. in the :term:`Build Directory`.
  1110. This variable replaces ``POKY_EXTRA_INSTALL``, which is no longer
  1111. supported.
  1112. :term:`COREBASE`
  1113. Specifies the parent directory of the OpenEmbedded-Core Metadata
  1114. layer (i.e. ``meta``).
  1115. It is an important distinction that :term:`COREBASE` points to the parent
  1116. of this layer and not the layer itself. Consider an example where you
  1117. have cloned the Poky Git repository and retained the ``poky`` name
  1118. for your local copy of the repository. In this case, :term:`COREBASE`
  1119. points to the ``poky`` folder because it is the parent directory of
  1120. the ``poky/meta`` layer.
  1121. :term:`COREBASE_FILES`
  1122. Lists files from the :term:`COREBASE` directory that
  1123. should be copied other than the layers listed in the
  1124. ``bblayers.conf`` file. The :term:`COREBASE_FILES` variable allows
  1125. to copy metadata from the OpenEmbedded build system
  1126. into the extensible SDK.
  1127. Explicitly listing files in :term:`COREBASE` is needed because it
  1128. typically contains build directories and other files that should not
  1129. normally be copied into the extensible SDK. Consequently, the value
  1130. of :term:`COREBASE_FILES` is used in order to only copy the files that
  1131. are actually needed.
  1132. :term:`CPP`
  1133. The minimal command and arguments used to run the C preprocessor.
  1134. :term:`CPPFLAGS`
  1135. Specifies the flags to pass to the C pre-processor (i.e. to both the
  1136. C and the C++ compilers). This variable is exported to an environment
  1137. variable and thus made visible to the software being built during the
  1138. compilation step.
  1139. Default initialization for :term:`CPPFLAGS` varies depending on what is
  1140. being built:
  1141. - :term:`TARGET_CPPFLAGS` when building for
  1142. the target
  1143. - :term:`BUILD_CPPFLAGS` when building for the
  1144. build host (i.e. ``-native``)
  1145. - :term:`BUILDSDK_CPPFLAGS` when building
  1146. for an SDK (i.e. ``nativesdk-``)
  1147. :term:`CROSS_COMPILE`
  1148. The toolchain binary prefix for the target tools. The
  1149. :term:`CROSS_COMPILE` variable is the same as the
  1150. :term:`TARGET_PREFIX` variable.
  1151. .. note::
  1152. The OpenEmbedded build system sets the :term:`CROSS_COMPILE`
  1153. variable only in certain contexts (e.g. when building for kernel
  1154. and kernel module recipes).
  1155. :term:`CVSDIR`
  1156. The directory in which files checked out under the CVS system are
  1157. stored.
  1158. :term:`CXX`
  1159. The minimal command and arguments used to run the C++ compiler.
  1160. :term:`CXXFLAGS`
  1161. Specifies the flags to pass to the C++ compiler. This variable is
  1162. exported to an environment variable and thus made visible to the
  1163. software being built during the compilation step.
  1164. Default initialization for :term:`CXXFLAGS` varies depending on what is
  1165. being built:
  1166. - :term:`TARGET_CXXFLAGS` when building for
  1167. the target
  1168. - :term:`BUILD_CXXFLAGS` when building for the
  1169. build host (i.e. ``-native``)
  1170. - :term:`BUILDSDK_CXXFLAGS` when building
  1171. for an SDK (i.e. ``nativesdk-``)
  1172. :term:`D`
  1173. The destination directory. The location in the :term:`Build Directory`
  1174. where components are installed by the
  1175. :ref:`ref-tasks-install` task. This location defaults
  1176. to::
  1177. ${WORKDIR}/image
  1178. .. note::
  1179. Tasks that read from or write to this directory should run under
  1180. :ref:`fakeroot <overview-manual/concepts:fakeroot and pseudo>`.
  1181. :term:`DATE`
  1182. The date the build was started. Dates appear using the year, month,
  1183. and day (YMD) format (e.g. "20150209" for February 9th, 2015).
  1184. :term:`DATETIME`
  1185. The date and time on which the current build started. The format is
  1186. suitable for timestamps.
  1187. :term:`DEBIAN_NOAUTONAME`
  1188. When the :ref:`debian <ref-classes-debian>` class is inherited,
  1189. which is the default behavior, :term:`DEBIAN_NOAUTONAME` specifies a
  1190. particular package should not be renamed according to Debian library
  1191. package naming. You must use the package name as an override when you
  1192. set this variable. Here is an example from the ``fontconfig`` recipe::
  1193. DEBIAN_NOAUTONAME_fontconfig-utils = "1"
  1194. :term:`DEBIANNAME`
  1195. When the :ref:`debian <ref-classes-debian>` class is inherited,
  1196. which is the default behavior, :term:`DEBIANNAME` allows you to override
  1197. the library name for an individual package. Overriding the library
  1198. name in these cases is rare. You must use the package name as an
  1199. override when you set this variable. Here is an example from the
  1200. ``dbus`` recipe::
  1201. DEBIANNAME_${PN} = "dbus-1"
  1202. :term:`DEBUG_BUILD`
  1203. Specifies to build packages with debugging information. This
  1204. influences the value of the :term:`SELECTED_OPTIMIZATION` variable.
  1205. :term:`DEBUG_OPTIMIZATION`
  1206. The options to pass in :term:`TARGET_CFLAGS` and :term:`CFLAGS` when
  1207. compiling a system for debugging. This variable defaults to "-O
  1208. -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe".
  1209. :term:`DEFAULT_PREFERENCE`
  1210. Specifies a weak bias for recipe selection priority.
  1211. The most common usage of this is variable is to set it to "-1" within
  1212. a recipe for a development version of a piece of software. Using the
  1213. variable in this way causes the stable version of the recipe to build
  1214. by default in the absence of :term:`PREFERRED_VERSION` being used to
  1215. build the development version.
  1216. .. note::
  1217. The bias provided by :term:`DEFAULT_PREFERENCE` is weak and is overridden
  1218. by :term:`BBFILE_PRIORITY` if that variable is different between two
  1219. layers that contain different versions of the same recipe.
  1220. :term:`DEFAULTTUNE`
  1221. The default CPU and Application Binary Interface (ABI) tunings (i.e.
  1222. the "tune") used by the OpenEmbedded build system. The
  1223. :term:`DEFAULTTUNE` helps define
  1224. :term:`TUNE_FEATURES`.
  1225. The default tune is either implicitly or explicitly set by the
  1226. machine (:term:`MACHINE`). However, you can override
  1227. the setting using available tunes as defined with
  1228. :term:`AVAILTUNES`.
  1229. :term:`DEPENDS`
  1230. Lists a recipe's build-time dependencies. These are dependencies on
  1231. other recipes whose contents (e.g. headers and shared libraries) are
  1232. needed by the recipe at build time.
  1233. As an example, consider a recipe ``foo`` that contains the following
  1234. assignment::
  1235. DEPENDS = "bar"
  1236. The practical effect of the previous
  1237. assignment is that all files installed by bar will be available in
  1238. the appropriate staging sysroot, given by the
  1239. :term:`STAGING_DIR* <STAGING_DIR>` variables, by the time the
  1240. :ref:`ref-tasks-configure` task for ``foo`` runs.
  1241. This mechanism is implemented by having ``do_configure`` depend on
  1242. the :ref:`ref-tasks-populate_sysroot` task of
  1243. each recipe listed in :term:`DEPENDS`, through a
  1244. ``[``\ :ref:`deptask <bitbake:bitbake-user-manual/bitbake-user-manual-metadata:variable flags>`\ ``]``
  1245. declaration in the :ref:`base <ref-classes-base>` class.
  1246. .. note::
  1247. It seldom is necessary to reference, for example, :term:`STAGING_DIR_HOST`
  1248. explicitly. The standard classes and build-related variables are
  1249. configured to automatically use the appropriate staging sysroots.
  1250. As another example, :term:`DEPENDS` can also be used to add utilities
  1251. that run on the build machine during the build. For example, a recipe
  1252. that makes use of a code generator built by the recipe ``codegen``
  1253. might have the following::
  1254. DEPENDS = "codegen-native"
  1255. For more
  1256. information, see the :ref:`native <ref-classes-native>` class and
  1257. the :term:`EXTRANATIVEPATH` variable.
  1258. .. note::
  1259. - :term:`DEPENDS` is a list of recipe names. Or, to be more precise,
  1260. it is a list of :term:`PROVIDES` names, which
  1261. usually match recipe names. Putting a package name such as
  1262. "foo-dev" in :term:`DEPENDS` does not make sense. Use "foo"
  1263. instead, as this will put files from all the packages that make
  1264. up ``foo``, which includes those from ``foo-dev``, into the
  1265. sysroot.
  1266. - One recipe having another recipe in :term:`DEPENDS` does not by
  1267. itself add any runtime dependencies between the packages
  1268. produced by the two recipes. However, as explained in the
  1269. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  1270. section in the Yocto Project Overview and Concepts Manual,
  1271. runtime dependencies will often be added automatically, meaning
  1272. :term:`DEPENDS` alone is sufficient for most recipes.
  1273. - Counterintuitively, :term:`DEPENDS` is often necessary even for
  1274. recipes that install precompiled components. For example, if
  1275. ``libfoo`` is a precompiled library that links against
  1276. ``libbar``, then linking against ``libfoo`` requires both
  1277. ``libfoo`` and ``libbar`` to be available in the sysroot.
  1278. Without a :term:`DEPENDS` from the recipe that installs ``libfoo``
  1279. to the recipe that installs ``libbar``, other recipes might
  1280. fail to link against ``libfoo``.
  1281. For information on runtime dependencies, see the
  1282. :term:`RDEPENDS` variable. You can also see the
  1283. ":ref:`Tasks <bitbake:bitbake-user-manual/bitbake-user-manual-metadata:tasks>`" and
  1284. ":ref:`Dependencies <bitbake:bitbake-user-manual/bitbake-user-manual-execution:dependencies>`" sections in the
  1285. BitBake User Manual for additional information on tasks and
  1286. dependencies.
  1287. :term:`DEPLOY_DIR`
  1288. Points to the general area that the OpenEmbedded build system uses to
  1289. place images, packages, SDKs, and other output files that are ready
  1290. to be used outside of the build system. By default, this directory
  1291. resides within the :term:`Build Directory` as
  1292. ``${TMPDIR}/deploy``.
  1293. For more information on the structure of the Build Directory, see
  1294. ":ref:`ref-manual/structure:the build directory - \`\`build/\`\``" section.
  1295. For more detail on the contents of the ``deploy`` directory, see the
  1296. ":ref:`overview-manual/concepts:images`",
  1297. ":ref:`overview-manual/concepts:package feeds`", and
  1298. ":ref:`overview-manual/concepts:application development sdk`" sections all in the
  1299. Yocto Project Overview and Concepts Manual.
  1300. :term:`DEPLOY_DIR_DEB`
  1301. Points to the area that the OpenEmbedded build system uses to place
  1302. Debian packages that are ready to be used outside of the build
  1303. system. This variable applies only when
  1304. :term:`PACKAGE_CLASSES` contains
  1305. "package_deb".
  1306. The BitBake configuration file initially defines the
  1307. :term:`DEPLOY_DIR_DEB` variable as a sub-folder of
  1308. :term:`DEPLOY_DIR`::
  1309. DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb"
  1310. The :ref:`package_deb <ref-classes-package_deb>` class uses the
  1311. :term:`DEPLOY_DIR_DEB` variable to make sure the
  1312. :ref:`ref-tasks-package_write_deb` task
  1313. writes Debian packages into the appropriate folder. For more
  1314. information on how packaging works, see the
  1315. ":ref:`overview-manual/concepts:package feeds`" section
  1316. in the Yocto Project Overview and Concepts Manual.
  1317. :term:`DEPLOY_DIR_IMAGE`
  1318. Points to the area that the OpenEmbedded build system uses to place
  1319. images and other associated output files that are ready to be
  1320. deployed onto the target machine. The directory is machine-specific
  1321. as it contains the ``${MACHINE}`` name. By default, this directory
  1322. resides within the :term:`Build Directory` as
  1323. ``${DEPLOY_DIR}/images/${MACHINE}/``.
  1324. It must not be used directly in recipes when deploying files. Instead,
  1325. it's only useful when a recipe needs to "read" a file already deployed
  1326. by a dependency. So, it should be filled with the contents of
  1327. :term:`DEPLOYDIR` by the :ref:`deploy <ref-classes-deploy>` class or
  1328. with the contents of :term:`IMGDEPLOYDIR` by the :ref:`image
  1329. <ref-classes-image>` class.
  1330. For more information on the structure of the Build Directory, see
  1331. ":ref:`ref-manual/structure:the build directory - \`\`build/\`\``" section.
  1332. For more detail on the contents of the ``deploy`` directory, see the
  1333. ":ref:`overview-manual/concepts:images`" and
  1334. ":ref:`overview-manual/concepts:application development sdk`" sections both in
  1335. the Yocto Project Overview and Concepts Manual.
  1336. :term:`DEPLOY_DIR_IPK`
  1337. Points to the area that the OpenEmbedded build system uses to place
  1338. IPK packages that are ready to be used outside of the build system.
  1339. This variable applies only when
  1340. :term:`PACKAGE_CLASSES` contains
  1341. "package_ipk".
  1342. The BitBake configuration file initially defines this variable as a
  1343. sub-folder of :term:`DEPLOY_DIR`::
  1344. DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk"
  1345. The :ref:`package_ipk <ref-classes-package_ipk>` class uses the
  1346. :term:`DEPLOY_DIR_IPK` variable to make sure the
  1347. :ref:`ref-tasks-package_write_ipk` task
  1348. writes IPK packages into the appropriate folder. For more information
  1349. on how packaging works, see the
  1350. ":ref:`overview-manual/concepts:package feeds`" section
  1351. in the Yocto Project Overview and Concepts Manual.
  1352. :term:`DEPLOY_DIR_RPM`
  1353. Points to the area that the OpenEmbedded build system uses to place
  1354. RPM packages that are ready to be used outside of the build system.
  1355. This variable applies only when
  1356. :term:`PACKAGE_CLASSES` contains
  1357. "package_rpm".
  1358. The BitBake configuration file initially defines this variable as a
  1359. sub-folder of :term:`DEPLOY_DIR`::
  1360. DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm"
  1361. The :ref:`package_rpm <ref-classes-package_rpm>` class uses the
  1362. :term:`DEPLOY_DIR_RPM` variable to make sure the
  1363. :ref:`ref-tasks-package_write_rpm` task
  1364. writes RPM packages into the appropriate folder. For more information
  1365. on how packaging works, see the
  1366. ":ref:`overview-manual/concepts:package feeds`" section
  1367. in the Yocto Project Overview and Concepts Manual.
  1368. :term:`DEPLOY_DIR_TAR`
  1369. Points to the area that the OpenEmbedded build system uses to place
  1370. tarballs that are ready to be used outside of the build system. This
  1371. variable applies only when
  1372. :term:`PACKAGE_CLASSES` contains
  1373. "package_tar".
  1374. The BitBake configuration file initially defines this variable as a
  1375. sub-folder of :term:`DEPLOY_DIR`::
  1376. DEPLOY_DIR_TAR = "${DEPLOY_DIR}/tar"
  1377. The :ref:`package_tar <ref-classes-package_tar>` class uses the
  1378. :term:`DEPLOY_DIR_TAR` variable to make sure the
  1379. :ref:`ref-tasks-package_write_tar` task
  1380. writes TAR packages into the appropriate folder. For more information
  1381. on how packaging works, see the
  1382. ":ref:`overview-manual/concepts:package feeds`" section
  1383. in the Yocto Project Overview and Concepts Manual.
  1384. :term:`DEPLOYDIR`
  1385. When inheriting the :ref:`deploy <ref-classes-deploy>` class, the
  1386. :term:`DEPLOYDIR` points to a temporary work area for deployed files that
  1387. is set in the ``deploy`` class as follows::
  1388. DEPLOYDIR = "${WORKDIR}/deploy-${PN}"
  1389. Recipes inheriting the ``deploy`` class should copy files to be
  1390. deployed into :term:`DEPLOYDIR`, and the class will take care of copying
  1391. them into :term:`DEPLOY_DIR_IMAGE`
  1392. afterwards.
  1393. :term:`DESCRIPTION`
  1394. The package description used by package managers. If not set,
  1395. :term:`DESCRIPTION` takes the value of the :term:`SUMMARY`
  1396. variable.
  1397. :term:`DISTRO`
  1398. The short name of the distribution. For information on the long name
  1399. of the distribution, see the :term:`DISTRO_NAME`
  1400. variable.
  1401. The :term:`DISTRO` variable corresponds to a distribution configuration
  1402. file whose root name is the same as the variable's argument and whose
  1403. filename extension is ``.conf``. For example, the distribution
  1404. configuration file for the Poky distribution is named ``poky.conf``
  1405. and resides in the ``meta-poky/conf/distro`` directory of the
  1406. :term:`Source Directory`.
  1407. Within that ``poky.conf`` file, the :term:`DISTRO` variable is set as
  1408. follows::
  1409. DISTRO = "poky"
  1410. Distribution configuration files are located in a ``conf/distro``
  1411. directory within the :term:`Metadata` that contains the
  1412. distribution configuration. The value for :term:`DISTRO` must not contain
  1413. spaces, and is typically all lower-case.
  1414. .. note::
  1415. If the :term:`DISTRO` variable is blank, a set of default configurations
  1416. are used, which are specified within
  1417. ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.
  1418. :term:`DISTRO_CODENAME`
  1419. Specifies a codename for the distribution being built.
  1420. :term:`DISTRO_EXTRA_RDEPENDS`
  1421. Specifies a list of distro-specific packages to add to all images.
  1422. This variable takes affect through ``packagegroup-base`` so the
  1423. variable only really applies to the more full-featured images that
  1424. include ``packagegroup-base``. You can use this variable to keep
  1425. distro policy out of generic images. As with all other distro
  1426. variables, you set this variable in the distro ``.conf`` file.
  1427. :term:`DISTRO_EXTRA_RRECOMMENDS`
  1428. Specifies a list of distro-specific packages to add to all images if
  1429. the packages exist. The packages might not exist or be empty (e.g.
  1430. kernel modules). The list of packages are automatically installed but
  1431. you can remove them.
  1432. :term:`DISTRO_FEATURES`
  1433. The software support you want in your distribution for various
  1434. features. You define your distribution features in the distribution
  1435. configuration file.
  1436. In most cases, the presence or absence of a feature in
  1437. :term:`DISTRO_FEATURES` is translated to the appropriate option supplied
  1438. to the configure script during the
  1439. :ref:`ref-tasks-configure` task for recipes that
  1440. optionally support the feature. For example, specifying "x11" in
  1441. :term:`DISTRO_FEATURES`, causes every piece of software built for the
  1442. target that can optionally support X11 to have its X11 support
  1443. enabled.
  1444. Two more examples are Bluetooth and NFS support. For a more complete
  1445. list of features that ships with the Yocto Project and that you can
  1446. provide with this variable, see the ":ref:`ref-features-distro`" section.
  1447. :term:`DISTRO_FEATURES_BACKFILL`
  1448. Features to be added to :term:`DISTRO_FEATURES` if not also present in
  1449. :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`.
  1450. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  1451. not intended to be user-configurable. It is best to just reference
  1452. the variable to see which distro features are being backfilled for
  1453. all distro configurations. See the ":ref:`ref-features-backfill`" section
  1454. for more information.
  1455. :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`
  1456. Features from :term:`DISTRO_FEATURES_BACKFILL` that should not be
  1457. backfilled (i.e. added to :term:`DISTRO_FEATURES`) during the build. See
  1458. the ":ref:`ref-features-backfill`" section for more information.
  1459. :term:`DISTRO_FEATURES_DEFAULT`
  1460. A convenience variable that gives you the default list of distro
  1461. features with the exception of any features specific to the C library
  1462. (``libc``).
  1463. When creating a custom distribution, you might find it useful to be
  1464. able to reuse the default
  1465. :term:`DISTRO_FEATURES` options without the
  1466. need to write out the full set. Here is an example that uses
  1467. :term:`DISTRO_FEATURES_DEFAULT` from a custom distro configuration file::
  1468. DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} myfeature"
  1469. :term:`DISTRO_FEATURES_FILTER_NATIVE`
  1470. Specifies a list of features that if present in the target
  1471. :term:`DISTRO_FEATURES` value should be
  1472. included in :term:`DISTRO_FEATURES` when building native recipes. This
  1473. variable is used in addition to the features filtered using the
  1474. :term:`DISTRO_FEATURES_NATIVE`
  1475. variable.
  1476. :term:`DISTRO_FEATURES_FILTER_NATIVESDK`
  1477. Specifies a list of features that if present in the target
  1478. :term:`DISTRO_FEATURES` value should be
  1479. included in :term:`DISTRO_FEATURES` when building nativesdk recipes. This
  1480. variable is used in addition to the features filtered using the
  1481. :term:`DISTRO_FEATURES_NATIVESDK`
  1482. variable.
  1483. :term:`DISTRO_FEATURES_NATIVE`
  1484. Specifies a list of features that should be included in
  1485. :term:`DISTRO_FEATURES` when building native
  1486. recipes. This variable is used in addition to the features filtered
  1487. using the
  1488. :term:`DISTRO_FEATURES_FILTER_NATIVE`
  1489. variable.
  1490. :term:`DISTRO_FEATURES_NATIVESDK`
  1491. Specifies a list of features that should be included in
  1492. :term:`DISTRO_FEATURES` when building
  1493. nativesdk recipes. This variable is used in addition to the features
  1494. filtered using the
  1495. :term:`DISTRO_FEATURES_FILTER_NATIVESDK`
  1496. variable.
  1497. :term:`DISTRO_NAME`
  1498. The long name of the distribution. For information on the short name
  1499. of the distribution, see the :term:`DISTRO` variable.
  1500. The :term:`DISTRO_NAME` variable corresponds to a distribution
  1501. configuration file whose root name is the same as the variable's
  1502. argument and whose filename extension is ``.conf``. For example, the
  1503. distribution configuration file for the Poky distribution is named
  1504. ``poky.conf`` and resides in the ``meta-poky/conf/distro`` directory
  1505. of the :term:`Source Directory`.
  1506. Within that ``poky.conf`` file, the :term:`DISTRO_NAME` variable is set
  1507. as follows::
  1508. DISTRO_NAME = "Poky (Yocto Project Reference Distro)"
  1509. Distribution configuration files are located in a ``conf/distro``
  1510. directory within the :term:`Metadata` that contains the
  1511. distribution configuration.
  1512. .. note::
  1513. If the :term:`DISTRO_NAME` variable is blank, a set of default
  1514. configurations are used, which are specified within
  1515. ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.
  1516. :term:`DISTRO_VERSION`
  1517. The version of the distribution.
  1518. :term:`DISTROOVERRIDES`
  1519. A colon-separated list of overrides specific to the current
  1520. distribution. By default, this list includes the value of
  1521. :term:`DISTRO`.
  1522. You can extend :term:`DISTROOVERRIDES` to add extra overrides that should
  1523. apply to the distribution.
  1524. The underlying mechanism behind :term:`DISTROOVERRIDES` is simply that it
  1525. is included in the default value of
  1526. :term:`OVERRIDES`.
  1527. :term:`DISTUTILS_SETUP_PATH`
  1528. When used by recipes that inherit the
  1529. :ref:`distutils3 <ref-classes-distutils3>` or
  1530. :ref:`setuptools3 <ref-classes-setuptools3>` class, this variable should
  1531. be used to specify the directory in which the ``setup.py`` file is
  1532. located if it is not at the root of the source tree (as specified by
  1533. :term:`S`). For example, in a recipe where the sources are fetched from
  1534. a Git repository and ``setup.py`` is in a ``python/pythonmodule``
  1535. subdirectory, you would have this::
  1536. S = "${WORKDIR}/git"
  1537. DISTUTILS_SETUP_PATH = "${S}/python/pythonmodule"
  1538. :term:`DL_DIR`
  1539. The central download directory used by the build process to store
  1540. downloads. By default, :term:`DL_DIR` gets files suitable for mirroring
  1541. for everything except Git repositories. If you want tarballs of Git
  1542. repositories, use the
  1543. :term:`BB_GENERATE_MIRROR_TARBALLS`
  1544. variable.
  1545. You can set this directory by defining the :term:`DL_DIR` variable in the
  1546. ``conf/local.conf`` file. This directory is self-maintaining and you
  1547. should not have to touch it. By default, the directory is
  1548. ``downloads`` in the :term:`Build Directory`.
  1549. ::
  1550. #DL_DIR ?= "${TOPDIR}/downloads"
  1551. To specify a different download directory,
  1552. simply remove the comment from the line and provide your directory.
  1553. During a first build, the system downloads many different source code
  1554. tarballs from various upstream projects. Downloading can take a
  1555. while, particularly if your network connection is slow. Tarballs are
  1556. all stored in the directory defined by :term:`DL_DIR` and the build
  1557. system looks there first to find source tarballs.
  1558. .. note::
  1559. When wiping and rebuilding, you can preserve this directory to
  1560. speed up this part of subsequent builds.
  1561. You can safely share this directory between multiple builds on the
  1562. same development machine. For additional information on how the build
  1563. process gets source files when working behind a firewall or proxy
  1564. server, see this specific question in the ":doc:`faq`"
  1565. chapter. You can also refer to the
  1566. ":yocto_wiki:`Working Behind a Network Proxy </Working_Behind_a_Network_Proxy>`"
  1567. Wiki page.
  1568. :term:`DOC_COMPRESS`
  1569. When inheriting the :ref:`compress_doc <ref-classes-compress_doc>`
  1570. class, this variable sets the compression policy used when the
  1571. OpenEmbedded build system compresses man pages and info pages. By
  1572. default, the compression method used is gz (gzip). Other policies
  1573. available are xz and bz2.
  1574. For information on policies and on how to use this variable, see the
  1575. comments in the ``meta/classes/compress_doc.bbclass`` file.
  1576. :term:`EFI_PROVIDER`
  1577. When building bootable images (i.e. where ``hddimg``, ``iso``, or
  1578. ``wic.vmdk`` is in :term:`IMAGE_FSTYPES`), the
  1579. :term:`EFI_PROVIDER` variable specifies the EFI bootloader to use. The
  1580. default is "grub-efi", but "systemd-boot" can be used instead.
  1581. See the :ref:`systemd-boot <ref-classes-systemd-boot>` and
  1582. :ref:`image-live <ref-classes-image-live>` classes for more
  1583. information.
  1584. :term:`ENABLE_BINARY_LOCALE_GENERATION`
  1585. Variable that controls which locales for ``glibc`` are generated
  1586. during the build (useful if the target device has 64Mbytes of RAM or
  1587. less).
  1588. :term:`ERR_REPORT_DIR`
  1589. When used with the :ref:`report-error <ref-classes-report-error>`
  1590. class, specifies the path used for storing the debug files created by
  1591. the :ref:`error reporting
  1592. tool <dev-manual/common-tasks:using the error reporting tool>`, which
  1593. allows you to submit build errors you encounter to a central
  1594. database. By default, the value of this variable is
  1595. ``${``\ :term:`LOG_DIR`\ ``}/error-report``.
  1596. You can set :term:`ERR_REPORT_DIR` to the path you want the error
  1597. reporting tool to store the debug files as follows in your
  1598. ``local.conf`` file::
  1599. ERR_REPORT_DIR = "path"
  1600. :term:`ERROR_QA`
  1601. Specifies the quality assurance checks whose failures are reported as
  1602. errors by the OpenEmbedded build system. You set this variable in
  1603. your distribution configuration file. For a list of the checks you
  1604. can control with this variable, see the
  1605. ":ref:`insane.bbclass <ref-classes-insane>`" section.
  1606. :term:`EXCLUDE_FROM_SHLIBS`
  1607. Triggers the OpenEmbedded build system's shared libraries resolver to
  1608. exclude an entire package when scanning for shared libraries.
  1609. .. note::
  1610. The shared libraries resolver's functionality results in part from
  1611. the internal function ``package_do_shlibs``, which is part of the
  1612. :ref:`ref-tasks-package` task. You should be aware that the shared
  1613. libraries resolver might implicitly define some dependencies between
  1614. packages.
  1615. The :term:`EXCLUDE_FROM_SHLIBS` variable is similar to the
  1616. :term:`PRIVATE_LIBS` variable, which excludes a
  1617. package's particular libraries only and not the whole package.
  1618. Use the :term:`EXCLUDE_FROM_SHLIBS` variable by setting it to "1" for a
  1619. particular package::
  1620. EXCLUDE_FROM_SHLIBS = "1"
  1621. :term:`EXCLUDE_FROM_WORLD`
  1622. Directs BitBake to exclude a recipe from world builds (i.e.
  1623. ``bitbake world``). During world builds, BitBake locates, parses and
  1624. builds all recipes found in every layer exposed in the
  1625. ``bblayers.conf`` configuration file.
  1626. To exclude a recipe from a world build using this variable, set the
  1627. variable to "1" in the recipe.
  1628. .. note::
  1629. Recipes added to :term:`EXCLUDE_FROM_WORLD` may still be built during a
  1630. world build in order to satisfy dependencies of other recipes. Adding
  1631. a recipe to :term:`EXCLUDE_FROM_WORLD` only ensures that the recipe is not
  1632. explicitly added to the list of build targets in a world build.
  1633. :term:`EXTENDPE`
  1634. Used with file and pathnames to create a prefix for a recipe's
  1635. version based on the recipe's :term:`PE` value. If :term:`PE`
  1636. is set and greater than zero for a recipe, :term:`EXTENDPE` becomes that
  1637. value (e.g if :term:`PE` is equal to "1" then :term:`EXTENDPE` becomes "1").
  1638. If a recipe's :term:`PE` is not set (the default) or is equal to zero,
  1639. :term:`EXTENDPE` becomes "".
  1640. See the :term:`STAMP` variable for an example.
  1641. :term:`EXTENDPKGV`
  1642. The full package version specification as it appears on the final
  1643. packages produced by a recipe. The variable's value is normally used
  1644. to fix a runtime dependency to the exact same version of another
  1645. package in the same recipe::
  1646. RDEPENDS_${PN}-additional-module = "${PN} (= ${EXTENDPKGV})"
  1647. The dependency relationships are intended to force the package
  1648. manager to upgrade these types of packages in lock-step.
  1649. :term:`EXTERNAL_KERNEL_TOOLS`
  1650. When set, the :term:`EXTERNAL_KERNEL_TOOLS` variable indicates that these
  1651. tools are not in the source tree.
  1652. When kernel tools are available in the tree, they are preferred over
  1653. any externally installed tools. Setting the :term:`EXTERNAL_KERNEL_TOOLS`
  1654. variable tells the OpenEmbedded build system to prefer the installed
  1655. external tools. See the
  1656. :ref:`kernel-yocto <ref-classes-kernel-yocto>` class in
  1657. ``meta/classes`` to see how the variable is used.
  1658. :term:`EXTERNALSRC`
  1659. When inheriting the :ref:`externalsrc <ref-classes-externalsrc>`
  1660. class, this variable points to the source tree, which is outside of
  1661. the OpenEmbedded build system. When set, this variable sets the
  1662. :term:`S` variable, which is what the OpenEmbedded build
  1663. system uses to locate unpacked recipe source code.
  1664. For more information on ``externalsrc.bbclass``, see the
  1665. ":ref:`externalsrc.bbclass <ref-classes-externalsrc>`" section. You
  1666. can also find information on how to use this variable in the
  1667. ":ref:`dev-manual/common-tasks:building software from an external source`"
  1668. section in the Yocto Project Development Tasks Manual.
  1669. :term:`EXTERNALSRC_BUILD`
  1670. When inheriting the :ref:`externalsrc <ref-classes-externalsrc>`
  1671. class, this variable points to the directory in which the recipe's
  1672. source code is built, which is outside of the OpenEmbedded build
  1673. system. When set, this variable sets the :term:`B` variable,
  1674. which is what the OpenEmbedded build system uses to locate the Build
  1675. Directory.
  1676. For more information on ``externalsrc.bbclass``, see the
  1677. ":ref:`externalsrc.bbclass <ref-classes-externalsrc>`" section. You
  1678. can also find information on how to use this variable in the
  1679. ":ref:`dev-manual/common-tasks:building software from an external source`"
  1680. section in the Yocto Project Development Tasks Manual.
  1681. :term:`EXTRA_AUTORECONF`
  1682. For recipes inheriting the :ref:`autotools <ref-classes-autotools>`
  1683. class, you can use :term:`EXTRA_AUTORECONF` to specify extra options to
  1684. pass to the ``autoreconf`` command that is executed during the
  1685. :ref:`ref-tasks-configure` task.
  1686. The default value is "--exclude=autopoint".
  1687. :term:`EXTRA_IMAGE_FEATURES`
  1688. A list of additional features to include in an image. When listing
  1689. more than one feature, separate them with a space.
  1690. Typically, you configure this variable in your ``local.conf`` file,
  1691. which is found in the :term:`Build Directory`.
  1692. Although you can use this variable from within a recipe, best
  1693. practices dictate that you do not.
  1694. .. note::
  1695. To enable primary features from within the image recipe, use the
  1696. :term:`IMAGE_FEATURES` variable.
  1697. Here are some examples of features you can add:
  1698. - "dbg-pkgs" - Adds -dbg packages for all installed packages including
  1699. symbol information for debugging and profiling.
  1700. - "debug-tweaks" - Makes an image suitable for debugging. For example, allows root logins without passwords and
  1701. enables post-installation logging. See the 'allow-empty-password' and
  1702. 'post-install-logging' features in the ":ref:`ref-features-image`"
  1703. section for more information.
  1704. - "dev-pkgs" - Adds -dev packages for all installed packages. This is
  1705. useful if you want to develop against the libraries in the image.
  1706. - "read-only-rootfs" - Creates an image whose root filesystem is
  1707. read-only. See the
  1708. ":ref:`dev-manual/common-tasks:creating a read-only root filesystem`"
  1709. section in the Yocto Project Development Tasks Manual for more
  1710. information
  1711. - "tools-debug" - Adds debugging tools such as gdb and strace.
  1712. - "tools-sdk" - Adds development tools such as gcc, make,
  1713. pkgconfig and so forth.
  1714. - "tools-testapps" - Adds useful testing tools
  1715. such as ts_print, aplay, arecord and so forth.
  1716. For a complete list of image features that ships with the Yocto
  1717. Project, see the ":ref:`ref-features-image`" section.
  1718. For an example that shows how to customize your image by using this
  1719. variable, see the ":ref:`dev-manual/common-tasks:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  1720. section in the Yocto Project Development Tasks Manual.
  1721. :term:`EXTRA_IMAGECMD`
  1722. Specifies additional options for the image creation command that has
  1723. been specified in :term:`IMAGE_CMD`. When setting
  1724. this variable, use an override for the associated image type. Here is
  1725. an example::
  1726. EXTRA_IMAGECMD_ext3 ?= "-i 4096"
  1727. :term:`EXTRA_IMAGEDEPENDS`
  1728. A list of recipes to build that do not provide packages for
  1729. installing into the root filesystem.
  1730. Sometimes a recipe is required to build the final image but is not
  1731. needed in the root filesystem. You can use the :term:`EXTRA_IMAGEDEPENDS`
  1732. variable to list these recipes and thus specify the dependencies. A
  1733. typical example is a required bootloader in a machine configuration.
  1734. .. note::
  1735. To add packages to the root filesystem, see the various
  1736. :term:`RDEPENDS` and :term:`RRECOMMENDS` variables.
  1737. :term:`EXTRANATIVEPATH`
  1738. A list of subdirectories of
  1739. ``${``\ :term:`STAGING_BINDIR_NATIVE`\ ``}``
  1740. added to the beginning of the environment variable ``PATH``. As an
  1741. example, the following prepends
  1742. "${STAGING_BINDIR_NATIVE}/foo:${STAGING_BINDIR_NATIVE}/bar:" to
  1743. ``PATH``::
  1744. EXTRANATIVEPATH = "foo bar"
  1745. :term:`EXTRA_OECMAKE`
  1746. Additional `CMake <https://cmake.org/overview/>`__ options. See the
  1747. :ref:`cmake <ref-classes-cmake>` class for additional information.
  1748. :term:`EXTRA_OECONF`
  1749. Additional ``configure`` script options. See
  1750. :term:`PACKAGECONFIG_CONFARGS` for
  1751. additional information on passing configure script options.
  1752. :term:`EXTRA_OEMAKE`
  1753. Additional GNU ``make`` options.
  1754. Because the :term:`EXTRA_OEMAKE` defaults to "", you need to set the
  1755. variable to specify any required GNU options.
  1756. :term:`PARALLEL_MAKE` and
  1757. :term:`PARALLEL_MAKEINST` also make use of
  1758. :term:`EXTRA_OEMAKE` to pass the required flags.
  1759. :term:`EXTRA_OESCONS`
  1760. When inheriting the :ref:`scons <ref-classes-scons>` class, this
  1761. variable specifies additional configuration options you want to pass
  1762. to the ``scons`` command line.
  1763. :term:`EXTRA_USERS_PARAMS`
  1764. When inheriting the :ref:`extrausers <ref-classes-extrausers>`
  1765. class, this variable provides image level user and group operations.
  1766. This is a more global method of providing user and group
  1767. configuration as compared to using the
  1768. :ref:`useradd <ref-classes-useradd>` class, which ties user and
  1769. group configurations to a specific recipe.
  1770. The set list of commands you can configure using the
  1771. :term:`EXTRA_USERS_PARAMS` is shown in the ``extrausers`` class. These
  1772. commands map to the normal Unix commands of the same names::
  1773. # EXTRA_USERS_PARAMS = "\
  1774. # useradd -p '' tester; \
  1775. # groupadd developers; \
  1776. # userdel nobody; \
  1777. # groupdel -g video; \
  1778. # groupmod -g 1020 developers; \
  1779. # usermod -s /bin/sh tester; \
  1780. # "
  1781. Additionally there is a special ``passwd-expire`` command that will
  1782. cause the password for a user to be expired and thus force changing it
  1783. on first login, for example::
  1784. EXTRA_USERS_PARAMS += " useradd myuser; passwd-expire myuser;"
  1785. .. note::
  1786. At present, ``passwd-expire`` may only work for remote logins when
  1787. using OpenSSH and not dropbear as an SSH server.
  1788. :term:`FEATURE_PACKAGES`
  1789. Defines one or more packages to include in an image when a specific
  1790. item is included in :term:`IMAGE_FEATURES`.
  1791. When setting the value, :term:`FEATURE_PACKAGES` should have the name of
  1792. the feature item as an override. Here is an example::
  1793. FEATURE_PACKAGES_widget = "package1 package2"
  1794. In this example, if "widget" were added to :term:`IMAGE_FEATURES`,
  1795. package1 and package2 would be included in the image.
  1796. .. note::
  1797. Packages installed by features defined through :term:`FEATURE_PACKAGES`
  1798. are often package groups. While similarly named, you should not
  1799. confuse the :term:`FEATURE_PACKAGES` variable with package groups, which
  1800. are discussed elsewhere in the documentation.
  1801. :term:`FEED_DEPLOYDIR_BASE_URI`
  1802. Points to the base URL of the server and location within the
  1803. document-root that provides the metadata and packages required by
  1804. OPKG to support runtime package management of IPK packages. You set
  1805. this variable in your ``local.conf`` file.
  1806. Consider the following example::
  1807. FEED_DEPLOYDIR_BASE_URI = "http://192.168.7.1/BOARD-dir"
  1808. This example assumes you are serving
  1809. your packages over HTTP and your databases are located in a directory
  1810. named ``BOARD-dir``, which is underneath your HTTP server's
  1811. document-root. In this case, the OpenEmbedded build system generates
  1812. a set of configuration files for you in your target that work with
  1813. the feed.
  1814. :term:`FILES`
  1815. The list of files and directories that are placed in a package. The
  1816. :term:`PACKAGES` variable lists the packages
  1817. generated by a recipe.
  1818. To use the :term:`FILES` variable, provide a package name override that
  1819. identifies the resulting package. Then, provide a space-separated
  1820. list of files or paths that identify the files you want included as
  1821. part of the resulting package. Here is an example::
  1822. FILES_${PN} += "${bindir}/mydir1 ${bindir}/mydir2/myfile"
  1823. .. note::
  1824. - When specifying files or paths, you can pattern match using
  1825. Python's
  1826. `glob <https://docs.python.org/3/library/glob.html>`_
  1827. syntax. For details on the syntax, see the documentation by
  1828. following the previous link.
  1829. - When specifying paths as part of the :term:`FILES` variable, it is
  1830. good practice to use appropriate path variables. For example,
  1831. use ``${sysconfdir}`` rather than ``/etc``, or ``${bindir}``
  1832. rather than ``/usr/bin``. You can find a list of these
  1833. variables at the top of the ``meta/conf/bitbake.conf`` file in
  1834. the :term:`Source Directory`. You will also
  1835. find the default values of the various ``FILES_*`` variables in
  1836. this file.
  1837. If some of the files you provide with the :term:`FILES` variable are
  1838. editable and you know they should not be overwritten during the
  1839. package update process by the Package Management System (PMS), you
  1840. can identify these files so that the PMS will not overwrite them. See
  1841. the :term:`CONFFILES` variable for information on
  1842. how to identify these files to the PMS.
  1843. :term:`FILES_SOLIBSDEV`
  1844. Defines the file specification to match
  1845. :term:`SOLIBSDEV`. In other words,
  1846. :term:`FILES_SOLIBSDEV` defines the full path name of the development
  1847. symbolic link (symlink) for shared libraries on the target platform.
  1848. The following statement from the ``bitbake.conf`` shows how it is
  1849. set::
  1850. FILES_SOLIBSDEV ?= "${base_libdir}/lib*${SOLIBSDEV} ${libdir}/lib*${SOLIBSDEV}"
  1851. :term:`FILESEXTRAPATHS`
  1852. Extends the search path the OpenEmbedded build system uses when
  1853. looking for files and patches as it processes recipes and append
  1854. files. The default directories BitBake uses when it processes recipes
  1855. are initially defined by the :term:`FILESPATH`
  1856. variable. You can extend :term:`FILESPATH` variable by using
  1857. :term:`FILESEXTRAPATHS`.
  1858. Best practices dictate that you accomplish this by using
  1859. :term:`FILESEXTRAPATHS` from within a ``.bbappend`` file and that you
  1860. prepend paths as follows::
  1861. FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
  1862. In the above example, the build system first
  1863. looks for files in a directory that has the same name as the
  1864. corresponding append file.
  1865. .. note::
  1866. When extending :term:`FILESEXTRAPATHS`, be sure to use the immediate
  1867. expansion (``:=``) operator. Immediate expansion makes sure that
  1868. BitBake evaluates :term:`THISDIR` at the time the
  1869. directive is encountered rather than at some later time when
  1870. expansion might result in a directory that does not contain the
  1871. files you need.
  1872. Also, include the trailing separating colon character if you are
  1873. prepending. The trailing colon character is necessary because you
  1874. are directing BitBake to extend the path by prepending directories
  1875. to the search path.
  1876. Here is another common use::
  1877. FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
  1878. In this example, the build system extends the
  1879. :term:`FILESPATH` variable to include a directory named ``files`` that is
  1880. in the same directory as the corresponding append file.
  1881. This next example specifically adds three paths::
  1882. FILESEXTRAPATHS_prepend := "path_1:path_2:path_3:"
  1883. A final example shows how you can extend the search path and include
  1884. a :term:`MACHINE`-specific override, which is useful
  1885. in a BSP layer::
  1886. FILESEXTRAPATHS_prepend_intel-x86-common := "${THISDIR}/${PN}:"
  1887. The previous statement appears in the
  1888. ``linux-yocto-dev.bbappend`` file, which is found in the
  1889. :ref:`overview-manual/development-environment:yocto project source repositories` in
  1890. ``meta-intel/common/recipes-kernel/linux``. Here, the machine
  1891. override is a special :term:`PACKAGE_ARCH`
  1892. definition for multiple ``meta-intel`` machines.
  1893. .. note::
  1894. For a layer that supports a single BSP, the override could just be
  1895. the value of :term:`MACHINE`.
  1896. By prepending paths in ``.bbappend`` files, you allow multiple append
  1897. files that reside in different layers but are used for the same
  1898. recipe to correctly extend the path.
  1899. :term:`FILESOVERRIDES`
  1900. A subset of :term:`OVERRIDES` used by the
  1901. OpenEmbedded build system for creating
  1902. :term:`FILESPATH`. The :term:`FILESOVERRIDES` variable
  1903. uses overrides to automatically extend the
  1904. :term:`FILESPATH` variable. For an example of how
  1905. that works, see the :term:`FILESPATH` variable
  1906. description. Additionally, you find more information on how overrides
  1907. are handled in the
  1908. ":ref:`bitbake:bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  1909. section of the BitBake User Manual.
  1910. By default, the :term:`FILESOVERRIDES` variable is defined as::
  1911. FILESOVERRIDES = "${TRANSLATED_TARGET_ARCH}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}"
  1912. .. note::
  1913. Do not hand-edit the :term:`FILESOVERRIDES` variable. The values match up
  1914. with expected overrides and are used in an expected manner by the
  1915. build system.
  1916. :term:`FILESPATH`
  1917. The default set of directories the OpenEmbedded build system uses
  1918. when searching for patches and files.
  1919. During the build process, BitBake searches each directory in
  1920. :term:`FILESPATH` in the specified order when looking for files and
  1921. patches specified by each ``file://`` URI in a recipe's
  1922. :term:`SRC_URI` statements.
  1923. The default value for the :term:`FILESPATH` variable is defined in the
  1924. ``base.bbclass`` class found in ``meta/classes`` in the
  1925. :term:`Source Directory`::
  1926. FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}", \
  1927. "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
  1928. The
  1929. :term:`FILESPATH` variable is automatically extended using the overrides
  1930. from the :term:`FILESOVERRIDES` variable.
  1931. .. note::
  1932. - Do not hand-edit the :term:`FILESPATH` variable. If you want the
  1933. build system to look in directories other than the defaults,
  1934. extend the :term:`FILESPATH` variable by using the
  1935. :term:`FILESEXTRAPATHS` variable.
  1936. - Be aware that the default :term:`FILESPATH` directories do not map
  1937. to directories in custom layers where append files
  1938. (``.bbappend``) are used. If you want the build system to find
  1939. patches or files that reside with your append files, you need
  1940. to extend the :term:`FILESPATH` variable by using the
  1941. :term:`FILESEXTRAPATHS` variable.
  1942. You can take advantage of this searching behavior in useful ways. For
  1943. example, consider a case where there is the following directory structure
  1944. for general and machine-specific configurations::
  1945. files/defconfig
  1946. files/MACHINEA/defconfig
  1947. files/MACHINEB/defconfig
  1948. Also in the example, the :term:`SRC_URI` statement contains
  1949. "file://defconfig". Given this scenario, you can set
  1950. :term:`MACHINE` to "MACHINEA" and cause the build
  1951. system to use files from ``files/MACHINEA``. Set :term:`MACHINE` to
  1952. "MACHINEB" and the build system uses files from ``files/MACHINEB``.
  1953. Finally, for any machine other than "MACHINEA" and "MACHINEB", the
  1954. build system uses files from ``files/defconfig``.
  1955. You can find out more about the patching process in the
  1956. ":ref:`overview-manual/concepts:patching`" section
  1957. in the Yocto Project Overview and Concepts Manual and the
  1958. ":ref:`dev-manual/common-tasks:patching code`" section in
  1959. the Yocto Project Development Tasks Manual. See the
  1960. :ref:`ref-tasks-patch` task as well.
  1961. :term:`FILESYSTEM_PERMS_TABLES`
  1962. Allows you to define your own file permissions settings table as part
  1963. of your configuration for the packaging process. For example, suppose
  1964. you need a consistent set of custom permissions for a set of groups
  1965. and users across an entire work project. It is best to do this in the
  1966. packages themselves but this is not always possible.
  1967. By default, the OpenEmbedded build system uses the ``fs-perms.txt``,
  1968. which is located in the ``meta/files`` folder in the :term:`Source Directory`.
  1969. If you create your own file
  1970. permissions setting table, you should place it in your layer or the
  1971. distro's layer.
  1972. You define the :term:`FILESYSTEM_PERMS_TABLES` variable in the
  1973. ``conf/local.conf`` file, which is found in the :term:`Build Directory`,
  1974. to point to your custom
  1975. ``fs-perms.txt``. You can specify more than a single file permissions
  1976. setting table. The paths you specify to these files must be defined
  1977. within the :term:`BBPATH` variable.
  1978. For guidance on how to create your own file permissions settings
  1979. table file, examine the existing ``fs-perms.txt``.
  1980. :term:`FIT_DESC`
  1981. Specifies the description string encoded into a fitImage. The default
  1982. value is set by the :ref:`kernel-fitimage <ref-classes-kernel-fitimage>`
  1983. class as follows::
  1984. FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
  1985. :term:`FIT_GENERATE_KEYS`
  1986. Decides whether to generate the keys for signing fitImage if they
  1987. don't already exist. The keys are created in :term:`UBOOT_SIGN_KEYDIR`.
  1988. The default value is 0.
  1989. :term:`FIT_HASH_ALG`
  1990. Specifies the hash algorithm used in creating the FIT Image. For e.g. sha256.
  1991. :term:`FIT_KERNEL_COMP_ALG`
  1992. Compression algorithm to use for the kernel image inside the FIT Image.
  1993. At present, the only supported values are "gzip" (default) or "none"
  1994. If you set this variable to anything other than "none" you may also need
  1995. to set :term:`FIT_KERNEL_COMP_ALG_EXTENSION`.
  1996. :term:`FIT_KERNEL_COMP_ALG_EXTENSION`
  1997. File extension corresponding to :term:`FIT_KERNEL_COMP_ALG`. The default
  1998. value is ".gz".
  1999. :term:`FIT_KEY_GENRSA_ARGS`
  2000. Arguments to openssl genrsa for generating RSA private key for signing
  2001. fitImage. The default value is "-F4". i.e. the public exponent 65537 to
  2002. use.
  2003. :term:`FIT_KEY_REQ_ARGS`
  2004. Arguments to openssl req for generating certificate for signing fitImage.
  2005. The default value is "-batch -new". batch for non interactive mode
  2006. and new for generating new keys.
  2007. :term:`FIT_KEY_SIGN_PKCS`
  2008. Format for public key certificate used in signing fitImage.
  2009. The default value is "x509".
  2010. :term:`FIT_SIGN_ALG`
  2011. Specifies the signature algorithm used in creating the FIT Image.
  2012. For e.g. rsa2048.
  2013. :term:`FIT_SIGN_NUMBITS`
  2014. Size of private key in number of bits used in fitImage. The default
  2015. value is "2048".
  2016. :term:`FIT_SIGN_INDIVIDUAL`
  2017. If set to "1", then the :ref:`kernel-fitimage <ref-classes-kernel-fitimage>`
  2018. class will sign the kernel, dtb and ramdisk images individually in addition
  2019. to signing the fitImage itself. This could be useful if you are
  2020. intending to verify signatures in another context than booting via
  2021. U-Boot.
  2022. :term:`FONT_EXTRA_RDEPENDS`
  2023. When inheriting the :ref:`fontcache <ref-classes-fontcache>` class,
  2024. this variable specifies the runtime dependencies for font packages.
  2025. By default, the :term:`FONT_EXTRA_RDEPENDS` is set to "fontconfig-utils".
  2026. :term:`FONT_PACKAGES`
  2027. When inheriting the :ref:`fontcache <ref-classes-fontcache>` class,
  2028. this variable identifies packages containing font files that need to
  2029. be cached by Fontconfig. By default, the ``fontcache`` class assumes
  2030. that fonts are in the recipe's main package (i.e.
  2031. ``${``\ :term:`PN`\ ``}``). Use this variable if fonts you
  2032. need are in a package other than that main package.
  2033. :term:`FORCE_RO_REMOVE`
  2034. Forces the removal of the packages listed in ``ROOTFS_RO_UNNEEDED``
  2035. during the generation of the root filesystem.
  2036. Set the variable to "1" to force the removal of these packages.
  2037. :term:`FULL_OPTIMIZATION`
  2038. The options to pass in :term:`TARGET_CFLAGS` and :term:`CFLAGS` when
  2039. compiling an optimized system. This variable defaults to "-O2 -pipe
  2040. ${DEBUG_FLAGS}".
  2041. :term:`GCCPIE`
  2042. Enables Position Independent Executables (PIE) within the GNU C
  2043. Compiler (GCC). Enabling PIE in the GCC makes Return Oriented
  2044. Programming (ROP) attacks much more difficult to execute.
  2045. By default the ``security_flags.inc`` file enables PIE by setting the
  2046. variable as follows::
  2047. GCCPIE ?= "--enable-default-pie"
  2048. :term:`GCCVERSION`
  2049. Specifies the default version of the GNU C Compiler (GCC) used for
  2050. compilation. By default, :term:`GCCVERSION` is set to "8.x" in the
  2051. ``meta/conf/distro/include/tcmode-default.inc`` include file::
  2052. GCCVERSION ?= "8.%"
  2053. You can override this value by setting it in a
  2054. configuration file such as the ``local.conf``.
  2055. :term:`GDB`
  2056. The minimal command and arguments to run the GNU Debugger.
  2057. :term:`GITDIR`
  2058. The directory in which a local copy of a Git repository is stored
  2059. when it is cloned.
  2060. :term:`GLIBC_GENERATE_LOCALES`
  2061. Specifies the list of GLIBC locales to generate should you not wish
  2062. to generate all LIBC locals, which can be time consuming.
  2063. .. note::
  2064. If you specifically remove the locale ``en_US.UTF-8``, you must set
  2065. :term:`IMAGE_LINGUAS` appropriately.
  2066. You can set :term:`GLIBC_GENERATE_LOCALES` in your ``local.conf`` file.
  2067. By default, all locales are generated.
  2068. ::
  2069. GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 en_US.UTF-8"
  2070. :term:`GROUPADD_PARAM`
  2071. When inheriting the :ref:`useradd <ref-classes-useradd>` class,
  2072. this variable specifies for a package what parameters should be
  2073. passed to the ``groupadd`` command if you wish to add a group to the
  2074. system when the package is installed.
  2075. Here is an example from the ``dbus`` recipe::
  2076. GROUPADD_PARAM_${PN} = "-r netdev"
  2077. For information on the standard Linux shell command
  2078. ``groupadd``, see https://linux.die.net/man/8/groupadd.
  2079. :term:`GROUPMEMS_PARAM`
  2080. When inheriting the :ref:`useradd <ref-classes-useradd>` class,
  2081. this variable specifies for a package what parameters should be
  2082. passed to the ``groupmems`` command if you wish to modify the members
  2083. of a group when the package is installed.
  2084. For information on the standard Linux shell command ``groupmems``,
  2085. see https://linux.die.net/man/8/groupmems.
  2086. :term:`GRUB_GFXSERIAL`
  2087. Configures the GNU GRand Unified Bootloader (GRUB) to have graphics
  2088. and serial in the boot menu. Set this variable to "1" in your
  2089. ``local.conf`` or distribution configuration file to enable graphics
  2090. and serial in the menu.
  2091. See the :ref:`grub-efi <ref-classes-grub-efi>` class for more
  2092. information on how this variable is used.
  2093. :term:`GRUB_OPTS`
  2094. Additional options to add to the GNU GRand Unified Bootloader (GRUB)
  2095. configuration. Use a semi-colon character (``;``) to separate
  2096. multiple options.
  2097. The :term:`GRUB_OPTS` variable is optional. See the
  2098. :ref:`grub-efi <ref-classes-grub-efi>` class for more information
  2099. on how this variable is used.
  2100. :term:`GRUB_TIMEOUT`
  2101. Specifies the timeout before executing the default ``LABEL`` in the
  2102. GNU GRand Unified Bootloader (GRUB).
  2103. The :term:`GRUB_TIMEOUT` variable is optional. See the
  2104. :ref:`grub-efi <ref-classes-grub-efi>` class for more information
  2105. on how this variable is used.
  2106. :term:`GTKIMMODULES_PACKAGES`
  2107. When inheriting the
  2108. :ref:`gtk-immodules-cache <ref-classes-gtk-immodules-cache>` class,
  2109. this variable specifies the packages that contain the GTK+ input
  2110. method modules being installed when the modules are in packages other
  2111. than the main package.
  2112. :term:`HOMEPAGE`
  2113. Website where more information about the software the recipe is
  2114. building can be found.
  2115. :term:`HOST_ARCH`
  2116. The name of the target architecture, which is normally the same as
  2117. :term:`TARGET_ARCH`. The OpenEmbedded build system
  2118. supports many architectures. Here is an example list of architectures
  2119. supported. This list is by no means complete as the architecture is
  2120. configurable:
  2121. - arm
  2122. - i586
  2123. - x86_64
  2124. - powerpc
  2125. - powerpc64
  2126. - mips
  2127. - mipsel
  2128. :term:`HOST_CC_ARCH`
  2129. Specifies architecture-specific compiler flags that are passed to the
  2130. C compiler.
  2131. Default initialization for :term:`HOST_CC_ARCH` varies depending on what
  2132. is being built:
  2133. - :term:`TARGET_CC_ARCH` when building for the
  2134. target
  2135. - :term:`BUILD_CC_ARCH` when building for the build host (i.e.
  2136. ``-native``)
  2137. - ``BUILDSDK_CC_ARCH`` when building for an SDK (i.e.
  2138. ``nativesdk-``)
  2139. :term:`HOST_OS`
  2140. Specifies the name of the target operating system, which is normally
  2141. the same as the :term:`TARGET_OS`. The variable can
  2142. be set to "linux" for ``glibc``-based systems and to "linux-musl" for
  2143. ``musl``. For ARM/EABI targets, there are also "linux-gnueabi" and
  2144. "linux-musleabi" values possible.
  2145. :term:`HOST_PREFIX`
  2146. Specifies the prefix for the cross-compile toolchain. :term:`HOST_PREFIX`
  2147. is normally the same as :term:`TARGET_PREFIX`.
  2148. :term:`HOST_SYS`
  2149. Specifies the system, including the architecture and the operating
  2150. system, for which the build is occurring in the context of the
  2151. current recipe.
  2152. The OpenEmbedded build system automatically sets this variable based
  2153. on :term:`HOST_ARCH`,
  2154. :term:`HOST_VENDOR`, and
  2155. :term:`HOST_OS` variables.
  2156. .. note::
  2157. You do not need to set the variable yourself.
  2158. Consider these two examples:
  2159. - Given a native recipe on a 32-bit x86 machine running Linux, the
  2160. value is "i686-linux".
  2161. - Given a recipe being built for a little-endian MIPS target running
  2162. Linux, the value might be "mipsel-linux".
  2163. :term:`HOSTTOOLS`
  2164. A space-separated list (filter) of tools on the build host that
  2165. should be allowed to be called from within build tasks. Using this
  2166. filter helps reduce the possibility of host contamination. If a tool
  2167. specified in the value of :term:`HOSTTOOLS` is not found on the build
  2168. host, the OpenEmbedded build system produces an error and the build
  2169. is not started.
  2170. For additional information, see
  2171. :term:`HOSTTOOLS_NONFATAL`.
  2172. :term:`HOSTTOOLS_NONFATAL`
  2173. A space-separated list (filter) of tools on the build host that
  2174. should be allowed to be called from within build tasks. Using this
  2175. filter helps reduce the possibility of host contamination. Unlike
  2176. :term:`HOSTTOOLS`, the OpenEmbedded build system
  2177. does not produce an error if a tool specified in the value of
  2178. :term:`HOSTTOOLS_NONFATAL` is not found on the build host. Thus, you can
  2179. use :term:`HOSTTOOLS_NONFATAL` to filter optional host tools.
  2180. :term:`HOST_VENDOR`
  2181. Specifies the name of the vendor. :term:`HOST_VENDOR` is normally the
  2182. same as :term:`TARGET_VENDOR`.
  2183. :term:`ICECC_DISABLED`
  2184. Disables or enables the ``icecc`` (Icecream) function. For more
  2185. information on this function and best practices for using this
  2186. variable, see the ":ref:`icecc.bbclass <ref-classes-icecc>`"
  2187. section.
  2188. Setting this variable to "1" in your ``local.conf`` disables the
  2189. function::
  2190. ICECC_DISABLED ??= "1"
  2191. To enable the function, set the variable as follows::
  2192. ICECC_DISABLED = ""
  2193. :term:`ICECC_ENV_EXEC`
  2194. Points to the ``icecc-create-env`` script that you provide. This
  2195. variable is used by the :ref:`icecc <ref-classes-icecc>` class. You
  2196. set this variable in your ``local.conf`` file.
  2197. If you do not point to a script that you provide, the OpenEmbedded
  2198. build system uses the default script provided by the
  2199. ``icecc-create-env.bb`` recipe, which is a modified version and not
  2200. the one that comes with ``icecc``.
  2201. :term:`ICECC_PARALLEL_MAKE`
  2202. Extra options passed to the ``make`` command during the
  2203. :ref:`ref-tasks-compile` task that specify parallel
  2204. compilation. This variable usually takes the form of "-j x", where x
  2205. represents the maximum number of parallel threads ``make`` can run.
  2206. .. note::
  2207. The options passed affect builds on all enabled machines on the
  2208. network, which are machines running the ``iceccd`` daemon.
  2209. If your enabled machines support multiple cores, coming up with the
  2210. maximum number of parallel threads that gives you the best
  2211. performance could take some experimentation since machine speed,
  2212. network lag, available memory, and existing machine loads can all
  2213. affect build time. Consequently, unlike the
  2214. :term:`PARALLEL_MAKE` variable, there is no
  2215. rule-of-thumb for setting :term:`ICECC_PARALLEL_MAKE` to achieve optimal
  2216. performance.
  2217. If you do not set :term:`ICECC_PARALLEL_MAKE`, the build system does not
  2218. use it (i.e. the system does not detect and assign the number of
  2219. cores as is done with :term:`PARALLEL_MAKE`).
  2220. :term:`ICECC_PATH`
  2221. The location of the ``icecc`` binary. You can set this variable in
  2222. your ``local.conf`` file. If your ``local.conf`` file does not define
  2223. this variable, the :ref:`icecc <ref-classes-icecc>` class attempts
  2224. to define it by locating ``icecc`` using ``which``.
  2225. :term:`ICECC_USER_CLASS_BL`
  2226. Identifies user classes that you do not want the Icecream distributed
  2227. compile support to consider. This variable is used by the
  2228. :ref:`icecc <ref-classes-icecc>` class. You set this variable in
  2229. your ``local.conf`` file.
  2230. When you list classes using this variable, you are "blacklisting"
  2231. them from distributed compilation across remote hosts. Any classes
  2232. you list will be distributed and compiled locally.
  2233. :term:`ICECC_USER_PACKAGE_BL`
  2234. Identifies user recipes that you do not want the Icecream distributed
  2235. compile support to consider. This variable is used by the
  2236. :ref:`icecc <ref-classes-icecc>` class. You set this variable in
  2237. your ``local.conf`` file.
  2238. When you list packages using this variable, you are "blacklisting"
  2239. them from distributed compilation across remote hosts. Any packages
  2240. you list will be distributed and compiled locally.
  2241. :term:`ICECC_USER_PACKAGE_WL`
  2242. Identifies user recipes that use an empty
  2243. :term:`PARALLEL_MAKE` variable that you want to
  2244. force remote distributed compilation on using the Icecream
  2245. distributed compile support. This variable is used by the
  2246. :ref:`icecc <ref-classes-icecc>` class. You set this variable in
  2247. your ``local.conf`` file.
  2248. :term:`IMAGE_BASENAME`
  2249. The base name of image output files. This variable defaults to the
  2250. recipe name (``${``\ :term:`PN`\ ``}``).
  2251. :term:`IMAGE_EFI_BOOT_FILES`
  2252. A space-separated list of files installed into the boot partition
  2253. when preparing an image using the Wic tool with the
  2254. ``bootimg-efi`` source plugin. By default,
  2255. the files are
  2256. installed under the same name as the source files. To change the
  2257. installed name, separate it from the original name with a semi-colon
  2258. (;). Source files need to be located in
  2259. :term:`DEPLOY_DIR_IMAGE`. Here are two
  2260. examples::
  2261. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE};bz2"
  2262. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE} microcode.cpio"
  2263. Alternatively, source files can be picked up using a glob pattern. In
  2264. this case, the destination file must have the same name as the base
  2265. name of the source file path. To install files into a directory
  2266. within the target location, pass its name after a semi-colon (;).
  2267. Here are two examples::
  2268. IMAGE_EFI_BOOT_FILES = "boot/loader/*"
  2269. IMAGE_EFI_BOOT_FILES = "boot/loader/*;boot/"
  2270. The first example
  2271. installs all files from ``${DEPLOY_DIR_IMAGE}/boot/loader/``
  2272. into the root of the target partition. The second example installs
  2273. the same files into a ``boot`` directory within the target partition.
  2274. You can find information on how to use the Wic tool in the
  2275. ":ref:`dev-manual/common-tasks:creating partitioned images using wic`"
  2276. section of the Yocto Project Development Tasks Manual. Reference
  2277. material for Wic is located in the
  2278. ":doc:`/ref-manual/kickstart`" chapter.
  2279. :term:`IMAGE_BOOT_FILES`
  2280. A space-separated list of files installed into the boot partition
  2281. when preparing an image using the Wic tool with the
  2282. ``bootimg-partition`` source plugin. By default,
  2283. the files are
  2284. installed under the same name as the source files. To change the
  2285. installed name, separate it from the original name with a semi-colon
  2286. (;). Source files need to be located in
  2287. :term:`DEPLOY_DIR_IMAGE`. Here are two
  2288. examples::
  2289. IMAGE_BOOT_FILES = "u-boot.img uImage;kernel"
  2290. IMAGE_BOOT_FILES = "u-boot.${UBOOT_SUFFIX} ${KERNEL_IMAGETYPE}"
  2291. Alternatively, source files can be picked up using a glob pattern. In
  2292. this case, the destination file must have the same name as the base
  2293. name of the source file path. To install files into a directory
  2294. within the target location, pass its name after a semi-colon (;).
  2295. Here are two examples::
  2296. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*"
  2297. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*;boot/"
  2298. The first example
  2299. installs all files from ``${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles``
  2300. into the root of the target partition. The second example installs
  2301. the same files into a ``boot`` directory within the target partition.
  2302. You can find information on how to use the Wic tool in the
  2303. ":ref:`dev-manual/common-tasks:creating partitioned images using wic`"
  2304. section of the Yocto Project Development Tasks Manual. Reference
  2305. material for Wic is located in the
  2306. ":doc:`/ref-manual/kickstart`" chapter.
  2307. :term:`IMAGE_CLASSES`
  2308. A list of classes that all images should inherit. You typically use
  2309. this variable to specify the list of classes that register the
  2310. different types of images the OpenEmbedded build system creates.
  2311. The default value for :term:`IMAGE_CLASSES` is ``image_types``. You can
  2312. set this variable in your ``local.conf`` or in a distribution
  2313. configuration file.
  2314. For more information, see ``meta/classes/image_types.bbclass`` in the
  2315. :term:`Source Directory`.
  2316. :term:`IMAGE_CMD`
  2317. Specifies the command to create the image file for a specific image
  2318. type, which corresponds to the value set in
  2319. :term:`IMAGE_FSTYPES`, (e.g. ``ext3``,
  2320. ``btrfs``, and so forth). When setting this variable, you should use
  2321. an override for the associated type. Here is an example::
  2322. IMAGE_CMD_jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime \
  2323. --output=${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.jffs2 \
  2324. ${EXTRA_IMAGECMD}"
  2325. You typically do not need to set this variable unless you are adding
  2326. support for a new image type. For more examples on how to set this
  2327. variable, see the :ref:`image_types <ref-classes-image_types>`
  2328. class file, which is ``meta/classes/image_types.bbclass``.
  2329. :term:`IMAGE_DEVICE_TABLES`
  2330. Specifies one or more files that contain custom device tables that
  2331. are passed to the ``makedevs`` command as part of creating an image.
  2332. These files list basic device nodes that should be created under
  2333. ``/dev`` within the image. If :term:`IMAGE_DEVICE_TABLES` is not set,
  2334. ``files/device_table-minimal.txt`` is used, which is located by
  2335. :term:`BBPATH`. For details on how you should write
  2336. device table files, see ``meta/files/device_table-minimal.txt`` as an
  2337. example.
  2338. :term:`IMAGE_FEATURES`
  2339. The primary list of features to include in an image. Typically, you
  2340. configure this variable in an image recipe. Although you can use this
  2341. variable from your ``local.conf`` file, which is found in the
  2342. :term:`Build Directory`, best practices dictate that you do
  2343. not.
  2344. .. note::
  2345. To enable extra features from outside the image recipe, use the
  2346. :term:`EXTRA_IMAGE_FEATURES` variable.
  2347. For a list of image features that ships with the Yocto Project, see
  2348. the ":ref:`ref-features-image`" section.
  2349. For an example that shows how to customize your image by using this
  2350. variable, see the ":ref:`dev-manual/common-tasks:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  2351. section in the Yocto Project Development Tasks Manual.
  2352. :term:`IMAGE_FSTYPES`
  2353. Specifies the formats the OpenEmbedded build system uses during the
  2354. build when creating the root filesystem. For example, setting
  2355. :term:`IMAGE_FSTYPES` as follows causes the build system to create root
  2356. filesystems using two formats: ``.ext3`` and ``.tar.bz2``::
  2357. IMAGE_FSTYPES = "ext3 tar.bz2"
  2358. For the complete list of supported image formats from which you can
  2359. choose, see :term:`IMAGE_TYPES`.
  2360. .. note::
  2361. - If an image recipe uses the "inherit image" line and you are
  2362. setting :term:`IMAGE_FSTYPES` inside the recipe, you must set
  2363. :term:`IMAGE_FSTYPES` prior to using the "inherit image" line.
  2364. - Due to the way the OpenEmbedded build system processes this
  2365. variable, you cannot update its contents by using ``_append``
  2366. or ``_prepend``. You must use the ``+=`` operator to add one or
  2367. more options to the :term:`IMAGE_FSTYPES` variable.
  2368. :term:`IMAGE_INSTALL`
  2369. Used by recipes to specify the packages to install into an image
  2370. through the :ref:`image <ref-classes-image>` class. Use the
  2371. :term:`IMAGE_INSTALL` variable with care to avoid ordering issues.
  2372. Image recipes set :term:`IMAGE_INSTALL` to specify the packages to
  2373. install into an image through ``image.bbclass``. Additionally,
  2374. there are "helper" classes such as the
  2375. :ref:`core-image <ref-classes-core-image>` class which can
  2376. take lists used with :term:`IMAGE_FEATURES` and turn them into
  2377. auto-generated entries in :term:`IMAGE_INSTALL` in addition to its
  2378. default contents.
  2379. When you use this variable, it is best to use it as follows::
  2380. IMAGE_INSTALL_append = " package-name"
  2381. Be sure to include the space
  2382. between the quotation character and the start of the package name or
  2383. names.
  2384. .. note::
  2385. - When working with a
  2386. :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  2387. image, do not use the :term:`IMAGE_INSTALL` variable to specify
  2388. packages for installation. Instead, use the
  2389. :term:`PACKAGE_INSTALL` variable, which
  2390. allows the initial RAM filesystem (initramfs) recipe to use a
  2391. fixed set of packages and not be affected by :term:`IMAGE_INSTALL`.
  2392. For information on creating an initramfs, see the
  2393. ":ref:`dev-manual/common-tasks:building an initial ram filesystem (initramfs) image`"
  2394. section in the Yocto Project Development Tasks Manual.
  2395. - Using :term:`IMAGE_INSTALL` with the
  2396. :ref:`+= <bitbake:bitbake-user-manual/bitbake-user-manual-metadata:appending (+=) and prepending (=+) with spaces>`
  2397. BitBake operator within the ``/conf/local.conf`` file or from
  2398. within an image recipe is not recommended. Use of this operator
  2399. in these ways can cause ordering issues. Since
  2400. ``core-image.bbclass`` sets :term:`IMAGE_INSTALL` to a default
  2401. value using the
  2402. :ref:`?= <bitbake:bitbake-user-manual/bitbake-user-manual-metadata:setting a default value (?=)>`
  2403. operator, using a ``+=`` operation against :term:`IMAGE_INSTALL`
  2404. results in unexpected behavior when used within
  2405. ``conf/local.conf``. Furthermore, the same operation from
  2406. within an image recipe may or may not succeed depending on the
  2407. specific situation. In both these cases, the behavior is
  2408. contrary to how most users expect the ``+=`` operator to work.
  2409. :term:`IMAGE_LINGUAS`
  2410. Specifies the list of locales to install into the image during the
  2411. root filesystem construction process. The OpenEmbedded build system
  2412. automatically splits locale files, which are used for localization,
  2413. into separate packages. Setting the :term:`IMAGE_LINGUAS` variable
  2414. ensures that any locale packages that correspond to packages already
  2415. selected for installation into the image are also installed. Here is
  2416. an example::
  2417. IMAGE_LINGUAS = "pt-br de-de"
  2418. In this example, the build system ensures any Brazilian Portuguese
  2419. and German locale files that correspond to packages in the image are
  2420. installed (i.e. ``*-locale-pt-br`` and ``*-locale-de-de`` as well as
  2421. ``*-locale-pt`` and ``*-locale-de``, since some software packages
  2422. only provide locale files by language and not by country-specific
  2423. language).
  2424. See the :term:`GLIBC_GENERATE_LOCALES`
  2425. variable for information on generating GLIBC locales.
  2426. :term:`IMAGE_LINK_NAME`
  2427. The name of the output image symlink (which does not include
  2428. the version part as :term:`IMAGE_NAME` does). The default value
  2429. is derived using the :term:`IMAGE_BASENAME` and :term:`MACHINE`
  2430. variables::
  2431. IMAGE_LINK_NAME ?= "${IMAGE_BASENAME}-${MACHINE}"
  2432. :term:`IMAGE_MANIFEST`
  2433. The manifest file for the image. This file lists all the installed
  2434. packages that make up the image. The file contains package
  2435. information on a line-per-package basis as follows::
  2436. packagename packagearch version
  2437. The :ref:`rootfs-postcommands <ref-classes-rootfs*>` class defines the manifest
  2438. file as follows::
  2439. IMAGE_MANIFEST ="${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.manifest"
  2440. The location is
  2441. derived using the :term:`IMGDEPLOYDIR`
  2442. and :term:`IMAGE_NAME` variables. You can find
  2443. information on how the image is created in the ":ref:`overview-manual/concepts:image generation`"
  2444. section in the Yocto Project Overview and Concepts Manual.
  2445. :term:`IMAGE_NAME`
  2446. The name of the output image files minus the extension. This variable
  2447. is derived using the :term:`IMAGE_BASENAME`,
  2448. :term:`MACHINE`, and :term:`IMAGE_VERSION_SUFFIX`
  2449. variables::
  2450. IMAGE_NAME ?= "${IMAGE_BASENAME}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  2451. :term:`IMAGE_NAME_SUFFIX`
  2452. Suffix used for the image output file name - defaults to ``".rootfs"``
  2453. to distinguish the image file from other files created during image
  2454. building; however if this suffix is redundant or not desired you can
  2455. clear the value of this variable (set the value to ""). For example,
  2456. this is typically cleared in initramfs image recipes.
  2457. :term:`IMAGE_OVERHEAD_FACTOR`
  2458. Defines a multiplier that the build system applies to the initial
  2459. image size for cases when the multiplier times the returned disk
  2460. usage value for the image is greater than the sum of
  2461. :term:`IMAGE_ROOTFS_SIZE` and :term:`IMAGE_ROOTFS_EXTRA_SPACE`. The result of
  2462. the multiplier applied to the initial image size creates free disk
  2463. space in the image as overhead. By default, the build process uses a
  2464. multiplier of 1.3 for this variable. This default value results in
  2465. 30% free disk space added to the image when this method is used to
  2466. determine the final generated image size. You should be aware that
  2467. post install scripts and the package management system uses disk
  2468. space inside this overhead area. Consequently, the multiplier does
  2469. not produce an image with all the theoretical free disk space. See
  2470. :term:`IMAGE_ROOTFS_SIZE` for information on how the build system
  2471. determines the overall image size.
  2472. The default 30% free disk space typically gives the image enough room
  2473. to boot and allows for basic post installs while still leaving a
  2474. small amount of free disk space. If 30% free space is inadequate, you
  2475. can increase the default value. For example, the following setting
  2476. gives you 50% free space added to the image::
  2477. IMAGE_OVERHEAD_FACTOR = "1.5"
  2478. Alternatively, you can ensure a specific amount of free disk space is
  2479. added to the image by using the :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  2480. variable.
  2481. :term:`IMAGE_PKGTYPE`
  2482. Defines the package type (i.e. DEB, RPM, IPK, or TAR) used by the
  2483. OpenEmbedded build system. The variable is defined appropriately by
  2484. the :ref:`package_deb <ref-classes-package_deb>`,
  2485. :ref:`package_rpm <ref-classes-package_rpm>`,
  2486. :ref:`package_ipk <ref-classes-package_ipk>`, or
  2487. :ref:`package_tar <ref-classes-package_tar>` class.
  2488. .. note::
  2489. The ``package_tar`` class is broken and is not supported. It is
  2490. recommended that you do not use it.
  2491. The :ref:`populate_sdk_* <ref-classes-populate-sdk-*>` and
  2492. :ref:`image <ref-classes-image>` classes use the :term:`IMAGE_PKGTYPE`
  2493. for packaging up images and SDKs.
  2494. You should not set the :term:`IMAGE_PKGTYPE` manually. Rather, the
  2495. variable is set indirectly through the appropriate
  2496. :ref:`package_* <ref-classes-package>` class using the
  2497. :term:`PACKAGE_CLASSES` variable. The
  2498. OpenEmbedded build system uses the first package type (e.g. DEB, RPM,
  2499. or IPK) that appears with the variable
  2500. .. note::
  2501. Files using the ``.tar`` format are never used as a substitute
  2502. packaging format for DEB, RPM, and IPK formatted files for your image
  2503. or SDK.
  2504. :term:`IMAGE_POSTPROCESS_COMMAND`
  2505. Specifies a list of functions to call once the OpenEmbedded build
  2506. system creates the final image output files. You can specify
  2507. functions separated by semicolons::
  2508. IMAGE_POSTPROCESS_COMMAND += "function; ... "
  2509. If you need to pass the root filesystem path to a command within the
  2510. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  2511. directory that becomes the root filesystem image. See the
  2512. :term:`IMAGE_ROOTFS` variable for more
  2513. information.
  2514. :term:`IMAGE_PREPROCESS_COMMAND`
  2515. Specifies a list of functions to call before the OpenEmbedded build
  2516. system creates the final image output files. You can specify
  2517. functions separated by semicolons::
  2518. IMAGE_PREPROCESS_COMMAND += "function; ... "
  2519. If you need to pass the root filesystem path to a command within the
  2520. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  2521. directory that becomes the root filesystem image. See the
  2522. :term:`IMAGE_ROOTFS` variable for more
  2523. information.
  2524. :term:`IMAGE_ROOTFS`
  2525. The location of the root filesystem while it is under construction
  2526. (i.e. during the :ref:`ref-tasks-rootfs` task). This
  2527. variable is not configurable. Do not change it.
  2528. :term:`IMAGE_ROOTFS_ALIGNMENT`
  2529. Specifies the alignment for the output image file in Kbytes. If the
  2530. size of the image is not a multiple of this value, then the size is
  2531. rounded up to the nearest multiple of the value. The default value is
  2532. "1". See :term:`IMAGE_ROOTFS_SIZE` for
  2533. additional information.
  2534. :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  2535. Defines additional free disk space created in the image in Kbytes. By
  2536. default, this variable is set to "0". This free disk space is added
  2537. to the image after the build system determines the image size as
  2538. described in :term:`IMAGE_ROOTFS_SIZE`.
  2539. This variable is particularly useful when you want to ensure that a
  2540. specific amount of free disk space is available on a device after an
  2541. image is installed and running. For example, to be sure 5 Gbytes of
  2542. free disk space is available, set the variable as follows::
  2543. IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
  2544. For example, the Yocto Project Build Appliance specifically requests
  2545. 40 Gbytes of extra space with the line::
  2546. IMAGE_ROOTFS_EXTRA_SPACE = "41943040"
  2547. :term:`IMAGE_ROOTFS_SIZE`
  2548. Defines the size in Kbytes for the generated image. The OpenEmbedded
  2549. build system determines the final size for the generated image using
  2550. an algorithm that takes into account the initial disk space used for
  2551. the generated image, a requested size for the image, and requested
  2552. additional free disk space to be added to the image. Programatically,
  2553. the build system determines the final size of the generated image as
  2554. follows::
  2555. if (image-du * overhead) < rootfs-size:
  2556. internal-rootfs-size = rootfs-size + xspace
  2557. else:
  2558. internal-rootfs-size = (image-du * overhead) + xspace
  2559. where:
  2560. image-du = Returned value of the du command on the image.
  2561. overhead = IMAGE_OVERHEAD_FACTOR
  2562. rootfs-size = IMAGE_ROOTFS_SIZE
  2563. internal-rootfs-size = Initial root filesystem size before any modifications.
  2564. xspace = IMAGE_ROOTFS_EXTRA_SPACE
  2565. See the :term:`IMAGE_OVERHEAD_FACTOR`
  2566. and :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  2567. variables for related information.
  2568. :term:`IMAGE_TYPEDEP`
  2569. Specifies a dependency from one image type on another. Here is an
  2570. example from the :ref:`image-live <ref-classes-image-live>` class::
  2571. IMAGE_TYPEDEP_live = "ext3"
  2572. In the previous example, the variable ensures that when "live" is
  2573. listed with the :term:`IMAGE_FSTYPES` variable,
  2574. the OpenEmbedded build system produces an ``ext3`` image first since
  2575. one of the components of the live image is an ``ext3`` formatted
  2576. partition containing the root filesystem.
  2577. :term:`IMAGE_TYPES`
  2578. Specifies the complete list of supported image types by default:
  2579. - btrfs
  2580. - container
  2581. - cpio
  2582. - cpio.gz
  2583. - cpio.lz4
  2584. - cpio.lzma
  2585. - cpio.xz
  2586. - cramfs
  2587. - erofs
  2588. - erofs-lz4
  2589. - erofs-lz4hc
  2590. - ext2
  2591. - ext2.bz2
  2592. - ext2.gz
  2593. - ext2.lzma
  2594. - ext3
  2595. - ext3.gz
  2596. - ext4
  2597. - ext4.gz
  2598. - f2fs
  2599. - hddimg
  2600. - iso
  2601. - jffs2
  2602. - jffs2.sum
  2603. - multiubi
  2604. - squashfs
  2605. - squashfs-lz4
  2606. - squashfs-lzo
  2607. - squashfs-xz
  2608. - tar
  2609. - tar.bz2
  2610. - tar.gz
  2611. - tar.lz4
  2612. - tar.xz
  2613. - tar.zst
  2614. - ubi
  2615. - ubifs
  2616. - wic
  2617. - wic.bz2
  2618. - wic.gz
  2619. - wic.lzma
  2620. For more information about these types of images, see
  2621. ``meta/classes/image_types*.bbclass`` in the :term:`Source Directory`.
  2622. :term:`IMAGE_VERSION_SUFFIX`
  2623. Version suffix that is part of the default :term:`IMAGE_NAME` and
  2624. :term:`KERNEL_ARTIFACT_NAME` values.
  2625. Defaults to ``"-${DATETIME}"``, however you could set this to a
  2626. version string that comes from your external build environment if
  2627. desired, and this suffix would then be used consistently across
  2628. the build artifacts.
  2629. :term:`IMGDEPLOYDIR`
  2630. When inheriting the :ref:`image <ref-classes-image>` class directly or
  2631. through the :ref:`core-image <ref-classes-core-image>` class, the
  2632. :term:`IMGDEPLOYDIR` points to a temporary work area for deployed files
  2633. that is set in the ``image`` class as follows::
  2634. IMGDEPLOYDIR = "${WORKDIR}/deploy-${PN}-image-complete"
  2635. Recipes inheriting the ``image`` class should copy files to be
  2636. deployed into :term:`IMGDEPLOYDIR`, and the class will take care of
  2637. copying them into :term:`DEPLOY_DIR_IMAGE` afterwards.
  2638. :term:`INC_PR`
  2639. Helps define the recipe revision for recipes that share a common
  2640. ``include`` file. You can think of this variable as part of the
  2641. recipe revision as set from within an include file.
  2642. Suppose, for example, you have a set of recipes that are used across
  2643. several projects. And, within each of those recipes the revision (its
  2644. :term:`PR` value) is set accordingly. In this case, when
  2645. the revision of those recipes changes, the burden is on you to find
  2646. all those recipes and be sure that they get changed to reflect the
  2647. updated version of the recipe. In this scenario, it can get
  2648. complicated when recipes that are used in many places and provide
  2649. common functionality are upgraded to a new revision.
  2650. A more efficient way of dealing with this situation is to set the
  2651. :term:`INC_PR` variable inside the ``include`` files that the recipes
  2652. share and then expand the :term:`INC_PR` variable within the recipes to
  2653. help define the recipe revision.
  2654. The following provides an example that shows how to use the
  2655. :term:`INC_PR` variable given a common ``include`` file that defines the
  2656. variable. Once the variable is defined in the ``include`` file, you
  2657. can use the variable to set the :term:`PR` values in each recipe. You
  2658. will notice that when you set a recipe's :term:`PR` you can provide more
  2659. granular revisioning by appending values to the :term:`INC_PR` variable::
  2660. recipes-graphics/xorg-font/xorg-font-common.inc:INC_PR = "r2"
  2661. recipes-graphics/xorg-font/encodings_1.0.4.bb:PR = "${INC_PR}.1"
  2662. recipes-graphics/xorg-font/font-util_1.3.0.bb:PR = "${INC_PR}.0"
  2663. recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3"
  2664. The
  2665. first line of the example establishes the baseline revision to be
  2666. used for all recipes that use the ``include`` file. The remaining
  2667. lines in the example are from individual recipes and show how the
  2668. :term:`PR` value is set.
  2669. :term:`INCOMPATIBLE_LICENSE`
  2670. Specifies a space-separated list of license names (as they would
  2671. appear in :term:`LICENSE`) that should be excluded
  2672. from the build. Recipes that provide no alternatives to listed
  2673. incompatible licenses are not built. Packages that are individually
  2674. licensed with the specified incompatible licenses will be deleted.
  2675. .. note::
  2676. This functionality is only regularly tested using the following
  2677. setting::
  2678. INCOMPATIBLE_LICENSE = "GPL-3.0 LGPL-3.0 AGPL-3.0"
  2679. Although you can use other settings, you might be required to
  2680. remove dependencies on or provide alternatives to components that
  2681. are required to produce a functional system image.
  2682. .. note::
  2683. It is possible to define a list of licenses that are allowed to be
  2684. used instead of the licenses that are excluded. To do this, define
  2685. a variable ``COMPATIBLE_LICENSES`` with the names of the licenses
  2686. that are allowed. Then define :term:`INCOMPATIBLE_LICENSE` as::
  2687. INCOMPATIBLE_LICENSE = "${@' '.join(sorted(set(d.getVar('AVAILABLE_LICENSES').split()) - set(d.getVar('COMPATIBLE_LICENSES').split())))}"
  2688. This will result in :term:`INCOMPATIBLE_LICENSE` containing the names of
  2689. all licenses from :term:`AVAILABLE_LICENSES` except the ones specified
  2690. in ``COMPATIBLE_LICENSES``, thus only allowing the latter licenses to
  2691. be used.
  2692. :term:`INHERIT`
  2693. Causes the named class or classes to be inherited globally. Anonymous
  2694. functions in the class or classes are not executed for the base
  2695. configuration and in each individual recipe. The OpenEmbedded build
  2696. system ignores changes to :term:`INHERIT` in individual recipes.
  2697. For more information on :term:`INHERIT`, see the
  2698. :ref:`bitbake:bitbake-user-manual/bitbake-user-manual-metadata:\`\`inherit\`\` configuration directive`"
  2699. section in the Bitbake User Manual.
  2700. :term:`INHERIT_DISTRO`
  2701. Lists classes that will be inherited at the distribution level. It is
  2702. unlikely that you want to edit this variable.
  2703. The default value of the variable is set as follows in the
  2704. ``meta/conf/distro/defaultsetup.conf`` file::
  2705. INHERIT_DISTRO ?= "debian devshell sstate license"
  2706. :term:`INHIBIT_DEFAULT_DEPS`
  2707. Prevents the default dependencies, namely the C compiler and standard
  2708. C library (libc), from being added to :term:`DEPENDS`.
  2709. This variable is usually used within recipes that do not require any
  2710. compilation using the C compiler.
  2711. Set the variable to "1" to prevent the default dependencies from
  2712. being added.
  2713. :term:`INHIBIT_PACKAGE_DEBUG_SPLIT`
  2714. Prevents the OpenEmbedded build system from splitting out debug
  2715. information during packaging. By default, the build system splits out
  2716. debugging information during the
  2717. :ref:`ref-tasks-package` task. For more information on
  2718. how debug information is split out, see the
  2719. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  2720. variable.
  2721. To prevent the build system from splitting out debug information
  2722. during packaging, set the :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` variable as
  2723. follows::
  2724. INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
  2725. :term:`INHIBIT_PACKAGE_STRIP`
  2726. If set to "1", causes the build to not strip binaries in resulting
  2727. packages and prevents the ``-dbg`` package from containing the source
  2728. files.
  2729. By default, the OpenEmbedded build system strips binaries and puts
  2730. the debugging symbols into ``${``\ :term:`PN`\ ``}-dbg``.
  2731. Consequently, you should not set :term:`INHIBIT_PACKAGE_STRIP` when you
  2732. plan to debug in general.
  2733. :term:`INHIBIT_SYSROOT_STRIP`
  2734. If set to "1", causes the build to not strip binaries in the
  2735. resulting sysroot.
  2736. By default, the OpenEmbedded build system strips binaries in the
  2737. resulting sysroot. When you specifically set the
  2738. :term:`INHIBIT_SYSROOT_STRIP` variable to "1" in your recipe, you inhibit
  2739. this stripping.
  2740. If you want to use this variable, include the
  2741. :ref:`staging <ref-classes-staging>` class. This class uses a
  2742. ``sys_strip()`` function to test for the variable and acts
  2743. accordingly.
  2744. .. note::
  2745. Use of the :term:`INHIBIT_SYSROOT_STRIP` variable occurs in rare and
  2746. special circumstances. For example, suppose you are building
  2747. bare-metal firmware by using an external GCC toolchain. Furthermore,
  2748. even if the toolchain's binaries are strippable, there are other files
  2749. needed for the build that are not strippable.
  2750. :term:`INITRAMFS_FSTYPES`
  2751. Defines the format for the output image of an initial RAM filesystem
  2752. (initramfs), which is used during boot. Supported formats are the
  2753. same as those supported by the
  2754. :term:`IMAGE_FSTYPES` variable.
  2755. The default value of this variable, which is set in the
  2756. ``meta/conf/bitbake.conf`` configuration file in the
  2757. :term:`Source Directory`, is "cpio.gz". The Linux kernel's
  2758. initramfs mechanism, as opposed to the initial RAM filesystem
  2759. `initrd <https://en.wikipedia.org/wiki/Initrd>`__ mechanism, expects
  2760. an optionally compressed cpio archive.
  2761. :term:`INITRAMFS_IMAGE`
  2762. Specifies the :term:`PROVIDES` name of an image
  2763. recipe that is used to build an initial RAM filesystem (initramfs)
  2764. image. In other words, the :term:`INITRAMFS_IMAGE` variable causes an
  2765. additional recipe to be built as a dependency to whatever root
  2766. filesystem recipe you might be using (e.g. ``core-image-sato``). The
  2767. initramfs image recipe you provide should set
  2768. :term:`IMAGE_FSTYPES` to
  2769. :term:`INITRAMFS_FSTYPES`.
  2770. An initramfs image provides a temporary root filesystem used for
  2771. early system initialization (e.g. loading of modules needed to locate
  2772. and mount the "real" root filesystem).
  2773. .. note::
  2774. See the ``meta/recipes-core/images/core-image-minimal-initramfs.bb``
  2775. recipe in the :term:`Source Directory`
  2776. for an example initramfs recipe. To select this sample recipe as
  2777. the one built to provide the initramfs image, set :term:`INITRAMFS_IMAGE`
  2778. to "core-image-minimal-initramfs".
  2779. You can also find more information by referencing the
  2780. ``meta-poky/conf/local.conf.sample.extended`` configuration file in
  2781. the Source Directory, the :ref:`image <ref-classes-image>` class,
  2782. and the :ref:`kernel <ref-classes-kernel>` class to see how to use
  2783. the :term:`INITRAMFS_IMAGE` variable.
  2784. If :term:`INITRAMFS_IMAGE` is empty, which is the default, then no
  2785. initramfs image is built.
  2786. For more information, you can also see the
  2787. :term:`INITRAMFS_IMAGE_BUNDLE`
  2788. variable, which allows the generated image to be bundled inside the
  2789. kernel image. Additionally, for information on creating an initramfs
  2790. image, see the ":ref:`dev-manual/common-tasks:building an initial ram filesystem (initramfs) image`" section
  2791. in the Yocto Project Development Tasks Manual.
  2792. :term:`INITRAMFS_IMAGE_BUNDLE`
  2793. Controls whether or not the image recipe specified by
  2794. :term:`INITRAMFS_IMAGE` is run through an
  2795. extra pass
  2796. (:ref:`ref-tasks-bundle_initramfs`) during
  2797. kernel compilation in order to build a single binary that contains
  2798. both the kernel image and the initial RAM filesystem (initramfs)
  2799. image. This makes use of the
  2800. :term:`CONFIG_INITRAMFS_SOURCE` kernel
  2801. feature.
  2802. .. note::
  2803. Using an extra compilation pass to bundle the initramfs avoids a
  2804. circular dependency between the kernel recipe and the initramfs
  2805. recipe should the initramfs include kernel modules. Should that be
  2806. the case, the initramfs recipe depends on the kernel for the
  2807. kernel modules, and the kernel depends on the initramfs recipe
  2808. since the initramfs is bundled inside the kernel image.
  2809. The combined binary is deposited into the ``tmp/deploy`` directory,
  2810. which is part of the :term:`Build Directory`.
  2811. Setting the variable to "1" in a configuration file causes the
  2812. OpenEmbedded build system to generate a kernel image with the
  2813. initramfs specified in :term:`INITRAMFS_IMAGE` bundled within::
  2814. INITRAMFS_IMAGE_BUNDLE = "1"
  2815. By default, the
  2816. :ref:`kernel <ref-classes-kernel>` class sets this variable to a
  2817. null string as follows::
  2818. INITRAMFS_IMAGE_BUNDLE ?= ""
  2819. .. note::
  2820. You must set the :term:`INITRAMFS_IMAGE_BUNDLE` variable in a
  2821. configuration file. You cannot set the variable in a recipe file.
  2822. See the
  2823. :yocto_git:`local.conf.sample.extended </poky/tree/meta-poky/conf/local.conf.sample.extended>`
  2824. file for additional information. Also, for information on creating an
  2825. initramfs, see the ":ref:`dev-manual/common-tasks:building an initial ram filesystem (initramfs) image`" section
  2826. in the Yocto Project Development Tasks Manual.
  2827. :term:`INITRAMFS_LINK_NAME`
  2828. The link name of the initial RAM filesystem image. This variable is
  2829. set in the ``meta/classes/kernel-artifact-names.bbclass`` file as
  2830. follows::
  2831. INITRAMFS_LINK_NAME ?= "initramfs-${KERNEL_ARTIFACT_LINK_NAME}"
  2832. The value of the
  2833. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  2834. file, has the following value::
  2835. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  2836. See the :term:`MACHINE` variable for additional
  2837. information.
  2838. :term:`INITRAMFS_NAME`
  2839. The base name of the initial RAM filesystem image. This variable is
  2840. set in the ``meta/classes/kernel-artifact-names.bbclass`` file as
  2841. follows::
  2842. INITRAMFS_NAME ?= "initramfs-${KERNEL_ARTIFACT_NAME}"
  2843. The value of the :term:`KERNEL_ARTIFACT_NAME`
  2844. variable, which is set in the same file, has the following value::
  2845. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  2846. :term:`INITRD`
  2847. Indicates list of filesystem images to concatenate and use as an
  2848. initial RAM disk (``initrd``).
  2849. The :term:`INITRD` variable is an optional variable used with the
  2850. :ref:`image-live <ref-classes-image-live>` class.
  2851. :term:`INITRD_IMAGE`
  2852. When building a "live" bootable image (i.e. when
  2853. :term:`IMAGE_FSTYPES` contains "live"),
  2854. :term:`INITRD_IMAGE` specifies the image recipe that should be built to
  2855. provide the initial RAM disk image. The default value is
  2856. "core-image-minimal-initramfs".
  2857. See the :ref:`image-live <ref-classes-image-live>` class for more
  2858. information.
  2859. :term:`INITSCRIPT_NAME`
  2860. The filename of the initialization script as installed to
  2861. ``${sysconfdir}/init.d``.
  2862. This variable is used in recipes when using ``update-rc.d.bbclass``.
  2863. The variable is mandatory.
  2864. :term:`INITSCRIPT_PACKAGES`
  2865. A list of the packages that contain initscripts. If multiple packages
  2866. are specified, you need to append the package name to the other
  2867. ``INITSCRIPT_*`` as an override.
  2868. This variable is used in recipes when using ``update-rc.d.bbclass``.
  2869. The variable is optional and defaults to the :term:`PN`
  2870. variable.
  2871. :term:`INITSCRIPT_PARAMS`
  2872. Specifies the options to pass to ``update-rc.d``. Here is an example::
  2873. INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."
  2874. In this example, the script has a runlevel of 99, starts the script
  2875. in initlevels 2 and 5, and stops the script in levels 0, 1 and 6.
  2876. The variable's default value is "defaults", which is set in the
  2877. :ref:`update-rc.d <ref-classes-update-rc.d>` class.
  2878. The value in :term:`INITSCRIPT_PARAMS` is passed through to the
  2879. ``update-rc.d`` command. For more information on valid parameters,
  2880. please see the ``update-rc.d`` manual page at
  2881. https://manpages.debian.org/buster/init-system-helpers/update-rc.d.8.en.html
  2882. :term:`INSANE_SKIP`
  2883. Specifies the QA checks to skip for a specific package within a
  2884. recipe. For example, to skip the check for symbolic link ``.so``
  2885. files in the main package of a recipe, add the following to the
  2886. recipe. The package name override must be used, which in this example
  2887. is ``${PN}``::
  2888. INSANE_SKIP_${PN} += "dev-so"
  2889. See the ":ref:`insane.bbclass <ref-classes-insane>`" section for a
  2890. list of the valid QA checks you can specify using this variable.
  2891. :term:`INSTALL_TIMEZONE_FILE`
  2892. By default, the ``tzdata`` recipe packages an ``/etc/timezone`` file.
  2893. Set the :term:`INSTALL_TIMEZONE_FILE` variable to "0" at the
  2894. configuration level to disable this behavior.
  2895. :term:`IPK_FEED_URIS`
  2896. When the IPK backend is in use and package management is enabled on
  2897. the target, you can use this variable to set up ``opkg`` in the
  2898. target image to point to package feeds on a nominated server. Once
  2899. the feed is established, you can perform installations or upgrades
  2900. using the package manager at runtime.
  2901. :term:`KARCH`
  2902. Defines the kernel architecture used when assembling the
  2903. configuration. Architectures supported for this release are:
  2904. - powerpc
  2905. - i386
  2906. - x86_64
  2907. - arm
  2908. - qemu
  2909. - mips
  2910. You define the :term:`KARCH` variable in the :ref:`kernel-dev/advanced:bsp descriptions`.
  2911. :term:`KBRANCH`
  2912. A regular expression used by the build process to explicitly identify
  2913. the kernel branch that is validated, patched, and configured during a
  2914. build. You must set this variable to ensure the exact kernel branch
  2915. you want is being used by the build process.
  2916. Values for this variable are set in the kernel's recipe file and the
  2917. kernel's append file. For example, if you are using the
  2918. ``linux-yocto_4.12`` kernel, the kernel recipe file is the
  2919. ``meta/recipes-kernel/linux/linux-yocto_4.12.bb`` file. :term:`KBRANCH`
  2920. is set as follows in that kernel recipe file::
  2921. KBRANCH ?= "standard/base"
  2922. This variable is also used from the kernel's append file to identify
  2923. the kernel branch specific to a particular machine or target
  2924. hardware. Continuing with the previous kernel example, the kernel's
  2925. append file (i.e. ``linux-yocto_4.12.bbappend``) is located in the
  2926. BSP layer for a given machine. For example, the append file for the
  2927. Beaglebone, EdgeRouter, and generic versions of both 32 and 64-bit IA
  2928. machines (``meta-yocto-bsp``) is named
  2929. ``meta-yocto-bsp/recipes-kernel/linux/linux-yocto_4.12.bbappend``.
  2930. Here are the related statements from that append file::
  2931. KBRANCH_genericx86 = "standard/base"
  2932. KBRANCH_genericx86-64 = "standard/base"
  2933. KBRANCH_edgerouter = "standard/edgerouter"
  2934. KBRANCH_beaglebone = "standard/beaglebone"
  2935. The :term:`KBRANCH` statements
  2936. identify the kernel branch to use when building for each supported
  2937. BSP.
  2938. :term:`KBUILD_DEFCONFIG`
  2939. When used with the :ref:`kernel-yocto <ref-classes-kernel-yocto>`
  2940. class, specifies an "in-tree" kernel configuration file for use
  2941. during a kernel build.
  2942. Typically, when using a ``defconfig`` to configure a kernel during a
  2943. build, you place the file in your layer in the same manner as you
  2944. would place patch files and configuration fragment files (i.e.
  2945. "out-of-tree"). However, if you want to use a ``defconfig`` file that
  2946. is part of the kernel tree (i.e. "in-tree"), you can use the
  2947. :term:`KBUILD_DEFCONFIG` variable and append the
  2948. :term:`KMACHINE` variable to point to the
  2949. ``defconfig`` file.
  2950. To use the variable, set it in the append file for your kernel recipe
  2951. using the following form::
  2952. KBUILD_DEFCONFIG_KMACHINE ?= defconfig_file
  2953. Here is an example from a "raspberrypi2" :term:`KMACHINE` build that uses
  2954. a ``defconfig`` file named "bcm2709_defconfig"::
  2955. KBUILD_DEFCONFIG_raspberrypi2 = "bcm2709_defconfig"
  2956. As an alternative, you can use the following within your append file::
  2957. KBUILD_DEFCONFIG_pn-linux-yocto ?= defconfig_file
  2958. For more
  2959. information on how to use the :term:`KBUILD_DEFCONFIG` variable, see the
  2960. ":ref:`kernel-dev/common:using an "in-tree" \`\`defconfig\`\` file`"
  2961. section in the Yocto Project Linux Kernel Development Manual.
  2962. :term:`KCONFIG_MODE`
  2963. When used with the :ref:`kernel-yocto <ref-classes-kernel-yocto>`
  2964. class, specifies the kernel configuration values to use for options
  2965. not specified in the provided ``defconfig`` file. Valid options are::
  2966. KCONFIG_MODE = "alldefconfig"
  2967. KCONFIG_MODE = "allnoconfig"
  2968. In ``alldefconfig`` mode the options not explicitly specified will be
  2969. assigned their Kconfig default value. In ``allnoconfig`` mode the
  2970. options not explicitly specified will be disabled in the kernel
  2971. config.
  2972. In case :term:`KCONFIG_MODE` is not set the behaviour will depend on where
  2973. the ``defconfig`` file is coming from. An "in-tree" ``defconfig`` file
  2974. will be handled in ``alldefconfig`` mode, a ``defconfig`` file placed
  2975. in ``${WORKDIR}`` through a meta-layer will be handled in
  2976. ``allnoconfig`` mode.
  2977. An "in-tree" ``defconfig`` file can be selected via the
  2978. :term:`KBUILD_DEFCONFIG` variable. :term:`KCONFIG_MODE` does not need to
  2979. be explicitly set.
  2980. A ``defconfig`` file compatible with ``allnoconfig`` mode can be
  2981. generated by copying the ``.config`` file from a working Linux kernel
  2982. build, renaming it to ``defconfig`` and placing it into the Linux
  2983. kernel ``${WORKDIR}`` through your meta-layer. :term:`KCONFIG_MODE` does
  2984. not need to be explicitly set.
  2985. A ``defconfig`` file compatible with ``alldefconfig`` mode can be
  2986. generated using the
  2987. :ref:`ref-tasks-savedefconfig`
  2988. task and placed into the Linux kernel ``${WORKDIR}`` through your
  2989. meta-layer. Explicitely set :term:`KCONFIG_MODE`::
  2990. KCONFIG_MODE = "alldefconfig"
  2991. :term:`KERNEL_ALT_IMAGETYPE`
  2992. Specifies an alternate kernel image type for creation in addition to
  2993. the kernel image type specified using the
  2994. :term:`KERNEL_IMAGETYPE` variable.
  2995. :term:`KERNEL_ARTIFACT_NAME`
  2996. Specifies the name of all of the build artifacts. You can change the
  2997. name of the artifacts by changing the :term:`KERNEL_ARTIFACT_NAME`
  2998. variable.
  2999. The value of :term:`KERNEL_ARTIFACT_NAME`, which is set in the
  3000. ``meta/classes/kernel-artifact-names.bbclass`` file, has the
  3001. following default value::
  3002. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  3003. See the :term:`PKGE`, :term:`PKGV`, :term:`PKGR`, :term:`MACHINE`
  3004. and :term:`IMAGE_VERSION_SUFFIX` variables for additional information.
  3005. :term:`KERNEL_CLASSES`
  3006. A list of classes defining kernel image types that the
  3007. :ref:`kernel <ref-classes-kernel>` class should inherit. You
  3008. typically append this variable to enable extended image types. An
  3009. example is the "kernel-fitimage", which enables fitImage support and
  3010. resides in ``meta/classes/kernel-fitimage.bbclass``. You can register
  3011. custom kernel image types with the ``kernel`` class using this
  3012. variable.
  3013. :term:`KERNEL_DEVICETREE`
  3014. Specifies the name of the generated Linux kernel device tree (i.e.
  3015. the ``.dtb``) file.
  3016. .. note::
  3017. There is legacy support for specifying the full path to the device
  3018. tree. However, providing just the ``.dtb`` file is preferred.
  3019. In order to use this variable, the
  3020. :ref:`kernel-devicetree <ref-classes-kernel-devicetree>` class must
  3021. be inherited.
  3022. :term:`KERNEL_DTB_LINK_NAME`
  3023. The link name of the kernel device tree binary (DTB). This variable
  3024. is set in the ``meta/classes/kernel-artifact-names.bbclass`` file as
  3025. follows::
  3026. KERNEL_DTB_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3027. The
  3028. value of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in
  3029. the same file, has the following value::
  3030. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3031. See the :term:`MACHINE` variable for additional
  3032. information.
  3033. :term:`KERNEL_DTB_NAME`
  3034. The base name of the kernel device tree binary (DTB). This variable
  3035. is set in the ``meta/classes/kernel-artifact-names.bbclass`` file as
  3036. follows::
  3037. KERNEL_DTB_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3038. The value of the :term:`KERNEL_ARTIFACT_NAME`
  3039. variable, which is set in the same file, has the following value::
  3040. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  3041. :term:`KERNEL_DTC_FLAGS`
  3042. Specifies the ``dtc`` flags that are passed to the Linux kernel build
  3043. system when generating the device trees (via ``DTC_FLAGS`` environment
  3044. variable).
  3045. In order to use this variable, the
  3046. :ref:`kernel-devicetree <ref-classes-kernel-devicetree>` class must
  3047. be inherited.
  3048. :term:`KERNEL_EXTRA_ARGS`
  3049. Specifies additional ``make`` command-line arguments the OpenEmbedded
  3050. build system passes on when compiling the kernel.
  3051. :term:`KERNEL_FEATURES`
  3052. Includes additional kernel metadata. In the OpenEmbedded build
  3053. system, the default Board Support Packages (BSPs)
  3054. :term:`Metadata` is provided through the
  3055. :term:`KMACHINE` and :term:`KBRANCH`
  3056. variables. You can use the :term:`KERNEL_FEATURES` variable from within
  3057. the kernel recipe or kernel append file to further add metadata for
  3058. all BSPs or specific BSPs.
  3059. The metadata you add through this variable includes config fragments
  3060. and features descriptions, which usually includes patches as well as
  3061. config fragments. You typically override the :term:`KERNEL_FEATURES`
  3062. variable for a specific machine. In this way, you can provide
  3063. validated, but optional, sets of kernel configurations and features.
  3064. For example, the following example from the ``linux-yocto-rt_4.12``
  3065. kernel recipe adds "netfilter" and "taskstats" features to all BSPs
  3066. as well as "virtio" configurations to all QEMU machines. The last two
  3067. statements add specific configurations to targeted machine types::
  3068. KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc"
  3069. KERNEL_FEATURES_append = "${KERNEL_EXTRA_FEATURES}"
  3070. KERNEL_FEATURES_append_qemuall = "cfg/virtio.scc"
  3071. KERNEL_FEATURES_append_qemux86 = " cfg/sound.scc cfg/paravirt_kvm.scc"
  3072. KERNEL_FEATURES_append_qemux86-64 = "cfg/sound.scc"
  3073. :term:`KERNEL_FIT_LINK_NAME`
  3074. The link name of the kernel flattened image tree (FIT) image. This
  3075. variable is set in the ``meta/classes/kernel-artifact-names.bbclass``
  3076. file as follows::
  3077. KERNEL_FIT_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3078. The value of the
  3079. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3080. file, has the following value::
  3081. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3082. See the :term:`MACHINE` variable for additional
  3083. information.
  3084. :term:`KERNEL_FIT_NAME`
  3085. The base name of the kernel flattened image tree (FIT) image. This
  3086. variable is set in the ``meta/classes/kernel-artifact-names.bbclass``
  3087. file as follows::
  3088. KERNEL_FIT_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3089. The value of the :term:`KERNEL_ARTIFACT_NAME`
  3090. variable, which is set in the same file, has the following value::
  3091. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  3092. :term:`KERNEL_IMAGE_LINK_NAME`
  3093. The link name for the kernel image. This variable is set in the
  3094. ``meta/classes/kernel-artifact-names.bbclass`` file as follows::
  3095. KERNEL_IMAGE_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3096. The value of
  3097. the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3098. file, has the following value::
  3099. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3100. See the :term:`MACHINE` variable for additional
  3101. information.
  3102. :term:`KERNEL_IMAGE_MAXSIZE`
  3103. Specifies the maximum size of the kernel image file in kilobytes. If
  3104. :term:`KERNEL_IMAGE_MAXSIZE` is set, the size of the kernel image file is
  3105. checked against the set value during the
  3106. :ref:`ref-tasks-sizecheck` task. The task fails if
  3107. the kernel image file is larger than the setting.
  3108. :term:`KERNEL_IMAGE_MAXSIZE` is useful for target devices that have a
  3109. limited amount of space in which the kernel image must be stored.
  3110. By default, this variable is not set, which means the size of the
  3111. kernel image is not checked.
  3112. :term:`KERNEL_IMAGE_NAME`
  3113. The base name of the kernel image. This variable is set in the
  3114. ``meta/classes/kernel-artifact-names.bbclass`` file as follows::
  3115. KERNEL_IMAGE_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3116. The value of the
  3117. :term:`KERNEL_ARTIFACT_NAME` variable,
  3118. which is set in the same file, has the following value::
  3119. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  3120. :term:`KERNEL_IMAGETYPE`
  3121. The type of kernel to build for a device, usually set by the machine
  3122. configuration files and defaults to "zImage". This variable is used
  3123. when building the kernel and is passed to ``make`` as the target to
  3124. build.
  3125. If you want to build an alternate kernel image type in addition to that
  3126. specified by :term:`KERNEL_IMAGETYPE`, use the :term:`KERNEL_ALT_IMAGETYPE`
  3127. variable.
  3128. :term:`KERNEL_MODULE_AUTOLOAD`
  3129. Lists kernel modules that need to be auto-loaded during boot.
  3130. .. note::
  3131. This variable replaces the deprecated :term:`module_autoload`
  3132. variable.
  3133. You can use the :term:`KERNEL_MODULE_AUTOLOAD` variable anywhere that it
  3134. can be recognized by the kernel recipe or by an out-of-tree kernel
  3135. module recipe (e.g. a machine configuration file, a distribution
  3136. configuration file, an append file for the recipe, or the recipe
  3137. itself).
  3138. Specify it as follows::
  3139. KERNEL_MODULE_AUTOLOAD += "module_name1 module_name2 module_name3"
  3140. Including :term:`KERNEL_MODULE_AUTOLOAD` causes the OpenEmbedded build
  3141. system to populate the ``/etc/modules-load.d/modname.conf`` file with
  3142. the list of modules to be auto-loaded on boot. The modules appear
  3143. one-per-line in the file. Here is an example of the most common use
  3144. case::
  3145. KERNEL_MODULE_AUTOLOAD += "module_name"
  3146. For information on how to populate the ``modname.conf`` file with
  3147. ``modprobe.d`` syntax lines, see the :term:`KERNEL_MODULE_PROBECONF` variable.
  3148. :term:`KERNEL_MODULE_PROBECONF`
  3149. Provides a list of modules for which the OpenEmbedded build system
  3150. expects to find ``module_conf_``\ modname values that specify
  3151. configuration for each of the modules. For information on how to
  3152. provide those module configurations, see the
  3153. :term:`module_conf_* <module_conf>` variable.
  3154. :term:`KERNEL_PATH`
  3155. The location of the kernel sources. This variable is set to the value
  3156. of the :term:`STAGING_KERNEL_DIR` within
  3157. the :ref:`module <ref-classes-module>` class. For information on
  3158. how this variable is used, see the
  3159. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  3160. section in the Yocto Project Linux Kernel Development Manual.
  3161. To help maximize compatibility with out-of-tree drivers used to build
  3162. modules, the OpenEmbedded build system also recognizes and uses the
  3163. :term:`KERNEL_SRC` variable, which is identical to
  3164. the :term:`KERNEL_PATH` variable. Both variables are common variables
  3165. used by external Makefiles to point to the kernel source directory.
  3166. :term:`KERNEL_SRC`
  3167. The location of the kernel sources. This variable is set to the value
  3168. of the :term:`STAGING_KERNEL_DIR` within
  3169. the :ref:`module <ref-classes-module>` class. For information on
  3170. how this variable is used, see the
  3171. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  3172. section in the Yocto Project Linux Kernel Development Manual.
  3173. To help maximize compatibility with out-of-tree drivers used to build
  3174. modules, the OpenEmbedded build system also recognizes and uses the
  3175. :term:`KERNEL_PATH` variable, which is identical
  3176. to the :term:`KERNEL_SRC` variable. Both variables are common variables
  3177. used by external Makefiles to point to the kernel source directory.
  3178. :term:`KERNEL_VERSION`
  3179. Specifies the version of the kernel as extracted from ``version.h``
  3180. or ``utsrelease.h`` within the kernel sources. Effects of setting
  3181. this variable do not take affect until the kernel has been
  3182. configured. Consequently, attempting to refer to this variable in
  3183. contexts prior to configuration will not work.
  3184. :term:`KERNELDEPMODDEPEND`
  3185. Specifies whether the data referenced through
  3186. :term:`PKGDATA_DIR` is needed or not.
  3187. :term:`KERNELDEPMODDEPEND` does not control whether or not that data
  3188. exists, but simply whether or not it is used. If you do not need to
  3189. use the data, set the :term:`KERNELDEPMODDEPEND` variable in your
  3190. ``initramfs`` recipe. Setting the variable there when the data is not
  3191. needed avoids a potential dependency loop.
  3192. :term:`KFEATURE_DESCRIPTION`
  3193. Provides a short description of a configuration fragment. You use
  3194. this variable in the ``.scc`` file that describes a configuration
  3195. fragment file. Here is the variable used in a file named ``smp.scc``
  3196. to describe SMP being enabled::
  3197. define KFEATURE_DESCRIPTION "Enable SMP"
  3198. :term:`KMACHINE`
  3199. The machine as known by the kernel. Sometimes the machine name used
  3200. by the kernel does not match the machine name used by the
  3201. OpenEmbedded build system. For example, the machine name that the
  3202. OpenEmbedded build system understands as ``core2-32-intel-common``
  3203. goes by a different name in the Linux Yocto kernel. The kernel
  3204. understands that machine as ``intel-core2-32``. For cases like these,
  3205. the :term:`KMACHINE` variable maps the kernel machine name to the
  3206. OpenEmbedded build system machine name.
  3207. These mappings between different names occur in the Yocto Linux
  3208. Kernel's ``meta`` branch. As an example take a look in the
  3209. ``common/recipes-kernel/linux/linux-yocto_3.19.bbappend`` file::
  3210. LINUX_VERSION_core2-32-intel-common = "3.19.0"
  3211. COMPATIBLE_MACHINE_core2-32-intel-common = "${MACHINE}"
  3212. SRCREV_meta_core2-32-intel-common = "8897ef68b30e7426bc1d39895e71fb155d694974"
  3213. SRCREV_machine_core2-32-intel-common = "43b9eced9ba8a57add36af07736344dcc383f711"
  3214. KMACHINE_core2-32-intel-common = "intel-core2-32"
  3215. KBRANCH_core2-32-intel-common = "standard/base"
  3216. KERNEL_FEATURES_append_core2-32-intel-common = "${KERNEL_FEATURES_INTEL_COMMON}"
  3217. The :term:`KMACHINE` statement says
  3218. that the kernel understands the machine name as "intel-core2-32".
  3219. However, the OpenEmbedded build system understands the machine as
  3220. "core2-32-intel-common".
  3221. :term:`KTYPE`
  3222. Defines the kernel type to be used in assembling the configuration.
  3223. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  3224. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  3225. section in the
  3226. Yocto Project Linux Kernel Development Manual for more information on
  3227. kernel types.
  3228. You define the :term:`KTYPE` variable in the
  3229. :ref:`kernel-dev/advanced:bsp descriptions`. The
  3230. value you use must match the value used for the
  3231. :term:`LINUX_KERNEL_TYPE` value used by the
  3232. kernel recipe.
  3233. :term:`LABELS`
  3234. Provides a list of targets for automatic configuration.
  3235. See the :ref:`grub-efi <ref-classes-grub-efi>` class for more
  3236. information on how this variable is used.
  3237. :term:`LAYERDEPENDS`
  3238. Lists the layers, separated by spaces, on which this recipe depends.
  3239. Optionally, you can specify a specific layer version for a dependency
  3240. by adding it to the end of the layer name. Here is an example::
  3241. LAYERDEPENDS_mylayer = "anotherlayer (=3)"
  3242. In this previous example,
  3243. version 3 of "anotherlayer" is compared against
  3244. :term:`LAYERVERSION`\ ``_anotherlayer``.
  3245. An error is produced if any dependency is missing or the version
  3246. numbers (if specified) do not match exactly. This variable is used in
  3247. the ``conf/layer.conf`` file and must be suffixed with the name of
  3248. the specific layer (e.g. ``LAYERDEPENDS_mylayer``).
  3249. :term:`LAYERDIR`
  3250. When used inside the ``layer.conf`` configuration file, this variable
  3251. provides the path of the current layer. This variable is not
  3252. available outside of ``layer.conf`` and references are expanded
  3253. immediately when parsing of the file completes.
  3254. :term:`LAYERRECOMMENDS`
  3255. Lists the layers, separated by spaces, recommended for use with this
  3256. layer.
  3257. Optionally, you can specify a specific layer version for a
  3258. recommendation by adding the version to the end of the layer name.
  3259. Here is an example::
  3260. LAYERRECOMMENDS_mylayer = "anotherlayer (=3)"
  3261. In this previous example, version 3 of "anotherlayer" is compared
  3262. against ``LAYERVERSION_anotherlayer``.
  3263. This variable is used in the ``conf/layer.conf`` file and must be
  3264. suffixed with the name of the specific layer (e.g.
  3265. ``LAYERRECOMMENDS_mylayer``).
  3266. :term:`LAYERSERIES_COMPAT`
  3267. Lists the versions of the :term:`OpenEmbedded-Core (OE-Core)` for which
  3268. a layer is compatible. Using the :term:`LAYERSERIES_COMPAT` variable
  3269. allows the layer maintainer to indicate which combinations of the
  3270. layer and OE-Core can be expected to work. The variable gives the
  3271. system a way to detect when a layer has not been tested with new
  3272. releases of OE-Core (e.g. the layer is not maintained).
  3273. To specify the OE-Core versions for which a layer is compatible, use
  3274. this variable in your layer's ``conf/layer.conf`` configuration file.
  3275. For the list, use the Yocto Project
  3276. :yocto_wiki:`Release Name </Releases>` (e.g.
  3277. &DISTRO_NAME_NO_CAP;). To specify multiple OE-Core versions for the
  3278. layer, use a space-separated list::
  3279. LAYERSERIES_COMPAT_layer_root_name = "&DISTRO_NAME_NO_CAP; &DISTRO_NAME_NO_CAP_MINUS_ONE;"
  3280. .. note::
  3281. Setting :term:`LAYERSERIES_COMPAT` is required by the Yocto Project
  3282. Compatible version 2 standard.
  3283. The OpenEmbedded build system produces a warning if the variable
  3284. is not set for any given layer.
  3285. See the ":ref:`dev-manual/common-tasks:creating your own layer`"
  3286. section in the Yocto Project Development Tasks Manual.
  3287. :term:`LAYERVERSION`
  3288. Optionally specifies the version of a layer as a single number. You
  3289. can use this within :term:`LAYERDEPENDS` for
  3290. another layer in order to depend on a specific version of the layer.
  3291. This variable is used in the ``conf/layer.conf`` file and must be
  3292. suffixed with the name of the specific layer (e.g.
  3293. ``LAYERVERSION_mylayer``).
  3294. :term:`LD`
  3295. The minimal command and arguments used to run the linker.
  3296. :term:`LDFLAGS`
  3297. Specifies the flags to pass to the linker. This variable is exported
  3298. to an environment variable and thus made visible to the software
  3299. being built during the compilation step.
  3300. Default initialization for :term:`LDFLAGS` varies depending on what is
  3301. being built:
  3302. - :term:`TARGET_LDFLAGS` when building for the
  3303. target
  3304. - :term:`BUILD_LDFLAGS` when building for the
  3305. build host (i.e. ``-native``)
  3306. - :term:`BUILDSDK_LDFLAGS` when building for
  3307. an SDK (i.e. ``nativesdk-``)
  3308. :term:`LEAD_SONAME`
  3309. Specifies the lead (or primary) compiled library file (i.e. ``.so``)
  3310. that the :ref:`debian <ref-classes-debian>` class applies its
  3311. naming policy to given a recipe that packages multiple libraries.
  3312. This variable works in conjunction with the ``debian`` class.
  3313. :term:`LIC_FILES_CHKSUM`
  3314. Checksums of the license text in the recipe source code.
  3315. This variable tracks changes in license text of the source code
  3316. files. If the license text is changed, it will trigger a build
  3317. failure, which gives the developer an opportunity to review any
  3318. license change.
  3319. This variable must be defined for all recipes (unless
  3320. :term:`LICENSE` is set to "CLOSED").
  3321. For more information, see the ":ref:`dev-manual/common-tasks:tracking license changes`"
  3322. section in the Yocto Project Development Tasks Manual.
  3323. :term:`LICENSE`
  3324. The list of source licenses for the recipe. Follow these rules:
  3325. - Do not use spaces within individual license names.
  3326. - Separate license names using \| (pipe) when there is a choice
  3327. between licenses.
  3328. - Separate license names using & (ampersand) when there are
  3329. multiple licenses for different parts of the source.
  3330. - You can use spaces between license names.
  3331. - For standard licenses, use the names of the files in
  3332. ``meta/files/common-licenses/`` or the
  3333. :term:`SPDXLICENSEMAP` flag names defined in
  3334. ``meta/conf/licenses.conf``.
  3335. Here are some examples::
  3336. LICENSE = "LGPLv2.1 | GPLv3"
  3337. LICENSE = "MPL-1 & LGPLv2.1"
  3338. LICENSE = "GPLv2+"
  3339. The first example is from the
  3340. recipes for Qt, which the user may choose to distribute under either
  3341. the LGPL version 2.1 or GPL version 3. The second example is from
  3342. Cairo where two licenses cover different parts of the source code.
  3343. The final example is from ``sysstat``, which presents a single
  3344. license.
  3345. You can also specify licenses on a per-package basis to handle
  3346. situations where components of the output have different licenses.
  3347. For example, a piece of software whose code is licensed under GPLv2
  3348. but has accompanying documentation licensed under the GNU Free
  3349. Documentation License 1.2 could be specified as follows::
  3350. LICENSE = "GFDL-1.2 & GPLv2"
  3351. LICENSE_${PN} = "GPLv2"
  3352. LICENSE_${PN}-doc = "GFDL-1.2"
  3353. :term:`LICENSE_CREATE_PACKAGE`
  3354. Setting :term:`LICENSE_CREATE_PACKAGE` to "1" causes the OpenEmbedded
  3355. build system to create an extra package (i.e.
  3356. ``${``\ :term:`PN`\ ``}-lic``) for each recipe and to add
  3357. those packages to the
  3358. :term:`RRECOMMENDS`\ ``_${PN}``.
  3359. The ``${PN}-lic`` package installs a directory in
  3360. ``/usr/share/licenses`` named ``${PN}``, which is the recipe's base
  3361. name, and installs files in that directory that contain license and
  3362. copyright information (i.e. copies of the appropriate license files
  3363. from ``meta/common-licenses`` that match the licenses specified in
  3364. the :term:`LICENSE` variable of the recipe metadata
  3365. and copies of files marked in
  3366. :term:`LIC_FILES_CHKSUM` as containing
  3367. license text).
  3368. For related information on providing license text, see the
  3369. :term:`COPY_LIC_DIRS` variable, the
  3370. :term:`COPY_LIC_MANIFEST` variable, and the
  3371. ":ref:`dev-manual/common-tasks:providing license text`"
  3372. section in the Yocto Project Development Tasks Manual.
  3373. :term:`LICENSE_FLAGS`
  3374. Specifies additional flags for a recipe you must whitelist through
  3375. :term:`LICENSE_FLAGS_WHITELIST` in
  3376. order to allow the recipe to be built. When providing multiple flags,
  3377. separate them with spaces.
  3378. This value is independent of :term:`LICENSE` and is
  3379. typically used to mark recipes that might require additional licenses
  3380. in order to be used in a commercial product. For more information,
  3381. see the
  3382. ":ref:`dev-manual/common-tasks:enabling commercially licensed recipes`"
  3383. section in the Yocto Project Development Tasks Manual.
  3384. :term:`LICENSE_FLAGS_WHITELIST`
  3385. Lists license flags that when specified in
  3386. :term:`LICENSE_FLAGS` within a recipe should not
  3387. prevent that recipe from being built. This practice is otherwise
  3388. known as "whitelisting" license flags. For more information, see the
  3389. ":ref:`dev-manual/common-tasks:enabling commercially licensed recipes`"
  3390. section in the Yocto Project Development Tasks Manual.
  3391. :term:`LICENSE_PATH`
  3392. Path to additional licenses used during the build. By default, the
  3393. OpenEmbedded build system uses :term:`COMMON_LICENSE_DIR` to define the
  3394. directory that holds common license text used during the build. The
  3395. :term:`LICENSE_PATH` variable allows you to extend that location to other
  3396. areas that have additional licenses::
  3397. LICENSE_PATH += "path-to-additional-common-licenses"
  3398. :term:`LINUX_KERNEL_TYPE`
  3399. Defines the kernel type to be used in assembling the configuration.
  3400. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  3401. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  3402. section in the
  3403. Yocto Project Linux Kernel Development Manual for more information on
  3404. kernel types.
  3405. If you do not specify a :term:`LINUX_KERNEL_TYPE`, it defaults to
  3406. "standard". Together with :term:`KMACHINE`, the
  3407. :term:`LINUX_KERNEL_TYPE` variable defines the search arguments used by
  3408. the kernel tools to find the appropriate description within the
  3409. kernel :term:`Metadata` with which to build out the sources
  3410. and configuration.
  3411. :term:`LINUX_VERSION`
  3412. The Linux version from ``kernel.org`` on which the Linux kernel image
  3413. being built using the OpenEmbedded build system is based. You define
  3414. this variable in the kernel recipe. For example, the
  3415. ``linux-yocto-3.4.bb`` kernel recipe found in
  3416. ``meta/recipes-kernel/linux`` defines the variables as follows::
  3417. LINUX_VERSION ?= "3.4.24"
  3418. The :term:`LINUX_VERSION` variable is used to define :term:`PV`
  3419. for the recipe::
  3420. PV = "${LINUX_VERSION}+git${SRCPV}"
  3421. :term:`LINUX_VERSION_EXTENSION`
  3422. A string extension compiled into the version string of the Linux
  3423. kernel built with the OpenEmbedded build system. You define this
  3424. variable in the kernel recipe. For example, the linux-yocto kernel
  3425. recipes all define the variable as follows::
  3426. LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}"
  3427. Defining this variable essentially sets the Linux kernel
  3428. configuration item ``CONFIG_LOCALVERSION``, which is visible through
  3429. the ``uname`` command. Here is an example that shows the extension
  3430. assuming it was set as previously shown::
  3431. $ uname -r
  3432. 3.7.0-rc8-custom
  3433. :term:`LOG_DIR`
  3434. Specifies the directory to which the OpenEmbedded build system writes
  3435. overall log files. The default directory is ``${TMPDIR}/log``.
  3436. For the directory containing logs specific to each task, see the
  3437. :term:`T` variable.
  3438. :term:`MACHINE`
  3439. Specifies the target device for which the image is built. You define
  3440. :term:`MACHINE` in the ``local.conf`` file found in the
  3441. :term:`Build Directory`. By default, :term:`MACHINE` is set to
  3442. "qemux86", which is an x86-based architecture machine to be emulated
  3443. using QEMU::
  3444. MACHINE ?= "qemux86"
  3445. The variable corresponds to a machine configuration file of the same
  3446. name, through which machine-specific configurations are set. Thus,
  3447. when :term:`MACHINE` is set to "qemux86", the corresponding
  3448. ``qemux86.conf`` machine configuration file can be found in
  3449. the :term:`Source Directory` in
  3450. ``meta/conf/machine``.
  3451. The list of machines supported by the Yocto Project as shipped
  3452. include the following::
  3453. MACHINE ?= "qemuarm"
  3454. MACHINE ?= "qemuarm64"
  3455. MACHINE ?= "qemumips"
  3456. MACHINE ?= "qemumips64"
  3457. MACHINE ?= "qemuppc"
  3458. MACHINE ?= "qemux86"
  3459. MACHINE ?= "qemux86-64"
  3460. MACHINE ?= "genericx86"
  3461. MACHINE ?= "genericx86-64"
  3462. MACHINE ?= "beaglebone"
  3463. MACHINE ?= "edgerouter"
  3464. The last five are Yocto Project reference hardware
  3465. boards, which are provided in the ``meta-yocto-bsp`` layer.
  3466. .. note::
  3467. Adding additional Board Support Package (BSP) layers to your
  3468. configuration adds new possible settings for :term:`MACHINE`.
  3469. :term:`MACHINE_ARCH`
  3470. Specifies the name of the machine-specific architecture. This
  3471. variable is set automatically from :term:`MACHINE` or
  3472. :term:`TUNE_PKGARCH`. You should not hand-edit
  3473. the :term:`MACHINE_ARCH` variable.
  3474. :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  3475. A list of required machine-specific packages to install as part of
  3476. the image being built. The build process depends on these packages
  3477. being present. Furthermore, because this is a "machine-essential"
  3478. variable, the list of packages are essential for the machine to boot.
  3479. The impact of this variable affects images based on
  3480. ``packagegroup-core-boot``, including the ``core-image-minimal``
  3481. image.
  3482. This variable is similar to the
  3483. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS` variable with the exception
  3484. that the image being built has a build dependency on the variable's
  3485. list of packages. In other words, the image will not build if a file
  3486. in this list is not found.
  3487. As an example, suppose the machine for which you are building
  3488. requires ``example-init`` to be run during boot to initialize the
  3489. hardware. In this case, you would use the following in the machine's
  3490. ``.conf`` configuration file::
  3491. MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "example-init"
  3492. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS`
  3493. A list of recommended machine-specific packages to install as part of
  3494. the image being built. The build process does not depend on these
  3495. packages being present. However, because this is a
  3496. "machine-essential" variable, the list of packages are essential for
  3497. the machine to boot. The impact of this variable affects images based
  3498. on ``packagegroup-core-boot``, including the ``core-image-minimal``
  3499. image.
  3500. This variable is similar to the :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  3501. variable with the exception that the image being built does not have
  3502. a build dependency on the variable's list of packages. In other
  3503. words, the image will still build if a package in this list is not
  3504. found. Typically, this variable is used to handle essential kernel
  3505. modules, whose functionality may be selected to be built into the
  3506. kernel rather than as a module, in which case a package will not be
  3507. produced.
  3508. Consider an example where you have a custom kernel where a specific
  3509. touchscreen driver is required for the machine to be usable. However,
  3510. the driver can be built as a module or into the kernel depending on
  3511. the kernel configuration. If the driver is built as a module, you
  3512. want it to be installed. But, when the driver is built into the
  3513. kernel, you still want the build to succeed. This variable sets up a
  3514. "recommends" relationship so that in the latter case, the build will
  3515. not fail due to the missing package. To accomplish this, assuming the
  3516. package for the module was called ``kernel-module-ab123``, you would
  3517. use the following in the machine's ``.conf`` configuration file::
  3518. MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "kernel-module-ab123"
  3519. .. note::
  3520. In this example, the ``kernel-module-ab123`` recipe needs to
  3521. explicitly set its :term:`PACKAGES` variable to ensure that BitBake
  3522. does not use the kernel recipe's :term:`PACKAGES_DYNAMIC` variable to
  3523. satisfy the dependency.
  3524. Some examples of these machine essentials are flash, screen,
  3525. keyboard, mouse, or touchscreen drivers (depending on the machine).
  3526. :term:`MACHINE_EXTRA_RDEPENDS`
  3527. A list of machine-specific packages to install as part of the image
  3528. being built that are not essential for the machine to boot. However,
  3529. the build process for more fully-featured images depends on the
  3530. packages being present.
  3531. This variable affects all images based on ``packagegroup-base``,
  3532. which does not include the ``core-image-minimal`` or
  3533. ``core-image-full-cmdline`` images.
  3534. The variable is similar to the :term:`MACHINE_EXTRA_RRECOMMENDS` variable
  3535. with the exception that the image being built has a build dependency
  3536. on the variable's list of packages. In other words, the image will
  3537. not build if a file in this list is not found.
  3538. An example is a machine that has WiFi capability but is not essential
  3539. for the machine to boot the image. However, if you are building a
  3540. more fully-featured image, you want to enable the WiFi. The package
  3541. containing the firmware for the WiFi hardware is always expected to
  3542. exist, so it is acceptable for the build process to depend upon
  3543. finding the package. In this case, assuming the package for the
  3544. firmware was called ``wifidriver-firmware``, you would use the
  3545. following in the ``.conf`` file for the machine::
  3546. MACHINE_EXTRA_RDEPENDS += "wifidriver-firmware"
  3547. :term:`MACHINE_EXTRA_RRECOMMENDS`
  3548. A list of machine-specific packages to install as part of the image
  3549. being built that are not essential for booting the machine. The image
  3550. being built has no build dependency on this list of packages.
  3551. This variable affects only images based on ``packagegroup-base``,
  3552. which does not include the ``core-image-minimal`` or
  3553. ``core-image-full-cmdline`` images.
  3554. This variable is similar to the :term:`MACHINE_EXTRA_RDEPENDS` variable
  3555. with the exception that the image being built does not have a build
  3556. dependency on the variable's list of packages. In other words, the
  3557. image will build if a file in this list is not found.
  3558. An example is a machine that has WiFi capability but is not essential
  3559. For the machine to boot the image. However, if you are building a
  3560. more fully-featured image, you want to enable WiFi. In this case, the
  3561. package containing the WiFi kernel module will not be produced if the
  3562. WiFi driver is built into the kernel, in which case you still want
  3563. the build to succeed instead of failing as a result of the package
  3564. not being found. To accomplish this, assuming the package for the
  3565. module was called ``kernel-module-examplewifi``, you would use the
  3566. following in the ``.conf`` file for the machine::
  3567. MACHINE_EXTRA_RRECOMMENDS += "kernel-module-examplewifi"
  3568. :term:`MACHINE_FEATURES`
  3569. Specifies the list of hardware features the
  3570. :term:`MACHINE` is capable of supporting. For related
  3571. information on enabling features, see the
  3572. :term:`DISTRO_FEATURES`,
  3573. :term:`COMBINED_FEATURES`, and
  3574. :term:`IMAGE_FEATURES` variables.
  3575. For a list of hardware features supported by the Yocto Project as
  3576. shipped, see the ":ref:`ref-features-machine`" section.
  3577. :term:`MACHINE_FEATURES_BACKFILL`
  3578. Features to be added to :term:`MACHINE_FEATURES` if not also present in
  3579. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`.
  3580. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  3581. not intended to be user-configurable. It is best to just reference
  3582. the variable to see which machine features are being backfilled for
  3583. all machine configurations. See the ":ref:`ref-features-backfill`"
  3584. section for more information.
  3585. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`
  3586. Features from :term:`MACHINE_FEATURES_BACKFILL` that should not be
  3587. backfilled (i.e. added to :term:`MACHINE_FEATURES`) during the build. See
  3588. the ":ref:`ref-features-backfill`" section for more information.
  3589. :term:`MACHINEOVERRIDES`
  3590. A colon-separated list of overrides that apply to the current
  3591. machine. By default, this list includes the value of
  3592. :term:`MACHINE`.
  3593. You can extend :term:`MACHINEOVERRIDES` to add extra overrides that
  3594. should apply to a machine. For example, all machines emulated in QEMU
  3595. (e.g. ``qemuarm``, ``qemux86``, and so forth) include a file named
  3596. ``meta/conf/machine/include/qemu.inc`` that prepends the following
  3597. override to :term:`MACHINEOVERRIDES`::
  3598. MACHINEOVERRIDES =. "qemuall:"
  3599. This
  3600. override allows variables to be overridden for all machines emulated
  3601. in QEMU, like in the following example from the ``connman-conf``
  3602. recipe::
  3603. SRC_URI_append_qemuall = " file://wired.config \
  3604. file://wired-setup \
  3605. "
  3606. The underlying mechanism behind
  3607. :term:`MACHINEOVERRIDES` is simply that it is included in the default
  3608. value of :term:`OVERRIDES`.
  3609. :term:`MAINTAINER`
  3610. The email address of the distribution maintainer.
  3611. :term:`METADATA_BRANCH`
  3612. The branch currently checked out for the OpenEmbedded-Core layer (path
  3613. determined by :term:`COREBASE`).
  3614. :term:`METADATA_REVISION`
  3615. The revision currently checked out for the OpenEmbedded-Core layer (path
  3616. determined by :term:`COREBASE`).
  3617. :term:`MIRRORS`
  3618. Specifies additional paths from which the OpenEmbedded build system
  3619. gets source code. When the build system searches for source code, it
  3620. first tries the local download directory. If that location fails, the
  3621. build system tries locations defined by
  3622. :term:`PREMIRRORS`, the upstream source, and then
  3623. locations specified by :term:`MIRRORS` in that order.
  3624. Assuming your distribution (:term:`DISTRO`) is "poky",
  3625. the default value for :term:`MIRRORS` is defined in the
  3626. ``conf/distro/poky.conf`` file in the ``meta-poky`` Git repository.
  3627. :term:`MLPREFIX`
  3628. Specifies a prefix has been added to :term:`PN` to create a
  3629. special version of a recipe or package (i.e. a Multilib version). The
  3630. variable is used in places where the prefix needs to be added to or
  3631. removed from a the name (e.g. the :term:`BPN` variable).
  3632. :term:`MLPREFIX` gets set when a prefix has been added to :term:`PN`.
  3633. .. note::
  3634. The "ML" in :term:`MLPREFIX` stands for "MultiLib". This representation is
  3635. historical and comes from a time when ``nativesdk`` was a suffix
  3636. rather than a prefix on the recipe name. When ``nativesdk`` was turned
  3637. into a prefix, it made sense to set :term:`MLPREFIX` for it as well.
  3638. To help understand when :term:`MLPREFIX` might be needed, consider when
  3639. :term:`BBCLASSEXTEND` is used to provide a
  3640. ``nativesdk`` version of a recipe in addition to the target version.
  3641. If that recipe declares build-time dependencies on tasks in other
  3642. recipes by using :term:`DEPENDS`, then a dependency on
  3643. "foo" will automatically get rewritten to a dependency on
  3644. "nativesdk-foo". However, dependencies like the following will not
  3645. get rewritten automatically::
  3646. do_foo[depends] += "recipe:do_foo"
  3647. If you want such a dependency to also get transformed, you can do the
  3648. following::
  3649. do_foo[depends] += "${MLPREFIX}recipe:do_foo"
  3650. :term:`module_autoload`
  3651. This variable has been replaced by the :term:`KERNEL_MODULE_AUTOLOAD`
  3652. variable. You should replace all occurrences of :term:`module_autoload`
  3653. with additions to :term:`KERNEL_MODULE_AUTOLOAD`, for example::
  3654. module_autoload_rfcomm = "rfcomm"
  3655. should now be replaced with::
  3656. KERNEL_MODULE_AUTOLOAD += "rfcomm"
  3657. See the :term:`KERNEL_MODULE_AUTOLOAD` variable for more information.
  3658. :term:`module_conf`
  3659. Specifies `modprobe.d <https://linux.die.net/man/5/modprobe.d>`_
  3660. syntax lines for inclusion in the ``/etc/modprobe.d/modname.conf``
  3661. file.
  3662. You can use this variable anywhere that it can be recognized by the
  3663. kernel recipe or out-of-tree kernel module recipe (e.g. a machine
  3664. configuration file, a distribution configuration file, an append file
  3665. for the recipe, or the recipe itself). If you use this variable, you
  3666. must also be sure to list the module name in the
  3667. :term:`KERNEL_MODULE_AUTOLOAD`
  3668. variable.
  3669. Here is the general syntax::
  3670. module_conf_module_name = "modprobe.d-syntax"
  3671. You must use the kernel module name override.
  3672. Run ``man modprobe.d`` in the shell to find out more information on
  3673. the exact syntax you want to provide with :term:`module_conf`.
  3674. Including :term:`module_conf` causes the OpenEmbedded build system to
  3675. populate the ``/etc/modprobe.d/modname.conf`` file with
  3676. ``modprobe.d`` syntax lines. Here is an example that adds the options
  3677. ``arg1`` and ``arg2`` to a module named ``mymodule``::
  3678. module_conf_mymodule = "options mymodule arg1=val1 arg2=val2"
  3679. For information on how to specify kernel modules to auto-load on
  3680. boot, see the :term:`KERNEL_MODULE_AUTOLOAD` variable.
  3681. :term:`MODULE_TARBALL_DEPLOY`
  3682. Controls creation of the ``modules-*.tgz`` file. Set this variable to
  3683. "0" to disable creation of this file, which contains all of the
  3684. kernel modules resulting from a kernel build.
  3685. :term:`MODULE_TARBALL_LINK_NAME`
  3686. The link name of the kernel module tarball. This variable is set in
  3687. the ``meta/classes/kernel-artifact-names.bbclass`` file as follows::
  3688. MODULE_TARBALL_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3689. The value
  3690. of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the
  3691. same file, has the following value::
  3692. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3693. See the :term:`MACHINE` variable for additional information.
  3694. :term:`MODULE_TARBALL_NAME`
  3695. The base name of the kernel module tarball. This variable is set in
  3696. the ``meta/classes/kernel-artifact-names.bbclass`` file as follows::
  3697. MODULE_TARBALL_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3698. The value of the :term:`KERNEL_ARTIFACT_NAME` variable,
  3699. which is set in the same file, has the following value::
  3700. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  3701. :term:`MULTIMACH_TARGET_SYS`
  3702. Uniquely identifies the type of the target system for which packages
  3703. are being built. This variable allows output for different types of
  3704. target systems to be put into different subdirectories of the same
  3705. output directory.
  3706. The default value of this variable is::
  3707. ${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}
  3708. Some classes (e.g.
  3709. :ref:`cross-canadian <ref-classes-cross-canadian>`) modify the
  3710. :term:`MULTIMACH_TARGET_SYS` value.
  3711. See the :term:`STAMP` variable for an example. See the
  3712. :term:`STAGING_DIR_TARGET` variable for more information.
  3713. :term:`NATIVELSBSTRING`
  3714. A string identifying the host distribution. Strings consist of the
  3715. host distributor ID followed by the release, as reported by the
  3716. ``lsb_release`` tool or as read from ``/etc/lsb-release``. For
  3717. example, when running a build on Ubuntu 12.10, the value is
  3718. "Ubuntu-12.10". If this information is unable to be determined, the
  3719. value resolves to "Unknown".
  3720. This variable is used by default to isolate native shared state
  3721. packages for different distributions (e.g. to avoid problems with
  3722. ``glibc`` version incompatibilities). Additionally, the variable is
  3723. checked against
  3724. :term:`SANITY_TESTED_DISTROS` if that
  3725. variable is set.
  3726. :term:`NM`
  3727. The minimal command and arguments to run ``nm``.
  3728. :term:`NO_GENERIC_LICENSE`
  3729. Avoids QA errors when you use a non-common, non-CLOSED license in a
  3730. recipe. There are packages, such as the linux-firmware package, with many
  3731. licenses that are not in any way common. Also, new licenses are added
  3732. occasionally to avoid introducing a lot of common license files,
  3733. which are only applicable to a specific package.
  3734. :term:`NO_GENERIC_LICENSE` is used to allow copying a license that does
  3735. not exist in common licenses.
  3736. The following example shows how to add :term:`NO_GENERIC_LICENSE` to a
  3737. recipe::
  3738. NO_GENERIC_LICENSE[license_name] = "license_file_in_fetched_source"
  3739. Here is an example that
  3740. uses the ``LICENSE.Abilis.txt`` file as the license from the fetched
  3741. source::
  3742. NO_GENERIC_LICENSE[Firmware-Abilis] = "LICENSE.Abilis.txt"
  3743. :term:`NO_RECOMMENDATIONS`
  3744. Prevents installation of all "recommended-only" packages.
  3745. Recommended-only packages are packages installed only through the
  3746. :term:`RRECOMMENDS` variable). Setting the
  3747. :term:`NO_RECOMMENDATIONS` variable to "1" turns this feature on::
  3748. NO_RECOMMENDATIONS = "1"
  3749. You can set this variable globally in your ``local.conf`` file or you
  3750. can attach it to a specific image recipe by using the recipe name
  3751. override::
  3752. NO_RECOMMENDATIONS_pn-target_image = "1"
  3753. It is important to realize that if you choose to not install packages
  3754. using this variable and some other packages are dependent on them
  3755. (i.e. listed in a recipe's :term:`RDEPENDS`
  3756. variable), the OpenEmbedded build system ignores your request and
  3757. will install the packages to avoid dependency errors.
  3758. .. note::
  3759. Some recommended packages might be required for certain system
  3760. functionality, such as kernel modules. It is up to you to add
  3761. packages with the :term:`IMAGE_INSTALL` variable.
  3762. This variable is only supported when using the IPK and RPM
  3763. packaging backends. DEB is not supported.
  3764. See the :term:`BAD_RECOMMENDATIONS` and
  3765. the :term:`PACKAGE_EXCLUDE` variables for
  3766. related information.
  3767. :term:`NOAUTOPACKAGEDEBUG`
  3768. Disables auto package from splitting ``.debug`` files. If a recipe
  3769. requires ``FILES_${PN}-dbg`` to be set manually, the
  3770. :term:`NOAUTOPACKAGEDEBUG` can be defined allowing you to define the
  3771. content of the debug package. For example::
  3772. NOAUTOPACKAGEDEBUG = "1"
  3773. FILES_${PN}-dev = "${includedir}/${QT_DIR_NAME}/Qt/*"
  3774. FILES_${PN}-dbg = "/usr/src/debug/"
  3775. FILES_${QT_BASE_NAME}-demos-doc = "${docdir}/${QT_DIR_NAME}/qch/qt.qch"
  3776. :term:`NON_MULTILIB_RECIPES`
  3777. A list of recipes that should not be built for multilib. OE-Core's
  3778. ``multilib.conf`` file defines a reasonable starting point for this
  3779. list with::
  3780. NON_MULTILIB_RECIPES = "grub grub-efi make-mod-scripts ovmf u-boot"
  3781. :term:`OBJCOPY`
  3782. The minimal command and arguments to run ``objcopy``.
  3783. :term:`OBJDUMP`
  3784. The minimal command and arguments to run ``objdump``.
  3785. :term:`OE_BINCONFIG_EXTRA_MANGLE`
  3786. When inheriting the :ref:`binconfig <ref-classes-binconfig>` class,
  3787. this variable specifies additional arguments passed to the "sed"
  3788. command. The sed command alters any paths in configuration scripts
  3789. that have been set up during compilation. Inheriting this class
  3790. results in all paths in these scripts being changed to point into the
  3791. ``sysroots/`` directory so that all builds that use the script will
  3792. use the correct directories for the cross compiling layout.
  3793. See the ``meta/classes/binconfig.bbclass`` in the
  3794. :term:`Source Directory` for details on how this class
  3795. applies these additional sed command arguments. For general
  3796. information on the ``binconfig`` class, see the
  3797. ":ref:`binconfig.bbclass <ref-classes-binconfig>`" section.
  3798. :term:`OE_IMPORTS`
  3799. An internal variable used to tell the OpenEmbedded build system what
  3800. Python modules to import for every Python function run by the system.
  3801. .. note::
  3802. Do not set this variable. It is for internal use only.
  3803. :term:`OE_INIT_ENV_SCRIPT`
  3804. The name of the build environment setup script for the purposes of
  3805. setting up the environment within the extensible SDK. The default
  3806. value is "oe-init-build-env".
  3807. If you use a custom script to set up your build environment, set the
  3808. :term:`OE_INIT_ENV_SCRIPT` variable to its name.
  3809. :term:`OE_TERMINAL`
  3810. Controls how the OpenEmbedded build system spawns interactive
  3811. terminals on the host development system (e.g. using the BitBake
  3812. command with the ``-c devshell`` command-line option). For more
  3813. information, see the ":ref:`dev-manual/common-tasks:using a development shell`" section in
  3814. the Yocto Project Development Tasks Manual.
  3815. You can use the following values for the :term:`OE_TERMINAL` variable:
  3816. - auto
  3817. - gnome
  3818. - xfce
  3819. - rxvt
  3820. - screen
  3821. - konsole
  3822. - none
  3823. :term:`OEROOT`
  3824. The directory from which the top-level build environment setup script
  3825. is sourced. The Yocto Project provides a top-level build environment
  3826. setup script: :ref:`structure-core-script`. When you run this
  3827. script, the :term:`OEROOT` variable resolves to the directory that
  3828. contains the script.
  3829. For additional information on how this variable is used, see the
  3830. initialization script.
  3831. :term:`OLDEST_KERNEL`
  3832. Declares the oldest version of the Linux kernel that the produced
  3833. binaries must support. This variable is passed into the build of the
  3834. Embedded GNU C Library (``glibc``).
  3835. The default for this variable comes from the
  3836. ``meta/conf/bitbake.conf`` configuration file. You can override this
  3837. default by setting the variable in a custom distribution
  3838. configuration file.
  3839. :term:`OVERRIDES`
  3840. A colon-separated list of overrides that currently apply. Overrides
  3841. are a BitBake mechanism that allows variables to be selectively
  3842. overridden at the end of parsing. The set of overrides in
  3843. :term:`OVERRIDES` represents the "state" during building, which includes
  3844. the current recipe being built, the machine for which it is being
  3845. built, and so forth.
  3846. As an example, if the string "an-override" appears as an element in
  3847. the colon-separated list in :term:`OVERRIDES`, then the following
  3848. assignment will override ``FOO`` with the value "overridden" at the
  3849. end of parsing::
  3850. FOO_an-override = "overridden"
  3851. See the
  3852. ":ref:`bitbake:bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  3853. section in the BitBake User Manual for more information on the
  3854. overrides mechanism.
  3855. The default value of :term:`OVERRIDES` includes the values of the
  3856. :term:`CLASSOVERRIDE`,
  3857. :term:`MACHINEOVERRIDES`, and
  3858. :term:`DISTROOVERRIDES` variables. Another
  3859. important override included by default is ``pn-${PN}``. This override
  3860. allows variables to be set for a single recipe within configuration
  3861. (``.conf``) files. Here is an example::
  3862. FOO_pn-myrecipe = "myrecipe-specific value"
  3863. .. note::
  3864. An easy way to see what overrides apply is to search for :term:`OVERRIDES`
  3865. in the output of the ``bitbake -e`` command. See the
  3866. ":ref:`dev-manual/common-tasks:viewing variable values`" section in the Yocto
  3867. Project Development Tasks Manual for more information.
  3868. :term:`P`
  3869. The recipe name and version. :term:`P` is comprised of the following::
  3870. ${PN}-${PV}
  3871. :term:`PACKAGE_ADD_METADATA`
  3872. This variable defines additional metadata to add to packages.
  3873. You may find you need to inject additional metadata into packages.
  3874. This variable allows you to do that by setting the injected data as
  3875. the value. Multiple fields can be added by splitting the content with
  3876. the literal separator "\n".
  3877. The suffixes '_IPK', '_DEB', or '_RPM' can be applied to the variable
  3878. to do package type specific settings. It can also be made package
  3879. specific by using the package name as a suffix.
  3880. You can find out more about applying this variable in the
  3881. ":ref:`dev-manual/common-tasks:adding custom metadata to packages`"
  3882. section in the Yocto Project Development Tasks Manual.
  3883. :term:`PACKAGE_ARCH`
  3884. The architecture of the resulting package or packages.
  3885. By default, the value of this variable is set to
  3886. :term:`TUNE_PKGARCH` when building for the
  3887. target, :term:`BUILD_ARCH` when building for the
  3888. build host, and "${SDK_ARCH}-${SDKPKGSUFFIX}" when building for the
  3889. SDK.
  3890. .. note::
  3891. See :term:`SDK_ARCH` for more information.
  3892. However, if your recipe's output packages are built specific to the
  3893. target machine rather than generally for the architecture of the
  3894. machine, you should set :term:`PACKAGE_ARCH` to the value of
  3895. :term:`MACHINE_ARCH` in the recipe as follows::
  3896. PACKAGE_ARCH = "${MACHINE_ARCH}"
  3897. :term:`PACKAGE_ARCHS`
  3898. Specifies a list of architectures compatible with the target machine.
  3899. This variable is set automatically and should not normally be
  3900. hand-edited. Entries are separated using spaces and listed in order
  3901. of priority. The default value for :term:`PACKAGE_ARCHS` is "all any
  3902. noarch ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}".
  3903. :term:`PACKAGE_BEFORE_PN`
  3904. Enables easily adding packages to :term:`PACKAGES` before ``${PN}`` so
  3905. that those added packages can pick up files that would normally be
  3906. included in the default package.
  3907. :term:`PACKAGE_CLASSES`
  3908. This variable, which is set in the ``local.conf`` configuration file
  3909. found in the ``conf`` folder of the
  3910. :term:`Build Directory`, specifies the package manager the
  3911. OpenEmbedded build system uses when packaging data.
  3912. You can provide one or more of the following arguments for the
  3913. variable: PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk
  3914. package_tar"
  3915. .. note::
  3916. While it is a legal option, the ``package_tar``
  3917. class has limited functionality due to no support for package
  3918. dependencies by that backend. Therefore, it is recommended that
  3919. you do not use it.
  3920. The build system uses only the first argument in the list as the
  3921. package manager when creating your image or SDK. However, packages
  3922. will be created using any additional packaging classes you specify.
  3923. For example, if you use the following in your ``local.conf`` file::
  3924. PACKAGE_CLASSES ?= "package_ipk"
  3925. The OpenEmbedded build system uses
  3926. the IPK package manager to create your image or SDK.
  3927. For information on packaging and build performance effects as a
  3928. result of the package manager in use, see the
  3929. ":ref:`package.bbclass <ref-classes-package>`" section.
  3930. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  3931. Determines how to split up the binary and debug information when
  3932. creating ``*-dbg`` packages to be used with the GNU Project Debugger
  3933. (GDB).
  3934. With the :term:`PACKAGE_DEBUG_SPLIT_STYLE` variable, you can control
  3935. where debug information, which can include or exclude source files,
  3936. is stored:
  3937. - ".debug": Debug symbol files are placed next to the binary in a
  3938. ``.debug`` directory on the target. For example, if a binary is
  3939. installed into ``/bin``, the corresponding debug symbol files are
  3940. installed in ``/bin/.debug``. Source files are placed in
  3941. ``/usr/src/debug``.
  3942. - "debug-file-directory": Debug symbol files are placed under
  3943. ``/usr/lib/debug`` on the target, and separated by the path from
  3944. where the binary is installed. For example, if a binary is
  3945. installed in ``/bin``, the corresponding debug symbols are
  3946. installed in ``/usr/lib/debug/bin``. Source files are placed in
  3947. ``/usr/src/debug``.
  3948. - "debug-without-src": The same behavior as ".debug" previously
  3949. described with the exception that no source files are installed.
  3950. - "debug-with-srcpkg": The same behavior as ".debug" previously
  3951. described with the exception that all source files are placed in a
  3952. separate ``*-src`` pkg. This is the default behavior.
  3953. You can find out more about debugging using GDB by reading the
  3954. ":ref:`dev-manual/common-tasks:debugging with the gnu project debugger (gdb) remotely`" section
  3955. in the Yocto Project Development Tasks Manual.
  3956. :term:`PACKAGE_EXCLUDE_COMPLEMENTARY`
  3957. Prevents specific packages from being installed when you are
  3958. installing complementary packages.
  3959. You might find that you want to prevent installing certain packages
  3960. when you are installing complementary packages. For example, if you
  3961. are using :term:`IMAGE_FEATURES` to install
  3962. ``dev-pkgs``, you might not want to install all packages from a
  3963. particular multilib. If you find yourself in this situation, you can
  3964. use the :term:`PACKAGE_EXCLUDE_COMPLEMENTARY` variable to specify regular
  3965. expressions to match the packages you want to exclude.
  3966. :term:`PACKAGE_EXCLUDE`
  3967. Lists packages that should not be installed into an image. For
  3968. example::
  3969. PACKAGE_EXCLUDE = "package_name package_name package_name ..."
  3970. You can set this variable globally in your ``local.conf`` file or you
  3971. can attach it to a specific image recipe by using the recipe name
  3972. override::
  3973. PACKAGE_EXCLUDE_pn-target_image = "package_name"
  3974. If you choose to not install a package using this variable and some
  3975. other package is dependent on it (i.e. listed in a recipe's
  3976. :term:`RDEPENDS` variable), the OpenEmbedded build
  3977. system generates a fatal installation error. Because the build system
  3978. halts the process with a fatal error, you can use the variable with
  3979. an iterative development process to remove specific components from a
  3980. system.
  3981. This variable is supported only when using the IPK and RPM
  3982. packaging backends. DEB is not supported.
  3983. See the :term:`NO_RECOMMENDATIONS` and the
  3984. :term:`BAD_RECOMMENDATIONS` variables for
  3985. related information.
  3986. :term:`PACKAGE_EXTRA_ARCHS`
  3987. Specifies the list of architectures compatible with the device CPU.
  3988. This variable is useful when you build for several different devices
  3989. that use miscellaneous processors such as XScale and ARM926-EJS.
  3990. :term:`PACKAGE_FEED_ARCHS`
  3991. Optionally specifies the package architectures used as part of the
  3992. package feed URIs during the build. When used, the
  3993. :term:`PACKAGE_FEED_ARCHS` variable is appended to the final package feed
  3994. URI, which is constructed using the
  3995. :term:`PACKAGE_FEED_URIS` and
  3996. :term:`PACKAGE_FEED_BASE_PATHS`
  3997. variables.
  3998. .. note::
  3999. You can use the :term:`PACKAGE_FEED_ARCHS`
  4000. variable to whitelist specific package architectures. If you do
  4001. not need to whitelist specific architectures, which is a common
  4002. case, you can omit this variable. Omitting the variable results in
  4003. all available architectures for the current machine being included
  4004. into remote package feeds.
  4005. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4006. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4007. defined in your ``local.conf`` file::
  4008. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4009. https://example.com/packagerepos/updates"
  4010. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4011. PACKAGE_FEED_ARCHS = "all core2-64"
  4012. Given these settings, the resulting package feeds are as follows:
  4013. .. code-block:: none
  4014. https://example.com/packagerepos/release/rpm/all
  4015. https://example.com/packagerepos/release/rpm/core2-64
  4016. https://example.com/packagerepos/release/rpm-dev/all
  4017. https://example.com/packagerepos/release/rpm-dev/core2-64
  4018. https://example.com/packagerepos/updates/rpm/all
  4019. https://example.com/packagerepos/updates/rpm/core2-64
  4020. https://example.com/packagerepos/updates/rpm-dev/all
  4021. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4022. :term:`PACKAGE_FEED_BASE_PATHS`
  4023. Specifies the base path used when constructing package feed URIs. The
  4024. :term:`PACKAGE_FEED_BASE_PATHS` variable makes up the middle portion of a
  4025. package feed URI used by the OpenEmbedded build system. The base path
  4026. lies between the :term:`PACKAGE_FEED_URIS`
  4027. and :term:`PACKAGE_FEED_ARCHS` variables.
  4028. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4029. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4030. defined in your ``local.conf`` file::
  4031. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4032. https://example.com/packagerepos/updates"
  4033. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4034. PACKAGE_FEED_ARCHS = "all core2-64"
  4035. Given these settings, the resulting package feeds are as follows:
  4036. .. code-block:: none
  4037. https://example.com/packagerepos/release/rpm/all
  4038. https://example.com/packagerepos/release/rpm/core2-64
  4039. https://example.com/packagerepos/release/rpm-dev/all
  4040. https://example.com/packagerepos/release/rpm-dev/core2-64
  4041. https://example.com/packagerepos/updates/rpm/all
  4042. https://example.com/packagerepos/updates/rpm/core2-64
  4043. https://example.com/packagerepos/updates/rpm-dev/all
  4044. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4045. :term:`PACKAGE_FEED_URIS`
  4046. Specifies the front portion of the package feed URI used by the
  4047. OpenEmbedded build system. Each final package feed URI is comprised
  4048. of :term:`PACKAGE_FEED_URIS`,
  4049. :term:`PACKAGE_FEED_BASE_PATHS`, and
  4050. :term:`PACKAGE_FEED_ARCHS` variables.
  4051. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4052. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4053. defined in your ``local.conf`` file::
  4054. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4055. https://example.com/packagerepos/updates"
  4056. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4057. PACKAGE_FEED_ARCHS = "all core2-64"
  4058. Given these settings, the resulting package feeds are as follows:
  4059. .. code-block:: none
  4060. https://example.com/packagerepos/release/rpm/all
  4061. https://example.com/packagerepos/release/rpm/core2-64
  4062. https://example.com/packagerepos/release/rpm-dev/all
  4063. https://example.com/packagerepos/release/rpm-dev/core2-64
  4064. https://example.com/packagerepos/updates/rpm/all
  4065. https://example.com/packagerepos/updates/rpm/core2-64
  4066. https://example.com/packagerepos/updates/rpm-dev/all
  4067. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4068. :term:`PACKAGE_INSTALL`
  4069. The final list of packages passed to the package manager for
  4070. installation into the image.
  4071. Because the package manager controls actual installation of all
  4072. packages, the list of packages passed using :term:`PACKAGE_INSTALL` is
  4073. not the final list of packages that are actually installed. This
  4074. variable is internal to the image construction code. Consequently, in
  4075. general, you should use the
  4076. :term:`IMAGE_INSTALL` variable to specify
  4077. packages for installation. The exception to this is when working with
  4078. the :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  4079. image. When working with an initial RAM filesystem (initramfs) image,
  4080. use the :term:`PACKAGE_INSTALL` variable. For information on creating an
  4081. initramfs, see the ":ref:`dev-manual/common-tasks:building an initial ram filesystem (initramfs) image`" section
  4082. in the Yocto Project Development Tasks Manual.
  4083. :term:`PACKAGE_INSTALL_ATTEMPTONLY`
  4084. Specifies a list of packages the OpenEmbedded build system attempts
  4085. to install when creating an image. If a listed package fails to
  4086. install, the build system does not generate an error. This variable
  4087. is generally not user-defined.
  4088. :term:`PACKAGE_PREPROCESS_FUNCS`
  4089. Specifies a list of functions run to pre-process the
  4090. :term:`PKGD` directory prior to splitting the files out
  4091. to individual packages.
  4092. :term:`PACKAGE_WRITE_DEPS`
  4093. Specifies a list of dependencies for post-installation and
  4094. pre-installation scripts on native/cross tools. If your
  4095. post-installation or pre-installation script can execute at rootfs
  4096. creation time rather than on the target but depends on a native tool
  4097. in order to execute, you need to list the tools in
  4098. :term:`PACKAGE_WRITE_DEPS`.
  4099. For information on running post-installation scripts, see the
  4100. ":ref:`dev-manual/common-tasks:post-installation scripts`"
  4101. section in the Yocto Project Development Tasks Manual.
  4102. :term:`PACKAGECONFIG`
  4103. This variable provides a means of enabling or disabling features of a
  4104. recipe on a per-recipe basis. :term:`PACKAGECONFIG` blocks are defined in
  4105. recipes when you specify features and then arguments that define
  4106. feature behaviors. Here is the basic block structure (broken over
  4107. multiple lines for readability)::
  4108. PACKAGECONFIG ??= "f1 f2 f3 ..."
  4109. PACKAGECONFIG[f1] = "\
  4110. --with-f1, \
  4111. --without-f1, \
  4112. build-deps-for-f1, \
  4113. runtime-deps-for-f1, \
  4114. runtime-recommends-for-f1, \
  4115. packageconfig-conflicts-for-f1"
  4116. PACKAGECONFIG[f2] = "\
  4117. ... and so on and so on ...
  4118. The :term:`PACKAGECONFIG` variable itself specifies a space-separated
  4119. list of the features to enable. Following the features, you can
  4120. determine the behavior of each feature by providing up to six
  4121. order-dependent arguments, which are separated by commas. You can
  4122. omit any argument you like but must retain the separating commas. The
  4123. order is important and specifies the following:
  4124. 1. Extra arguments that should be added to the configure script
  4125. argument list (:term:`EXTRA_OECONF` or
  4126. :term:`PACKAGECONFIG_CONFARGS`) if
  4127. the feature is enabled.
  4128. 2. Extra arguments that should be added to :term:`EXTRA_OECONF` or
  4129. :term:`PACKAGECONFIG_CONFARGS` if the feature is disabled.
  4130. 3. Additional build dependencies (:term:`DEPENDS`)
  4131. that should be added if the feature is enabled.
  4132. 4. Additional runtime dependencies (:term:`RDEPENDS`)
  4133. that should be added if the feature is enabled.
  4134. 5. Additional runtime recommendations
  4135. (:term:`RRECOMMENDS`) that should be added if
  4136. the feature is enabled.
  4137. 6. Any conflicting (that is, mutually exclusive) :term:`PACKAGECONFIG`
  4138. settings for this feature.
  4139. Consider the following :term:`PACKAGECONFIG` block taken from the
  4140. ``librsvg`` recipe. In this example the feature is ``gtk``, which has
  4141. three arguments that determine the feature's behavior.
  4142. ::
  4143. PACKAGECONFIG[gtk] = "--with-gtk3,--without-gtk3,gtk+3"
  4144. The
  4145. ``--with-gtk3`` and ``gtk+3`` arguments apply only if the feature is
  4146. enabled. In this case, ``--with-gtk3`` is added to the configure
  4147. script argument list and ``gtk+3`` is added to :term:`DEPENDS`. On the
  4148. other hand, if the feature is disabled say through a ``.bbappend``
  4149. file in another layer, then the second argument ``--without-gtk3`` is
  4150. added to the configure script instead.
  4151. The basic :term:`PACKAGECONFIG` structure previously described holds true
  4152. regardless of whether you are creating a block or changing a block.
  4153. When creating a block, use the structure inside your recipe.
  4154. If you want to change an existing :term:`PACKAGECONFIG` block, you can do
  4155. so one of two ways:
  4156. - *Append file:* Create an append file named
  4157. recipename\ ``.bbappend`` in your layer and override the value of
  4158. :term:`PACKAGECONFIG`. You can either completely override the
  4159. variable::
  4160. PACKAGECONFIG = "f4 f5"
  4161. Or, you can just append the variable::
  4162. PACKAGECONFIG_append = " f4"
  4163. - *Configuration file:* This method is identical to changing the
  4164. block through an append file except you edit your ``local.conf``
  4165. or ``mydistro.conf`` file. As with append files previously
  4166. described, you can either completely override the variable::
  4167. PACKAGECONFIG_pn-recipename = "f4 f5"
  4168. Or, you can just amend the variable::
  4169. PACKAGECONFIG_append_pn-recipename = " f4"
  4170. :term:`PACKAGECONFIG_CONFARGS`
  4171. A space-separated list of configuration options generated from the
  4172. :term:`PACKAGECONFIG` setting.
  4173. Classes such as :ref:`autotools <ref-classes-autotools>` and
  4174. :ref:`cmake <ref-classes-cmake>` use :term:`PACKAGECONFIG_CONFARGS` to
  4175. pass :term:`PACKAGECONFIG` options to ``configure`` and ``cmake``,
  4176. respectively. If you are using :term:`PACKAGECONFIG` but not a class that
  4177. handles the ``do_configure`` task, then you need to use
  4178. :term:`PACKAGECONFIG_CONFARGS` appropriately.
  4179. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY`
  4180. For recipes inheriting the
  4181. :ref:`packagegroup <ref-classes-packagegroup>` class, setting
  4182. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY` to "1" specifies that the
  4183. normal complementary packages (i.e. ``-dev``, ``-dbg``, and so forth)
  4184. should not be automatically created by the ``packagegroup`` recipe,
  4185. which is the default behavior.
  4186. :term:`PACKAGES`
  4187. The list of packages the recipe creates. The default value is the
  4188. following::
  4189. ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}
  4190. During packaging, the :ref:`ref-tasks-package` task
  4191. goes through :term:`PACKAGES` and uses the :term:`FILES`
  4192. variable corresponding to each package to assign files to the
  4193. package. If a file matches the :term:`FILES` variable for more than one
  4194. package in :term:`PACKAGES`, it will be assigned to the earliest
  4195. (leftmost) package.
  4196. Packages in the variable's list that are empty (i.e. where none of
  4197. the patterns in ``FILES_``\ pkg match any files installed by the
  4198. :ref:`ref-tasks-install` task) are not generated,
  4199. unless generation is forced through the
  4200. :term:`ALLOW_EMPTY` variable.
  4201. :term:`PACKAGES_DYNAMIC`
  4202. A promise that your recipe satisfies runtime dependencies for
  4203. optional modules that are found in other recipes.
  4204. :term:`PACKAGES_DYNAMIC` does not actually satisfy the dependencies, it
  4205. only states that they should be satisfied. For example, if a hard,
  4206. runtime dependency (:term:`RDEPENDS`) of another
  4207. package is satisfied at build time through the :term:`PACKAGES_DYNAMIC`
  4208. variable, but a package with the module name is never actually
  4209. produced, then the other package will be broken. Thus, if you attempt
  4210. to include that package in an image, you will get a dependency
  4211. failure from the packaging system during the
  4212. :ref:`ref-tasks-rootfs` task.
  4213. Typically, if there is a chance that such a situation can occur and
  4214. the package that is not created is valid without the dependency being
  4215. satisfied, then you should use :term:`RRECOMMENDS`
  4216. (a soft runtime dependency) instead of :term:`RDEPENDS`.
  4217. For an example of how to use the :term:`PACKAGES_DYNAMIC` variable when
  4218. you are splitting packages, see the
  4219. ":ref:`dev-manual/common-tasks:handling optional module packaging`"
  4220. section in the Yocto Project Development Tasks Manual.
  4221. :term:`PACKAGESPLITFUNCS`
  4222. Specifies a list of functions run to perform additional splitting of
  4223. files into individual packages. Recipes can either prepend to this
  4224. variable or prepend to the ``populate_packages`` function in order to
  4225. perform additional package splitting. In either case, the function
  4226. should set :term:`PACKAGES`,
  4227. :term:`FILES`, :term:`RDEPENDS` and
  4228. other packaging variables appropriately in order to perform the
  4229. desired splitting.
  4230. :term:`PARALLEL_MAKE`
  4231. Extra options passed to the ``make`` command during the
  4232. :ref:`ref-tasks-compile` task in order to specify
  4233. parallel compilation on the local build host. This variable is
  4234. usually in the form "-j x", where x represents the maximum number of
  4235. parallel threads ``make`` can run.
  4236. .. note::
  4237. In order for :term:`PARALLEL_MAKE` to be effective, ``make`` must be
  4238. called with ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy way to ensure
  4239. this is to use the ``oe_runmake`` function.
  4240. By default, the OpenEmbedded build system automatically sets this
  4241. variable to be equal to the number of cores the build system uses.
  4242. .. note::
  4243. If the software being built experiences dependency issues during
  4244. the ``do_compile`` task that result in race conditions, you can clear
  4245. the :term:`PARALLEL_MAKE` variable within the recipe as a workaround. For
  4246. information on addressing race conditions, see the
  4247. ":ref:`dev-manual/common-tasks:debugging parallel make races`"
  4248. section in the Yocto Project Development Tasks Manual.
  4249. For single socket systems (i.e. one CPU), you should not have to
  4250. override this variable to gain optimal parallelism during builds.
  4251. However, if you have very large systems that employ multiple physical
  4252. CPUs, you might want to make sure the :term:`PARALLEL_MAKE` variable is
  4253. not set higher than "-j 20".
  4254. For more information on speeding up builds, see the
  4255. ":ref:`dev-manual/common-tasks:speeding up a build`"
  4256. section in the Yocto Project Development Tasks Manual.
  4257. :term:`PARALLEL_MAKEINST`
  4258. Extra options passed to the ``make install`` command during the
  4259. :ref:`ref-tasks-install` task in order to specify
  4260. parallel installation. This variable defaults to the value of
  4261. :term:`PARALLEL_MAKE`.
  4262. .. note::
  4263. In order for :term:`PARALLEL_MAKEINST` to be effective, ``make`` must
  4264. be called with
  4265. ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy
  4266. way to ensure this is to use the ``oe_runmake`` function.
  4267. If the software being built experiences dependency issues during
  4268. the ``do_install`` task that result in race conditions, you can
  4269. clear the :term:`PARALLEL_MAKEINST` variable within the recipe as a
  4270. workaround. For information on addressing race conditions, see the
  4271. ":ref:`dev-manual/common-tasks:debugging parallel make races`"
  4272. section in the Yocto Project Development Tasks Manual.
  4273. :term:`PATCHRESOLVE`
  4274. Determines the action to take when a patch fails. You can set this
  4275. variable to one of two values: "noop" and "user".
  4276. The default value of "noop" causes the build to simply fail when the
  4277. OpenEmbedded build system cannot successfully apply a patch. Setting
  4278. the value to "user" causes the build system to launch a shell and
  4279. places you in the right location so that you can manually resolve the
  4280. conflicts.
  4281. Set this variable in your ``local.conf`` file.
  4282. :term:`PATCHTOOL`
  4283. Specifies the utility used to apply patches for a recipe during the
  4284. :ref:`ref-tasks-patch` task. You can specify one of
  4285. three utilities: "patch", "quilt", or "git". The default utility used
  4286. is "quilt" except for the quilt-native recipe itself. Because the
  4287. quilt tool is not available at the time quilt-native is being
  4288. patched, it uses "patch".
  4289. If you wish to use an alternative patching tool, set the variable in
  4290. the recipe using one of the following::
  4291. PATCHTOOL = "patch"
  4292. PATCHTOOL = "quilt"
  4293. PATCHTOOL = "git"
  4294. :term:`PE`
  4295. The epoch of the recipe. By default, this variable is unset. The
  4296. variable is used to make upgrades possible when the versioning scheme
  4297. changes in some backwards incompatible way.
  4298. :term:`PE` is the default value of the :term:`PKGE` variable.
  4299. :term:`PF`
  4300. Specifies the recipe or package name and includes all version and
  4301. revision numbers (i.e. ``glibc-2.13-r20+svnr15508/`` and
  4302. ``bash-4.2-r1/``). This variable is comprised of the following:
  4303. ${:term:`PN`}-${:term:`EXTENDPE`}${:term:`PV`}-${:term:`PR`}
  4304. :term:`PIXBUF_PACKAGES`
  4305. When inheriting the :ref:`pixbufcache <ref-classes-pixbufcache>`
  4306. class, this variable identifies packages that contain the pixbuf
  4307. loaders used with ``gdk-pixbuf``. By default, the ``pixbufcache``
  4308. class assumes that the loaders are in the recipe's main package (i.e.
  4309. ``${``\ :term:`PN`\ ``}``). Use this variable if the
  4310. loaders you need are in a package other than that main package.
  4311. :term:`PKG`
  4312. The name of the resulting package created by the OpenEmbedded build
  4313. system.
  4314. .. note::
  4315. When using the :term:`PKG` variable, you must use a package name override.
  4316. For example, when the :ref:`debian <ref-classes-debian>` class
  4317. renames the output package, it does so by setting
  4318. ``PKG_packagename``.
  4319. :term:`PKG_CONFIG_PATH`
  4320. The path to ``pkg-config`` files for the current build context.
  4321. ``pkg-config`` reads this variable from the environment.
  4322. :term:`PKGD`
  4323. Points to the destination directory for files to be packaged before
  4324. they are split into individual packages. This directory defaults to
  4325. the following::
  4326. ${WORKDIR}/package
  4327. Do not change this default.
  4328. :term:`PKGDATA_DIR`
  4329. Points to a shared, global-state directory that holds data generated
  4330. during the packaging process. During the packaging process, the
  4331. :ref:`ref-tasks-packagedata` task packages data
  4332. for each recipe and installs it into this temporary, shared area.
  4333. This directory defaults to the following, which you should not
  4334. change::
  4335. ${STAGING_DIR_HOST}/pkgdata
  4336. For examples of how this data is used, see the
  4337. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  4338. section in the Yocto Project Overview and Concepts Manual and the
  4339. ":ref:`dev-manual/common-tasks:viewing package information with \`\`oe-pkgdata-util\`\``"
  4340. section in the Yocto Project Development Tasks Manual. For more
  4341. information on the shared, global-state directory, see
  4342. :term:`STAGING_DIR_HOST`.
  4343. :term:`PKGDEST`
  4344. Points to the parent directory for files to be packaged after they
  4345. have been split into individual packages. This directory defaults to
  4346. the following::
  4347. ${WORKDIR}/packages-split
  4348. Under this directory, the build system creates directories for each
  4349. package specified in :term:`PACKAGES`. Do not change
  4350. this default.
  4351. :term:`PKGDESTWORK`
  4352. Points to a temporary work area where the
  4353. :ref:`ref-tasks-package` task saves package metadata.
  4354. The :term:`PKGDESTWORK` location defaults to the following::
  4355. ${WORKDIR}/pkgdata
  4356. Do not change this default.
  4357. The :ref:`ref-tasks-packagedata` task copies the
  4358. package metadata from :term:`PKGDESTWORK` to
  4359. :term:`PKGDATA_DIR` to make it available globally.
  4360. :term:`PKGE`
  4361. The epoch of the package(s) built by the recipe. By default, :term:`PKGE`
  4362. is set to :term:`PE`.
  4363. :term:`PKGR`
  4364. The revision of the package(s) built by the recipe. By default,
  4365. :term:`PKGR` is set to :term:`PR`.
  4366. :term:`PKGV`
  4367. The version of the package(s) built by the recipe. By default,
  4368. :term:`PKGV` is set to :term:`PV`.
  4369. :term:`PN`
  4370. This variable can have two separate functions depending on the
  4371. context: a recipe name or a resulting package name.
  4372. :term:`PN` refers to a recipe name in the context of a file used by the
  4373. OpenEmbedded build system as input to create a package. The name is
  4374. normally extracted from the recipe file name. For example, if the
  4375. recipe is named ``expat_2.0.1.bb``, then the default value of :term:`PN`
  4376. will be "expat".
  4377. The variable refers to a package name in the context of a file
  4378. created or produced by the OpenEmbedded build system.
  4379. If applicable, the :term:`PN` variable also contains any special suffix
  4380. or prefix. For example, using ``bash`` to build packages for the
  4381. native machine, :term:`PN` is ``bash-native``. Using ``bash`` to build
  4382. packages for the target and for Multilib, :term:`PN` would be ``bash``
  4383. and ``lib64-bash``, respectively.
  4384. :term:`PNBLACKLIST`
  4385. Lists recipes you do not want the OpenEmbedded build system to build.
  4386. This variable works in conjunction with the
  4387. :ref:`blacklist <ref-classes-blacklist>` class, which is inherited
  4388. globally.
  4389. To prevent a recipe from being built, use the :term:`PNBLACKLIST`
  4390. variable in your ``local.conf`` file. Here is an example that
  4391. prevents ``myrecipe`` from being built::
  4392. PNBLACKLIST[myrecipe] = "Not supported by our organization."
  4393. :term:`POPULATE_SDK_POST_HOST_COMMAND`
  4394. Specifies a list of functions to call once the OpenEmbedded build
  4395. system has created the host part of the SDK. You can specify
  4396. functions separated by semicolons::
  4397. POPULATE_SDK_POST_HOST_COMMAND += "function; ... "
  4398. If you need to pass the SDK path to a command within a function, you
  4399. can use ``${SDK_DIR}``, which points to the parent directory used by
  4400. the OpenEmbedded build system when creating SDK output. See the
  4401. :term:`SDK_DIR` variable for more information.
  4402. :term:`POPULATE_SDK_POST_TARGET_COMMAND`
  4403. Specifies a list of functions to call once the OpenEmbedded build
  4404. system has created the target part of the SDK. You can specify
  4405. functions separated by semicolons::
  4406. POPULATE_SDK_POST_TARGET_COMMAND += "function; ... "
  4407. If you need to pass the SDK path to a command within a function, you
  4408. can use ``${SDK_DIR}``, which points to the parent directory used by
  4409. the OpenEmbedded build system when creating SDK output. See the
  4410. :term:`SDK_DIR` variable for more information.
  4411. :term:`PR`
  4412. The revision of the recipe. The default value for this variable is
  4413. "r0". Subsequent revisions of the recipe conventionally have the
  4414. values "r1", "r2", and so forth. When :term:`PV` increases,
  4415. :term:`PR` is conventionally reset to "r0".
  4416. .. note::
  4417. The OpenEmbedded build system does not need the aid of :term:`PR`
  4418. to know when to rebuild a recipe. The build system uses the task
  4419. :ref:`input checksums <overview-manual/concepts:checksums (signatures)>` along with the
  4420. :ref:`stamp <structure-build-tmp-stamps>` and
  4421. :ref:`overview-manual/concepts:shared state cache`
  4422. mechanisms.
  4423. The :term:`PR` variable primarily becomes significant when a package
  4424. manager dynamically installs packages on an already built image. In
  4425. this case, :term:`PR`, which is the default value of
  4426. :term:`PKGR`, helps the package manager distinguish which
  4427. package is the most recent one in cases where many packages have the
  4428. same :term:`PV` (i.e. :term:`PKGV`). A component having many packages with
  4429. the same :term:`PV` usually means that the packages all install the same
  4430. upstream version, but with later (:term:`PR`) version packages including
  4431. packaging fixes.
  4432. .. note::
  4433. :term:`PR` does not need to be increased for changes that do not change the
  4434. package contents or metadata.
  4435. Because manually managing :term:`PR` can be cumbersome and error-prone,
  4436. an automated solution exists. See the
  4437. ":ref:`dev-manual/common-tasks:working with a pr service`" section
  4438. in the Yocto Project Development Tasks Manual for more information.
  4439. :term:`PREFERRED_PROVIDER`
  4440. If multiple recipes provide the same item, this variable determines
  4441. which recipe is preferred and thus provides the item (i.e. the
  4442. preferred provider). You should always suffix this variable with the
  4443. name of the provided item. And, you should define the variable using
  4444. the preferred recipe's name (:term:`PN`). Here is a common
  4445. example::
  4446. PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
  4447. In the previous example, multiple recipes are providing "virtual/kernel".
  4448. The :term:`PREFERRED_PROVIDER` variable is set with the name (:term:`PN`) of
  4449. the recipe you prefer to provide "virtual/kernel".
  4450. Following are more examples::
  4451. PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86"
  4452. PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
  4453. For more
  4454. information, see the ":ref:`dev-manual/common-tasks:using virtual providers`"
  4455. section in the Yocto Project Development Tasks Manual.
  4456. .. note::
  4457. If you use a ``virtual/\*`` item with :term:`PREFERRED_PROVIDER`, then any
  4458. recipe that :term:`PROVIDES` that item but is not selected (defined)
  4459. by :term:`PREFERRED_PROVIDER` is prevented from building, which is usually
  4460. desirable since this mechanism is designed to select between mutually
  4461. exclusive alternative providers.
  4462. :term:`PREFERRED_VERSION`
  4463. If there are multiple versions of a recipe available, this variable
  4464. determines which version should be given preference. You must always
  4465. suffix the variable with the :term:`PN` you want to select (`python` in
  4466. the first example below), and you should specify the :term:`PV`
  4467. accordingly (`3.4.0` in the example).
  4468. The :term:`PREFERRED_VERSION` variable supports limited wildcard use
  4469. through the "``%``" character. You can use the character to match any
  4470. number of characters, which can be useful when specifying versions
  4471. that contain long revision numbers that potentially change. Here are
  4472. two examples::
  4473. PREFERRED_VERSION_python = "3.4.0"
  4474. PREFERRED_VERSION_linux-yocto = "5.0%"
  4475. .. note::
  4476. The use of the "%" character is limited in that it only works at the end of the
  4477. string. You cannot use the wildcard character in any other
  4478. location of the string.
  4479. The specified version is matched against :term:`PV`, which
  4480. does not necessarily match the version part of the recipe's filename.
  4481. For example, consider two recipes ``foo_1.2.bb`` and ``foo_git.bb``
  4482. where ``foo_git.bb`` contains the following assignment::
  4483. PV = "1.1+git${SRCPV}"
  4484. In this case, the correct way to select
  4485. ``foo_git.bb`` is by using an assignment such as the following::
  4486. PREFERRED_VERSION_foo = "1.1+git%"
  4487. Compare that previous example
  4488. against the following incorrect example, which does not work::
  4489. PREFERRED_VERSION_foo = "git"
  4490. Sometimes the :term:`PREFERRED_VERSION` variable can be set by
  4491. configuration files in a way that is hard to change. You can use
  4492. :term:`OVERRIDES` to set a machine-specific
  4493. override. Here is an example::
  4494. PREFERRED_VERSION_linux-yocto_qemux86 = "5.0%"
  4495. Although not recommended, worst case, you can also use the
  4496. "forcevariable" override, which is the strongest override possible.
  4497. Here is an example::
  4498. PREFERRED_VERSION_linux-yocto_forcevariable = "5.0%"
  4499. .. note::
  4500. The ``\_forcevariable`` override is not handled specially. This override
  4501. only works because the default value of :term:`OVERRIDES` includes "forcevariable".
  4502. If a recipe with the specified version is not available, a warning
  4503. message will be shown. See :term:`REQUIRED_VERSION` if you want this
  4504. to be an error instead.
  4505. :term:`PREMIRRORS`
  4506. Specifies additional paths from which the OpenEmbedded build system
  4507. gets source code. When the build system searches for source code, it
  4508. first tries the local download directory. If that location fails, the
  4509. build system tries locations defined by :term:`PREMIRRORS`, the upstream
  4510. source, and then locations specified by
  4511. :term:`MIRRORS` in that order.
  4512. Assuming your distribution (:term:`DISTRO`) is "poky",
  4513. the default value for :term:`PREMIRRORS` is defined in the
  4514. ``conf/distro/poky.conf`` file in the ``meta-poky`` Git repository.
  4515. Typically, you could add a specific server for the build system to
  4516. attempt before any others by adding something like the following to
  4517. the ``local.conf`` configuration file in the
  4518. :term:`Build Directory`::
  4519. PREMIRRORS_prepend = "\
  4520. git://.*/.* http://www.yoctoproject.org/sources/ \n \
  4521. ftp://.*/.* http://www.yoctoproject.org/sources/ \n \
  4522. http://.*/.* http://www.yoctoproject.org/sources/ \n \
  4523. https://.*/.* http://www.yoctoproject.org/sources/ \n"
  4524. These changes cause the
  4525. build system to intercept Git, FTP, HTTP, and HTTPS requests and
  4526. direct them to the ``http://`` sources mirror. You can use
  4527. ``file://`` URLs to point to local directories or network shares as
  4528. well.
  4529. :term:`PRIORITY`
  4530. Indicates the importance of a package.
  4531. :term:`PRIORITY` is considered to be part of the distribution policy
  4532. because the importance of any given recipe depends on the purpose for
  4533. which the distribution is being produced. Thus, :term:`PRIORITY` is not
  4534. normally set within recipes.
  4535. You can set :term:`PRIORITY` to "required", "standard", "extra", and
  4536. "optional", which is the default.
  4537. :term:`PRIVATE_LIBS`
  4538. Specifies libraries installed within a recipe that should be ignored
  4539. by the OpenEmbedded build system's shared library resolver. This
  4540. variable is typically used when software being built by a recipe has
  4541. its own private versions of a library normally provided by another
  4542. recipe. In this case, you would not want the package containing the
  4543. private libraries to be set as a dependency on other unrelated
  4544. packages that should instead depend on the package providing the
  4545. standard version of the library.
  4546. Libraries specified in this variable should be specified by their
  4547. file name. For example, from the Firefox recipe in meta-browser::
  4548. PRIVATE_LIBS = "libmozjs.so \
  4549. libxpcom.so \
  4550. libnspr4.so \
  4551. libxul.so \
  4552. libmozalloc.so \
  4553. libplc4.so \
  4554. libplds4.so"
  4555. For more information, see the
  4556. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  4557. section in the Yocto Project Overview and Concepts Manual.
  4558. :term:`PROVIDES`
  4559. A list of aliases by which a particular recipe can be known. By
  4560. default, a recipe's own :term:`PN` is implicitly already in its
  4561. :term:`PROVIDES` list and therefore does not need to mention that it
  4562. provides itself. If a recipe uses :term:`PROVIDES`, the additional
  4563. aliases are synonyms for the recipe and can be useful for satisfying
  4564. dependencies of other recipes during the build as specified by
  4565. :term:`DEPENDS`.
  4566. Consider the following example :term:`PROVIDES` statement from the recipe
  4567. file ``eudev_3.2.9.bb``::
  4568. PROVIDES += "udev"
  4569. The :term:`PROVIDES` statement
  4570. results in the "eudev" recipe also being available as simply "udev".
  4571. .. note::
  4572. A recipe's own recipe name (:term:`PN`) is always implicitly prepended
  4573. to `PROVIDES`, so while using "+=" in the above example may not be
  4574. strictly necessary it is recommended to avoid confusion.
  4575. In addition to providing recipes under alternate names, the
  4576. :term:`PROVIDES` mechanism is also used to implement virtual targets. A
  4577. virtual target is a name that corresponds to some particular
  4578. functionality (e.g. a Linux kernel). Recipes that provide the
  4579. functionality in question list the virtual target in :term:`PROVIDES`.
  4580. Recipes that depend on the functionality in question can include the
  4581. virtual target in :term:`DEPENDS` to leave the choice of provider open.
  4582. Conventionally, virtual targets have names on the form
  4583. "virtual/function" (e.g. "virtual/kernel"). The slash is simply part
  4584. of the name and has no syntactical significance.
  4585. The :term:`PREFERRED_PROVIDER` variable is
  4586. used to select which particular recipe provides a virtual target.
  4587. .. note::
  4588. A corresponding mechanism for virtual runtime dependencies
  4589. (packages) exists. However, the mechanism does not depend on any
  4590. special functionality beyond ordinary variable assignments. For
  4591. example, ``VIRTUAL-RUNTIME_dev_manager`` refers to the package of
  4592. the component that manages the ``/dev`` directory.
  4593. Setting the "preferred provider" for runtime dependencies is as
  4594. simple as using the following assignment in a configuration file::
  4595. VIRTUAL-RUNTIME_dev_manager = "udev"
  4596. :term:`PRSERV_HOST`
  4597. The network based :term:`PR` service host and port.
  4598. The ``conf/local.conf.sample.extended`` configuration file in the
  4599. :term:`Source Directory` shows how the
  4600. :term:`PRSERV_HOST` variable is set::
  4601. PRSERV_HOST = "localhost:0"
  4602. You must
  4603. set the variable if you want to automatically start a local :ref:`PR
  4604. service <dev-manual/common-tasks:working with a pr service>`. You can
  4605. set :term:`PRSERV_HOST` to other values to use a remote PR service.
  4606. :term:`PSEUDO_IGNORE_PATHS`
  4607. A comma-separated (without spaces) list of path prefixes that should be ignored
  4608. by pseudo when monitoring and recording file operations, in order to avoid
  4609. problems with files being written to outside of the pseudo context and
  4610. reduce pseudo's overhead. A path is ignored if it matches any prefix in the list
  4611. and can include partial directory (or file) names.
  4612. :term:`PTEST_ENABLED`
  4613. Specifies whether or not :ref:`Package
  4614. Test <dev-manual/common-tasks:testing packages with ptest>` (ptest)
  4615. functionality is enabled when building a recipe. You should not set
  4616. this variable directly. Enabling and disabling building Package Tests
  4617. at build time should be done by adding "ptest" to (or removing it
  4618. from) :term:`DISTRO_FEATURES`.
  4619. :term:`PV`
  4620. The version of the recipe. The version is normally extracted from the
  4621. recipe filename. For example, if the recipe is named
  4622. ``expat_2.0.1.bb``, then the default value of :term:`PV` will be "2.0.1".
  4623. :term:`PV` is generally not overridden within a recipe unless it is
  4624. building an unstable (i.e. development) version from a source code
  4625. repository (e.g. Git or Subversion).
  4626. :term:`PV` is the default value of the :term:`PKGV` variable.
  4627. :term:`PYTHON_ABI`
  4628. When used by recipes that inherit the
  4629. :ref:`distutils3 <ref-classes-distutils3>`,
  4630. :ref:`setuptools3 <ref-classes-setuptools3>` classes, denotes the
  4631. Application Binary Interface (ABI) currently in use for Python. By
  4632. default, the ABI is "m". You do not have to set this variable as the
  4633. OpenEmbedded build system sets it for you.
  4634. The OpenEmbedded build system uses the ABI to construct directory
  4635. names used when installing the Python headers and libraries in
  4636. sysroot (e.g. ``.../python3.3m/...``).
  4637. Recipes that inherit the ``distutils3`` class during cross-builds also
  4638. use this variable to locate the headers and libraries of the
  4639. appropriate Python that the extension is targeting.
  4640. :term:`PYTHON_PN`
  4641. When used by recipes that inherit the
  4642. `distutils3 <ref-classes-distutils3>`,
  4643. :ref:`setuptools3 <ref-classes-setuptools3>` classes, specifies the
  4644. major Python version being built. For Python 3.x, :term:`PYTHON_PN` would
  4645. be "python3". You do not have to set this variable as the
  4646. OpenEmbedded build system automatically sets it for you.
  4647. The variable allows recipes to use common infrastructure such as the
  4648. following::
  4649. DEPENDS += "${PYTHON_PN}-native"
  4650. In the previous example,
  4651. the version of the dependency is :term:`PYTHON_PN`.
  4652. :term:`RANLIB`
  4653. The minimal command and arguments to run ``ranlib``.
  4654. :term:`RCONFLICTS`
  4655. The list of packages that conflict with packages. Note that packages
  4656. will not be installed if conflicting packages are not first removed.
  4657. Like all package-controlling variables, you must always use them in
  4658. conjunction with a package name override. Here is an example::
  4659. RCONFLICTS_${PN} = "another_conflicting_package_name"
  4660. BitBake, which the OpenEmbedded build system uses, supports
  4661. specifying versioned dependencies. Although the syntax varies
  4662. depending on the packaging format, BitBake hides these differences
  4663. from you. Here is the general syntax to specify versions with the
  4664. :term:`RCONFLICTS` variable::
  4665. RCONFLICTS_${PN} = "package (operator version)"
  4666. For ``operator``, you can specify the following:
  4667. - =
  4668. - <
  4669. - >
  4670. - <=
  4671. - >=
  4672. For example, the following sets up a dependency on version 1.2 or
  4673. greater of the package ``foo``::
  4674. RCONFLICTS_${PN} = "foo (>= 1.2)"
  4675. :term:`RDEPENDS`
  4676. Lists runtime dependencies of a package. These dependencies are other
  4677. packages that must be installed in order for the package to function
  4678. correctly. As an example, the following assignment declares that the
  4679. package ``foo`` needs the packages ``bar`` and ``baz`` to be
  4680. installed::
  4681. RDEPENDS_foo = "bar baz"
  4682. The most common types of package
  4683. runtime dependencies are automatically detected and added. Therefore,
  4684. most recipes do not need to set :term:`RDEPENDS`. For more information,
  4685. see the
  4686. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  4687. section in the Yocto Project Overview and Concepts Manual.
  4688. The practical effect of the above :term:`RDEPENDS` assignment is that
  4689. ``bar`` and ``baz`` will be declared as dependencies inside the
  4690. package ``foo`` when it is written out by one of the
  4691. :ref:`do_package_write_\* <ref-tasks-package_write_deb>` tasks.
  4692. Exactly how this is done depends on which package format is used,
  4693. which is determined by
  4694. :term:`PACKAGE_CLASSES`. When the
  4695. corresponding package manager installs the package, it will know to
  4696. also install the packages on which it depends.
  4697. To ensure that the packages ``bar`` and ``baz`` get built, the
  4698. previous :term:`RDEPENDS` assignment also causes a task dependency to be
  4699. added. This dependency is from the recipe's
  4700. :ref:`ref-tasks-build` (not to be confused with
  4701. :ref:`ref-tasks-compile`) task to the
  4702. ``do_package_write_*`` task of the recipes that build ``bar`` and
  4703. ``baz``.
  4704. The names of the packages you list within :term:`RDEPENDS` must be the
  4705. names of other packages - they cannot be recipe names. Although
  4706. package names and recipe names usually match, the important point
  4707. here is that you are providing package names within the :term:`RDEPENDS`
  4708. variable. For an example of the default list of packages created from
  4709. a recipe, see the :term:`PACKAGES` variable.
  4710. Because the :term:`RDEPENDS` variable applies to packages being built,
  4711. you should always use the variable in a form with an attached package
  4712. name (remember that a single recipe can build multiple packages). For
  4713. example, suppose you are building a development package that depends
  4714. on the ``perl`` package. In this case, you would use the following
  4715. :term:`RDEPENDS` statement::
  4716. RDEPENDS_${PN}-dev += "perl"
  4717. In the example,
  4718. the development package depends on the ``perl`` package. Thus, the
  4719. :term:`RDEPENDS` variable has the ``${PN}-dev`` package name as part of
  4720. the variable.
  4721. .. note::
  4722. ``RDEPENDS_${PN}-dev`` includes ``${``\ :term:`PN`\ ``}``
  4723. by default. This default is set in the BitBake configuration file
  4724. (``meta/conf/bitbake.conf``). Be careful not to accidentally remove
  4725. ``${PN}`` when modifying ``RDEPENDS_${PN}-dev``. Use the "+=" operator
  4726. rather than the "=" operator.
  4727. The package names you use with :term:`RDEPENDS` must appear as they would
  4728. in the :term:`PACKAGES` variable. The :term:`PKG` variable
  4729. allows a different name to be used for the final package (e.g. the
  4730. :ref:`debian <ref-classes-debian>` class uses this to rename
  4731. packages), but this final package name cannot be used with
  4732. :term:`RDEPENDS`, which makes sense as :term:`RDEPENDS` is meant to be
  4733. independent of the package format used.
  4734. BitBake, which the OpenEmbedded build system uses, supports
  4735. specifying versioned dependencies. Although the syntax varies
  4736. depending on the packaging format, BitBake hides these differences
  4737. from you. Here is the general syntax to specify versions with the
  4738. :term:`RDEPENDS` variable::
  4739. RDEPENDS_${PN} = "package (operator version)"
  4740. For ``operator``, you can specify the following:
  4741. - =
  4742. - <
  4743. - >
  4744. - <=
  4745. - >=
  4746. For version, provide the version number.
  4747. .. note::
  4748. You can use :term:`EXTENDPKGV` to provide a full package version
  4749. specification.
  4750. For example, the following sets up a dependency on version 1.2 or
  4751. greater of the package ``foo``::
  4752. RDEPENDS_${PN} = "foo (>= 1.2)"
  4753. For information on build-time dependencies, see the
  4754. :term:`DEPENDS` variable. You can also see the
  4755. ":ref:`Tasks <bitbake:bitbake-user-manual/bitbake-user-manual-metadata:tasks>`" and
  4756. ":ref:`Dependencies <bitbake:bitbake-user-manual/bitbake-user-manual-execution:dependencies>`" sections in the
  4757. BitBake User Manual for additional information on tasks and
  4758. dependencies.
  4759. :term:`REQUIRED_DISTRO_FEATURES`
  4760. When inheriting the
  4761. :ref:`features_check <ref-classes-features_check>`
  4762. class, this variable identifies distribution features that must exist
  4763. in the current configuration in order for the OpenEmbedded build
  4764. system to build the recipe. In other words, if the
  4765. :term:`REQUIRED_DISTRO_FEATURES` variable lists a feature that does not
  4766. appear in :term:`DISTRO_FEATURES` within the current configuration, then
  4767. the recipe will be skipped, and if the build system attempts to build
  4768. the recipe then an error will be triggered.
  4769. :term:`REQUIRED_VERSION`
  4770. If there are multiple versions of a recipe available, this variable
  4771. determines which version should be given preference.
  4772. :term:`REQUIRED_VERSION` works in exactly the same manner as
  4773. :term:`PREFERRED_VERSION`, except that if the specified version is not
  4774. available then an error message is shown and the build fails
  4775. immediately.
  4776. If both :term:`REQUIRED_VERSION` and :term:`PREFERRED_VERSION` are set
  4777. for the same recipe, the :term:`REQUIRED_VERSION` value applies.
  4778. :term:`RM_WORK_EXCLUDE`
  4779. With ``rm_work`` enabled, this variable specifies a list of recipes
  4780. whose work directories should not be removed. See the
  4781. ":ref:`rm_work.bbclass <ref-classes-rm-work>`" section for more
  4782. details.
  4783. :term:`ROOT_HOME`
  4784. Defines the root home directory. By default, this directory is set as
  4785. follows in the BitBake configuration file::
  4786. ROOT_HOME ??= "/home/root"
  4787. .. note::
  4788. This default value is likely used because some embedded solutions
  4789. prefer to have a read-only root filesystem and prefer to keep
  4790. writeable data in one place.
  4791. You can override the default by setting the variable in any layer or
  4792. in the ``local.conf`` file. Because the default is set using a "weak"
  4793. assignment (i.e. "??="), you can use either of the following forms to
  4794. define your override::
  4795. ROOT_HOME = "/root"
  4796. ROOT_HOME ?= "/root"
  4797. These
  4798. override examples use ``/root``, which is probably the most commonly
  4799. used override.
  4800. :term:`ROOTFS`
  4801. Indicates a filesystem image to include as the root filesystem.
  4802. The :term:`ROOTFS` variable is an optional variable used with the
  4803. :ref:`image-live <ref-classes-image-live>` class.
  4804. :term:`ROOTFS_POSTINSTALL_COMMAND`
  4805. Specifies a list of functions to call after the OpenEmbedded build
  4806. system has installed packages. You can specify functions separated by
  4807. semicolons::
  4808. ROOTFS_POSTINSTALL_COMMAND += "function; ... "
  4809. If you need to pass the root filesystem path to a command within a
  4810. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  4811. directory that becomes the root filesystem image. See the
  4812. :term:`IMAGE_ROOTFS` variable for more
  4813. information.
  4814. :term:`ROOTFS_POSTPROCESS_COMMAND`
  4815. Specifies a list of functions to call once the OpenEmbedded build
  4816. system has created the root filesystem. You can specify functions
  4817. separated by semicolons::
  4818. ROOTFS_POSTPROCESS_COMMAND += "function; ... "
  4819. If you need to pass the root filesystem path to a command within a
  4820. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  4821. directory that becomes the root filesystem image. See the
  4822. :term:`IMAGE_ROOTFS` variable for more
  4823. information.
  4824. :term:`ROOTFS_POSTUNINSTALL_COMMAND`
  4825. Specifies a list of functions to call after the OpenEmbedded build
  4826. system has removed unnecessary packages. When runtime package
  4827. management is disabled in the image, several packages are removed
  4828. including ``base-passwd``, ``shadow``, and ``update-alternatives``.
  4829. You can specify functions separated by semicolons::
  4830. ROOTFS_POSTUNINSTALL_COMMAND += "function; ... "
  4831. If you need to pass the root filesystem path to a command within a
  4832. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  4833. directory that becomes the root filesystem image. See the
  4834. :term:`IMAGE_ROOTFS` variable for more
  4835. information.
  4836. :term:`ROOTFS_PREPROCESS_COMMAND`
  4837. Specifies a list of functions to call before the OpenEmbedded build
  4838. system has created the root filesystem. You can specify functions
  4839. separated by semicolons::
  4840. ROOTFS_PREPROCESS_COMMAND += "function; ... "
  4841. If you need to pass the root filesystem path to a command within a
  4842. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  4843. directory that becomes the root filesystem image. See the
  4844. :term:`IMAGE_ROOTFS` variable for more
  4845. information.
  4846. :term:`RPROVIDES`
  4847. A list of package name aliases that a package also provides. These
  4848. aliases are useful for satisfying runtime dependencies of other
  4849. packages both during the build and on the target (as specified by
  4850. :term:`RDEPENDS`).
  4851. .. note::
  4852. A package's own name is implicitly already in its :term:`RPROVIDES` list.
  4853. As with all package-controlling variables, you must always use the
  4854. variable in conjunction with a package name override. Here is an
  4855. example::
  4856. RPROVIDES_${PN} = "widget-abi-2"
  4857. :term:`RRECOMMENDS`
  4858. A list of packages that extends the usability of a package being
  4859. built. The package being built does not depend on this list of
  4860. packages in order to successfully build, but rather uses them for
  4861. extended usability. To specify runtime dependencies for packages, see
  4862. the :term:`RDEPENDS` variable.
  4863. The package manager will automatically install the :term:`RRECOMMENDS`
  4864. list of packages when installing the built package. However, you can
  4865. prevent listed packages from being installed by using the
  4866. :term:`BAD_RECOMMENDATIONS`,
  4867. :term:`NO_RECOMMENDATIONS`, and
  4868. :term:`PACKAGE_EXCLUDE` variables.
  4869. Packages specified in :term:`RRECOMMENDS` need not actually be produced.
  4870. However, there must be a recipe providing each package, either
  4871. through the :term:`PACKAGES` or
  4872. :term:`PACKAGES_DYNAMIC` variables or the
  4873. :term:`RPROVIDES` variable, or an error will occur
  4874. during the build. If such a recipe does exist and the package is not
  4875. produced, the build continues without error.
  4876. Because the :term:`RRECOMMENDS` variable applies to packages being built,
  4877. you should always attach an override to the variable to specify the
  4878. particular package whose usability is being extended. For example,
  4879. suppose you are building a development package that is extended to
  4880. support wireless functionality. In this case, you would use the
  4881. following::
  4882. RRECOMMENDS_${PN}-dev += "wireless_package_name"
  4883. In the
  4884. example, the package name (``${PN}-dev``) must appear as it would in
  4885. the :term:`PACKAGES` namespace before any renaming of the output package
  4886. by classes such as ``debian.bbclass``.
  4887. BitBake, which the OpenEmbedded build system uses, supports
  4888. specifying versioned recommends. Although the syntax varies depending
  4889. on the packaging format, BitBake hides these differences from you.
  4890. Here is the general syntax to specify versions with the
  4891. :term:`RRECOMMENDS` variable::
  4892. RRECOMMENDS_${PN} = "package (operator version)"
  4893. For ``operator``, you can specify the following:
  4894. - =
  4895. - <
  4896. - >
  4897. - <=
  4898. - >=
  4899. For example, the following sets up a recommend on version 1.2 or
  4900. greater of the package ``foo``::
  4901. RRECOMMENDS_${PN} = "foo (>= 1.2)"
  4902. :term:`RREPLACES`
  4903. A list of packages replaced by a package. The package manager uses
  4904. this variable to determine which package should be installed to
  4905. replace other package(s) during an upgrade. In order to also have the
  4906. other package(s) removed at the same time, you must add the name of
  4907. the other package to the :term:`RCONFLICTS` variable.
  4908. As with all package-controlling variables, you must use this variable
  4909. in conjunction with a package name override. Here is an example::
  4910. RREPLACES_${PN} = "other_package_being_replaced"
  4911. BitBake, which the OpenEmbedded build system uses, supports
  4912. specifying versioned replacements. Although the syntax varies
  4913. depending on the packaging format, BitBake hides these differences
  4914. from you. Here is the general syntax to specify versions with the
  4915. :term:`RREPLACES` variable::
  4916. RREPLACES_${PN} = "package (operator version)"
  4917. For ``operator``, you can specify the following:
  4918. - =
  4919. - <
  4920. - >
  4921. - <=
  4922. - >=
  4923. For example, the following sets up a replacement using version 1.2
  4924. or greater of the package ``foo``::
  4925. RREPLACES_${PN} = "foo (>= 1.2)"
  4926. :term:`RSUGGESTS`
  4927. A list of additional packages that you can suggest for installation
  4928. by the package manager at the time a package is installed. Not all
  4929. package managers support this functionality.
  4930. As with all package-controlling variables, you must always use this
  4931. variable in conjunction with a package name override. Here is an
  4932. example::
  4933. RSUGGESTS_${PN} = "useful_package another_package"
  4934. :term:`S`
  4935. The location in the :term:`Build Directory` where
  4936. unpacked recipe source code resides. By default, this directory is
  4937. ``${``\ :term:`WORKDIR`\ ``}/${``\ :term:`BPN`\ ``}-${``\ :term:`PV`\ ``}``,
  4938. where ``${BPN}`` is the base recipe name and ``${PV}`` is the recipe
  4939. version. If the source tarball extracts the code to a directory named
  4940. anything other than ``${BPN}-${PV}``, or if the source code is
  4941. fetched from an SCM such as Git or Subversion, then you must set
  4942. :term:`S` in the recipe so that the OpenEmbedded build system knows where
  4943. to find the unpacked source.
  4944. As an example, assume a :term:`Source Directory`
  4945. top-level folder named ``poky`` and a default Build Directory at
  4946. ``poky/build``. In this case, the work directory the build system
  4947. uses to keep the unpacked recipe for ``db`` is the following::
  4948. poky/build/tmp/work/qemux86-poky-linux/db/5.1.19-r3/db-5.1.19
  4949. The unpacked source code resides in the ``db-5.1.19`` folder.
  4950. This next example assumes a Git repository. By default, Git
  4951. repositories are cloned to ``${WORKDIR}/git`` during
  4952. :ref:`ref-tasks-fetch`. Since this path is different
  4953. from the default value of :term:`S`, you must set it specifically so the
  4954. source can be located::
  4955. SRC_URI = "git://path/to/repo.git"
  4956. S = "${WORKDIR}/git"
  4957. :term:`SANITY_REQUIRED_UTILITIES`
  4958. Specifies a list of command-line utilities that should be checked for
  4959. during the initial sanity checking process when running BitBake. If
  4960. any of the utilities are not installed on the build host, then
  4961. BitBake immediately exits with an error.
  4962. :term:`SANITY_TESTED_DISTROS`
  4963. A list of the host distribution identifiers that the build system has
  4964. been tested against. Identifiers consist of the host distributor ID
  4965. followed by the release, as reported by the ``lsb_release`` tool or
  4966. as read from ``/etc/lsb-release``. Separate the list items with
  4967. explicit newline characters (``\n``). If :term:`SANITY_TESTED_DISTROS` is
  4968. not empty and the current value of
  4969. :term:`NATIVELSBSTRING` does not appear in the
  4970. list, then the build system reports a warning that indicates the
  4971. current host distribution has not been tested as a build host.
  4972. :term:`SDK_ARCH`
  4973. The target architecture for the SDK. Typically, you do not directly
  4974. set this variable. Instead, use :term:`SDKMACHINE`.
  4975. :term:`SDK_CUSTOM_TEMPLATECONF`
  4976. When building the extensible SDK, if :term:`SDK_CUSTOM_TEMPLATECONF` is set to
  4977. "1" and a ``conf/templateconf.conf`` file exists in the build directory
  4978. (:term:`TOPDIR`) then this will be copied into the SDK.
  4979. :term:`SDK_DEPLOY`
  4980. The directory set up and used by the
  4981. :ref:`populate_sdk_base <ref-classes-populate-sdk>` class to which
  4982. the SDK is deployed. The ``populate_sdk_base`` class defines
  4983. :term:`SDK_DEPLOY` as follows::
  4984. SDK_DEPLOY = "${TMPDIR}/deploy/sdk"
  4985. :term:`SDK_DIR`
  4986. The parent directory used by the OpenEmbedded build system when
  4987. creating SDK output. The
  4988. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class defines
  4989. the variable as follows::
  4990. SDK_DIR = "${WORKDIR}/sdk"
  4991. .. note::
  4992. The :term:`SDK_DIR` directory is a temporary directory as it is part of
  4993. :term:`WORKDIR`. The final output directory is :term:`SDK_DEPLOY`.
  4994. :term:`SDK_EXT_TYPE`
  4995. Controls whether or not shared state artifacts are copied into the
  4996. extensible SDK. The default value of "full" copies all of the
  4997. required shared state artifacts into the extensible SDK. The value
  4998. "minimal" leaves these artifacts out of the SDK.
  4999. .. note::
  5000. If you set the variable to "minimal", you need to ensure
  5001. :term:`SSTATE_MIRRORS` is set in the SDK's configuration to enable the
  5002. artifacts to be fetched as needed.
  5003. :term:`SDK_HOST_MANIFEST`
  5004. The manifest file for the host part of the SDK. This file lists all
  5005. the installed packages that make up the host part of the SDK. The
  5006. file contains package information on a line-per-package basis as
  5007. follows::
  5008. packagename packagearch version
  5009. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  5010. defines the manifest file as follows::
  5011. SDK_HOST_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.host.manifest"
  5012. The location is derived using the :term:`SDK_DEPLOY` and
  5013. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  5014. :term:`SDK_INCLUDE_PKGDATA`
  5015. When set to "1", specifies to include the packagedata for all recipes
  5016. in the "world" target in the extensible SDK. Including this data
  5017. allows the ``devtool search`` command to find these recipes in search
  5018. results, as well as allows the ``devtool add`` command to map
  5019. dependencies more effectively.
  5020. .. note::
  5021. Enabling the :term:`SDK_INCLUDE_PKGDATA`
  5022. variable significantly increases build time because all of world
  5023. needs to be built. Enabling the variable also slightly increases
  5024. the size of the extensible SDK.
  5025. :term:`SDK_INCLUDE_TOOLCHAIN`
  5026. When set to "1", specifies to include the toolchain in the extensible
  5027. SDK. Including the toolchain is useful particularly when
  5028. :term:`SDK_EXT_TYPE` is set to "minimal" to keep
  5029. the SDK reasonably small but you still want to provide a usable
  5030. toolchain. For example, suppose you want to use the toolchain from an
  5031. IDE or from other tools and you do not want to perform additional
  5032. steps to install the toolchain.
  5033. The :term:`SDK_INCLUDE_TOOLCHAIN` variable defaults to "0" if
  5034. :term:`SDK_EXT_TYPE` is set to "minimal", and defaults to "1" if
  5035. :term:`SDK_EXT_TYPE` is set to "full".
  5036. :term:`SDK_INHERIT_BLACKLIST`
  5037. A list of classes to remove from the :term:`INHERIT`
  5038. value globally within the extensible SDK configuration. The
  5039. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class sets the
  5040. default value::
  5041. SDK_INHERIT_BLACKLIST ?= "buildhistory icecc"
  5042. Some classes are not generally applicable within the extensible SDK
  5043. context. You can use this variable to disable those classes.
  5044. For additional information on how to customize the extensible SDK's
  5045. configuration, see the
  5046. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  5047. section in the Yocto Project Application Development and the
  5048. Extensible Software Development Kit (eSDK) manual.
  5049. :term:`SDK_LOCAL_CONF_BLACKLIST`
  5050. A list of variables not allowed through from the OpenEmbedded build
  5051. system configuration into the extensible SDK configuration. Usually,
  5052. these are variables that are specific to the machine on which the
  5053. build system is running and thus would be potentially problematic
  5054. within the extensible SDK.
  5055. By default, :term:`SDK_LOCAL_CONF_BLACKLIST` is set in the
  5056. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class and
  5057. excludes the following variables:
  5058. - :term:`CONF_VERSION`
  5059. - :term:`BB_NUMBER_THREADS`
  5060. - :term:`bitbake:BB_NUMBER_PARSE_THREADS`
  5061. - :term:`PARALLEL_MAKE`
  5062. - :term:`PRSERV_HOST`
  5063. - :term:`SSTATE_MIRRORS` :term:`DL_DIR`
  5064. - :term:`SSTATE_DIR` :term:`TMPDIR`
  5065. - :term:`BB_SERVER_TIMEOUT`
  5066. For additional information on how to customize the extensible SDK's
  5067. configuration, see the
  5068. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  5069. section in the Yocto Project Application Development and the
  5070. Extensible Software Development Kit (eSDK) manual.
  5071. :term:`SDK_LOCAL_CONF_WHITELIST`
  5072. A list of variables allowed through from the OpenEmbedded build
  5073. system configuration into the extensible SDK configuration. By
  5074. default, the list of variables is empty and is set in the
  5075. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class.
  5076. This list overrides the variables specified using the
  5077. :term:`SDK_LOCAL_CONF_BLACKLIST`
  5078. variable as well as any variables identified by automatic
  5079. blacklisting due to the "/" character being found at the start of the
  5080. value, which is usually indicative of being a path and thus might not
  5081. be valid on the system where the SDK is installed.
  5082. For additional information on how to customize the extensible SDK's
  5083. configuration, see the
  5084. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  5085. section in the Yocto Project Application Development and the
  5086. Extensible Software Development Kit (eSDK) manual.
  5087. :term:`SDK_NAME`
  5088. The base name for SDK output files. The name is derived from the
  5089. :term:`DISTRO`, :term:`TCLIBC`,
  5090. :term:`SDK_ARCH`,
  5091. :term:`IMAGE_BASENAME`, and
  5092. :term:`TUNE_PKGARCH` variables::
  5093. SDK_NAME = "${DISTRO}-${TCLIBC}-${SDK_ARCH}-${IMAGE_BASENAME}-${TUNE_PKGARCH}"
  5094. :term:`SDK_OS`
  5095. Specifies the operating system for which the SDK will be built. The
  5096. default value is the value of :term:`BUILD_OS`.
  5097. :term:`SDK_OUTPUT`
  5098. The location used by the OpenEmbedded build system when creating SDK
  5099. output. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>`
  5100. class defines the variable as follows::
  5101. SDK_DIR = "${WORKDIR}/sdk"
  5102. SDK_OUTPUT = "${SDK_DIR}/image"
  5103. SDK_DEPLOY = "${DEPLOY_DIR}/sdk"
  5104. .. note::
  5105. The :term:`SDK_OUTPUT` directory is a temporary directory as it is part of
  5106. :term:`WORKDIR` by way of :term:`SDK_DIR`. The final output directory is
  5107. :term:`SDK_DEPLOY`.
  5108. :term:`SDK_PACKAGE_ARCHS`
  5109. Specifies a list of architectures compatible with the SDK machine.
  5110. This variable is set automatically and should not normally be
  5111. hand-edited. Entries are separated using spaces and listed in order
  5112. of priority. The default value for :term:`SDK_PACKAGE_ARCHS` is "all any
  5113. noarch ${SDK_ARCH}-${SDKPKGSUFFIX}".
  5114. :term:`SDK_POSTPROCESS_COMMAND`
  5115. Specifies a list of functions to call once the OpenEmbedded build
  5116. system creates the SDK. You can specify functions separated by
  5117. semicolons: SDK_POSTPROCESS_COMMAND += "function; ... "
  5118. If you need to pass an SDK path to a command within a function, you
  5119. can use ``${SDK_DIR}``, which points to the parent directory used by
  5120. the OpenEmbedded build system when creating SDK output. See the
  5121. :term:`SDK_DIR` variable for more information.
  5122. :term:`SDK_PREFIX`
  5123. The toolchain binary prefix used for ``nativesdk`` recipes. The
  5124. OpenEmbedded build system uses the :term:`SDK_PREFIX` value to set the
  5125. :term:`TARGET_PREFIX` when building
  5126. ``nativesdk`` recipes. The default value is "${SDK_SYS}-".
  5127. :term:`SDK_RECRDEP_TASKS`
  5128. A list of shared state tasks added to the extensible SDK. By default,
  5129. the following tasks are added:
  5130. - do_populate_lic
  5131. - do_package_qa
  5132. - do_populate_sysroot
  5133. - do_deploy
  5134. Despite the default value of "" for the
  5135. :term:`SDK_RECRDEP_TASKS` variable, the above four tasks are always added
  5136. to the SDK. To specify tasks beyond these four, you need to use the
  5137. :term:`SDK_RECRDEP_TASKS` variable (e.g. you are defining additional
  5138. tasks that are needed in order to build
  5139. :term:`SDK_TARGETS`).
  5140. :term:`SDK_SYS`
  5141. Specifies the system, including the architecture and the operating
  5142. system, for which the SDK will be built.
  5143. The OpenEmbedded build system automatically sets this variable based
  5144. on :term:`SDK_ARCH`,
  5145. :term:`SDK_VENDOR`, and
  5146. :term:`SDK_OS`. You do not need to set the :term:`SDK_SYS`
  5147. variable yourself.
  5148. :term:`SDK_TARGET_MANIFEST`
  5149. The manifest file for the target part of the SDK. This file lists all
  5150. the installed packages that make up the target part of the SDK. The
  5151. file contains package information on a line-per-package basis as
  5152. follows::
  5153. packagename packagearch version
  5154. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  5155. defines the manifest file as follows::
  5156. SDK_TARGET_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.target.manifest"
  5157. The location is derived using the :term:`SDK_DEPLOY` and
  5158. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  5159. :term:`SDK_TARGETS`
  5160. A list of targets to install from shared state as part of the
  5161. standard or extensible SDK installation. The default value is "${PN}"
  5162. (i.e. the image from which the SDK is built).
  5163. The :term:`SDK_TARGETS` variable is an internal variable and typically
  5164. would not be changed.
  5165. :term:`SDK_TITLE`
  5166. The title to be printed when running the SDK installer. By default,
  5167. this title is based on the :term:`DISTRO_NAME` or
  5168. :term:`DISTRO` variable and is set in the
  5169. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  5170. follows::
  5171. SDK_TITLE ??= "${@d.getVar('DISTRO_NAME') or d.getVar('DISTRO')} SDK"
  5172. For the default distribution "poky",
  5173. :term:`SDK_TITLE` is set to "Poky (Yocto Project Reference Distro)".
  5174. For information on how to change this default title, see the
  5175. ":ref:`sdk-manual/appendix-customizing:changing the extensible sdk installer title`"
  5176. section in the Yocto Project Application Development and the
  5177. Extensible Software Development Kit (eSDK) manual.
  5178. :term:`SDK_UPDATE_URL`
  5179. An optional URL for an update server for the extensible SDK. If set,
  5180. the value is used as the default update server when running
  5181. ``devtool sdk-update`` within the extensible SDK.
  5182. :term:`SDK_VENDOR`
  5183. Specifies the name of the SDK vendor.
  5184. :term:`SDK_VERSION`
  5185. Specifies the version of the SDK. The Poky distribution configuration file
  5186. (``/meta-poky/conf/distro/poky.conf``) sets the default
  5187. :term:`SDK_VERSION` as follows::
  5188. SDK_VERSION = "${@d.getVar('DISTRO_VERSION').replace('snapshot-${METADATA_REVISION}', 'snapshot')}"
  5189. For additional information, see the
  5190. :term:`DISTRO_VERSION` and
  5191. :term:`METADATA_REVISION` variables.
  5192. :term:`SDKEXTPATH`
  5193. The default installation directory for the Extensible SDK. By
  5194. default, this directory is based on the :term:`DISTRO`
  5195. variable and is set in the
  5196. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  5197. follows::
  5198. SDKEXTPATH ??= "~/${@d.getVar('DISTRO')}_sdk"
  5199. For the
  5200. default distribution "poky", the :term:`SDKEXTPATH` is set to "poky_sdk".
  5201. For information on how to change this default directory, see the
  5202. ":ref:`sdk-manual/appendix-customizing:changing the default sdk installation directory`"
  5203. section in the Yocto Project Application Development and the
  5204. Extensible Software Development Kit (eSDK) manual.
  5205. :term:`SDKIMAGE_FEATURES`
  5206. Equivalent to :term:`IMAGE_FEATURES`. However, this variable applies to
  5207. the SDK generated from an image using the following command::
  5208. $ bitbake -c populate_sdk imagename
  5209. :term:`SDKMACHINE`
  5210. The machine for which the SDK is built. In other words, the SDK is
  5211. built such that it runs on the target you specify with the
  5212. :term:`SDKMACHINE` value. The value points to a corresponding ``.conf``
  5213. file under ``conf/machine-sdk/``.
  5214. You can use "i686" and "x86_64" as possible values for this variable.
  5215. The variable defaults to "i686" and is set in the local.conf file in
  5216. the Build Directory.
  5217. ::
  5218. SDKMACHINE ?= "i686"
  5219. .. note::
  5220. You cannot set the :term:`SDKMACHINE`
  5221. variable in your distribution configuration file. If you do, the
  5222. configuration will not take affect.
  5223. :term:`SDKPATH`
  5224. Defines the path offered to the user for installation of the SDK that
  5225. is generated by the OpenEmbedded build system. The path appears as
  5226. the default location for installing the SDK when you run the SDK's
  5227. installation script. You can override the offered path when you run
  5228. the script.
  5229. :term:`SDKTARGETSYSROOT`
  5230. The full path to the sysroot used for cross-compilation within an SDK
  5231. as it will be when installed into the default
  5232. :term:`SDKPATH`.
  5233. :term:`SECTION`
  5234. The section in which packages should be categorized. Package
  5235. management utilities can make use of this variable.
  5236. :term:`SELECTED_OPTIMIZATION`
  5237. Specifies the optimization flags passed to the C compiler when
  5238. building for the target. The flags are passed through the default
  5239. value of the :term:`TARGET_CFLAGS` variable.
  5240. The :term:`SELECTED_OPTIMIZATION` variable takes the value of
  5241. :term:`FULL_OPTIMIZATION` unless :term:`DEBUG_BUILD` = "1", in which
  5242. case the value of :term:`DEBUG_OPTIMIZATION` is used.
  5243. :term:`SERIAL_CONSOLE`
  5244. Defines a serial console (TTY) to enable using
  5245. `getty <https://en.wikipedia.org/wiki/Getty_(Unix)>`__. Provide a
  5246. value that specifies the baud rate followed by the TTY device name
  5247. separated by a space. You cannot specify more than one TTY device::
  5248. SERIAL_CONSOLE = "115200 ttyS0"
  5249. .. note::
  5250. The :term:`SERIAL_CONSOLE` variable is deprecated. Please use the
  5251. :term:`SERIAL_CONSOLES` variable.
  5252. :term:`SERIAL_CONSOLES`
  5253. Defines a serial console (TTY) to enable using
  5254. `getty <https://en.wikipedia.org/wiki/Getty_(Unix)>`__. Provide a
  5255. value that specifies the baud rate followed by the TTY device name
  5256. separated by a semicolon. Use spaces to separate multiple devices::
  5257. SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1"
  5258. :term:`SERIAL_CONSOLES_CHECK`
  5259. Specifies serial consoles, which must be listed in
  5260. :term:`SERIAL_CONSOLES`, to check against
  5261. ``/proc/console`` before enabling them using getty. This variable
  5262. allows aliasing in the format: <device>:<alias>. If a device was
  5263. listed as "sclp_line0" in ``/dev/`` and "ttyS0" was listed in
  5264. ``/proc/console``, you would do the following::
  5265. SERIAL_CONSOLES_CHECK = "slcp_line0:ttyS0"
  5266. This variable is currently only supported with SysVinit (i.e. not
  5267. with systemd). Note that :term:`SERIAL_CONSOLES_CHECK` also requires
  5268. ``/etc/inittab`` to be writable when used with SysVinit. This makes it
  5269. incompatible with customizations such as the following::
  5270. EXTRA_IMAGE_FEATURES += "read-only-rootfs"
  5271. :term:`SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS`
  5272. A list of recipe dependencies that should not be used to determine
  5273. signatures of tasks from one recipe when they depend on tasks from
  5274. another recipe. For example::
  5275. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "intone->mplayer2"
  5276. In the previous example, ``intone`` depends on ``mplayer2``.
  5277. You can use the special token ``"*"`` on the left-hand side of the
  5278. dependency to match all recipes except the one on the right-hand
  5279. side. Here is an example::
  5280. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "*->quilt-native"
  5281. In the previous example, all recipes except ``quilt-native`` ignore
  5282. task signatures from the ``quilt-native`` recipe when determining
  5283. their task signatures.
  5284. Use of this variable is one mechanism to remove dependencies that
  5285. affect task signatures and thus force rebuilds when a recipe changes.
  5286. .. note::
  5287. If you add an inappropriate dependency for a recipe relationship,
  5288. the software might break during runtime if the interface of the
  5289. second recipe was changed after the first recipe had been built.
  5290. :term:`SIGGEN_EXCLUDERECIPES_ABISAFE`
  5291. A list of recipes that are completely stable and will never change.
  5292. The ABI for the recipes in the list are presented by output from the
  5293. tasks run to build the recipe. Use of this variable is one way to
  5294. remove dependencies from one recipe on another that affect task
  5295. signatures and thus force rebuilds when the recipe changes.
  5296. .. note::
  5297. If you add an inappropriate variable to this list, the software
  5298. might break at runtime if the interface of the recipe was changed
  5299. after the other had been built.
  5300. :term:`SITEINFO_BITS`
  5301. Specifies the number of bits for the target system CPU. The value
  5302. should be either "32" or "64".
  5303. :term:`SITEINFO_ENDIANNESS`
  5304. Specifies the endian byte order of the target system. The value
  5305. should be either "le" for little-endian or "be" for big-endian.
  5306. :term:`SKIP_FILEDEPS`
  5307. Enables removal of all files from the "Provides" section of an RPM
  5308. package. Removal of these files is required for packages containing
  5309. prebuilt binaries and libraries such as ``libstdc++`` and ``glibc``.
  5310. To enable file removal, set the variable to "1" in your
  5311. ``conf/local.conf`` configuration file in your:
  5312. :term:`Build Directory`.
  5313. ::
  5314. SKIP_FILEDEPS = "1"
  5315. :term:`SOC_FAMILY`
  5316. Groups together machines based upon the same family of SOC (System On
  5317. Chip). You typically set this variable in a common ``.inc`` file that
  5318. you include in the configuration files of all the machines.
  5319. .. note::
  5320. You must include ``conf/machine/include/soc-family.inc`` for this
  5321. variable to appear in :term:`MACHINEOVERRIDES`.
  5322. :term:`SOLIBS`
  5323. Defines the suffix for shared libraries used on the target platform.
  5324. By default, this suffix is ".so.*" for all Linux-based systems and is
  5325. defined in the ``meta/conf/bitbake.conf`` configuration file.
  5326. You will see this variable referenced in the default values of
  5327. ``FILES_${PN}``.
  5328. :term:`SOLIBSDEV`
  5329. Defines the suffix for the development symbolic link (symlink) for
  5330. shared libraries on the target platform. By default, this suffix is
  5331. ".so" for Linux-based systems and is defined in the
  5332. ``meta/conf/bitbake.conf`` configuration file.
  5333. You will see this variable referenced in the default values of
  5334. ``FILES_${PN}-dev``.
  5335. :term:`SOURCE_MIRROR_FETCH`
  5336. When you are fetching files to create a mirror of sources (i.e.
  5337. creating a source mirror), setting :term:`SOURCE_MIRROR_FETCH` to "1" in
  5338. your ``local.conf`` configuration file ensures the source for all
  5339. recipes are fetched regardless of whether or not a recipe is
  5340. compatible with the configuration. A recipe is considered
  5341. incompatible with the currently configured machine when either or
  5342. both the :term:`COMPATIBLE_MACHINE`
  5343. variable and :term:`COMPATIBLE_HOST` variables
  5344. specify compatibility with a machine other than that of the current
  5345. machine or host.
  5346. .. note::
  5347. Do not set the :term:`SOURCE_MIRROR_FETCH`
  5348. variable unless you are creating a source mirror. In other words,
  5349. do not set the variable during a normal build.
  5350. :term:`SOURCE_MIRROR_URL`
  5351. Defines your own :term:`PREMIRRORS` from which to
  5352. first fetch source before attempting to fetch from the upstream
  5353. specified in :term:`SRC_URI`.
  5354. To use this variable, you must globally inherit the
  5355. :ref:`own-mirrors <ref-classes-own-mirrors>` class and then provide
  5356. the URL to your mirrors. Here is the general syntax::
  5357. INHERIT += "own-mirrors"
  5358. SOURCE_MIRROR_URL = "http://example.com/my_source_mirror"
  5359. .. note::
  5360. You can specify only a single URL in :term:`SOURCE_MIRROR_URL`.
  5361. :term:`SPDXLICENSEMAP`
  5362. Maps commonly used license names to their SPDX counterparts found in
  5363. ``meta/files/common-licenses/``. For the default :term:`SPDXLICENSEMAP`
  5364. mappings, see the ``meta/conf/licenses.conf`` file.
  5365. For additional information, see the :term:`LICENSE`
  5366. variable.
  5367. :term:`SPECIAL_PKGSUFFIX`
  5368. A list of prefixes for :term:`PN` used by the OpenEmbedded
  5369. build system to create variants of recipes or packages. The list
  5370. specifies the prefixes to strip off during certain circumstances such
  5371. as the generation of the :term:`BPN` variable.
  5372. :term:`SPL_BINARY`
  5373. The file type for the Secondary Program Loader (SPL). Some devices
  5374. use an SPL from which to boot (e.g. the BeagleBone development
  5375. board). For such cases, you can declare the file type of the SPL
  5376. binary in the ``u-boot.inc`` include file, which is used in the
  5377. U-Boot recipe.
  5378. The SPL file type is set to "null" by default in the ``u-boot.inc``
  5379. file as follows::
  5380. # Some versions of u-boot build an SPL (Second Program Loader) image that
  5381. # should be packaged along with the u-boot binary as well as placed in the
  5382. # deploy directory. For those versions they can set the following variables
  5383. # to allow packaging the SPL.
  5384. SPL_BINARY ?= ""
  5385. SPL_BINARYNAME ?= "${@os.path.basename(d.getVar("SPL_BINARY"))}"
  5386. SPL_IMAGE ?= "${SPL_BINARYNAME}-${MACHINE}-${PV}-${PR}"
  5387. SPL_SYMLINK ?= "${SPL_BINARYNAME}-${MACHINE}"
  5388. The :term:`SPL_BINARY` variable helps form
  5389. various ``SPL_*`` variables used by the OpenEmbedded build system.
  5390. See the BeagleBone machine configuration example in the
  5391. ":ref:`dev-manual/common-tasks:adding a layer using the \`\`bitbake-layers\`\` script`"
  5392. section in the Yocto Project Board Support Package Developer's Guide
  5393. for additional information.
  5394. :term:`SRC_URI`
  5395. The list of source files - local or remote. This variable tells the
  5396. OpenEmbedded build system which bits to pull in for the build and how
  5397. to pull them in. For example, if the recipe or append file only needs
  5398. to fetch a tarball from the Internet, the recipe or append file uses
  5399. a single :term:`SRC_URI` entry. On the other hand, if the recipe or
  5400. append file needs to fetch a tarball, apply two patches, and include
  5401. a custom file, the recipe or append file would include four instances
  5402. of the variable.
  5403. The following list explains the available URI protocols. URI
  5404. protocols are highly dependent on particular BitBake Fetcher
  5405. submodules. Depending on the fetcher BitBake uses, various URL
  5406. parameters are employed. For specifics on the supported Fetchers, see
  5407. the ":ref:`Fetchers <bitbake:bitbake-user-manual/bitbake-user-manual-fetching:fetchers>`" section in the
  5408. BitBake User Manual.
  5409. - ``file://`` - Fetches files, which are usually files shipped
  5410. with the :term:`Metadata`, from the local machine (e.g.
  5411. :ref:`patch <overview-manual/concepts:patching>` files).
  5412. The path is relative to the :term:`FILESPATH`
  5413. variable. Thus, the build system searches, in order, from the
  5414. following directories, which are assumed to be a subdirectories of
  5415. the directory in which the recipe file (``.bb``) or append file
  5416. (``.bbappend``) resides:
  5417. - ``${BPN}`` - The base recipe name without any special suffix
  5418. or version numbers.
  5419. - ``${BP}`` - ``${BPN}-${PV}``. The base recipe name and
  5420. version but without any special package name suffix.
  5421. - *files -* Files within a directory, which is named ``files``
  5422. and is also alongside the recipe or append file.
  5423. .. note::
  5424. If you want the build system to pick up files specified through
  5425. a
  5426. SRC_URI
  5427. statement from your append file, you need to be sure to extend
  5428. the
  5429. FILESPATH
  5430. variable by also using the
  5431. FILESEXTRAPATHS
  5432. variable from within your append file.
  5433. - ``bzr://`` - Fetches files from a Bazaar revision control
  5434. repository.
  5435. - ``git://`` - Fetches files from a Git revision control
  5436. repository.
  5437. - ``osc://`` - Fetches files from an OSC (openSUSE Build service)
  5438. revision control repository.
  5439. - ``repo://`` - Fetches files from a repo (Git) repository.
  5440. - ``ccrc://`` - Fetches files from a ClearCase repository.
  5441. - ``http://`` - Fetches files from the Internet using ``http``.
  5442. - ``https://`` - Fetches files from the Internet using ``https``.
  5443. - ``ftp://`` - Fetches files from the Internet using ``ftp``.
  5444. - ``cvs://`` - Fetches files from a CVS revision control
  5445. repository.
  5446. - ``hg://`` - Fetches files from a Mercurial (``hg``) revision
  5447. control repository.
  5448. - ``p4://`` - Fetches files from a Perforce (``p4``) revision
  5449. control repository.
  5450. - ``ssh://`` - Fetches files from a secure shell.
  5451. - ``svn://`` - Fetches files from a Subversion (``svn``) revision
  5452. control repository.
  5453. - ``npm://`` - Fetches JavaScript modules from a registry.
  5454. - ``az://`` - Fetches files from an Azure Storage account.
  5455. There are standard and recipe-specific options for :term:`SRC_URI`. Here are
  5456. standard ones:
  5457. - ``apply`` - Whether to apply the patch or not. The default
  5458. action is to apply the patch.
  5459. - ``striplevel`` - Which striplevel to use when applying the
  5460. patch. The default level is 1.
  5461. - ``patchdir`` - Specifies the directory in which the patch should
  5462. be applied. The default is ``${``\ :term:`S`\ ``}``.
  5463. Here are options specific to recipes building code from a revision
  5464. control system:
  5465. - ``mindate`` - Apply the patch only if
  5466. :term:`SRCDATE` is equal to or greater than
  5467. ``mindate``.
  5468. - ``maxdate`` - Apply the patch only if :term:`SRCDATE` is not later
  5469. than ``maxdate``.
  5470. - ``minrev`` - Apply the patch only if :term:`SRCREV` is equal to or
  5471. greater than ``minrev``.
  5472. - ``maxrev`` - Apply the patch only if :term:`SRCREV` is not later
  5473. than ``maxrev``.
  5474. - ``rev`` - Apply the patch only if :term:`SRCREV` is equal to
  5475. ``rev``.
  5476. - ``notrev`` - Apply the patch only if :term:`SRCREV` is not equal to
  5477. ``rev``.
  5478. Here are some additional options worth mentioning:
  5479. - ``unpack`` - Controls whether or not to unpack the file if it is
  5480. an archive. The default action is to unpack the file.
  5481. - ``destsuffix`` - Places the file (or extracts its contents) into
  5482. the specified subdirectory of :term:`WORKDIR` when
  5483. the Git fetcher is used.
  5484. - ``subdir`` - Places the file (or extracts its contents) into the
  5485. specified subdirectory of :term:`WORKDIR` when the local (``file://``)
  5486. fetcher is used.
  5487. - ``localdir`` - Places the file (or extracts its contents) into
  5488. the specified subdirectory of :term:`WORKDIR` when the CVS fetcher is
  5489. used.
  5490. - ``subpath`` - Limits the checkout to a specific subpath of the
  5491. tree when using the Git fetcher is used.
  5492. - ``name`` - Specifies a name to be used for association with
  5493. :term:`SRC_URI` checksums or :term:`SRCREV` when you have more than one
  5494. file or git repository specified in :term:`SRC_URI`. For example::
  5495. SRC_URI = "git://example.com/foo.git;name=first \
  5496. git://example.com/bar.git;name=second \
  5497. http://example.com/file.tar.gz;name=third"
  5498. SRCREV_first = "f1d2d2f924e986ac86fdf7b36c94bcdf32beec15"
  5499. SRCREV_second = "e242ed3bffccdf271b7fbaf34ed72d089537b42f"
  5500. SRC_URI[third.sha256sum] = "13550350a8681c84c861aac2e5b440161c2b33a3e4f302ac680ca5b686de48de"
  5501. - ``downloadfilename`` - Specifies the filename used when storing
  5502. the downloaded file.
  5503. :term:`SRC_URI_OVERRIDES_PACKAGE_ARCH`
  5504. By default, the OpenEmbedded build system automatically detects
  5505. whether :term:`SRC_URI` contains files that are machine-specific. If so,
  5506. the build system automatically changes :term:`PACKAGE_ARCH`. Setting this
  5507. variable to "0" disables this behavior.
  5508. :term:`SRCDATE`
  5509. The date of the source code used to build the package. This variable
  5510. applies only if the source was fetched from a Source Code Manager
  5511. (SCM).
  5512. :term:`SRCPV`
  5513. Returns the version string of the current package. This string is
  5514. used to help define the value of :term:`PV`.
  5515. The :term:`SRCPV` variable is defined in the ``meta/conf/bitbake.conf``
  5516. configuration file in the :term:`Source Directory` as
  5517. follows::
  5518. SRCPV = "${@bb.fetch2.get_srcrev(d)}"
  5519. Recipes that need to define :term:`PV` do so with the help of the
  5520. :term:`SRCPV`. For example, the ``ofono`` recipe (``ofono_git.bb``)
  5521. located in ``meta/recipes-connectivity`` in the Source Directory
  5522. defines :term:`PV` as follows::
  5523. PV = "0.12-git${SRCPV}"
  5524. :term:`SRCREV`
  5525. The revision of the source code used to build the package. This
  5526. variable applies to Subversion, Git, Mercurial, and Bazaar only. Note
  5527. that if you want to build a fixed revision and you want to avoid
  5528. performing a query on the remote repository every time BitBake parses
  5529. your recipe, you should specify a :term:`SRCREV` that is a full revision
  5530. identifier and not just a tag.
  5531. .. note::
  5532. For information on limitations when inheriting the latest revision
  5533. of software using :term:`SRCREV`, see the :term:`AUTOREV` variable
  5534. description and the
  5535. ":ref:`dev-manual/common-tasks:automatically incrementing a package version number`"
  5536. section, which is in the Yocto Project Development Tasks Manual.
  5537. :term:`SRCTREECOVEREDTASKS`
  5538. A list of tasks that are typically not relevant (and therefore skipped)
  5539. when building using the :ref:`externalsrc <ref-classes-externalsrc>`
  5540. class. The default value as set in that class file is the set of tasks
  5541. that are rarely needed when using external source::
  5542. SRCTREECOVEREDTASKS ?= "do_patch do_unpack do_fetch"
  5543. The notable exception is when processing external kernel source as
  5544. defined in the :ref:`kernel-yocto <ref-classes-kernel-yocto>`
  5545. class file (formatted for aesthetics)::
  5546. SRCTREECOVEREDTASKS += "\
  5547. do_validate_branches \
  5548. do_kernel_configcheck \
  5549. do_kernel_checkout \
  5550. do_fetch \
  5551. do_unpack \
  5552. do_patch \
  5553. "
  5554. See the associated :term:`EXTERNALSRC` and :term:`EXTERNALSRC_BUILD`
  5555. variables for more information.
  5556. :term:`SSTATE_DIR`
  5557. The directory for the shared state cache.
  5558. :term:`SSTATE_MIRROR_ALLOW_NETWORK`
  5559. If set to "1", allows fetches from mirrors that are specified in
  5560. :term:`SSTATE_MIRRORS` to work even when
  5561. fetching from the network is disabled by setting :term:`BB_NO_NETWORK` to
  5562. "1". Using the :term:`SSTATE_MIRROR_ALLOW_NETWORK` variable is useful if
  5563. you have set :term:`SSTATE_MIRRORS` to point to an internal server for
  5564. your shared state cache, but you want to disable any other fetching
  5565. from the network.
  5566. :term:`SSTATE_MIRRORS`
  5567. Configures the OpenEmbedded build system to search other mirror
  5568. locations for prebuilt cache data objects before building out the
  5569. data. This variable works like fetcher :term:`MIRRORS`
  5570. and :term:`PREMIRRORS` and points to the cache
  5571. locations to check for the shared state (sstate) objects.
  5572. You can specify a filesystem directory or a remote URL such as HTTP
  5573. or FTP. The locations you specify need to contain the shared state
  5574. cache (sstate-cache) results from previous builds. The sstate-cache
  5575. you point to can also be from builds on other machines.
  5576. When pointing to sstate build artifacts on another machine that uses
  5577. a different GCC version for native builds, you must configure
  5578. :term:`SSTATE_MIRRORS` with a regular expression that maps local search
  5579. paths to server paths. The paths need to take into account
  5580. :term:`NATIVELSBSTRING` set by the
  5581. :ref:`uninative <ref-classes-uninative>` class. For example, the
  5582. following maps the local search path ``universal-4.9`` to the
  5583. server-provided path server_url_sstate_path::
  5584. SSTATE_MIRRORS ?= "file://universal-4.9/(.*) http://server_url_sstate_path/universal-4.8/\1 \n"
  5585. If a mirror uses the same structure as
  5586. :term:`SSTATE_DIR`, you need to add "PATH" at the
  5587. end as shown in the examples below. The build system substitutes the
  5588. correct path within the directory structure.
  5589. ::
  5590. SSTATE_MIRRORS ?= "\
  5591. file://.* http://someserver.tld/share/sstate/PATH;downloadfilename=PATH \n \
  5592. file://.* file:///some-local-dir/sstate/PATH"
  5593. :term:`SSTATE_SCAN_FILES`
  5594. Controls the list of files the OpenEmbedded build system scans for
  5595. hardcoded installation paths. The variable uses a space-separated
  5596. list of filenames (not paths) with standard wildcard characters
  5597. allowed.
  5598. During a build, the OpenEmbedded build system creates a shared state
  5599. (sstate) object during the first stage of preparing the sysroots.
  5600. That object is scanned for hardcoded paths for original installation
  5601. locations. The list of files that are scanned for paths is controlled
  5602. by the :term:`SSTATE_SCAN_FILES` variable. Typically, recipes add files
  5603. they want to be scanned to the value of :term:`SSTATE_SCAN_FILES` rather
  5604. than the variable being comprehensively set. The
  5605. :ref:`sstate <ref-classes-sstate>` class specifies the default list
  5606. of files.
  5607. For details on the process, see the
  5608. :ref:`staging <ref-classes-staging>` class.
  5609. :term:`STAGING_BASE_LIBDIR_NATIVE`
  5610. Specifies the path to the ``/lib`` subdirectory of the sysroot
  5611. directory for the build host.
  5612. :term:`STAGING_BASELIBDIR`
  5613. Specifies the path to the ``/lib`` subdirectory of the sysroot
  5614. directory for the target for which the current recipe is being built
  5615. (:term:`STAGING_DIR_HOST`).
  5616. :term:`STAGING_BINDIR`
  5617. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  5618. directory for the target for which the current recipe is being built
  5619. (:term:`STAGING_DIR_HOST`).
  5620. :term:`STAGING_BINDIR_CROSS`
  5621. Specifies the path to the directory containing binary configuration
  5622. scripts. These scripts provide configuration information for other
  5623. software that wants to make use of libraries or include files
  5624. provided by the software associated with the script.
  5625. .. note::
  5626. This style of build configuration has been largely replaced by
  5627. ``pkg-config``. Consequently, if ``pkg-config`` is supported by the
  5628. library to which you are linking, it is recommended you use
  5629. ``pkg-config`` instead of a provided configuration script.
  5630. :term:`STAGING_BINDIR_NATIVE`
  5631. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  5632. directory for the build host.
  5633. :term:`STAGING_DATADIR`
  5634. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  5635. directory for the target for which the current recipe is being built
  5636. (:term:`STAGING_DIR_HOST`).
  5637. :term:`STAGING_DATADIR_NATIVE`
  5638. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  5639. directory for the build host.
  5640. :term:`STAGING_DIR`
  5641. Helps construct the ``recipe-sysroots`` directory, which is used
  5642. during packaging.
  5643. For information on how staging for recipe-specific sysroots occurs,
  5644. see the :ref:`ref-tasks-populate_sysroot`
  5645. task, the ":ref:`sdk-manual/extensible:sharing files between recipes`"
  5646. section in the Yocto Project Development Tasks Manual, the
  5647. ":ref:`overview-manual/concepts:configuration, compilation, and staging`"
  5648. section in the Yocto Project Overview and Concepts Manual, and the
  5649. :term:`SYSROOT_DIRS` variable.
  5650. .. note::
  5651. Recipes should never write files directly under the :term:`STAGING_DIR`
  5652. directory because the OpenEmbedded build system manages the
  5653. directory automatically. Instead, files should be installed to
  5654. ``${``\ :term:`D`\ ``}`` within your recipe's :ref:`ref-tasks-install`
  5655. task and then the OpenEmbedded build system will stage a subset of
  5656. those files into the sysroot.
  5657. :term:`STAGING_DIR_HOST`
  5658. Specifies the path to the sysroot directory for the system on which
  5659. the component is built to run (the system that hosts the component).
  5660. For most recipes, this sysroot is the one in which that recipe's
  5661. :ref:`ref-tasks-populate_sysroot` task copies
  5662. files. Exceptions include ``-native`` recipes, where the
  5663. ``do_populate_sysroot`` task instead uses
  5664. :term:`STAGING_DIR_NATIVE`. Depending on
  5665. the type of recipe and the build target, :term:`STAGING_DIR_HOST` can
  5666. have the following values:
  5667. - For recipes building for the target machine, the value is
  5668. "${:term:`STAGING_DIR`}/${:term:`MACHINE`}".
  5669. - For native recipes building for the build host, the value is empty
  5670. given the assumption that when building for the build host, the
  5671. build host's own directories should be used.
  5672. .. note::
  5673. ``-native`` recipes are not installed into host paths like such
  5674. as ``/usr``. Rather, these recipes are installed into
  5675. :term:`STAGING_DIR_NATIVE`. When compiling ``-native`` recipes,
  5676. standard build environment variables such as
  5677. :term:`CPPFLAGS` and
  5678. :term:`CFLAGS` are set up so that both host paths
  5679. and :term:`STAGING_DIR_NATIVE` are searched for libraries and
  5680. headers using, for example, GCC's ``-isystem`` option.
  5681. Thus, the emphasis is that the ``STAGING_DIR*`` variables
  5682. should be viewed as input variables by tasks such as
  5683. :ref:`ref-tasks-configure`,
  5684. :ref:`ref-tasks-compile`, and
  5685. :ref:`ref-tasks-install`. Having the real system
  5686. root correspond to :term:`STAGING_DIR_HOST` makes conceptual sense
  5687. for ``-native`` recipes, as they make use of host headers and
  5688. libraries.
  5689. :term:`STAGING_DIR_NATIVE`
  5690. Specifies the path to the sysroot directory used when building
  5691. components that run on the build host itself.
  5692. :term:`STAGING_DIR_TARGET`
  5693. Specifies the path to the sysroot used for the system for which the
  5694. component generates code. For components that do not generate code,
  5695. which is the majority, :term:`STAGING_DIR_TARGET` is set to match
  5696. :term:`STAGING_DIR_HOST`.
  5697. Some recipes build binaries that can run on the target system but
  5698. those binaries in turn generate code for another different system
  5699. (e.g. cross-canadian recipes). Using terminology from GNU, the
  5700. primary system is referred to as the "HOST" and the secondary, or
  5701. different, system is referred to as the "TARGET". Thus, the binaries
  5702. run on the "HOST" system and generate binaries for the "TARGET"
  5703. system. The :term:`STAGING_DIR_HOST` variable points to the sysroot used
  5704. for the "HOST" system, while :term:`STAGING_DIR_TARGET` points to the
  5705. sysroot used for the "TARGET" system.
  5706. :term:`STAGING_ETCDIR_NATIVE`
  5707. Specifies the path to the ``/etc`` subdirectory of the sysroot
  5708. directory for the build host.
  5709. :term:`STAGING_EXECPREFIXDIR`
  5710. Specifies the path to the ``/usr`` subdirectory of the sysroot
  5711. directory for the target for which the current recipe is being built
  5712. (:term:`STAGING_DIR_HOST`).
  5713. :term:`STAGING_INCDIR`
  5714. Specifies the path to the ``/usr/include`` subdirectory of the
  5715. sysroot directory for the target for which the current recipe being
  5716. built (:term:`STAGING_DIR_HOST`).
  5717. :term:`STAGING_INCDIR_NATIVE`
  5718. Specifies the path to the ``/usr/include`` subdirectory of the
  5719. sysroot directory for the build host.
  5720. :term:`STAGING_KERNEL_BUILDDIR`
  5721. Points to the directory containing the kernel build artifacts.
  5722. Recipes building software that needs to access kernel build artifacts
  5723. (e.g. ``systemtap-uprobes``) can look in the directory specified with
  5724. the :term:`STAGING_KERNEL_BUILDDIR` variable to find these artifacts
  5725. after the kernel has been built.
  5726. :term:`STAGING_KERNEL_DIR`
  5727. The directory with kernel headers that are required to build
  5728. out-of-tree modules.
  5729. :term:`STAGING_LIBDIR`
  5730. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  5731. directory for the target for which the current recipe is being built
  5732. (:term:`STAGING_DIR_HOST`).
  5733. :term:`STAGING_LIBDIR_NATIVE`
  5734. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  5735. directory for the build host.
  5736. :term:`STAMP`
  5737. Specifies the base path used to create recipe stamp files. The path
  5738. to an actual stamp file is constructed by evaluating this string and
  5739. then appending additional information. Currently, the default
  5740. assignment for :term:`STAMP` as set in the ``meta/conf/bitbake.conf``
  5741. file is::
  5742. STAMP = "${STAMPS_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}"
  5743. For information on how BitBake uses stamp files to determine if a
  5744. task should be rerun, see the
  5745. ":ref:`overview-manual/concepts:stamp files and the rerunning of tasks`"
  5746. section in the Yocto Project Overview and Concepts Manual.
  5747. See :term:`STAMPS_DIR`,
  5748. :term:`MULTIMACH_TARGET_SYS`,
  5749. :term:`PN`, :term:`EXTENDPE`,
  5750. :term:`PV`, and :term:`PR` for related variable
  5751. information.
  5752. :term:`STAMPS_DIR`
  5753. Specifies the base directory in which the OpenEmbedded build system
  5754. places stamps. The default directory is ``${TMPDIR}/stamps``.
  5755. :term:`STRIP`
  5756. The minimal command and arguments to run ``strip``, which is used to
  5757. strip symbols.
  5758. :term:`SUMMARY`
  5759. The short (72 characters or less) summary of the binary package for
  5760. packaging systems such as ``opkg``, ``rpm``, or ``dpkg``. By default,
  5761. :term:`SUMMARY` is used to define the
  5762. :term:`DESCRIPTION` variable if :term:`DESCRIPTION` is
  5763. not set in the recipe.
  5764. :term:`SVNDIR`
  5765. The directory in which files checked out of a Subversion system are
  5766. stored.
  5767. :term:`SYSLINUX_DEFAULT_CONSOLE`
  5768. Specifies the kernel boot default console. If you want to use a
  5769. console other than the default, set this variable in your recipe as
  5770. follows where "X" is the console number you want to use::
  5771. SYSLINUX_DEFAULT_CONSOLE = "console=ttyX"
  5772. The :ref:`syslinux <ref-classes-syslinux>` class initially sets
  5773. this variable to null but then checks for a value later.
  5774. :term:`SYSLINUX_OPTS`
  5775. Lists additional options to add to the syslinux file. You need to set
  5776. this variable in your recipe. If you want to list multiple options,
  5777. separate the options with a semicolon character (``;``).
  5778. The :ref:`syslinux <ref-classes-syslinux>` class uses this variable
  5779. to create a set of options.
  5780. :term:`SYSLINUX_SERIAL`
  5781. Specifies the alternate serial port or turns it off. To turn off
  5782. serial, set this variable to an empty string in your recipe. The
  5783. variable's default value is set in the
  5784. :ref:`syslinux <ref-classes-syslinux>` class as follows::
  5785. SYSLINUX_SERIAL ?= "0 115200"
  5786. The class checks for and uses the variable as needed.
  5787. :term:`SYSLINUX_SERIAL_TTY`
  5788. Specifies the alternate console=tty... kernel boot argument. The
  5789. variable's default value is set in the
  5790. :ref:`syslinux <ref-classes-syslinux>` class as follows::
  5791. SYSLINUX_SERIAL_TTY ?= "console=ttyS0,115200"
  5792. The class checks for and uses the variable as needed.
  5793. :term:`SYSLINUX_SPLASH`
  5794. An ``.LSS`` file used as the background for the VGA boot menu when
  5795. you use the boot menu. You need to set this variable in your recipe.
  5796. The :ref:`syslinux <ref-classes-syslinux>` class checks for this
  5797. variable and if found, the OpenEmbedded build system installs the
  5798. splash screen.
  5799. :term:`SYSROOT_DESTDIR`
  5800. Points to the temporary directory under the work directory (default
  5801. "``${``\ :term:`WORKDIR`\ ``}/sysroot-destdir``")
  5802. where the files populated into the sysroot are assembled during the
  5803. :ref:`ref-tasks-populate_sysroot` task.
  5804. :term:`SYSROOT_DIRS`
  5805. Directories that are staged into the sysroot by the
  5806. :ref:`ref-tasks-populate_sysroot` task. By
  5807. default, the following directories are staged::
  5808. SYSROOT_DIRS = " \
  5809. ${includedir} \
  5810. ${libdir} \
  5811. ${base_libdir} \
  5812. ${nonarch_base_libdir} \
  5813. ${datadir} \
  5814. "
  5815. :term:`SYSROOT_DIRS_BLACKLIST`
  5816. Directories that are not staged into the sysroot by the
  5817. :ref:`ref-tasks-populate_sysroot` task. You
  5818. can use this variable to exclude certain subdirectories of
  5819. directories listed in :term:`SYSROOT_DIRS` from
  5820. staging. By default, the following directories are not staged::
  5821. SYSROOT_DIRS_BLACKLIST = " \
  5822. ${mandir} \
  5823. ${docdir} \
  5824. ${infodir} \
  5825. ${datadir}/locale \
  5826. ${datadir}/applications \
  5827. ${datadir}/fonts \
  5828. ${datadir}/pixmaps \
  5829. "
  5830. :term:`SYSROOT_DIRS_NATIVE`
  5831. Extra directories staged into the sysroot by the
  5832. :ref:`ref-tasks-populate_sysroot` task for
  5833. ``-native`` recipes, in addition to those specified in
  5834. :term:`SYSROOT_DIRS`. By default, the following
  5835. extra directories are staged::
  5836. SYSROOT_DIRS_NATIVE = " \
  5837. ${bindir} \
  5838. ${sbindir} \
  5839. ${base_bindir} \
  5840. ${base_sbindir} \
  5841. ${libexecdir} \
  5842. ${sysconfdir} \
  5843. ${localstatedir} \
  5844. "
  5845. .. note::
  5846. Programs built by ``-native`` recipes run directly from the sysroot
  5847. (:term:`STAGING_DIR_NATIVE`), which is why additional directories
  5848. containing program executables and supporting files need to be staged.
  5849. :term:`SYSROOT_PREPROCESS_FUNCS`
  5850. A list of functions to execute after files are staged into the
  5851. sysroot. These functions are usually used to apply additional
  5852. processing on the staged files, or to stage additional files.
  5853. :term:`SYSTEMD_AUTO_ENABLE`
  5854. When inheriting the :ref:`systemd <ref-classes-systemd>` class,
  5855. this variable specifies whether the specified service in
  5856. :term:`SYSTEMD_SERVICE` should start
  5857. automatically or not. By default, the service is enabled to
  5858. automatically start at boot time. The default setting is in the
  5859. :ref:`systemd <ref-classes-systemd>` class as follows::
  5860. SYSTEMD_AUTO_ENABLE ??= "enable"
  5861. You can disable the service by setting the variable to "disable".
  5862. :term:`SYSTEMD_BOOT_CFG`
  5863. When :term:`EFI_PROVIDER` is set to
  5864. "systemd-boot", the :term:`SYSTEMD_BOOT_CFG` variable specifies the
  5865. configuration file that should be used. By default, the
  5866. :ref:`systemd-boot <ref-classes-systemd-boot>` class sets the
  5867. :term:`SYSTEMD_BOOT_CFG` as follows::
  5868. SYSTEMD_BOOT_CFG ?= "${:term:`S`}/loader.conf"
  5869. For information on Systemd-boot, see the `Systemd-boot
  5870. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  5871. :term:`SYSTEMD_BOOT_ENTRIES`
  5872. When :term:`EFI_PROVIDER` is set to
  5873. "systemd-boot", the :term:`SYSTEMD_BOOT_ENTRIES` variable specifies a
  5874. list of entry files (``*.conf``) to install that contain one boot
  5875. entry per file. By default, the
  5876. :ref:`systemd-boot <ref-classes-systemd-boot>` class sets the
  5877. :term:`SYSTEMD_BOOT_ENTRIES` as follows::
  5878. SYSTEMD_BOOT_ENTRIES ?= ""
  5879. For information on Systemd-boot, see the `Systemd-boot
  5880. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  5881. :term:`SYSTEMD_BOOT_TIMEOUT`
  5882. When :term:`EFI_PROVIDER` is set to
  5883. "systemd-boot", the :term:`SYSTEMD_BOOT_TIMEOUT` variable specifies the
  5884. boot menu timeout in seconds. By default, the
  5885. :ref:`systemd-boot <ref-classes-systemd-boot>` class sets the
  5886. :term:`SYSTEMD_BOOT_TIMEOUT` as follows::
  5887. SYSTEMD_BOOT_TIMEOUT ?= "10"
  5888. For information on Systemd-boot, see the `Systemd-boot
  5889. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  5890. :term:`SYSTEMD_PACKAGES`
  5891. When inheriting the :ref:`systemd <ref-classes-systemd>` class,
  5892. this variable locates the systemd unit files when they are not found
  5893. in the main recipe's package. By default, the :term:`SYSTEMD_PACKAGES`
  5894. variable is set such that the systemd unit files are assumed to
  5895. reside in the recipes main package::
  5896. SYSTEMD_PACKAGES ?= "${PN}"
  5897. If these unit files are not in this recipe's main package, you need
  5898. to use :term:`SYSTEMD_PACKAGES` to list the package or packages in which
  5899. the build system can find the systemd unit files.
  5900. :term:`SYSTEMD_SERVICE`
  5901. When inheriting the :ref:`systemd <ref-classes-systemd>` class,
  5902. this variable specifies the systemd service name for a package.
  5903. When you specify this file in your recipe, use a package name
  5904. override to indicate the package to which the value applies. Here is
  5905. an example from the connman recipe::
  5906. SYSTEMD_SERVICE_${PN} = "connman.service"
  5907. :term:`SYSVINIT_ENABLED_GETTYS`
  5908. When using
  5909. :ref:`SysVinit <dev-manual/common-tasks:enabling system services>`,
  5910. specifies a space-separated list of the virtual terminals that should
  5911. run a `getty <https://en.wikipedia.org/wiki/Getty_%28Unix%29>`__
  5912. (allowing login), assuming :term:`USE_VT` is not set to
  5913. "0".
  5914. The default value for :term:`SYSVINIT_ENABLED_GETTYS` is "1" (i.e. only
  5915. run a getty on the first virtual terminal).
  5916. :term:`T`
  5917. This variable points to a directory were BitBake places temporary
  5918. files, which consist mostly of task logs and scripts, when building a
  5919. particular recipe. The variable is typically set as follows::
  5920. T = "${WORKDIR}/temp"
  5921. The :term:`WORKDIR` is the directory into which
  5922. BitBake unpacks and builds the recipe. The default ``bitbake.conf``
  5923. file sets this variable.
  5924. The :term:`T` variable is not to be confused with the
  5925. :term:`TMPDIR` variable, which points to the root of
  5926. the directory tree where BitBake places the output of an entire
  5927. build.
  5928. :term:`TARGET_ARCH`
  5929. The target machine's architecture. The OpenEmbedded build system
  5930. supports many architectures. Here is an example list of architectures
  5931. supported. This list is by no means complete as the architecture is
  5932. configurable:
  5933. - arm
  5934. - i586
  5935. - x86_64
  5936. - powerpc
  5937. - powerpc64
  5938. - mips
  5939. - mipsel
  5940. For additional information on machine architectures, see the
  5941. :term:`TUNE_ARCH` variable.
  5942. :term:`TARGET_AS_ARCH`
  5943. Specifies architecture-specific assembler flags for the target
  5944. system. :term:`TARGET_AS_ARCH` is initialized from
  5945. :term:`TUNE_ASARGS` by default in the BitBake
  5946. configuration file (``meta/conf/bitbake.conf``)::
  5947. TARGET_AS_ARCH = "${TUNE_ASARGS}"
  5948. :term:`TARGET_CC_ARCH`
  5949. Specifies architecture-specific C compiler flags for the target
  5950. system. :term:`TARGET_CC_ARCH` is initialized from
  5951. :term:`TUNE_CCARGS` by default.
  5952. .. note::
  5953. It is a common workaround to append :term:`LDFLAGS` to
  5954. :term:`TARGET_CC_ARCH` in recipes that build software for the target that
  5955. would not otherwise respect the exported :term:`LDFLAGS` variable.
  5956. :term:`TARGET_CC_KERNEL_ARCH`
  5957. This is a specific kernel compiler flag for a CPU or Application
  5958. Binary Interface (ABI) tune. The flag is used rarely and only for
  5959. cases where a userspace :term:`TUNE_CCARGS` is not
  5960. compatible with the kernel compilation. The :term:`TARGET_CC_KERNEL_ARCH`
  5961. variable allows the kernel (and associated modules) to use a
  5962. different configuration. See the
  5963. ``meta/conf/machine/include/arm/feature-arm-thumb.inc`` file in the
  5964. :term:`Source Directory` for an example.
  5965. :term:`TARGET_CFLAGS`
  5966. Specifies the flags to pass to the C compiler when building for the
  5967. target. When building in the target context,
  5968. :term:`CFLAGS` is set to the value of this variable by
  5969. default.
  5970. Additionally, the SDK's environment setup script sets the :term:`CFLAGS`
  5971. variable in the environment to the :term:`TARGET_CFLAGS` value so that
  5972. executables built using the SDK also have the flags applied.
  5973. :term:`TARGET_CPPFLAGS`
  5974. Specifies the flags to pass to the C pre-processor (i.e. to both the
  5975. C and the C++ compilers) when building for the target. When building
  5976. in the target context, :term:`CPPFLAGS` is set to the
  5977. value of this variable by default.
  5978. Additionally, the SDK's environment setup script sets the
  5979. :term:`CPPFLAGS` variable in the environment to the :term:`TARGET_CPPFLAGS`
  5980. value so that executables built using the SDK also have the flags
  5981. applied.
  5982. :term:`TARGET_CXXFLAGS`
  5983. Specifies the flags to pass to the C++ compiler when building for the
  5984. target. When building in the target context,
  5985. :term:`CXXFLAGS` is set to the value of this variable
  5986. by default.
  5987. Additionally, the SDK's environment setup script sets the
  5988. :term:`CXXFLAGS` variable in the environment to the :term:`TARGET_CXXFLAGS`
  5989. value so that executables built using the SDK also have the flags
  5990. applied.
  5991. :term:`TARGET_FPU`
  5992. Specifies the method for handling FPU code. For FPU-less targets,
  5993. which include most ARM CPUs, the variable must be set to "soft". If
  5994. not, the kernel emulation gets used, which results in a performance
  5995. penalty.
  5996. :term:`TARGET_LD_ARCH`
  5997. Specifies architecture-specific linker flags for the target system.
  5998. :term:`TARGET_LD_ARCH` is initialized from
  5999. :term:`TUNE_LDARGS` by default in the BitBake
  6000. configuration file (``meta/conf/bitbake.conf``)::
  6001. TARGET_LD_ARCH = "${TUNE_LDARGS}"
  6002. :term:`TARGET_LDFLAGS`
  6003. Specifies the flags to pass to the linker when building for the
  6004. target. When building in the target context,
  6005. :term:`LDFLAGS` is set to the value of this variable
  6006. by default.
  6007. Additionally, the SDK's environment setup script sets the
  6008. :term:`LDFLAGS` variable in the environment to the
  6009. :term:`TARGET_LDFLAGS` value so that executables built using the SDK also
  6010. have the flags applied.
  6011. :term:`TARGET_OS`
  6012. Specifies the target's operating system. The variable can be set to
  6013. "linux" for glibc-based systems (GNU C Library) and to "linux-musl"
  6014. for musl libc. For ARM/EABI targets, the possible values are
  6015. "linux-gnueabi" and "linux-musleabi".
  6016. :term:`TARGET_PREFIX`
  6017. Specifies the prefix used for the toolchain binary target tools.
  6018. Depending on the type of recipe and the build target,
  6019. :term:`TARGET_PREFIX` is set as follows:
  6020. - For recipes building for the target machine, the value is
  6021. "${:term:`TARGET_SYS`}-".
  6022. - For native recipes, the build system sets the variable to the
  6023. value of :term:`BUILD_PREFIX`.
  6024. - For native SDK recipes (``nativesdk``), the build system sets the
  6025. variable to the value of :term:`SDK_PREFIX`.
  6026. :term:`TARGET_SYS`
  6027. Specifies the system, including the architecture and the operating
  6028. system, for which the build is occurring in the context of the
  6029. current recipe.
  6030. The OpenEmbedded build system automatically sets this variable based
  6031. on :term:`TARGET_ARCH`,
  6032. :term:`TARGET_VENDOR`, and
  6033. :term:`TARGET_OS` variables.
  6034. .. note::
  6035. You do not need to set the :term:`TARGET_SYS` variable yourself.
  6036. Consider these two examples:
  6037. - Given a native recipe on a 32-bit, x86 machine running Linux, the
  6038. value is "i686-linux".
  6039. - Given a recipe being built for a little-endian, MIPS target
  6040. running Linux, the value might be "mipsel-linux".
  6041. :term:`TARGET_VENDOR`
  6042. Specifies the name of the target vendor.
  6043. :term:`TCLIBC`
  6044. Specifies the GNU standard C library (``libc``) variant to use during
  6045. the build process. This variable replaces ``POKYLIBC``, which is no
  6046. longer supported.
  6047. You can select "glibc", "musl", "newlib", or "baremetal"
  6048. :term:`TCLIBCAPPEND`
  6049. Specifies a suffix to be appended onto the
  6050. :term:`TMPDIR` value. The suffix identifies the
  6051. ``libc`` variant for building. When you are building for multiple
  6052. variants with the same :term:`Build Directory`, this
  6053. mechanism ensures that output for different ``libc`` variants is kept
  6054. separate to avoid potential conflicts.
  6055. In the ``defaultsetup.conf`` file, the default value of
  6056. :term:`TCLIBCAPPEND` is "-${TCLIBC}". However, distros such as poky,
  6057. which normally only support one ``libc`` variant, set
  6058. :term:`TCLIBCAPPEND` to "" in their distro configuration file resulting
  6059. in no suffix being applied.
  6060. :term:`TCMODE`
  6061. Specifies the toolchain selector. :term:`TCMODE` controls the
  6062. characteristics of the generated packages and images by telling the
  6063. OpenEmbedded build system which toolchain profile to use. By default,
  6064. the OpenEmbedded build system builds its own internal toolchain. The
  6065. variable's default value is "default", which uses that internal
  6066. toolchain.
  6067. .. note::
  6068. If :term:`TCMODE` is set to a value other than "default", then it is your
  6069. responsibility to ensure that the toolchain is compatible with the
  6070. default toolchain. Using older or newer versions of these
  6071. components might cause build problems. See the Release Notes for
  6072. the Yocto Project release for the specific components with which
  6073. the toolchain must be compatible. To access the Release Notes, go
  6074. to the :yocto_home:`Downloads </software-overview/downloads>`
  6075. page on the Yocto Project website and click on the "RELEASE
  6076. INFORMATION" link for the appropriate release.
  6077. The :term:`TCMODE` variable is similar to :term:`TCLIBC`,
  6078. which controls the variant of the GNU standard C library (``libc``)
  6079. used during the build process: ``glibc`` or ``musl``.
  6080. With additional layers, it is possible to use a pre-compiled external
  6081. toolchain. One example is the Sourcery G++ Toolchain. The support for
  6082. this toolchain resides in the separate Mentor Graphics
  6083. ``meta-sourcery`` layer at
  6084. https://github.com/MentorEmbedded/meta-sourcery/.
  6085. The layer's ``README`` file contains information on how to use the
  6086. Sourcery G++ Toolchain as an external toolchain. In summary, you must
  6087. be sure to add the layer to your ``bblayers.conf`` file in front of
  6088. the ``meta`` layer and then set the ``EXTERNAL_TOOLCHAIN`` variable
  6089. in your ``local.conf`` file to the location in which you installed
  6090. the toolchain.
  6091. The fundamentals used for this example apply to any external
  6092. toolchain. You can use ``meta-sourcery`` as a template for adding
  6093. support for other external toolchains.
  6094. :term:`TEST_EXPORT_DIR`
  6095. The location the OpenEmbedded build system uses to export tests when
  6096. the :term:`TEST_EXPORT_ONLY` variable is set
  6097. to "1".
  6098. The :term:`TEST_EXPORT_DIR` variable defaults to
  6099. ``"${TMPDIR}/testimage/${PN}"``.
  6100. :term:`TEST_EXPORT_ONLY`
  6101. Specifies to export the tests only. Set this variable to "1" if you
  6102. do not want to run the tests but you want them to be exported in a
  6103. manner that you to run them outside of the build system.
  6104. :term:`TEST_LOG_DIR`
  6105. Holds the SSH log and the boot log for QEMU machines. The
  6106. :term:`TEST_LOG_DIR` variable defaults to ``"${WORKDIR}/testimage"``.
  6107. .. note::
  6108. Actual test results reside in the task log (``log.do_testimage``),
  6109. which is in the ``${WORKDIR}/temp/`` directory.
  6110. :term:`TEST_POWERCONTROL_CMD`
  6111. For automated hardware testing, specifies the command to use to
  6112. control the power of the target machine under test. Typically, this
  6113. command would point to a script that performs the appropriate action
  6114. (e.g. interacting with a web-enabled power strip). The specified
  6115. command should expect to receive as the last argument "off", "on" or
  6116. "cycle" specifying to power off, on, or cycle (power off and then
  6117. power on) the device, respectively.
  6118. :term:`TEST_POWERCONTROL_EXTRA_ARGS`
  6119. For automated hardware testing, specifies additional arguments to
  6120. pass through to the command specified in
  6121. :term:`TEST_POWERCONTROL_CMD`. Setting
  6122. :term:`TEST_POWERCONTROL_EXTRA_ARGS` is optional. You can use it if you
  6123. wish, for example, to separate the machine-specific and
  6124. non-machine-specific parts of the arguments.
  6125. :term:`TEST_QEMUBOOT_TIMEOUT`
  6126. The time in seconds allowed for an image to boot before automated
  6127. runtime tests begin to run against an image. The default timeout
  6128. period to allow the boot process to reach the login prompt is 500
  6129. seconds. You can specify a different value in the ``local.conf``
  6130. file.
  6131. For more information on testing images, see the
  6132. ":ref:`dev-manual/common-tasks:performing automated runtime testing`"
  6133. section in the Yocto Project Development Tasks Manual.
  6134. :term:`TEST_SERIALCONTROL_CMD`
  6135. For automated hardware testing, specifies the command to use to
  6136. connect to the serial console of the target machine under test. This
  6137. command simply needs to connect to the serial console and forward
  6138. that connection to standard input and output as any normal terminal
  6139. program does.
  6140. For example, to use the Picocom terminal program on serial device
  6141. ``/dev/ttyUSB0`` at 115200bps, you would set the variable as follows::
  6142. TEST_SERIALCONTROL_CMD = "picocom /dev/ttyUSB0 -b 115200"
  6143. :term:`TEST_SERIALCONTROL_EXTRA_ARGS`
  6144. For automated hardware testing, specifies additional arguments to
  6145. pass through to the command specified in
  6146. :term:`TEST_SERIALCONTROL_CMD`. Setting
  6147. :term:`TEST_SERIALCONTROL_EXTRA_ARGS` is optional. You can use it if you
  6148. wish, for example, to separate the machine-specific and
  6149. non-machine-specific parts of the command.
  6150. :term:`TEST_SERVER_IP`
  6151. The IP address of the build machine (host machine). This IP address
  6152. is usually automatically detected. However, if detection fails, this
  6153. variable needs to be set to the IP address of the build machine (i.e.
  6154. where the build is taking place).
  6155. .. note::
  6156. The :term:`TEST_SERVER_IP` variable is only used for a small number of
  6157. tests such as the "dnf" test suite, which needs to download packages
  6158. from ``WORKDIR/oe-rootfs-repo``.
  6159. :term:`TEST_SUITES`
  6160. An ordered list of tests (modules) to run against an image when
  6161. performing automated runtime testing.
  6162. The OpenEmbedded build system provides a core set of tests that can
  6163. be used against images.
  6164. .. note::
  6165. Currently, there is only support for running these tests under
  6166. QEMU.
  6167. Tests include ``ping``, ``ssh``, ``df`` among others. You can add
  6168. your own tests to the list of tests by appending :term:`TEST_SUITES` as
  6169. follows::
  6170. TEST_SUITES_append = " mytest"
  6171. Alternatively, you can
  6172. provide the "auto" option to have all applicable tests run against
  6173. the image.
  6174. ::
  6175. TEST_SUITES_append = " auto"
  6176. Using this option causes the
  6177. build system to automatically run tests that are applicable to the
  6178. image. Tests that are not applicable are skipped.
  6179. The order in which tests are run is important. Tests that depend on
  6180. another test must appear later in the list than the test on which
  6181. they depend. For example, if you append the list of tests with two
  6182. tests (``test_A`` and ``test_B``) where ``test_B`` is dependent on
  6183. ``test_A``, then you must order the tests as follows::
  6184. TEST_SUITES = "test_A test_B"
  6185. For more information on testing images, see the
  6186. ":ref:`dev-manual/common-tasks:performing automated runtime testing`"
  6187. section in the Yocto Project Development Tasks Manual.
  6188. :term:`TEST_TARGET`
  6189. Specifies the target controller to use when running tests against a
  6190. test image. The default controller to use is "qemu"::
  6191. TEST_TARGET = "qemu"
  6192. A target controller is a class that defines how an image gets
  6193. deployed on a target and how a target is started. A layer can extend
  6194. the controllers by adding a module in the layer's
  6195. ``/lib/oeqa/controllers`` directory and by inheriting the
  6196. ``BaseTarget`` class, which is an abstract class that cannot be used
  6197. as a value of :term:`TEST_TARGET`.
  6198. You can provide the following arguments with :term:`TEST_TARGET`:
  6199. - *"qemu":* Boots a QEMU image and runs the tests. See the
  6200. ":ref:`dev-manual/common-tasks:enabling runtime tests on qemu`" section
  6201. in the Yocto Project Development Tasks Manual for more
  6202. information.
  6203. - *"simpleremote":* Runs the tests on target hardware that is
  6204. already up and running. The hardware can be on the network or it
  6205. can be a device running an image on QEMU. You must also set
  6206. :term:`TEST_TARGET_IP` when you use
  6207. "simpleremote".
  6208. .. note::
  6209. This argument is defined in
  6210. ``meta/lib/oeqa/controllers/simpleremote.py``.
  6211. For information on running tests on hardware, see the
  6212. ":ref:`dev-manual/common-tasks:enabling runtime tests on hardware`"
  6213. section in the Yocto Project Development Tasks Manual.
  6214. :term:`TEST_TARGET_IP`
  6215. The IP address of your hardware under test. The :term:`TEST_TARGET_IP`
  6216. variable has no effect when :term:`TEST_TARGET` is
  6217. set to "qemu".
  6218. When you specify the IP address, you can also include a port. Here is
  6219. an example::
  6220. TEST_TARGET_IP = "192.168.1.4:2201"
  6221. Specifying a port is
  6222. useful when SSH is started on a non-standard port or in cases when
  6223. your hardware under test is behind a firewall or network that is not
  6224. directly accessible from your host and you need to do port address
  6225. translation.
  6226. :term:`TESTIMAGE_AUTO`
  6227. Automatically runs the series of automated tests for images when an
  6228. image is successfully built. Setting :term:`TESTIMAGE_AUTO` to "1" causes
  6229. any image that successfully builds to automatically boot under QEMU.
  6230. Using the variable also adds in dependencies so that any SDK for
  6231. which testing is requested is automatically built first.
  6232. These tests are written in Python making use of the ``unittest``
  6233. module, and the majority of them run commands on the target system
  6234. over ``ssh``. You can set this variable to "1" in your ``local.conf``
  6235. file in the :term:`Build Directory` to have the
  6236. OpenEmbedded build system automatically run these tests after an
  6237. image successfully builds:
  6238. TESTIMAGE_AUTO = "1"
  6239. For more information
  6240. on enabling, running, and writing these tests, see the
  6241. ":ref:`dev-manual/common-tasks:performing automated runtime testing`"
  6242. section in the Yocto Project Development Tasks Manual and the
  6243. ":ref:`testimage*.bbclass <ref-classes-testimage*>`" section.
  6244. :term:`THISDIR`
  6245. The directory in which the file BitBake is currently parsing is
  6246. located. Do not manually set this variable.
  6247. :term:`TIME`
  6248. The time the build was started. Times appear using the hour, minute,
  6249. and second (HMS) format (e.g. "140159" for one minute and fifty-nine
  6250. seconds past 1400 hours).
  6251. :term:`TMPDIR`
  6252. This variable is the base directory the OpenEmbedded build system
  6253. uses for all build output and intermediate files (other than the
  6254. shared state cache). By default, the :term:`TMPDIR` variable points to
  6255. ``tmp`` within the :term:`Build Directory`.
  6256. If you want to establish this directory in a location other than the
  6257. default, you can uncomment and edit the following statement in the
  6258. ``conf/local.conf`` file in the :term:`Source Directory`::
  6259. #TMPDIR = "${TOPDIR}/tmp"
  6260. An example use for this scenario is to set :term:`TMPDIR` to a local disk,
  6261. which does not use NFS, while having the Build Directory use NFS.
  6262. The filesystem used by :term:`TMPDIR` must have standard filesystem
  6263. semantics (i.e. mixed-case files are unique, POSIX file locking, and
  6264. persistent inodes). Due to various issues with NFS and bugs in some
  6265. implementations, NFS does not meet this minimum requirement.
  6266. Consequently, :term:`TMPDIR` cannot be on NFS.
  6267. :term:`TOOLCHAIN_HOST_TASK`
  6268. This variable lists packages the OpenEmbedded build system uses when
  6269. building an SDK, which contains a cross-development environment. The
  6270. packages specified by this variable are part of the toolchain set
  6271. that runs on the :term:`SDKMACHINE`, and each
  6272. package should usually have the prefix ``nativesdk-``. For example,
  6273. consider the following command when building an SDK::
  6274. $ bitbake -c populate_sdk imagename
  6275. In this case, a default list of packages is
  6276. set in this variable, but you can add additional packages to the
  6277. list. See the
  6278. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  6279. in the Yocto Project Application Development and the Extensible
  6280. Software Development Kit (eSDK) manual for more information.
  6281. For background information on cross-development toolchains in the
  6282. Yocto Project development environment, see the
  6283. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  6284. section in the Yocto Project Overview and Concepts Manual. For
  6285. information on setting up a cross-development environment, see the
  6286. :doc:`/sdk-manual/index` manual.
  6287. :term:`TOOLCHAIN_OUTPUTNAME`
  6288. This variable defines the name used for the toolchain output. The
  6289. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class sets
  6290. the :term:`TOOLCHAIN_OUTPUTNAME` variable as follows::
  6291. TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${SDK_VERSION}"
  6292. See
  6293. the :term:`SDK_NAME` and
  6294. :term:`SDK_VERSION` variables for additional
  6295. information.
  6296. :term:`TOOLCHAIN_TARGET_TASK`
  6297. This variable lists packages the OpenEmbedded build system uses when
  6298. it creates the target part of an SDK (i.e. the part built for the
  6299. target hardware), which includes libraries and headers. Use this
  6300. variable to add individual packages to the part of the SDK that runs
  6301. on the target. See the
  6302. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  6303. in the Yocto Project Application Development and the Extensible
  6304. Software Development Kit (eSDK) manual for more information.
  6305. For background information on cross-development toolchains in the
  6306. Yocto Project development environment, see the
  6307. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  6308. section in the Yocto Project Overview and Concepts Manual. For
  6309. information on setting up a cross-development environment, see the
  6310. :doc:`/sdk-manual/index` manual.
  6311. :term:`TOPDIR`
  6312. The top-level :term:`Build Directory`. BitBake
  6313. automatically sets this variable when you initialize your build
  6314. environment using :ref:`structure-core-script`.
  6315. :term:`TRANSLATED_TARGET_ARCH`
  6316. A sanitized version of :term:`TARGET_ARCH`. This
  6317. variable is used where the architecture is needed in a value where
  6318. underscores are not allowed, for example within package filenames. In
  6319. this case, dash characters replace any underscore characters used in
  6320. :term:`TARGET_ARCH`.
  6321. Do not edit this variable.
  6322. :term:`TUNE_ARCH`
  6323. The GNU canonical architecture for a specific architecture (i.e.
  6324. ``arm``, ``armeb``, ``mips``, ``mips64``, and so forth). BitBake uses
  6325. this value to setup configuration.
  6326. :term:`TUNE_ARCH` definitions are specific to a given architecture. The
  6327. definitions can be a single static definition, or can be dynamically
  6328. adjusted. You can see details for a given CPU family by looking at
  6329. the architecture's ``README`` file. For example, the
  6330. ``meta/conf/machine/include/mips/README`` file in the
  6331. :term:`Source Directory` provides information for
  6332. :term:`TUNE_ARCH` specific to the ``mips`` architecture.
  6333. :term:`TUNE_ARCH` is tied closely to
  6334. :term:`TARGET_ARCH`, which defines the target
  6335. machine's architecture. The BitBake configuration file
  6336. (``meta/conf/bitbake.conf``) sets :term:`TARGET_ARCH` as follows::
  6337. TARGET_ARCH = "${TUNE_ARCH}"
  6338. The following list, which is by no means complete since architectures
  6339. are configurable, shows supported machine architectures:
  6340. - arm
  6341. - i586
  6342. - x86_64
  6343. - powerpc
  6344. - powerpc64
  6345. - mips
  6346. - mipsel
  6347. :term:`TUNE_ASARGS`
  6348. Specifies architecture-specific assembler flags for the target
  6349. system. The set of flags is based on the selected tune features.
  6350. :term:`TUNE_ASARGS` is set using the tune include files, which are
  6351. typically under ``meta/conf/machine/include/`` and are influenced
  6352. through :term:`TUNE_FEATURES`. For example, the
  6353. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  6354. for the x86 architecture as follows::
  6355. TUNE_ASARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-x32", "", d)}"
  6356. .. note::
  6357. Board Support Packages (BSPs) select the tune. The selected tune,
  6358. in turn, affects the tune variables themselves (i.e. the tune can
  6359. supply its own set of flags).
  6360. :term:`TUNE_CCARGS`
  6361. Specifies architecture-specific C compiler flags for the target
  6362. system. The set of flags is based on the selected tune features.
  6363. :term:`TUNE_CCARGS` is set using the tune include files, which are
  6364. typically under ``meta/conf/machine/include/`` and are influenced
  6365. through :term:`TUNE_FEATURES`.
  6366. .. note::
  6367. Board Support Packages (BSPs) select the tune. The selected tune,
  6368. in turn, affects the tune variables themselves (i.e. the tune can
  6369. supply its own set of flags).
  6370. :term:`TUNE_FEATURES`
  6371. Features used to "tune" a compiler for optimal use given a specific
  6372. processor. The features are defined within the tune files and allow
  6373. arguments (i.e. ``TUNE_*ARGS``) to be dynamically generated based on
  6374. the features.
  6375. The OpenEmbedded build system verifies the features to be sure they
  6376. are not conflicting and that they are supported.
  6377. The BitBake configuration file (``meta/conf/bitbake.conf``) defines
  6378. :term:`TUNE_FEATURES` as follows::
  6379. TUNE_FEATURES ??= "${TUNE_FEATURES_tune-${DEFAULTTUNE}}"
  6380. See the :term:`DEFAULTTUNE` variable for more information.
  6381. :term:`TUNE_LDARGS`
  6382. Specifies architecture-specific linker flags for the target system.
  6383. The set of flags is based on the selected tune features.
  6384. :term:`TUNE_LDARGS` is set using the tune include files, which are
  6385. typically under ``meta/conf/machine/include/`` and are influenced
  6386. through :term:`TUNE_FEATURES`. For example, the
  6387. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  6388. for the x86 architecture as follows::
  6389. TUNE_LDARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-m elf32_x86_64", "", d)}"
  6390. .. note::
  6391. Board Support Packages (BSPs) select the tune. The selected tune,
  6392. in turn, affects the tune variables themselves (i.e. the tune can
  6393. supply its own set of flags).
  6394. :term:`TUNE_PKGARCH`
  6395. The package architecture understood by the packaging system to define
  6396. the architecture, ABI, and tuning of output packages. The specific
  6397. tune is defined using the "_tune" override as follows::
  6398. TUNE_PKGARCH_tune-tune = "tune"
  6399. These tune-specific package architectures are defined in the machine
  6400. include files. Here is an example of the "core2-32" tuning as used in
  6401. the ``meta/conf/machine/include/tune-core2.inc`` file::
  6402. TUNE_PKGARCH_tune-core2-32 = "core2-32"
  6403. :term:`TUNEABI`
  6404. An underlying Application Binary Interface (ABI) used by a particular
  6405. tuning in a given toolchain layer. Providers that use prebuilt
  6406. libraries can use the :term:`TUNEABI`,
  6407. :term:`TUNEABI_OVERRIDE`, and
  6408. :term:`TUNEABI_WHITELIST` variables to check
  6409. compatibility of tunings against their selection of libraries.
  6410. If :term:`TUNEABI` is undefined, then every tuning is allowed. See the
  6411. :ref:`sanity <ref-classes-sanity>` class to see how the variable is
  6412. used.
  6413. :term:`TUNEABI_OVERRIDE`
  6414. If set, the OpenEmbedded system ignores the
  6415. :term:`TUNEABI_WHITELIST` variable.
  6416. Providers that use prebuilt libraries can use the
  6417. :term:`TUNEABI_OVERRIDE`, :term:`TUNEABI_WHITELIST`, and
  6418. :term:`TUNEABI` variables to check compatibility of a
  6419. tuning against their selection of libraries.
  6420. See the :ref:`sanity <ref-classes-sanity>` class to see how the
  6421. variable is used.
  6422. :term:`TUNEABI_WHITELIST`
  6423. A whitelist of permissible :term:`TUNEABI` values. If
  6424. :term:`TUNEABI_WHITELIST` is not set, all tunes are allowed. Providers
  6425. that use prebuilt libraries can use the :term:`TUNEABI_WHITELIST`,
  6426. :term:`TUNEABI_OVERRIDE`, and :term:`TUNEABI`
  6427. variables to check compatibility of a tuning against their selection
  6428. of libraries.
  6429. See the :ref:`sanity <ref-classes-sanity>` class to see how the
  6430. variable is used.
  6431. :term:`TUNECONFLICTS[feature]`
  6432. Specifies CPU or Application Binary Interface (ABI) tuning features
  6433. that conflict with feature.
  6434. Known tuning conflicts are specified in the machine include files in
  6435. the :term:`Source Directory`. Here is an example from
  6436. the ``meta/conf/machine/include/mips/arch-mips.inc`` include file
  6437. that lists the "o32" and "n64" features as conflicting with the "n32"
  6438. feature::
  6439. TUNECONFLICTS[n32] = "o32 n64"
  6440. :term:`TUNEVALID[feature]`
  6441. Specifies a valid CPU or Application Binary Interface (ABI) tuning
  6442. feature. The specified feature is stored as a flag. Valid features
  6443. are specified in the machine include files (e.g.
  6444. ``meta/conf/machine/include/arm/arch-arm.inc``). Here is an example
  6445. from that file::
  6446. TUNEVALID[bigendian] = "Enable big-endian mode."
  6447. See the machine include files in the :term:`Source Directory`
  6448. for these features.
  6449. :term:`UBOOT_CONFIG`
  6450. Configures the :term:`UBOOT_MACHINE` and can
  6451. also define :term:`IMAGE_FSTYPES` for individual
  6452. cases.
  6453. Following is an example from the ``meta-fsl-arm`` layer. ::
  6454. UBOOT_CONFIG ??= "sd"
  6455. UBOOT_CONFIG[sd] = "mx6qsabreauto_config,sdcard"
  6456. UBOOT_CONFIG[eimnor] = "mx6qsabreauto_eimnor_config"
  6457. UBOOT_CONFIG[nand] = "mx6qsabreauto_nand_config,ubifs"
  6458. UBOOT_CONFIG[spinor] = "mx6qsabreauto_spinor_config"
  6459. In this example, "sd" is selected as the configuration of the possible four for the
  6460. :term:`UBOOT_MACHINE`. The "sd" configuration defines
  6461. "mx6qsabreauto_config" as the value for :term:`UBOOT_MACHINE`, while the
  6462. "sdcard" specifies the :term:`IMAGE_FSTYPES` to use for the U-Boot image.
  6463. For more information on how the :term:`UBOOT_CONFIG` is handled, see the
  6464. :ref:`uboot-config <ref-classes-uboot-config>`
  6465. class.
  6466. :term:`UBOOT_DTB_LOADADDRESS`
  6467. Specifies the load address for the dtb image used by U-Boot. During FIT
  6468. image creation, the :term:`UBOOT_DTB_LOADADDRESS` variable is used in
  6469. :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to specify
  6470. the load address to be used in
  6471. creating the dtb sections of Image Tree Source for the FIT image.
  6472. :term:`UBOOT_DTBO_LOADADDRESS`
  6473. Specifies the load address for the dtbo image used by U-Boot. During FIT
  6474. image creation, the :term:`UBOOT_DTBO_LOADADDRESS` variable is used in
  6475. :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to specify the load address to be used in
  6476. creating the dtbo sections of Image Tree Source for the FIT image.
  6477. :term:`UBOOT_ENTRYPOINT`
  6478. Specifies the entry point for the U-Boot image. During U-Boot image
  6479. creation, the :term:`UBOOT_ENTRYPOINT` variable is passed as a
  6480. command-line parameter to the ``uboot-mkimage`` utility.
  6481. :term:`UBOOT_LOADADDRESS`
  6482. Specifies the load address for the U-Boot image. During U-Boot image
  6483. creation, the :term:`UBOOT_LOADADDRESS` variable is passed as a
  6484. command-line parameter to the ``uboot-mkimage`` utility.
  6485. :term:`UBOOT_LOCALVERSION`
  6486. Appends a string to the name of the local version of the U-Boot
  6487. image. For example, assuming the version of the U-Boot image built
  6488. was "2013.10", the full version string reported by U-Boot would be
  6489. "2013.10-yocto" given the following statement::
  6490. UBOOT_LOCALVERSION = "-yocto"
  6491. :term:`UBOOT_MACHINE`
  6492. Specifies the value passed on the ``make`` command line when building
  6493. a U-Boot image. The value indicates the target platform
  6494. configuration. You typically set this variable from the machine
  6495. configuration file (i.e. ``conf/machine/machine_name.conf``).
  6496. Please see the "Selection of Processor Architecture and Board Type"
  6497. section in the U-Boot README for valid values for this variable.
  6498. :term:`UBOOT_MAKE_TARGET`
  6499. Specifies the target called in the ``Makefile``. The default target
  6500. is "all".
  6501. :term:`UBOOT_MKIMAGE`
  6502. Specifies the name of the mkimage command as used by the
  6503. :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to assemble
  6504. the FIT image. This can be used to substitute an alternative command, wrapper
  6505. script or function if desired. The default is "uboot-mkimage".
  6506. :term:`UBOOT_MKIMAGE_DTCOPTS`
  6507. Options for the device tree compiler passed to mkimage '-D'
  6508. feature while creating FIT image in :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class.
  6509. If :term:`UBOOT_MKIMAGE_DTCOPTS` is not set then kernel-fitimage will not
  6510. pass the ``-D`` option to mkimage.
  6511. :term:`UBOOT_MKIMAGE_SIGN`
  6512. Specifies the name of the mkimage command as used by the
  6513. :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to sign
  6514. the FIT image after it has been assembled (if enabled). This can be used
  6515. to substitute an alternative command, wrapper script or function if
  6516. desired. The default is "${:term:`UBOOT_MKIMAGE`}".
  6517. :term:`UBOOT_MKIMAGE_SIGN_ARGS`
  6518. Optionally specifies additional arguments for the
  6519. :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to pass to the
  6520. mkimage command when signing the FIT image.
  6521. :term:`UBOOT_RD_ENTRYPOINT`
  6522. Specifies the entrypoint for the RAM disk image.
  6523. During FIT image creation, the
  6524. :term:`UBOOT_RD_ENTRYPOINT` variable is used
  6525. in :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to specify the
  6526. entrypoint to be used in creating the Image Tree Source for
  6527. the FIT image.
  6528. :term:`UBOOT_RD_LOADADDRESS`
  6529. Specifies the load address for the RAM disk image.
  6530. During FIT image creation, the
  6531. :term:`UBOOT_RD_LOADADDRESS` variable is used
  6532. in :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to specify the
  6533. load address to be used in creating the Image Tree Source for
  6534. the FIT image.
  6535. :term:`UBOOT_SIGN_ENABLE`
  6536. Enable signing of FIT image. The default value is "0".
  6537. :term:`UBOOT_SIGN_KEYDIR`
  6538. Location of the directory containing the RSA key and
  6539. certificate used for signing FIT image.
  6540. :term:`UBOOT_SIGN_KEYNAME`
  6541. The name of keys used for signing U-Boot FIT image stored in
  6542. :term:`UBOOT_SIGN_KEYDIR` directory. For e.g. dev.key key and dev.crt
  6543. certificate stored in :term:`UBOOT_SIGN_KEYDIR` directory will have
  6544. :term:`UBOOT_SIGN_KEYNAME` set to "dev".
  6545. :term:`UBOOT_SUFFIX`
  6546. Points to the generated U-Boot extension. For example, ``u-boot.sb``
  6547. has a ``.sb`` extension.
  6548. The default U-Boot extension is ``.bin``
  6549. :term:`UBOOT_TARGET`
  6550. Specifies the target used for building U-Boot. The target is passed
  6551. directly as part of the "make" command (e.g. SPL and AIS). If you do
  6552. not specifically set this variable, the OpenEmbedded build process
  6553. passes and uses "all" for the target during the U-Boot building
  6554. process.
  6555. :term:`UNKNOWN_CONFIGURE_WHITELIST`
  6556. Specifies a list of options that, if reported by the configure script
  6557. as being invalid, should not generate a warning during the
  6558. :ref:`ref-tasks-configure` task. Normally, invalid
  6559. configure options are simply not passed to the configure script (e.g.
  6560. should be removed from :term:`EXTRA_OECONF` or
  6561. :term:`PACKAGECONFIG_CONFARGS`).
  6562. However, there are common options that are passed to all
  6563. configure scripts at a class level, but might not be valid for some
  6564. configure scripts. Therefore warnings about these options are useless.
  6565. For these cases, the options are added to :term:`UNKNOWN_CONFIGURE_WHITELIST`.
  6566. The configure arguments check that uses
  6567. :term:`UNKNOWN_CONFIGURE_WHITELIST` is part of the
  6568. :ref:`insane <ref-classes-insane>` class and is only enabled if the
  6569. recipe inherits the :ref:`autotools <ref-classes-autotools>` class.
  6570. :term:`UPDATERCPN`
  6571. For recipes inheriting the
  6572. :ref:`update-rc.d <ref-classes-update-rc.d>` class, :term:`UPDATERCPN`
  6573. specifies the package that contains the initscript that is enabled.
  6574. The default value is "${PN}". Given that almost all recipes that
  6575. install initscripts package them in the main package for the recipe,
  6576. you rarely need to set this variable in individual recipes.
  6577. :term:`UPSTREAM_CHECK_GITTAGREGEX`
  6578. You can perform a per-recipe check for what the latest upstream
  6579. source code version is by calling ``bitbake -c checkpkg`` recipe. If
  6580. the recipe source code is provided from Git repositories, the
  6581. OpenEmbedded build system determines the latest upstream version by
  6582. picking the latest tag from the list of all repository tags.
  6583. You can use the :term:`UPSTREAM_CHECK_GITTAGREGEX` variable to provide a
  6584. regular expression to filter only the relevant tags should the
  6585. default filter not work correctly.
  6586. ::
  6587. UPSTREAM_CHECK_GITTAGREGEX = "git_tag_regex"
  6588. :term:`UPSTREAM_CHECK_REGEX`
  6589. Use the :term:`UPSTREAM_CHECK_REGEX` variable to specify a different
  6590. regular expression instead of the default one when the package
  6591. checking system is parsing the page found using
  6592. :term:`UPSTREAM_CHECK_URI`.
  6593. ::
  6594. UPSTREAM_CHECK_REGEX = "package_regex"
  6595. :term:`UPSTREAM_CHECK_URI`
  6596. You can perform a per-recipe check for what the latest upstream
  6597. source code version is by calling ``bitbake -c checkpkg`` recipe. If
  6598. the source code is provided from tarballs, the latest version is
  6599. determined by fetching the directory listing where the tarball is and
  6600. attempting to find a later tarball. When this approach does not work,
  6601. you can use :term:`UPSTREAM_CHECK_URI` to provide a different URI that
  6602. contains the link to the latest tarball.
  6603. ::
  6604. UPSTREAM_CHECK_URI = "recipe_url"
  6605. :term:`USE_DEVFS`
  6606. Determines if ``devtmpfs`` is used for ``/dev`` population. The
  6607. default value used for :term:`USE_DEVFS` is "1" when no value is
  6608. specifically set. Typically, you would set :term:`USE_DEVFS` to "0" for a
  6609. statically populated ``/dev`` directory.
  6610. See the ":ref:`dev-manual/common-tasks:selecting a device manager`" section in
  6611. the Yocto Project Development Tasks Manual for information on how to
  6612. use this variable.
  6613. :term:`USE_VT`
  6614. When using
  6615. :ref:`SysVinit <dev-manual/common-tasks:enabling system services>`,
  6616. determines whether or not to run a
  6617. `getty <https://en.wikipedia.org/wiki/Getty_%28Unix%29>`__ on any
  6618. virtual terminals in order to enable logging in through those
  6619. terminals.
  6620. The default value used for :term:`USE_VT` is "1" when no default value is
  6621. specifically set. Typically, you would set :term:`USE_VT` to "0" in the
  6622. machine configuration file for machines that do not have a graphical
  6623. display attached and therefore do not need virtual terminal
  6624. functionality.
  6625. :term:`USER_CLASSES`
  6626. A list of classes to globally inherit. These classes are used by the
  6627. OpenEmbedded build system to enable extra features (e.g.
  6628. ``buildstats``, ``image-prelink``, and so forth).
  6629. The default list is set in your ``local.conf`` file::
  6630. USER_CLASSES ?= "buildstats image-prelink"
  6631. For more information, see
  6632. ``meta-poky/conf/local.conf.sample`` in the :term:`Source Directory`.
  6633. :term:`USERADD_ERROR_DYNAMIC`
  6634. If set to ``error``, forces the OpenEmbedded build system to produce
  6635. an error if the user identification (``uid``) and group
  6636. identification (``gid``) values are not defined in any of the files
  6637. listed in :term:`USERADD_UID_TABLES` and
  6638. :term:`USERADD_GID_TABLES`. If set to
  6639. ``warn``, a warning will be issued instead.
  6640. The default behavior for the build system is to dynamically apply
  6641. ``uid`` and ``gid`` values. Consequently, the
  6642. :term:`USERADD_ERROR_DYNAMIC` variable is by default not set. If you plan
  6643. on using statically assigned ``gid`` and ``uid`` values, you should
  6644. set the :term:`USERADD_ERROR_DYNAMIC` variable in your ``local.conf``
  6645. file as follows::
  6646. USERADD_ERROR_DYNAMIC = "error"
  6647. Overriding the
  6648. default behavior implies you are going to also take steps to set
  6649. static ``uid`` and ``gid`` values through use of the
  6650. :term:`USERADDEXTENSION`,
  6651. :term:`USERADD_UID_TABLES`, and
  6652. :term:`USERADD_GID_TABLES` variables.
  6653. .. note::
  6654. There is a difference in behavior between setting
  6655. :term:`USERADD_ERROR_DYNAMIC` to ``error`` and setting it to ``warn``.
  6656. When it is set to ``warn``, the build system will report a warning for
  6657. every undefined ``uid`` and ``gid`` in any recipe. But when it is set
  6658. to ``error``, it will only report errors for recipes that are actually
  6659. built.
  6660. This saves you from having to add static IDs for recipes that you
  6661. know will never be built.
  6662. :term:`USERADD_GID_TABLES`
  6663. Specifies a password file to use for obtaining static group
  6664. identification (``gid``) values when the OpenEmbedded build system
  6665. adds a group to the system during package installation.
  6666. When applying static group identification (``gid``) values, the
  6667. OpenEmbedded build system looks in :term:`BBPATH` for a
  6668. ``files/group`` file and then applies those ``uid`` values. Set the
  6669. variable as follows in your ``local.conf`` file::
  6670. USERADD_GID_TABLES = "files/group"
  6671. .. note::
  6672. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  6673. causes the build system to use static ``gid`` values.
  6674. :term:`USERADD_PACKAGES`
  6675. When inheriting the :ref:`useradd <ref-classes-useradd>` class,
  6676. this variable specifies the individual packages within the recipe
  6677. that require users and/or groups to be added.
  6678. You must set this variable if the recipe inherits the class. For
  6679. example, the following enables adding a user for the main package in
  6680. a recipe::
  6681. USERADD_PACKAGES = "${PN}"
  6682. .. note::
  6683. It follows that if you are going to use the :term:`USERADD_PACKAGES`
  6684. variable, you need to set one or more of the :term:`USERADD_PARAM`,
  6685. :term:`GROUPADD_PARAM`, or :term:`GROUPMEMS_PARAM` variables.
  6686. :term:`USERADD_PARAM`
  6687. When inheriting the :ref:`useradd <ref-classes-useradd>` class,
  6688. this variable specifies for a package what parameters should pass to
  6689. the ``useradd`` command if you add a user to the system when the
  6690. package is installed.
  6691. Here is an example from the ``dbus`` recipe::
  6692. USERADD_PARAM_${PN} = "--system --home ${localstatedir}/lib/dbus \
  6693. --no-create-home --shell /bin/false \
  6694. --user-group messagebus"
  6695. For information on the
  6696. standard Linux shell command ``useradd``, see
  6697. https://linux.die.net/man/8/useradd.
  6698. :term:`USERADD_UID_TABLES`
  6699. Specifies a password file to use for obtaining static user
  6700. identification (``uid``) values when the OpenEmbedded build system
  6701. adds a user to the system during package installation.
  6702. When applying static user identification (``uid``) values, the
  6703. OpenEmbedded build system looks in :term:`BBPATH` for a
  6704. ``files/passwd`` file and then applies those ``uid`` values. Set the
  6705. variable as follows in your ``local.conf`` file::
  6706. USERADD_UID_TABLES = "files/passwd"
  6707. .. note::
  6708. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  6709. causes the build system to use static ``uid`` values.
  6710. :term:`USERADDEXTENSION`
  6711. When set to "useradd-staticids", causes the OpenEmbedded build system
  6712. to base all user and group additions on a static ``passwd`` and
  6713. ``group`` files found in :term:`BBPATH`.
  6714. To use static user identification (``uid``) and group identification
  6715. (``gid``) values, set the variable as follows in your ``local.conf``
  6716. file: USERADDEXTENSION = "useradd-staticids"
  6717. .. note::
  6718. Setting this variable to use static ``uid`` and ``gid``
  6719. values causes the OpenEmbedded build system to employ the
  6720. :ref:`ref-classes-useradd` class.
  6721. If you use static ``uid`` and ``gid`` information, you must also
  6722. specify the ``files/passwd`` and ``files/group`` files by setting the
  6723. :term:`USERADD_UID_TABLES` and
  6724. :term:`USERADD_GID_TABLES` variables.
  6725. Additionally, you should also set the
  6726. :term:`USERADD_ERROR_DYNAMIC` variable.
  6727. :term:`VOLATILE_LOG_DIR`
  6728. Specifies the persistence of the target's ``/var/log`` directory,
  6729. which is used to house postinstall target log files.
  6730. By default, :term:`VOLATILE_LOG_DIR` is set to "yes", which means the
  6731. file is not persistent. You can override this setting by setting the
  6732. variable to "no" to make the log directory persistent.
  6733. :term:`WARN_QA`
  6734. Specifies the quality assurance checks whose failures are reported as
  6735. warnings by the OpenEmbedded build system. You set this variable in
  6736. your distribution configuration file. For a list of the checks you
  6737. can control with this variable, see the
  6738. ":ref:`insane.bbclass <ref-classes-insane>`" section.
  6739. :term:`WKS_FILE`
  6740. Specifies the location of the Wic kickstart file that is used by the
  6741. OpenEmbedded build system to create a partitioned image
  6742. (image\ ``.wic``). For information on how to create a partitioned
  6743. image, see the
  6744. ":ref:`dev-manual/common-tasks:creating partitioned images using wic`"
  6745. section in the Yocto Project Development Tasks Manual. For details on
  6746. the kickstart file format, see the ":doc:`/ref-manual/kickstart`" Chapter.
  6747. :term:`WKS_FILE_DEPENDS`
  6748. When placed in the recipe that builds your image, this variable lists
  6749. build-time dependencies. The :term:`WKS_FILE_DEPENDS` variable is only
  6750. applicable when Wic images are active (i.e. when
  6751. :term:`IMAGE_FSTYPES` contains entries related
  6752. to Wic). If your recipe does not create Wic images, the variable has
  6753. no effect.
  6754. The :term:`WKS_FILE_DEPENDS` variable is similar to the
  6755. :term:`DEPENDS` variable. When you use the variable in
  6756. your recipe that builds the Wic image, dependencies you list in the
  6757. :term:`WKS_FILE_DEPENDS` variable are added to the :term:`DEPENDS` variable.
  6758. With the :term:`WKS_FILE_DEPENDS` variable, you have the possibility to
  6759. specify a list of additional dependencies (e.g. native tools,
  6760. bootloaders, and so forth), that are required to build Wic images.
  6761. Following is an example::
  6762. WKS_FILE_DEPENDS = "some-native-tool"
  6763. In the
  6764. previous example, some-native-tool would be replaced with an actual
  6765. native tool on which the build would depend.
  6766. :term:`WORKDIR`
  6767. The pathname of the work directory in which the OpenEmbedded build
  6768. system builds a recipe. This directory is located within the
  6769. :term:`TMPDIR` directory structure and is specific to
  6770. the recipe being built and the system for which it is being built.
  6771. The :term:`WORKDIR` directory is defined as follows::
  6772. ${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}
  6773. The actual directory depends on several things:
  6774. - :term:`TMPDIR`: The top-level build output directory
  6775. - :term:`MULTIMACH_TARGET_SYS`: The target system identifier
  6776. - :term:`PN`: The recipe name
  6777. - :term:`EXTENDPE`: The epoch - (if :term:`PE` is not specified, which
  6778. is usually the case for most recipes, then `EXTENDPE` is blank)
  6779. - :term:`PV`: The recipe version
  6780. - :term:`PR`: The recipe revision
  6781. As an example, assume a Source Directory top-level folder name
  6782. ``poky``, a default Build Directory at ``poky/build``, and a
  6783. ``qemux86-poky-linux`` machine target system. Furthermore, suppose
  6784. your recipe is named ``foo_1.3.0-r0.bb``. In this case, the work
  6785. directory the build system uses to build the package would be as
  6786. follows::
  6787. poky/build/tmp/work/qemux86-poky-linux/foo/1.3.0-r0
  6788. :term:`XSERVER`
  6789. Specifies the packages that should be installed to provide an X
  6790. server and drivers for the current machine, assuming your image
  6791. directly includes ``packagegroup-core-x11-xserver`` or, perhaps
  6792. indirectly, includes "x11-base" in
  6793. :term:`IMAGE_FEATURES`.
  6794. The default value of :term:`XSERVER`, if not specified in the machine
  6795. configuration, is "xserver-xorg xf86-video-fbdev xf86-input-evdev".