ref-variables.xml 341 KB

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