ref-variables.rst 361 KB

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