ref-variables.xml 818 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015
  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-ABIEXTENSION'>A</link>
  14. <link linkend='var-B'>B</link>
  15. <link linkend='var-CACHE'>C</link>
  16. <link linkend='var-D'>D</link>
  17. <link linkend='var-EFI_PROVIDER'>E</link>
  18. <link linkend='var-FEATURE_PACKAGES'>F</link>
  19. <link linkend='var-GDB'>G</link>
  20. <link linkend='var-HOMEPAGE'>H</link>
  21. <link linkend='var-ICECC_DISABLED'>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-OBJCOPY'>O</link>
  28. <link linkend='var-P'>P</link>
  29. <!-- <link linkend='var-glossary-q'>Q</link> -->
  30. <link linkend='var-RANLIB'>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-VOLATILE_LOG_DIR'>V</link>
  35. <link linkend='var-WARN_QA'>W</link>
  36. <link linkend='var-XSERVER'>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-ABIEXTENSION'><glossterm>ABIEXTENSION</glossterm>
  42. <info>
  43. ABIEXTENSION[doc] = "Extension to the Application Binary Interface (ABI) field of the GNU canonical architecture name (e.g. "eabi")."
  44. </info>
  45. <glossdef>
  46. <para role="glossdeffirst">
  47. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  48. Extension to the Application Binary Interface (ABI)
  49. field of the GNU canonical architecture name
  50. (e.g. "eabi").
  51. </para>
  52. <para>
  53. ABI extensions are set in the machine include files.
  54. For example, the
  55. <filename>meta/conf/machine/include/arm/arch-arm.inc</filename>
  56. file sets the following extension:
  57. <literallayout class='monospaced'>
  58. ABIEXTENSION = "eabi"
  59. </literallayout>
  60. </para>
  61. </glossdef>
  62. </glossentry>
  63. <glossentry id='var-ALLOW_EMPTY'><glossterm>ALLOW_EMPTY</glossterm>
  64. <info>
  65. ALLOW_EMPTY[doc] = "Specifies if an output package should still be produced if it is empty."
  66. </info>
  67. <glossdef>
  68. <para role="glossdeffirst">
  69. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  70. Specifies if an output package should still be produced if it is empty.
  71. By default, BitBake does not produce empty packages.
  72. This default behavior can cause issues when there is an
  73. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link> or
  74. some other hard runtime requirement on the existence of the package.
  75. </para>
  76. <para>
  77. Like all package-controlling variables, you must always use them in
  78. conjunction with a package name override, as in:
  79. <literallayout class='monospaced'>
  80. ALLOW_EMPTY_${PN} = "1"
  81. ALLOW_EMPTY_${PN}-dev = "1"
  82. ALLOW_EMPTY_${PN}-staticdev = "1"
  83. </literallayout>
  84. </para>
  85. </glossdef>
  86. </glossentry>
  87. <glossentry id='var-ALTERNATIVE'><glossterm>ALTERNATIVE</glossterm>
  88. <info>
  89. ALTERNATIVE[doc] = "Lists commands in a package that need an alternative binary naming scheme."
  90. </info>
  91. <glossdef>
  92. <para role="glossdeffirst">
  93. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  94. Lists commands in a package that need an alternative
  95. binary naming scheme.
  96. Sometimes the same command is provided in multiple packages.
  97. When this occurs, the OpenEmbedded build system needs to
  98. use the alternatives system to create a different binary
  99. naming scheme so the commands can co-exist.
  100. </para>
  101. <para>
  102. To use the variable, list out the package's commands
  103. that also exist as part of another package.
  104. For example, if the <filename>busybox</filename> package
  105. has four commands that also exist as part of another
  106. package, you identify them as follows:
  107. <literallayout class='monospaced'>
  108. ALTERNATIVE_busybox = "sh sed test bracket"
  109. </literallayout>
  110. For more information on the alternatives system, see the
  111. "<link linkend='ref-classes-update-alternatives'><filename>update-alternatives.bbclass</filename></link>"
  112. section.
  113. </para>
  114. </glossdef>
  115. </glossentry>
  116. <glossentry id='var-ALTERNATIVE_LINK_NAME'><glossterm>ALTERNATIVE_LINK_NAME</glossterm>
  117. <info>
  118. ALTERNATIVE_LINK_NAME[doc] = "Used by the alternatives system to map duplicated commands to actual locations."
  119. </info>
  120. <glossdef>
  121. <para role="glossdeffirst">
  122. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  123. Used by the alternatives system to map duplicated commands
  124. to actual locations.
  125. For example, if the <filename>bracket</filename> command
  126. provided by the <filename>busybox</filename> package is
  127. duplicated through another package, you must use the
  128. <filename>ALTERNATIVE_LINK_NAME</filename> variable to
  129. specify the actual location:
  130. <literallayout class='monospaced'>
  131. ALTERNATIVE_LINK_NAME[bracket] = "/usr/bin/["
  132. </literallayout>
  133. </para>
  134. <para>
  135. In this example, the binary for the
  136. <filename>bracket</filename> command (i.e.
  137. <filename>[</filename>) from the
  138. <filename>busybox</filename> package resides in
  139. <filename>/usr/bin/</filename>.
  140. <note>
  141. If <filename>ALTERNATIVE_LINK_NAME</filename> is not
  142. defined, it defaults to
  143. <filename>${bindir}/<replaceable>name</replaceable></filename>.
  144. </note>
  145. </para>
  146. <para>
  147. For more information on the alternatives system, see the
  148. "<link linkend='ref-classes-update-alternatives'><filename>update-alternatives.bbclass</filename></link>"
  149. section.
  150. </para>
  151. </glossdef>
  152. </glossentry>
  153. <glossentry id='var-ALTERNATIVE_PRIORITY'><glossterm>ALTERNATIVE_PRIORITY</glossterm>
  154. <info>
  155. ALTERNATIVE_PRIORITY[doc] = "Used by the alternatives system to create default priorities for duplicated commands."
  156. </info>
  157. <glossdef>
  158. <para role="glossdeffirst">
  159. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  160. Used by the alternatives system to create default
  161. priorities for duplicated commands.
  162. You can use the variable to create a single default
  163. regardless of the command name or package, a default for
  164. specific duplicated commands regardless of the package, or
  165. a default for specific commands tied to particular packages.
  166. Here are the available syntax forms:
  167. <literallayout class='monospaced'>
  168. ALTERNATIVE_PRIORITY = "<replaceable>priority</replaceable>"
  169. ALTERNATIVE_PRIORITY[<replaceable>name</replaceable>] = "<replaceable>priority</replaceable>"
  170. ALTERNATIVE_PRIORITY_<replaceable>pkg</replaceable>[<replaceable>name</replaceable>] = "<replaceable>priority</replaceable>"
  171. </literallayout>
  172. </para>
  173. <para>
  174. For more information on the alternatives system, see the
  175. "<link linkend='ref-classes-update-alternatives'><filename>update-alternatives.bbclass</filename></link>"
  176. section.
  177. </para>
  178. </glossdef>
  179. </glossentry>
  180. <glossentry id='var-ALTERNATIVE_TARGET'><glossterm>ALTERNATIVE_TARGET</glossterm>
  181. <info>
  182. ALTERNATIVE_TARGET[doc] = "Used by the alternatives system to create default link locations for duplicated commands."
  183. </info>
  184. <glossdef>
  185. <para role="glossdeffirst">
  186. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  187. Used by the alternatives system to create default link
  188. locations for duplicated commands.
  189. You can use the variable to create a single default
  190. location for all duplicated commands regardless of the
  191. command name or package, a default for
  192. specific duplicated commands regardless of the package, or
  193. a default for specific commands tied to particular packages.
  194. Here are the available syntax forms:
  195. <literallayout class='monospaced'>
  196. ALTERNATIVE_TARGET = "<replaceable>target</replaceable>"
  197. ALTERNATIVE_TARGET[<replaceable>name</replaceable>] = "<replaceable>target</replaceable>"
  198. ALTERNATIVE_TARGET_<replaceable>pkg</replaceable>[<replaceable>name</replaceable>] = "<replaceable>target</replaceable>"
  199. </literallayout>
  200. <note>
  201. <para>
  202. If <filename>ALTERNATIVE_TARGET</filename> is not
  203. defined, it inherits the value from the
  204. <link linkend='var-ALTERNATIVE_LINK_NAME'><filename>ALTERNATIVE_LINK_NAME</filename></link>
  205. variable.
  206. </para>
  207. <para>
  208. If <filename>ALTERNATIVE_LINK_NAME</filename> and
  209. <filename>ALTERNATIVE_TARGET</filename> are the
  210. same, the target for
  211. <filename>ALTERNATIVE_TARGET</filename>
  212. has "<filename>.{BPN}</filename>" appended to it.
  213. </para>
  214. <para>
  215. Finally, if the file referenced has not been
  216. renamed, the alternatives system will rename it to
  217. avoid the need to rename alternative files in the
  218. <link linkend='ref-tasks-install'><filename>do_install</filename></link>
  219. task while
  220. retaining support for the command if necessary.
  221. </para>
  222. </note>
  223. </para>
  224. <para>
  225. For more information on the alternatives system, see the
  226. "<link linkend='ref-classes-update-alternatives'><filename>update-alternatives.bbclass</filename></link>"
  227. section.
  228. </para>
  229. </glossdef>
  230. </glossentry>
  231. <glossentry id='var-APPEND'><glossterm>APPEND</glossterm>
  232. <info>
  233. APPEND[doc] = "An override list of append strings for each LABEL."
  234. </info>
  235. <glossdef>
  236. <para role="glossdeffirst">
  237. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  238. An override list of append strings for each
  239. <link linkend='var-LABELS'><filename>LABEL</filename></link>.
  240. </para>
  241. <para>
  242. See the
  243. <link linkend='ref-classes-grub-efi'><filename>grub-efi</filename></link>
  244. class for more information on how this variable is used.
  245. </para>
  246. </glossdef>
  247. </glossentry>
  248. <glossentry id='var-AR'><glossterm>AR</glossterm>
  249. <info>
  250. AR[doc] = "Minimal command and arguments to run 'ar'."
  251. </info>
  252. <glossdef>
  253. <para role="glossdeffirst">
  254. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  255. The minimal command and arguments used to run
  256. <filename>ar</filename>.
  257. </para>
  258. </glossdef>
  259. </glossentry>
  260. <glossentry id='var-ARCHIVER_MODE'><glossterm>ARCHIVER_MODE</glossterm>
  261. <info>
  262. ARCHIVER_MODE[doc] = "Controls archive creation used when releasing source files."
  263. </info>
  264. <glossdef>
  265. <para role="glossdeffirst">
  266. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  267. When used with the
  268. <link linkend='ref-classes-archiver'><filename>archiver</filename></link>
  269. class, determines the type of information used to create
  270. a released archive.
  271. You can use this variable to create archives of patched
  272. source, original source, configured source, and so forth
  273. by employing the following variable flags (varflags):
  274. <literallayout class='monospaced'>
  275. ARCHIVER_MODE[src] = "original" # Uses original (unpacked) source
  276. # files.
  277. ARCHIVER_MODE[src] = "patched" # Uses patched source files. This is
  278. # the default.
  279. ARCHIVER_MODE[src] = "configured" # Uses configured source files.
  280. ARCHIVER_MODE[diff] = "1" # Uses patches between do_unpack and
  281. # do_patch.
  282. ARCHIVER_MODE[diff-exclude] ?= "<replaceable>file</replaceable> <replaceable>file</replaceable> ..." # Lists files and directories to
  283. # exclude from diff.
  284. ARCHIVER_MODE[dumpdata] = "1" # Uses environment data.
  285. ARCHIVER_MODE[recipe] = "1" # Uses recipe and include files.
  286. ARCHIVER_MODE[srpm] = "1" # Uses RPM package files.
  287. </literallayout>
  288. For information on how the variable works, see the
  289. <filename>meta/classes/archiver.bbclass</filename> file
  290. in the
  291. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>.
  292. </para>
  293. </glossdef>
  294. </glossentry>
  295. <glossentry id='var-AS'><glossterm>AS</glossterm>
  296. <info>
  297. AS[doc] = "Minimal command and arguments to run the assembler."
  298. </info>
  299. <glossdef>
  300. <para role="glossdeffirst">
  301. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  302. The minimal command and arguments used to run the
  303. assembler.
  304. </para>
  305. </glossdef>
  306. </glossentry>
  307. <glossentry id='var-ASSUME_PROVIDED'><glossterm>ASSUME_PROVIDED</glossterm>
  308. <info>
  309. ASSUME_PROVIDED[doc] = "Lists recipe names (PN values) BitBake does not attempt to build."
  310. </info>
  311. <glossdef>
  312. <para role="glossdeffirst">
  313. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  314. Lists recipe names
  315. (<link linkend='var-PN'><filename>PN</filename></link>
  316. values) BitBake does not attempt to build.
  317. Instead, BitBake assumes these recipes have already been
  318. built.
  319. </para>
  320. <para>
  321. In OpenEmbedded Core, <filename>ASSUME_PROVIDED</filename>
  322. mostly specifies native tools that should not be built.
  323. An example is <filename>git-native</filename>, which when
  324. specified, allows for the Git binary from the host to be
  325. used rather than building <filename>git-native</filename>.
  326. </para>
  327. </glossdef>
  328. </glossentry>
  329. <glossentry id='var-ASSUME_SHLIBS'><glossterm>ASSUME_SHLIBS</glossterm>
  330. <info>
  331. ASSUME_SHLIBS[doc] = Provides additional shlibs provider mapping information, which adds to or overwrites the information provided automatically by the system."
  332. </info>
  333. <glossdef>
  334. <para role="glossdeffirst">
  335. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  336. Provides additional <filename>shlibs</filename> provider
  337. mapping information, which adds to or overwrites the
  338. information provided automatically by the system.
  339. Separate multiple entries using spaces.
  340. </para>
  341. <para>
  342. As an example, use the following form to add an
  343. <filename>shlib</filename> provider of
  344. <replaceable>shlibname</replaceable> in
  345. <replaceable>packagename</replaceable> with the optional
  346. <replaceable>version</replaceable>:
  347. <literallayout class='monospaced'>
  348. <replaceable>shlibname:packagename</replaceable>[_<replaceable>version</replaceable>]
  349. </literallayout>
  350. </para>
  351. <para>
  352. Here is an example that adds a shared library named
  353. <filename>libEGL.so.1</filename> as being provided by
  354. the <filename>libegl-implementation</filename> package:
  355. <literallayout class='monospaced'>
  356. ASSUME_SHLIBS = "libEGL.so.1:libegl-implementation"
  357. </literallayout>
  358. </para>
  359. </glossdef>
  360. </glossentry>
  361. <glossentry id='var-AUTHOR'><glossterm>AUTHOR</glossterm>
  362. <info>
  363. AUTHOR[doc] = "Email address used to contact the original author or authors in order to send patches and forward bugs."
  364. </info>
  365. <glossdef>
  366. <para role="glossdeffirst">
  367. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  368. The email address used to contact the original author
  369. or authors in order to send patches and forward bugs.
  370. </para>
  371. </glossdef>
  372. </glossentry>
  373. <glossentry id='var-AUTO_LIBNAME_PKGS'><glossterm>AUTO_LIBNAME_PKGS</glossterm>
  374. <info>
  375. AUTO_LIBNAME_PKGS[doc] = "Specifies which packages should be checked for libraries and renamed according to Debian library package naming."
  376. </info>
  377. <glossdef>
  378. <para role="glossdeffirst">
  379. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  380. When the
  381. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  382. class is inherited, which is the default behavior,
  383. <filename>AUTO_LIBNAME_PKGS</filename> specifies which
  384. packages should be checked for libraries and renamed
  385. according to Debian library package naming.
  386. </para>
  387. <para>
  388. The default value is "${PACKAGES}", which causes the
  389. debian class to act on all packages that are
  390. explicitly generated by the recipe.
  391. </para>
  392. </glossdef>
  393. </glossentry>
  394. <glossentry id='var-AUTO_SYSLINUXMENU'><glossterm>AUTO_SYSLINUXMENU</glossterm>
  395. <info>
  396. AUTO_SYSLINUXMENU[doc] = "Enables creating an automatic menu for the syslinux bootloader."
  397. </info>
  398. <glossdef>
  399. <para role="glossdeffirst">
  400. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  401. Enables creating an automatic menu for the syslinux
  402. bootloader.
  403. You must set this variable in your recipe.
  404. The
  405. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  406. class checks this variable.
  407. </para>
  408. </glossdef>
  409. </glossentry>
  410. <glossentry id='var-AUTOREV'><glossterm>AUTOREV</glossterm>
  411. <info>
  412. AUTOREV[doc] = "When SRCREV is set to the value of this variable, it specifies to use the latest source revision in the repository."
  413. </info>
  414. <glossdef>
  415. <para role="glossdeffirst">
  416. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  417. When
  418. <filename><link linkend='var-SRCREV'>SRCREV</link></filename>
  419. is set to the value of this variable, it specifies to use
  420. the latest source revision in the repository.
  421. Here is an example:
  422. <literallayout class='monospaced'>
  423. SRCREV = "${AUTOREV}"
  424. </literallayout>
  425. </para>
  426. <para>
  427. If you use the previous statement to retrieve the latest
  428. version of software, you need to be sure
  429. <link linkend='var-PV'><filename>PV</filename></link>
  430. contains
  431. <filename>${</filename><link linkend='var-SRCPV'><filename>SRCPV</filename></link><filename>}</filename>.
  432. For example, suppose you have a kernel recipe that
  433. inherits the
  434. <link linkend='ref-classes-kernel'>kernel</link> class
  435. and you use the previous statement.
  436. In this example, <filename>${SRCPV}</filename> does not
  437. automatically get into <filename>PV</filename>.
  438. Consequently, you need to change <filename>PV</filename>
  439. in your recipe so that it does contain
  440. <filename>${SRCPV}</filename>.
  441. </para>
  442. <para>
  443. For more information see the
  444. "<ulink url='&YOCTO_DOCS_DEV_URL;#automatically-incrementing-a-binary-package-revision-number'>Automatically Incrementing a Binary Package Revision Number</ulink>"
  445. section in the Yocto Project Development Manual.
  446. </para>
  447. </glossdef>
  448. </glossentry>
  449. <glossentry id='var-AVAILTUNES'><glossterm>AVAILTUNES</glossterm>
  450. <info>
  451. AVAILTUNES[doc] = "The list of defined CPU and Application Binary Interface (ABI) tunings (i.e. "tunes") available for use by the OpenEmbedded build system."
  452. </info>
  453. <glossdef>
  454. <para role="glossdeffirst">
  455. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  456. The list of defined CPU and Application Binary Interface
  457. (ABI) tunings (i.e. "tunes") available for use by the
  458. OpenEmbedded build system.
  459. </para>
  460. <para>
  461. The list simply presents the tunes that are available.
  462. Not all tunes may be compatible with a particular
  463. machine configuration, or with each other in a
  464. <ulink url='&YOCTO_DOCS_DEV_URL;#combining-multiple-versions-library-files-into-one-image'>Multilib</ulink>
  465. configuration.
  466. </para>
  467. <para>
  468. To add a tune to the list, be sure to append it with
  469. spaces using the "+=" BitBake operator.
  470. Do not simply replace the list by using the "=" operator.
  471. See the
  472. "<ulink url='&YOCTO_DOCS_BB_URL;#basic-syntax'>Basic Syntax</ulink>"
  473. section in the BitBake User Manual for more information.
  474. </para>
  475. </glossdef>
  476. </glossentry>
  477. </glossdiv>
  478. <glossdiv id='var-glossary-b'><title>B</title>
  479. <glossentry id='var-B'><glossterm>B</glossterm>
  480. <info>
  481. B[doc] = "The Build Directory. The OpenEmbedded build system places generated objects into the Build Directory during a recipe's build process."
  482. </info>
  483. <glossdef>
  484. <para role="glossdeffirst">
  485. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  486. The directory within the
  487. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>
  488. in which the OpenEmbedded build system places generated
  489. objects during a recipe's build process.
  490. By default, this directory is the same as the <link linkend='var-S'><filename>S</filename></link>
  491. directory, which is defined as:
  492. <literallayout class='monospaced'>
  493. S = "${WORKDIR}/${BP}"
  494. </literallayout>
  495. </para>
  496. <para>
  497. You can separate the (<filename>S</filename>) directory
  498. and the directory pointed to by the <filename>B</filename>
  499. variable.
  500. Most Autotools-based recipes support separating these
  501. directories.
  502. The build system defaults to using separate directories for
  503. <filename>gcc</filename> and some kernel recipes.
  504. </para>
  505. </glossdef>
  506. </glossentry>
  507. <glossentry id='var-BAD_RECOMMENDATIONS'><glossterm>BAD_RECOMMENDATIONS</glossterm>
  508. <info>
  509. BAD_RECOMMENDATIONS[doc] = "A list of packages not to install despite being recommended by a recipe. Support for this variable exists only when using the IPK packaging backend."
  510. </info>
  511. <glossdef>
  512. <para role="glossdeffirst">
  513. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  514. Lists "recommended-only" packages to not install.
  515. Recommended-only packages are packages installed only
  516. through the
  517. <link linkend='var-RRECOMMENDS'><filename>RRECOMMENDS</filename></link>
  518. variable.
  519. You can prevent any of these "recommended" packages from
  520. being installed by listing them with the
  521. <filename>BAD_RECOMMENDATIONS</filename> variable:
  522. <literallayout class='monospaced'>
  523. BAD_RECOMMENDATIONS = "<replaceable>package_name</replaceable> <replaceable>package_name</replaceable> <replaceable>package_name</replaceable> ..."
  524. </literallayout>
  525. </para>
  526. <para>
  527. You can set this variable globally in your
  528. <filename>local.conf</filename> file or you can attach it to
  529. a specific image recipe by using the recipe name override:
  530. <literallayout class='monospaced'>
  531. BAD_RECOMMENDATIONS_pn-<replaceable>target_image</replaceable> = "<replaceable>package_name</replaceable>"
  532. </literallayout>
  533. </para>
  534. <para>
  535. It is important to realize that if you choose to not install
  536. packages using this variable and some other packages are
  537. dependent on them (i.e. listed in a recipe's
  538. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>
  539. variable), the OpenEmbedded build system ignores your
  540. request and will install the packages to avoid dependency
  541. errors.
  542. </para>
  543. <para>
  544. Support for this variable exists only when using the
  545. IPK and RPM packaging backend.
  546. Support does not exist for DEB.
  547. </para>
  548. <para>
  549. See the
  550. <link linkend='var-NO_RECOMMENDATIONS'><filename>NO_RECOMMENDATIONS</filename></link>
  551. and the
  552. <link linkend='var-PACKAGE_EXCLUDE'><filename>PACKAGE_EXCLUDE</filename></link>
  553. variables for related information.
  554. </para>
  555. </glossdef>
  556. </glossentry>
  557. <glossentry id='var-BASE_LIB'><glossterm>BASE_LIB</glossterm>
  558. <info>
  559. BASE_LIB[doc] = "The library directory name for the CPU or Application Binary Interface (ABI) tune."
  560. </info>
  561. <glossdef>
  562. <para role="glossdeffirst">
  563. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  564. The library directory name for the CPU or Application
  565. Binary Interface (ABI) tune.
  566. The <filename>BASE_LIB</filename> applies only in the
  567. Multilib context.
  568. See the
  569. "<ulink url='&YOCTO_DOCS_DEV_URL;#combining-multiple-versions-library-files-into-one-image'>Combining Multiple Versions of Library Files into One Image</ulink>"
  570. section in the Yocto Project Development Manual for
  571. information on Multilib.
  572. </para>
  573. <para>
  574. The <filename>BASE_LIB</filename> variable is defined in
  575. the machine include files in the
  576. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>.
  577. If Multilib is not being used, the value defaults to "lib".
  578. </para>
  579. </glossdef>
  580. </glossentry>
  581. <glossentry id='var-BASE_WORKDIR'><glossterm>BASE_WORKDIR</glossterm>
  582. <info>
  583. BASE_WORKDIR[doc] = "Points to the base of the work directory for all recipes."
  584. </info>
  585. <glossdef>
  586. <para role="glossdeffirst">
  587. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  588. Points to the base of the work directory for all recipes.
  589. The default value is "${TMPDIR}/work".
  590. </para>
  591. </glossdef>
  592. </glossentry>
  593. <glossentry id='var-BB_ALLOWED_NETWORKS'><glossterm>BB_ALLOWED_NETWORKS</glossterm>
  594. <info>
  595. BB_ALLOWED_NETWORKS[doc] = "A list of hosts that the fetcher is allowed to use to obtain the required source code."
  596. </info>
  597. <glossdef>
  598. <para>
  599. Specifies a space-delimited list of hosts that the fetcher
  600. is allowed to use to obtain the required source code.
  601. Following are considerations surrounding this variable:
  602. <itemizedlist>
  603. <listitem><para>
  604. This host list is only used if
  605. <filename>BB_NO_NETWORK</filename> is either not
  606. set or set to "0".
  607. </para></listitem>
  608. <listitem><para>
  609. Limited support for wildcard matching against the
  610. beginning of host names exists.
  611. For example, the following setting matches
  612. <filename>git.gnu.org</filename>,
  613. <filename>ftp.gnu.org</filename>, and
  614. <filename>foo.git.gnu.org</filename>.
  615. <literallayout class='monospaced'>
  616. BB_ALLOWED_NETWORKS = "*.gnu.org"
  617. </literallayout>
  618. </para></listitem>
  619. <listitem><para>
  620. Mirrors not in the host list are skipped and
  621. logged in debug.
  622. </para></listitem>
  623. <listitem><para>
  624. Attempts to access networks not in the host list
  625. cause a failure.
  626. </para></listitem>
  627. </itemizedlist>
  628. Using <filename>BB_ALLOWED_NETWORKS</filename> in
  629. conjunction with
  630. <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>
  631. is very useful.
  632. Adding the host you want to use to
  633. <filename>PREMIRRORS</filename> results in the source code
  634. being fetched from an allowed location and avoids raising
  635. an error when a host that is not allowed is in a
  636. <link linkend='var-SRC_URI'><filename>SRC_URI</filename></link>
  637. statement.
  638. This is because the fetcher does not attempt to use the
  639. host listed in <filename>SRC_URI</filename> after a
  640. successful fetch from the
  641. <filename>PREMIRRORS</filename> occurs.
  642. </para>
  643. </glossdef>
  644. </glossentry>
  645. <glossentry id='var-BB_DANGLINGAPPENDS_WARNONLY'><glossterm>BB_DANGLINGAPPENDS_WARNONLY</glossterm>
  646. <info>
  647. BB_DANGLINGAPPENDS_WARNONLY[doc] = "Defines how BitBake handles situations where an append file (.bbappend) has no corresponding recipe file (.bb)."
  648. </info>
  649. <glossdef>
  650. <para role="glossdeffirst">
  651. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  652. Defines how BitBake handles situations where an append
  653. file (<filename>.bbappend</filename>) has no
  654. corresponding recipe file (<filename>.bb</filename>).
  655. This condition often occurs when layers get out of sync
  656. (e.g. <filename>oe-core</filename> bumps a
  657. recipe version and the old recipe no longer exists and the
  658. other layer has not been updated to the new version
  659. of the recipe yet).
  660. </para>
  661. <para>
  662. The default fatal behavior is safest because it is
  663. the sane reaction given something is out of sync.
  664. It is important to realize when your changes are no longer
  665. being applied.
  666. </para>
  667. <para>
  668. You can change the default behavior by setting this
  669. variable to "1", "yes", or "true"
  670. in your <filename>local.conf</filename> file, which is
  671. located in the
  672. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>:
  673. Here is an example:
  674. <literallayout class='monospaced'>
  675. BB_DANGLINGAPPENDS_WARNONLY = "1"
  676. </literallayout>
  677. </para>
  678. </glossdef>
  679. </glossentry>
  680. <glossentry id='var-BB_DISKMON_DIRS'><glossterm>BB_DISKMON_DIRS</glossterm>
  681. <info>
  682. BB_DISKMON_DIRS[doc] = "Monitors disk space and available inodes during the build and allows you to control the build based on these parameters."
  683. </info>
  684. <glossdef>
  685. <para role="glossdeffirst">
  686. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  687. Monitors disk space and available inodes during the build
  688. and allows you to control the build based on these
  689. parameters.
  690. </para>
  691. <para>
  692. Disk space monitoring is disabled by default.
  693. To enable monitoring, add the <filename>BB_DISKMON_DIRS</filename>
  694. variable to your <filename>conf/local.conf</filename> file found in the
  695. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>.
  696. Use the following form:
  697. <literallayout class='monospaced'>
  698. BB_DISKMON_DIRS = "<replaceable>action</replaceable>,<replaceable>dir</replaceable>,<replaceable>threshold</replaceable> [...]"
  699. where:
  700. <replaceable>action</replaceable> is:
  701. ABORT: Immediately abort the build when
  702. a threshold is broken.
  703. STOPTASKS: Stop the build after the currently
  704. executing tasks have finished when
  705. a threshold is broken.
  706. WARN: Issue a warning but continue the
  707. build when a threshold is broken.
  708. Subsequent warnings are issued as
  709. defined by the
  710. <link linkend='var-BB_DISKMON_WARNINTERVAL'>BB_DISKMON_WARNINTERVAL</link> variable,
  711. which must be defined in the
  712. conf/local.conf file.
  713. <replaceable>dir</replaceable> is:
  714. Any directory you choose. You can specify one or
  715. more directories to monitor by separating the
  716. groupings with a space. If two directories are
  717. on the same device, only the first directory
  718. is monitored.
  719. <replaceable>threshold</replaceable> is:
  720. Either the minimum available disk space,
  721. the minimum number of free inodes, or
  722. both. You must specify at least one. To
  723. omit one or the other, simply omit the value.
  724. Specify the threshold using G, M, K for Gbytes,
  725. Mbytes, and Kbytes, respectively. If you do
  726. not specify G, M, or K, Kbytes is assumed by
  727. default. Do not use GB, MB, or KB.
  728. </literallayout>
  729. </para>
  730. <para>
  731. Here are some examples:
  732. <literallayout class='monospaced'>
  733. BB_DISKMON_DIRS = "ABORT,${TMPDIR},1G,100K WARN,${SSTATE_DIR},1G,100K"
  734. BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},1G"
  735. BB_DISKMON_DIRS = "ABORT,${TMPDIR},,100K"
  736. </literallayout>
  737. The first example works only if you also provide
  738. the <link linkend='var-BB_DISKMON_WARNINTERVAL'><filename>BB_DISKMON_WARNINTERVAL</filename></link> variable
  739. in the <filename>conf/local.conf</filename>.
  740. This example causes the build system to immediately
  741. abort when either the disk space in <filename>${TMPDIR}</filename> drops
  742. below 1 Gbyte or the available free inodes drops below
  743. 100 Kbytes.
  744. Because two directories are provided with the variable, the
  745. build system also issue a
  746. warning when the disk space in the
  747. <filename>${SSTATE_DIR}</filename> directory drops
  748. below 1 Gbyte or the number of free inodes drops
  749. below 100 Kbytes.
  750. Subsequent warnings are issued during intervals as
  751. defined by the <filename>BB_DISKMON_WARNINTERVAL</filename>
  752. variable.
  753. </para>
  754. <para>
  755. The second example stops the build after all currently
  756. executing tasks complete when the minimum disk space
  757. in the <filename>${<link linkend='var-TMPDIR'>TMPDIR</link>}</filename>
  758. directory drops below 1 Gbyte.
  759. No disk monitoring occurs for the free inodes in this case.
  760. </para>
  761. <para>
  762. The final example immediately aborts the build when the
  763. number of free inodes in the <filename>${TMPDIR}</filename> directory
  764. drops below 100 Kbytes.
  765. No disk space monitoring for the directory itself occurs
  766. in this case.
  767. </para>
  768. </glossdef>
  769. </glossentry>
  770. <glossentry id='var-BB_DISKMON_WARNINTERVAL'><glossterm>BB_DISKMON_WARNINTERVAL</glossterm>
  771. <info>
  772. BB_DISKMON_WARNINTERVAL[doc] = "Defines the disk space and free inode warning intervals. To set these intervals, define the variable in the conf/local.conf file in the Build Directory."
  773. </info>
  774. <glossdef>
  775. <para role="glossdeffirst">
  776. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  777. Defines the disk space and free inode warning intervals.
  778. To set these intervals, define the variable in your
  779. <filename>conf/local.conf</filename> file in the
  780. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>.
  781. </para>
  782. <para>
  783. If you are going to use the
  784. <filename>BB_DISKMON_WARNINTERVAL</filename> variable, you must
  785. also use the
  786. <link linkend='var-BB_DISKMON_DIRS'><filename>BB_DISKMON_DIRS</filename></link> variable
  787. and define its action as "WARN".
  788. During the build, subsequent warnings are issued each time
  789. disk space or number of free inodes further reduces by
  790. the respective interval.
  791. </para>
  792. <para>
  793. If you do not provide a <filename>BB_DISKMON_WARNINTERVAL</filename>
  794. variable and you do use <filename>BB_DISKMON_DIRS</filename> with
  795. the "WARN" action, the disk monitoring interval defaults to
  796. the following:
  797. <literallayout class='monospaced'>
  798. BB_DISKMON_WARNINTERVAL = "50M,5K"
  799. </literallayout>
  800. </para>
  801. <para>
  802. When specifying the variable in your configuration file,
  803. use the following form:
  804. <literallayout class='monospaced'>
  805. BB_DISKMON_WARNINTERVAL = "<replaceable>disk_space_interval</replaceable>,<replaceable>disk_inode_interval</replaceable>"
  806. where:
  807. <replaceable>disk_space_interval</replaceable> is:
  808. An interval of memory expressed in either
  809. G, M, or K for Gbytes, Mbytes, or Kbytes,
  810. respectively. You cannot use GB, MB, or KB.
  811. <replaceable>disk_inode_interval</replaceable> is:
  812. An interval of free inodes expressed in either
  813. G, M, or K for Gbytes, Mbytes, or Kbytes,
  814. respectively. You cannot use GB, MB, or KB.
  815. </literallayout>
  816. </para>
  817. <para>
  818. Here is an example:
  819. <literallayout class='monospaced'>
  820. BB_DISKMON_DIRS = "WARN,${SSTATE_DIR},1G,100K"
  821. BB_DISKMON_WARNINTERVAL = "50M,5K"
  822. </literallayout>
  823. These variables cause the OpenEmbedded build system to
  824. issue subsequent warnings each time the available
  825. disk space further reduces by 50 Mbytes or the number
  826. of free inodes further reduces by 5 Kbytes in the
  827. <filename>${SSTATE_DIR}</filename> directory.
  828. Subsequent warnings based on the interval occur each time
  829. a respective interval is reached beyond the initial warning
  830. (i.e. 1 Gbytes and 100 Kbytes).
  831. </para>
  832. </glossdef>
  833. </glossentry>
  834. <glossentry id='var-BB_GENERATE_MIRROR_TARBALLS'><glossterm>BB_GENERATE_MIRROR_TARBALLS</glossterm>
  835. <info>
  836. BB_GENERATE_MIRROR_TARBALLS[doc] = "Causes tarballs of the Git repositories to be placed in the DL_DIR directory."
  837. </info>
  838. <glossdef>
  839. <para role="glossdeffirst">
  840. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  841. Causes tarballs of the Git repositories, including the
  842. Git metadata, to be placed in the
  843. <link linkend='var-DL_DIR'><filename>DL_DIR</filename></link>
  844. directory.
  845. </para>
  846. <para>
  847. For performance reasons, creating and placing tarballs of
  848. the Git repositories is not the default action by the
  849. OpenEmbedded build system.
  850. <literallayout class='monospaced'>
  851. BB_GENERATE_MIRROR_TARBALLS = "1"
  852. </literallayout>
  853. Set this variable in your <filename>local.conf</filename>
  854. file in the
  855. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>.
  856. </para>
  857. </glossdef>
  858. </glossentry>
  859. <glossentry id='var-BB_NUMBER_THREADS'><glossterm>BB_NUMBER_THREADS</glossterm>
  860. <info>
  861. BB_NUMBER_THREADS[doc] = "The maximum number of tasks BitBake should run in parallel at any one time. This variable is automatically configured to be equal to the number of build system cores."
  862. </info>
  863. <glossdef>
  864. <para role="glossdeffirst">
  865. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  866. The maximum number of tasks BitBake should run in parallel
  867. at any one time.
  868. The OpenEmbedded build system automatically configures
  869. this variable to be equal to the number of cores on the
  870. build system.
  871. For example, a system with a dual core processor that
  872. also uses hyper-threading causes the
  873. <filename>BB_NUMBER_THREADS</filename> variable to default
  874. to "4".
  875. </para>
  876. <para>
  877. For single socket systems (i.e. one CPU), you should not
  878. have to override this variable to gain optimal parallelism
  879. during builds.
  880. However, if you have very large systems that employ
  881. multiple physical CPUs, you might want to make sure the
  882. <filename>BB_NUMBER_THREADS</filename> variable is not
  883. set higher than "20".
  884. </para>
  885. <para>
  886. For more information on speeding up builds, see the
  887. "<link linkend='speeding-up-the-build'>Speeding Up the Build</link>"
  888. section.
  889. </para>
  890. </glossdef>
  891. </glossentry>
  892. <glossentry id='var-BBCLASSEXTEND'><glossterm>BBCLASSEXTEND</glossterm>
  893. <info>
  894. BBCLASSEXTEND[doc] = "Allows you to extend a recipe so that it builds variants of the software. Common variants for recipes are 'native', 'cross', 'nativesdk' and multilibs."
  895. </info>
  896. <glossdef>
  897. <para role="glossdeffirst">
  898. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  899. Allows you to extend a recipe so that it builds variants of the software.
  900. Common variants for recipes exist such as "natives" like <filename>quilt-native</filename>,
  901. which is a copy of Quilt built to run on the build system;
  902. "crosses" such as <filename>gcc-cross</filename>,
  903. which is a compiler built to run on the build machine but produces binaries
  904. that run on the target <link linkend='var-MACHINE'><filename>MACHINE</filename></link>;
  905. "nativesdk", which targets the SDK machine instead of <filename>MACHINE</filename>;
  906. and "mulitlibs" in the form "<filename>multilib:</filename><replaceable>multilib_name</replaceable>".
  907. </para>
  908. <para>
  909. To build a different variant of the recipe with a minimal amount of code, it usually
  910. is as simple as adding the following to your recipe:
  911. <literallayout class='monospaced'>
  912. BBCLASSEXTEND =+ "native nativesdk"
  913. BBCLASSEXTEND =+ "multilib:<replaceable>multilib_name</replaceable>"
  914. </literallayout>
  915. <note>
  916. <para>
  917. Internally, the <filename>BBCLASSEXTEND</filename>
  918. mechanism generates recipe variants by rewriting
  919. variable values and applying overrides such as
  920. <filename>_class-native</filename>.
  921. For example, to generate a native version of a recipe,
  922. a
  923. <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>
  924. on "foo" is rewritten to a <filename>DEPENDS</filename>
  925. on "foo-native".
  926. </para>
  927. <para>
  928. Even when using <filename>BBCLASSEXTEND</filename>, the
  929. recipe is only parsed once.
  930. Parsing once adds some limitations.
  931. For example, it is not possible to
  932. include a different file depending on the variant,
  933. since <filename>include</filename> statements are
  934. processed when the recipe is parsed.
  935. </para>
  936. </note>
  937. </para>
  938. </glossdef>
  939. </glossentry>
  940. <glossentry id='var-BBFILE_COLLECTIONS'><glossterm>BBFILE_COLLECTIONS</glossterm>
  941. <info>
  942. BBFILE_COLLECTIONS[doc] = "Lists the names of configured layers. These names are used to find the other BBFILE_* variables."
  943. </info>
  944. <glossdef>
  945. <para role="glossdeffirst">
  946. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  947. Lists the names of configured layers.
  948. These names are used to find the other <filename>BBFILE_*</filename>
  949. variables.
  950. Typically, each layer will append its name to this variable in its
  951. <filename>conf/layer.conf</filename> file.
  952. </para>
  953. </glossdef>
  954. </glossentry>
  955. <glossentry id='var-BBFILE_PATTERN'><glossterm>BBFILE_PATTERN</glossterm>
  956. <info>
  957. BBFILE_PATTERN[doc] = "Variable that expands to match files from BBFILES in a particular layer. This variable is used in the layer.conf file and must be suffixed with the name of a layer."
  958. </info>
  959. <glossdef>
  960. <para role="glossdeffirst">
  961. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  962. Variable that expands to match files from
  963. <link linkend='var-BBFILES'><filename>BBFILES</filename></link>
  964. in a particular layer.
  965. This variable is used in the <filename>conf/layer.conf</filename> file and must
  966. be suffixed with the name of the specific layer (e.g.
  967. <filename>BBFILE_PATTERN_emenlow</filename>).
  968. </para>
  969. </glossdef>
  970. </glossentry>
  971. <glossentry id='var-BBFILE_PRIORITY'><glossterm>BBFILE_PRIORITY</glossterm>
  972. <info>
  973. BBFILE_PRIORITY[doc] = "Assigns the priority for recipe files in each layer. Setting this variable allows you to prioritize a layer against other layers that contain the same recipe."
  974. </info>
  975. <glossdef>
  976. <para role="glossdeffirst">
  977. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  978. Assigns the priority for recipe files in each layer.
  979. </para>
  980. <para>
  981. This variable is useful in situations where the same recipe appears in
  982. more than one layer.
  983. Setting this variable allows you to prioritize a
  984. layer against other layers that contain the same recipe - effectively
  985. letting you control the precedence for the multiple layers.
  986. The precedence established through this variable stands regardless of a
  987. recipe's version
  988. (<link linkend='var-PV'><filename>PV</filename></link> variable).
  989. For example, a layer that has a recipe with a higher <filename>PV</filename> value but for
  990. which the <filename>BBFILE_PRIORITY</filename> is set to have a lower precedence still has a
  991. lower precedence.
  992. </para>
  993. <para>
  994. A larger value for the <filename>BBFILE_PRIORITY</filename> variable results in a higher
  995. precedence.
  996. For example, the value 6 has a higher precedence than the value 5.
  997. If not specified, the <filename>BBFILE_PRIORITY</filename> variable is set based on layer
  998. dependencies (see the
  999. <filename><link linkend='var-LAYERDEPENDS'>LAYERDEPENDS</link></filename> variable for
  1000. more information.
  1001. The default priority, if unspecified
  1002. for a layer with no dependencies, is the lowest defined priority + 1
  1003. (or 1 if no priorities are defined).
  1004. </para>
  1005. <tip>
  1006. You can use the command <filename>bitbake-layers show-layers</filename> to list
  1007. all configured layers along with their priorities.
  1008. </tip>
  1009. </glossdef>
  1010. </glossentry>
  1011. <glossentry id='var-BBFILES'><glossterm>BBFILES</glossterm>
  1012. <info>
  1013. BBFILES[doc] = "List of recipe files used by BitBake to build software."
  1014. </info>
  1015. <glossdef>
  1016. <para role="glossdeffirst">
  1017. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1018. List of recipe files used by BitBake to build software.
  1019. </para>
  1020. </glossdef>
  1021. </glossentry>
  1022. <glossentry id='var-BBINCLUDELOGS'><glossterm>BBINCLUDELOGS</glossterm>
  1023. <info>
  1024. BBINCLUDELOGS[doc] = "Variable that controls how BitBake displays logs on build failure."
  1025. </info>
  1026. <glossdef>
  1027. <para role="glossdeffirst">
  1028. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1029. Variable that controls how BitBake displays logs on build failure.
  1030. </para>
  1031. </glossdef>
  1032. </glossentry>
  1033. <glossentry id='var-BBINCLUDELOGS_LINES'><glossterm>BBINCLUDELOGS_LINES</glossterm>
  1034. <info>
  1035. BBINCLUDELOGS_LINES[doc] = "Amount of log lines printed on failure."
  1036. </info>
  1037. <glossdef>
  1038. <para role="glossdeffirst">
  1039. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1040. If
  1041. <link linkend='var-BBINCLUDELOGS'><filename>BBINCLUDELOGS</filename></link>
  1042. is set, specifies the maximum number of lines from the
  1043. task log file to print when reporting a failed task.
  1044. If you do not set <filename>BBINCLUDELOGS_LINES</filename>,
  1045. the entire log is printed.
  1046. </para>
  1047. </glossdef>
  1048. </glossentry>
  1049. <glossentry id='var-BBLAYERS'><glossterm>BBLAYERS</glossterm>
  1050. <info>
  1051. BBLAYERS[doc] = "Lists the layers to enable during the build. This variable is defined in the bblayers.conf configuration file."
  1052. </info>
  1053. <glossdef>
  1054. <para role="glossdeffirst">
  1055. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1056. Lists the layers to enable during the build.
  1057. This variable is defined in the <filename>bblayers.conf</filename> configuration
  1058. file in the <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>.
  1059. Here is an example:
  1060. <literallayout class='monospaced'>
  1061. BBLAYERS = " \
  1062. /home/scottrif/poky/meta \
  1063. /home/scottrif/poky/meta-poky \
  1064. /home/scottrif/poky/meta-yocto-bsp \
  1065. /home/scottrif/poky/meta-mykernel \
  1066. "
  1067. </literallayout>
  1068. </para>
  1069. <para>
  1070. This example enables four layers, one of which is a custom, user-defined layer
  1071. named <filename>meta-mykernel</filename>.
  1072. </para>
  1073. </glossdef>
  1074. </glossentry>
  1075. <glossentry id='var-BBMASK'><glossterm>BBMASK</glossterm>
  1076. <info>
  1077. BBMASK[doc] = "Prevents BitBake from processing specific recipes or recipe append files."
  1078. </info>
  1079. <glossdef>
  1080. <para role="glossdeffirst">
  1081. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1082. Prevents BitBake from processing recipes and recipe
  1083. append files.
  1084. </para>
  1085. <para>
  1086. You can use the <filename>BBMASK</filename> variable
  1087. to "hide" these <filename>.bb</filename> and
  1088. <filename>.bbappend</filename> files.
  1089. BitBake ignores any recipe or recipe append files that
  1090. match any of the expressions.
  1091. It is as if BitBake does not see them at all.
  1092. Consequently, matching files are not parsed or otherwise
  1093. used by BitBake.</para>
  1094. <para>
  1095. The values you provide are passed to Python's regular
  1096. expression compiler.
  1097. The expressions are compared against the full paths to
  1098. the files.
  1099. For complete syntax information, see Python's
  1100. documentation at
  1101. <ulink url='http://docs.python.org/release/2.3/lib/re-syntax.html'></ulink>.
  1102. </para>
  1103. <para>
  1104. The following example uses a complete regular expression
  1105. to tell BitBake to ignore all recipe and recipe append
  1106. files in the <filename>meta-ti/recipes-misc/</filename>
  1107. directory:
  1108. <literallayout class='monospaced'>
  1109. BBMASK = "meta-ti/recipes-misc/"
  1110. </literallayout>
  1111. If you want to mask out multiple directories or recipes,
  1112. you can specify multiple regular expression fragments.
  1113. This next example masks out multiple directories and
  1114. individual recipes:
  1115. <literallayout class='monospaced'>
  1116. BBMASK += "/meta-ti/recipes-misc/ meta-ti/recipes-ti/packagegroup/"
  1117. BBMASK += "/meta-oe/recipes-support/"
  1118. BBMASK += "/meta-foo/.*/openldap"
  1119. BBMASK += "opencv.*\.bbappend"
  1120. BBMASK += "lzma"
  1121. </literallayout>
  1122. <note>
  1123. When specifying a directory name, use the trailing
  1124. slash character to ensure you match just that directory
  1125. name.
  1126. </note>
  1127. </para>
  1128. </glossdef>
  1129. </glossentry>
  1130. <glossentry id='var-BBMULTICONFIG'><glossterm>BBMULTICONFIG</glossterm>
  1131. <info>
  1132. BBMULTICONFIG[doc] = "Specifies each separate configuration when you are building targets with multiple configurations."
  1133. </info>
  1134. <glossdef>
  1135. <para role="glossdeffirst">
  1136. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1137. Specifies each separate configuration when you are
  1138. building targets with multiple configurations.
  1139. Use this variable in your
  1140. <filename>conf/local.conf</filename> configuration file.
  1141. Specify a <replaceable>multiconfigname</replaceable> for
  1142. each configuration file you are using.
  1143. For example, the following line specifies three
  1144. configuration files:
  1145. <literallayout class='monospaced'>
  1146. BBMULTIFONFIG = "configA configB configC"
  1147. </literallayout>
  1148. Each configuration file you use must reside in the
  1149. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory's</ulink>
  1150. <filename>conf/multiconfig</filename> directory
  1151. (e.g.
  1152. <replaceable>build_directory</replaceable><filename>/conf/multiconfig/configA.conf</filename>).
  1153. </para>
  1154. <para>
  1155. For information on how to use
  1156. <filename>BBMULTICONFIG</filename> in an environment that
  1157. supports building targets with multiple configurations,
  1158. see the
  1159. "<ulink url='&YOCTO_DOCS_DEV_URL;#platdev-building-targets-with-multiple-configurations'>Building Targets with Multiple Configurations</ulink>"
  1160. section in the Yocto Project Development Manual.
  1161. </para>
  1162. </glossdef>
  1163. </glossentry>
  1164. <glossentry id='var-BBPATH'><glossterm>BBPATH</glossterm>
  1165. <info>
  1166. BBPATH[doc] = "Used by BitBake to locate .bbclass and configuration files. This variable is analogous to the PATH variable."
  1167. </info>
  1168. <glossdef>
  1169. <para role="glossdeffirst">
  1170. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1171. Used by BitBake to locate
  1172. <filename>.bbclass</filename> and configuration files.
  1173. This variable is analogous to the
  1174. <filename>PATH</filename> variable.
  1175. <note>
  1176. If you run BitBake from a directory outside of the
  1177. <ulink url='&YOCTO_DOCS_DEV_URL;build-directory'>Build Directory</ulink>,
  1178. you must be sure to set
  1179. <filename>BBPATH</filename> to point to the
  1180. Build Directory.
  1181. Set the variable as you would any environment variable
  1182. and then run BitBake:
  1183. <literallayout class='monospaced'>
  1184. $ BBPATH = "<replaceable>build_directory</replaceable>"
  1185. $ export BBPATH
  1186. $ bitbake <replaceable>target</replaceable>
  1187. </literallayout>
  1188. </note>
  1189. </para>
  1190. </glossdef>
  1191. </glossentry>
  1192. <glossentry id='var-BBSERVER'><glossterm>BBSERVER</glossterm>
  1193. <info>
  1194. BBSERVER[doc] = "Points to the server that runs memory-resident BitBake."
  1195. </info>
  1196. <glossdef>
  1197. <para role="glossdeffirst">
  1198. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1199. Points to the server that runs memory-resident BitBake.
  1200. This variable is set by the
  1201. <link linkend='structure-memres-core-script'><filename>oe-init-build-env-memres</filename></link>
  1202. setup script and should not be hand-edited.
  1203. The variable is only used when you employ memory-resident
  1204. BitBake.
  1205. The setup script exports the value as follows:
  1206. <literallayout class='monospaced'>
  1207. export BBSERVER=localhost:$port
  1208. </literallayout>
  1209. </para>
  1210. <para>
  1211. For more information on how the
  1212. <filename>BBSERVER</filename> is used, see the
  1213. <filename>oe-init-build-env-memres</filename> script, which
  1214. is located in the
  1215. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>.
  1216. </para>
  1217. </glossdef>
  1218. </glossentry>
  1219. <glossentry id='var-BINCONFIG'><glossterm>BINCONFIG</glossterm>
  1220. <info>
  1221. BINCONFIG[doc] = "When inheriting the binconfig-disabled class, this variable specifies binary configuration scripts to disable in favor of using pkg-config to query the information."
  1222. </info>
  1223. <glossdef>
  1224. <para role="glossdeffirst">
  1225. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1226. When inheriting the
  1227. <link linkend='ref-classes-binconfig-disabled'><filename>binconfig-disabled</filename></link>
  1228. class, this variable specifies binary configuration
  1229. scripts to disable in favor of using
  1230. <filename>pkg-config</filename> to query the information.
  1231. The <filename>binconfig-disabled</filename> class will
  1232. modify the specified scripts to return an error so that
  1233. calls to them can be easily found and replaced.
  1234. </para>
  1235. <para>
  1236. To add multiple scripts, separate them by spaces.
  1237. Here is an example from the <filename>libpng</filename>
  1238. recipe:
  1239. <literallayout class='monospaced'>
  1240. BINCONFIG = "${bindir}/libpng-config ${bindir}/libpng16-config"
  1241. </literallayout>
  1242. </para>
  1243. </glossdef>
  1244. </glossentry>
  1245. <glossentry id='var-BINCONFIG_GLOB'><glossterm>BINCONFIG_GLOB</glossterm>
  1246. <info>
  1247. BINCONFIG_GLOB[doc] = "When inheriting binconfig.bbclass from a recipe, this variable specifies a wildcard for configuration scripts that need editing."
  1248. </info>
  1249. <glossdef>
  1250. <para role="glossdeffirst">
  1251. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1252. When inheriting the
  1253. <link linkend='ref-classes-binconfig'><filename>binconfig</filename></link>
  1254. class, this variable specifies a wildcard for
  1255. configuration scripts that need editing.
  1256. The scripts are edited to correct any paths that have been
  1257. set up during compilation so that they are correct for
  1258. use when installed into the sysroot and called by the
  1259. build processes of other recipes.
  1260. </para>
  1261. <para>
  1262. For more information on how this variable works, see
  1263. <filename>meta/classes/binconfig.bbclass</filename> in the
  1264. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>.
  1265. You can also find general information on the class in the
  1266. "<link linkend='ref-classes-binconfig'><filename>binconfig.bbclass</filename></link>"
  1267. section.
  1268. </para>
  1269. </glossdef>
  1270. </glossentry>
  1271. <glossentry id='var-BP'><glossterm>BP</glossterm>
  1272. <info>
  1273. BP[doc] = "The base recipe name and version but without any special recipe name suffix (i.e. -native, lib64-, and so forth). BP is comprised of ${BPN}-${PV}"
  1274. </info>
  1275. <glossdef>
  1276. <para role="glossdeffirst">
  1277. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1278. The base recipe name and version but without any special
  1279. recipe name suffix (i.e. <filename>-native</filename>, <filename>lib64-</filename>,
  1280. and so forth).
  1281. <filename>BP</filename> is comprised of the following:
  1282. <literallayout class="monospaced">
  1283. ${BPN}-${PV}
  1284. </literallayout>
  1285. </para>
  1286. </glossdef>
  1287. </glossentry>
  1288. <glossentry id='var-BPN'><glossterm>BPN</glossterm>
  1289. <info>
  1290. BPN[doc] = "This variable is a version of the PN variable but removes common suffixes and prefixes."
  1291. </info>
  1292. <glossdef>
  1293. <para role="glossdeffirst">
  1294. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1295. This variable is a version of the
  1296. <link linkend='var-PN'><filename>PN</filename></link>
  1297. variable with common prefixes and suffixes
  1298. removed, such as <filename>nativesdk-</filename>,
  1299. <filename>-cross</filename>,
  1300. <filename>-native</filename>, and multilib's
  1301. <filename>lib64-</filename> and
  1302. <filename>lib32-</filename>.
  1303. The exact lists of prefixes and suffixes removed are
  1304. specified by the
  1305. <link linkend='var-MLPREFIX'><filename>MLPREFIX</filename></link>
  1306. and
  1307. <link linkend='var-SPECIAL_PKGSUFFIX'><filename>SPECIAL_PKGSUFFIX</filename></link>
  1308. variables, respectively.
  1309. </para>
  1310. </glossdef>
  1311. </glossentry>
  1312. <glossentry id='var-BUGTRACKER'><glossterm>BUGTRACKER</glossterm>
  1313. <info>
  1314. BUGTRACKER[doc] = "Specifies a URL for an upstream bug tracking website for a recipe."
  1315. </info>
  1316. <glossdef>
  1317. <para role="glossdeffirst">
  1318. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1319. Specifies a URL for an upstream bug tracking website for
  1320. a recipe.
  1321. The OpenEmbedded build system does not use this variable.
  1322. Rather, the variable is a useful pointer in case a bug
  1323. in the software being built needs to be manually reported.
  1324. </para>
  1325. </glossdef>
  1326. </glossentry>
  1327. <glossentry id='var-BUILD_ARCH'><glossterm>BUILD_ARCH</glossterm>
  1328. <info>
  1329. BUILD_ARCH[doc] = "The name of the building architecture (e.g. i686)."
  1330. </info>
  1331. <glossdef>
  1332. <para role="glossdeffirst">
  1333. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1334. Specifies the architecture of the build host
  1335. (e.g. <filename>i686</filename>).
  1336. The OpenEmbedded build system sets the value of
  1337. <filename>BUILD_ARCH</filename> from the machine name
  1338. reported by the <filename>uname</filename> command.
  1339. </para>
  1340. </glossdef>
  1341. </glossentry>
  1342. <glossentry id='var-BUILD_CFLAGS'><glossterm>BUILD_CFLAGS</glossterm>
  1343. <info>
  1344. BUILD_CFLAGS[doc] = "Specifies the flags to pass to the C compiler when building for the build host."
  1345. </info>
  1346. <glossdef>
  1347. <para role="glossdeffirst">
  1348. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1349. Specifies the flags to pass to the C compiler when building
  1350. for the build host.
  1351. When building in the <filename>-native</filename> context,
  1352. <link linkend='var-CFLAGS'><filename>CFLAGS</filename></link>
  1353. is set to the value of this variable by default.
  1354. </para>
  1355. </glossdef>
  1356. </glossentry>
  1357. <glossentry id='var-BUILD_CPPFLAGS'><glossterm>BUILD_CPPFLAGS</glossterm>
  1358. <info>
  1359. BUILD_CPPFLAGS[doc] = "Specifies the flags to pass to the C pre-processor (i.e. to both the C and the C++ compilers) when building for the build host."
  1360. </info>
  1361. <glossdef>
  1362. <para role="glossdeffirst">
  1363. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1364. Specifies the flags to pass to the C pre-processor
  1365. (i.e. to both the C and the C++ compilers) when building
  1366. for the build host.
  1367. When building in the <filename>-native</filename> context,
  1368. <link linkend='var-CPPFLAGS'><filename>CPPFLAGS</filename></link>
  1369. is set to the value of this variable by default.
  1370. </para>
  1371. </glossdef>
  1372. </glossentry>
  1373. <glossentry id='var-BUILD_CXXFLAGS'><glossterm>BUILD_CXXFLAGS</glossterm>
  1374. <info>
  1375. BUILD_CXXFLAGS[doc] = "Specifies the flags to pass to the C++ compiler when building for the build host."
  1376. </info>
  1377. <glossdef>
  1378. <para role="glossdeffirst">
  1379. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1380. Specifies the flags to pass to the C++ compiler when
  1381. building for the build host.
  1382. When building in the <filename>-native</filename> context,
  1383. <link linkend='var-CXXFLAGS'><filename>CXXFLAGS</filename></link>
  1384. is set to the value of this variable by default.
  1385. </para>
  1386. </glossdef>
  1387. </glossentry>
  1388. <glossentry id='var-BUILD_LDFLAGS'><glossterm>BUILD_LDFLAGS</glossterm>
  1389. <info>
  1390. BUILD_LDFLAGS[doc] = "Specifies the flags to pass to the linker when building for the build host."
  1391. </info>
  1392. <glossdef>
  1393. <para role="glossdeffirst">
  1394. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1395. Specifies the flags to pass to the linker when building
  1396. for the build host.
  1397. When building in the <filename>-native</filename> context,
  1398. <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
  1399. is set to the value of this variable by default.
  1400. </para>
  1401. </glossdef>
  1402. </glossentry>
  1403. <glossentry id='var-BUILD_OPTIMIZATION'><glossterm>BUILD_OPTIMIZATION</glossterm>
  1404. <info>
  1405. BUILD_OPTIMIZATION[doc] = "Specifies the optimization flags passed to the C compiler when building for the build host or the SDK."
  1406. </info>
  1407. <glossdef>
  1408. <para role="glossdeffirst">
  1409. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1410. Specifies the optimization flags passed to the C compiler
  1411. when building for the build host or the SDK.
  1412. The flags are passed through the
  1413. <link linkend='var-BUILD_CFLAGS'><filename>BUILD_CFLAGS</filename></link>
  1414. and
  1415. <link linkend='var-BUILDSDK_CFLAGS'><filename>BUILDSDK_CFLAGS</filename></link>
  1416. default values.
  1417. </para>
  1418. <para>
  1419. The default value of the
  1420. <filename>BUILD_OPTIMIZATION</filename> variable is
  1421. "-O2 -pipe".
  1422. </para>
  1423. </glossdef>
  1424. </glossentry>
  1425. <glossentry id='var-BUILD_OS'><glossterm>BUILD_OS</glossterm>
  1426. <info>
  1427. BUILD_OS[doc] = "The operating system (in lower case) of the building architecture (e.g. Linux)."
  1428. </info>
  1429. <glossdef>
  1430. <para role="glossdeffirst">
  1431. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1432. Specifies the operating system in use on the build
  1433. host (e.g. "linux").
  1434. The OpenEmbedded build system sets the value of
  1435. <filename>BUILD_OS</filename> from the OS reported by
  1436. the <filename>uname</filename> command - the first word,
  1437. converted to lower-case characters.
  1438. </para>
  1439. </glossdef>
  1440. </glossentry>
  1441. <glossentry id='var-BUILD_PREFIX'><glossterm>BUILD_PREFIX</glossterm>
  1442. <info>
  1443. BUILD_PREFIX[doc] = "The toolchain binary prefix used for native recipes."
  1444. </info>
  1445. <glossdef>
  1446. <para role="glossdeffirst">
  1447. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1448. The toolchain binary prefix used for native recipes.
  1449. The OpenEmbedded build system uses the
  1450. <filename>BUILD_PREFIX</filename> value to set the
  1451. <link linkend='var-TARGET_PREFIX'><filename>TARGET_PREFIX</filename></link>
  1452. when building for <filename>native</filename> recipes.
  1453. </para>
  1454. </glossdef>
  1455. </glossentry>
  1456. <glossentry id='var-BUILD_SYS'><glossterm>BUILD_SYS</glossterm>
  1457. <info>
  1458. BUILD_SYS[doc] = "The toolchain binary prefix used for native recipes."
  1459. </info>
  1460. <glossdef>
  1461. <para role="glossdeffirst">
  1462. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1463. Specifies the system, including the architecture and
  1464. the operating system, to use when building for the build
  1465. host (i.e. when building <filename>native</filename>
  1466. recipes).
  1467. </para>
  1468. <para>
  1469. The OpenEmbedded build system automatically sets this
  1470. variable based on
  1471. <link linkend='var-BUILD_ARCH'><filename>BUILD_ARCH</filename></link>,
  1472. <link linkend='var-BUILD_VENDOR'><filename>BUILD_VENDOR</filename></link>,
  1473. and
  1474. <link linkend='var-BUILD_OS'><filename>BUILD_OS</filename></link>.
  1475. You do not need to set the <filename>BUILD_SYS</filename>
  1476. variable yourself.
  1477. </para>
  1478. </glossdef>
  1479. </glossentry>
  1480. <glossentry id='var-BUILD_VENDOR'><glossterm>BUILD_VENDOR</glossterm>
  1481. <info>
  1482. BUILD_VENDOR[doc] = "The vendor name to use when building for the build host."
  1483. </info>
  1484. <glossdef>
  1485. <para role="glossdeffirst">
  1486. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1487. Specifies the vendor name to use when building for the
  1488. build host.
  1489. The default value is an empty string ("").
  1490. </para>
  1491. </glossdef>
  1492. </glossentry>
  1493. <glossentry id='var-BUILDDIR'><glossterm>BUILDDIR</glossterm>
  1494. <info>
  1495. BUILDDIR[doc] = "Points to the location of the Build Directory."
  1496. </info>
  1497. <glossdef>
  1498. <para role="glossdeffirst">
  1499. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1500. Points to the location of the
  1501. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>.
  1502. You can define this directory indirectly through the
  1503. <link linkend='structure-core-script'><filename>&OE_INIT_FILE;</filename></link>
  1504. and
  1505. <link linkend='structure-memres-core-script'><filename>oe-init-build-env-memres</filename></link>
  1506. scripts by passing in a Build Directory path when you run
  1507. the scripts.
  1508. If you run the scripts and do not provide a Build Directory
  1509. path, the <filename>BUILDDIR</filename> defaults to
  1510. <filename>build</filename> in the current directory.
  1511. </para>
  1512. </glossdef>
  1513. </glossentry>
  1514. <glossentry id='var-BUILDHISTORY_COMMIT'><glossterm>BUILDHISTORY_COMMIT</glossterm>
  1515. <info>
  1516. BUILDHISTORY_COMMIT[doc] = "When inheriting the buildhistory class, this variable specifies whether or not to commit the build history output in a local Git repository."
  1517. </info>
  1518. <glossdef>
  1519. <para role="glossdeffirst">
  1520. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1521. When inheriting the
  1522. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1523. class, this variable specifies whether or not to commit the
  1524. build history output in a local Git repository.
  1525. If set to "1", this local repository will be maintained
  1526. automatically by the
  1527. <filename>buildhistory</filename>
  1528. class and a commit will be created on every
  1529. build for changes to each top-level subdirectory of the
  1530. build history output (images, packages, and sdk).
  1531. If you want to track changes to build history over
  1532. time, you should set this value to "1".
  1533. </para>
  1534. <para>
  1535. By default, the <filename>buildhistory</filename> class
  1536. does not commit the build history output in a local
  1537. Git repository:
  1538. <literallayout class='monospaced'>
  1539. BUILDHISTORY_COMMIT ?= "0"
  1540. </literallayout>
  1541. </para>
  1542. </glossdef>
  1543. </glossentry>
  1544. <glossentry id='var-BUILDHISTORY_COMMIT_AUTHOR'><glossterm>BUILDHISTORY_COMMIT_AUTHOR</glossterm>
  1545. <info>
  1546. BUILDHISTORY_COMMIT_AUTHOR[doc] = "When inheriting the buildhistory class, this variable specifies the author to use for each Git commit."
  1547. </info>
  1548. <glossdef>
  1549. <para role="glossdeffirst">
  1550. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1551. When inheriting the
  1552. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1553. class, this variable specifies the author to use for each
  1554. Git commit.
  1555. In order for the <filename>BUILDHISTORY_COMMIT_AUTHOR</filename>
  1556. variable to work, the
  1557. <link linkend='var-BUILDHISTORY_COMMIT'><filename>BUILDHISTORY_COMMIT</filename></link>
  1558. variable must be set to "1".
  1559. </para>
  1560. <para>
  1561. Git requires that the value you provide for the
  1562. <filename>BUILDHISTORY_COMMIT_AUTHOR</filename> variable
  1563. takes the form of "name &lt;email@host&gt;".
  1564. Providing an email address or host that is not valid does
  1565. not produce an error.
  1566. </para>
  1567. <para>
  1568. By default, the <filename>buildhistory</filename> class
  1569. sets the variable as follows:
  1570. <literallayout class='monospaced'>
  1571. BUILDHISTORY_COMMIT_AUTHOR ?= "buildhistory &lt;buildhistory@${DISTRO}&gt;"
  1572. </literallayout>
  1573. </para>
  1574. </glossdef>
  1575. </glossentry>
  1576. <glossentry id='var-BUILDHISTORY_DIR'><glossterm>BUILDHISTORY_DIR</glossterm>
  1577. <info>
  1578. BUILDHISTORY_DIR[doc] = "When inheriting the buildhistory class, this variable specifies the directory in which build history information is kept."
  1579. </info>
  1580. <glossdef>
  1581. <para role="glossdeffirst">
  1582. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1583. When inheriting the
  1584. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1585. class, this variable specifies the directory in which
  1586. build history information is kept.
  1587. For more information on how the variable works, see the
  1588. <filename>buildhistory.class</filename>.
  1589. </para>
  1590. <para>
  1591. By default, the <filename>buildhistory</filename> class
  1592. sets the directory as follows:
  1593. <literallayout class='monospaced'>
  1594. BUILDHISTORY_DIR ?= "${TOPDIR}/buildhistory"
  1595. </literallayout>
  1596. </para>
  1597. </glossdef>
  1598. </glossentry>
  1599. <glossentry id='var-BUILDHISTORY_FEATURES'><glossterm>BUILDHISTORY_FEATURES</glossterm>
  1600. <info>
  1601. BUILDHISTORY_FEATURES[doc] = "When inheriting the buildhistory class, this variable specifies the build history features to be enabled."
  1602. </info>
  1603. <glossdef>
  1604. <para role="glossdeffirst">
  1605. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1606. When inheriting the
  1607. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1608. class, this variable specifies the build history features
  1609. to be enabled.
  1610. For more information on how build history works, see the
  1611. "<link linkend='maintaining-build-output-quality'>Maintaining Build Output Quality</link>"
  1612. section.
  1613. </para>
  1614. <para>
  1615. You can specify three features in the form of a
  1616. space-separated list:
  1617. <itemizedlist>
  1618. <listitem><para><emphasis>image:</emphasis>
  1619. Analysis of the contents of images, which
  1620. includes the list of installed packages among other
  1621. things.
  1622. </para></listitem>
  1623. <listitem><para><emphasis>package:</emphasis>
  1624. Analysis of the contents of individual packages.
  1625. </para></listitem>
  1626. <listitem><para><emphasis>sdk:</emphasis>
  1627. Analysis of the contents of the software
  1628. development kit (SDK).
  1629. </para></listitem>
  1630. </itemizedlist>
  1631. </para>
  1632. <para>
  1633. By default, the <filename>buildhistory</filename> class
  1634. enables all three features:
  1635. <literallayout class='monospaced'>
  1636. BUILDHISTORY_FEATURES ?= "image package sdk"
  1637. </literallayout>
  1638. </para>
  1639. </glossdef>
  1640. </glossentry>
  1641. <glossentry id='var-BUILDHISTORY_IMAGE_FILES'><glossterm>BUILDHISTORY_IMAGE_FILES</glossterm>
  1642. <info>
  1643. BUILDHISTORY_IMAGE_FILES[doc] = "When inheriting the buildhistory class, this variable specifies a list of paths to files copied from the image contents into the build history directory under an "image-files" directory in the directory for the image, so that you can track the contents of each file."
  1644. </info>
  1645. <glossdef>
  1646. <para role="glossdeffirst">
  1647. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1648. When inheriting the
  1649. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1650. class, this variable specifies a list of paths to files
  1651. copied from the
  1652. image contents into the build history directory under
  1653. an "image-files" directory in the directory for
  1654. the image, so that you can track the contents of each file.
  1655. The default is to copy <filename>/etc/passwd</filename>
  1656. and <filename>/etc/group</filename>, which allows you to
  1657. monitor for changes in user and group entries.
  1658. You can modify the list to include any file.
  1659. Specifying an invalid path does not produce an error.
  1660. Consequently, you can include files that might
  1661. not always be present.
  1662. </para>
  1663. <para>
  1664. By default, the <filename>buildhistory</filename> class
  1665. provides paths to the following files:
  1666. <literallayout class='monospaced'>
  1667. BUILDHISTORY_IMAGE_FILES ?= "/etc/passwd /etc/group"
  1668. </literallayout>
  1669. </para>
  1670. </glossdef>
  1671. </glossentry>
  1672. <glossentry id='var-BUILDHISTORY_PUSH_REPO'><glossterm>BUILDHISTORY_PUSH_REPO</glossterm>
  1673. <info>
  1674. BUILDHISTORY_PUSH_REPO[doc] = "When inheriting the buildhistory class, this variable optionally specifies a remote repository to which build history pushes Git changes."
  1675. </info>
  1676. <glossdef>
  1677. <para role="glossdeffirst">
  1678. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1679. When inheriting the
  1680. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1681. class, this variable optionally specifies a remote
  1682. repository to which build history pushes Git changes.
  1683. In order for <filename>BUILDHISTORY_PUSH_REPO</filename>
  1684. to work,
  1685. <link linkend='var-BUILDHISTORY_COMMIT'><filename>BUILDHISTORY_COMMIT</filename></link>
  1686. must be set to "1".
  1687. </para>
  1688. <para>
  1689. The repository should correspond to a remote
  1690. address that specifies a repository as understood by
  1691. Git, or alternatively to a remote name that you have
  1692. set up manually using <filename>git remote</filename>
  1693. within the local repository.
  1694. </para>
  1695. <para>
  1696. By default, the <filename>buildhistory</filename> class
  1697. sets the variable as follows:
  1698. <literallayout class='monospaced'>
  1699. BUILDHISTORY_PUSH_REPO ?= ""
  1700. </literallayout>
  1701. </para>
  1702. </glossdef>
  1703. </glossentry>
  1704. <glossentry id='var-BUILDSDK_CFLAGS'><glossterm>BUILDSDK_CFLAGS</glossterm>
  1705. <info>
  1706. BUILDSDK_CFLAGS[doc] = "Specifies the flags to pass to the C compiler when building for the SDK."
  1707. </info>
  1708. <glossdef>
  1709. <para role="glossdeffirst">
  1710. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1711. Specifies the flags to pass to the C compiler when building
  1712. for the SDK.
  1713. When building in the <filename>nativesdk-</filename>
  1714. context,
  1715. <link linkend='var-CFLAGS'><filename>CFLAGS</filename></link>
  1716. is set to the value of this variable by default.
  1717. </para>
  1718. </glossdef>
  1719. </glossentry>
  1720. <glossentry id='var-BUILDSDK_CPPFLAGS'><glossterm>BUILDSDK_CPPFLAGS</glossterm>
  1721. <info>
  1722. BUILDSDK_CPPFLAGS[doc] = "Specifies the flags to pass to the C pre-processor (i.e. to both the C and the C++ compilers) when building for the SDK."
  1723. </info>
  1724. <glossdef>
  1725. <para role="glossdeffirst">
  1726. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1727. Specifies the flags to pass to the C pre-processor
  1728. (i.e. to both the C and the C++ compilers) when building
  1729. for the SDK.
  1730. When building in the <filename>nativesdk-</filename>
  1731. context,
  1732. <link linkend='var-CPPFLAGS'><filename>CPPFLAGS</filename></link>
  1733. is set to the value of this variable by default.
  1734. </para>
  1735. </glossdef>
  1736. </glossentry>
  1737. <glossentry id='var-BUILDSDK_CXXFLAGS'><glossterm>BUILDSDK_CXXFLAGS</glossterm>
  1738. <info>
  1739. BUILDSDK_CXXFLAGS[doc] = "Specifies the flags to pass to the C++ compiler when building for the SDK."
  1740. </info>
  1741. <glossdef>
  1742. <para role="glossdeffirst">
  1743. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1744. Specifies the flags to pass to the C++ compiler when
  1745. building for the SDK.
  1746. When building in the <filename>nativesdk-</filename>
  1747. context,
  1748. <link linkend='var-CXXFLAGS'><filename>CXXFLAGS</filename></link>
  1749. is set to the value of this variable by default.
  1750. </para>
  1751. </glossdef>
  1752. </glossentry>
  1753. <glossentry id='var-BUILDSDK_LDFLAGS'><glossterm>BUILDSDK_LDFLAGS</glossterm>
  1754. <info>
  1755. BUILDSDK_LDFLAGS[doc] = "Specifies the flags to pass to the linker when building for the SDK."
  1756. </info>
  1757. <glossdef>
  1758. <para role="glossdeffirst">
  1759. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1760. Specifies the flags to pass to the linker when building
  1761. for the SDK.
  1762. When building in the <filename>nativesdk-</filename>
  1763. context,
  1764. <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
  1765. is set to the value of this variable by default.
  1766. </para>
  1767. </glossdef>
  1768. </glossentry>
  1769. <glossentry id='var-BUILDSTATS_BASE'><glossterm>BUILDSTATS_BASE</glossterm>
  1770. <info>
  1771. BUILDSTATS_BASE[doc] = "Points to the location of the directory that holds build statistics when you use and enable the buildstats class."
  1772. </info>
  1773. <glossdef>
  1774. <para role="glossdeffirst">
  1775. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1776. Points to the location of the directory that holds build
  1777. statistics when you use and enable the
  1778. <link linkend='ref-classes-buildstats'><filename>buildstats</filename></link>
  1779. class.
  1780. The <filename>BUILDSTATS_BASE</filename> directory defaults
  1781. to
  1782. <filename>${</filename><link linkend='var-TMPDIR'><filename>TMPDIR</filename></link><filename>}/buildstats/</filename>.
  1783. </para>
  1784. </glossdef>
  1785. </glossentry>
  1786. <glossentry id='var-BUSYBOX_SPLIT_SUID'><glossterm>BUSYBOX_SPLIT_SUID</glossterm>
  1787. <info>
  1788. BUSYBOX_SPLIT_SUID[doc] = "For the BusyBox recipe, specifies whether to split the output executable file into two parts: one for features that require setuid root, and one for the remaining features."
  1789. </info>
  1790. <glossdef>
  1791. <para role="glossdeffirst">
  1792. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1793. For the BusyBox recipe, specifies whether to split the
  1794. output executable file into two parts: one for features
  1795. that require <filename>setuid root</filename>, and one for
  1796. the remaining features (i.e. those that do not require
  1797. <filename>setuid root</filename>).
  1798. </para>
  1799. <para>
  1800. The <filename>BUSYBOX_SPLIT_SUID</filename> variable
  1801. defaults to "1", which results in a single output
  1802. executable file.
  1803. Set the variable to "0" to split the output file.
  1804. </para>
  1805. </glossdef>
  1806. </glossentry>
  1807. </glossdiv>
  1808. <glossdiv id='var-glossary-c'><title>C</title>
  1809. <glossentry id='var-CACHE'><glossterm>CACHE</glossterm>
  1810. <info>
  1811. CACHE[doc] = "The directory BitBake uses to store a cache of the metadata."
  1812. </info>
  1813. <glossdef>
  1814. <para role="glossdeffirst">
  1815. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1816. Specifies the directory BitBake uses to store a cache
  1817. of the
  1818. <ulink url='&YOCTO_DOCS_DEV_URL;#metadata'>Metadata</ulink>
  1819. so it does not need to be parsed every time BitBake is
  1820. started.
  1821. </para>
  1822. </glossdef>
  1823. </glossentry>
  1824. <glossentry id='var-CC'><glossterm>CC</glossterm>
  1825. <info>
  1826. CC[doc] = "Minimum command and arguments to run the C compiler."
  1827. </info>
  1828. <glossdef>
  1829. <para role="glossdeffirst">
  1830. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1831. The minimal command and arguments used to run the C
  1832. compiler.
  1833. </para>
  1834. </glossdef>
  1835. </glossentry>
  1836. <glossentry id='var-CFLAGS'><glossterm>CFLAGS</glossterm>
  1837. <info>
  1838. CFLAGS[doc] = "Flags passed to the C compiler for the target system. This variable evaluates to the same as TARGET_CFLAGS."
  1839. </info>
  1840. <glossdef>
  1841. <para role="glossdeffirst">
  1842. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1843. Specifies the flags to pass to the C compiler.
  1844. This variable is exported to an environment
  1845. variable and thus made visible to the software being
  1846. built during the compilation step.
  1847. </para>
  1848. <para>
  1849. Default initialization for <filename>CFLAGS</filename>
  1850. varies depending on what is being built:
  1851. <itemizedlist>
  1852. <listitem><para>
  1853. <link linkend='var-TARGET_CFLAGS'><filename>TARGET_CFLAGS</filename></link>
  1854. when building for the target
  1855. </para></listitem>
  1856. <listitem><para>
  1857. <link linkend='var-BUILD_CFLAGS'><filename>BUILD_CFLAGS</filename></link>
  1858. when building for the build host (i.e.
  1859. <filename>-native</filename>)
  1860. </para></listitem>
  1861. <listitem><para>
  1862. <link linkend='var-BUILDSDK_CFLAGS'><filename>BUILDSDK_CFLAGS</filename></link>
  1863. when building for an SDK (i.e.
  1864. <filename>nativesdk-</filename>)
  1865. </para></listitem>
  1866. </itemizedlist>
  1867. </para>
  1868. </glossdef>
  1869. </glossentry>
  1870. <glossentry id='var-CLASSOVERRIDE'><glossterm>CLASSOVERRIDE</glossterm>
  1871. <info>
  1872. CLASSOVERRIDE[doc] = "An internal variable specifying the special class override that should currently apply (e.g. "class-target", "class-native", and so forth)."
  1873. </info>
  1874. <glossdef>
  1875. <para role="glossdeffirst">
  1876. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1877. An internal variable specifying the special class override
  1878. that should currently apply (e.g. "class-target",
  1879. "class-native", and so forth).
  1880. The classes that use this variable (e.g.
  1881. <link linkend='ref-classes-native'><filename>native</filename></link>,
  1882. <link linkend='ref-classes-nativesdk'><filename>nativesdk</filename></link>,
  1883. and so forth) set the variable to appropriate values.
  1884. <note>
  1885. <filename>CLASSOVERRIDE</filename> gets its default
  1886. "class-target" value from the
  1887. <filename>bitbake.conf</filename> file.
  1888. </note>
  1889. </para>
  1890. <para>
  1891. As an example, the following override allows you to install
  1892. extra files, but only when building for the target:
  1893. <literallayout class='monospaced'>
  1894. do_install_append_class-target() {
  1895. install my-extra-file ${D}${sysconfdir}
  1896. }
  1897. </literallayout>
  1898. Here is an example where <filename>FOO</filename>
  1899. is set to "native" when building for the build host, and
  1900. to "other" when not building for the build host:
  1901. <literallayout class='monospaced'>
  1902. FOO_class-native = "native"
  1903. FOO = "other"
  1904. </literallayout>
  1905. The underlying mechanism behind
  1906. <filename>CLASSOVERRIDE</filename> is simply that it is
  1907. included in the default value of
  1908. <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>.
  1909. </para>
  1910. </glossdef>
  1911. </glossentry>
  1912. <glossentry id='var-CLEANBROKEN'><glossterm>CLEANBROKEN</glossterm>
  1913. <info>
  1914. CLEANBROKEN[doc] = "Prevents the build system from running 'make clean' during the do_configure task."
  1915. </info>
  1916. <glossdef>
  1917. <para role="glossdeffirst">
  1918. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1919. If set to "1" within a recipe,
  1920. <filename>CLEANBROKEN</filename> specifies that
  1921. the <filename>make clean</filename> command does
  1922. not work for the software being built.
  1923. Consequently, the OpenEmbedded build system will not try
  1924. to run <filename>make clean</filename> during the
  1925. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>
  1926. task, which is the default behavior.
  1927. </para>
  1928. </glossdef>
  1929. </glossentry>
  1930. <glossentry id='var-COMBINED_FEATURES'><glossterm>COMBINED_FEATURES</glossterm>
  1931. <info>
  1932. COMBINED_FEATURES[doc] = "A set of features common between MACHINE_FEATURES and DISTRO_FEATURES."
  1933. </info>
  1934. <glossdef>
  1935. <para role="glossdeffirst">
  1936. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1937. Provides a list of hardware features that are enabled in
  1938. both
  1939. <link linkend='var-MACHINE_FEATURES'><filename>MACHINE_FEATURES</filename></link>
  1940. and
  1941. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>.
  1942. This select list of features contains features that make
  1943. sense to be controlled both at the machine and distribution
  1944. configuration level.
  1945. For example, the "bluetooth" feature requires hardware
  1946. support but should also be optional at the distribution
  1947. level, in case the hardware supports Bluetooth but you
  1948. do not ever intend to use it.
  1949. </para>
  1950. <para>
  1951. For more information, see the
  1952. <link linkend='var-MACHINE_FEATURES'><filename>MACHINE_FEATURES</filename></link>
  1953. and <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>
  1954. variables.
  1955. </para>
  1956. </glossdef>
  1957. </glossentry>
  1958. <glossentry id='var-COMMON_LICENSE_DIR'><glossterm>COMMON_LICENSE_DIR</glossterm>
  1959. <info>
  1960. COMMON_LICENSE_DIR[doc] = "Points to meta/files/common-licenses in the Source Directory, which is where generic license files reside."
  1961. </info>
  1962. <glossdef>
  1963. <para role="glossdeffirst">
  1964. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1965. Points to <filename>meta/files/common-licenses</filename>
  1966. in the
  1967. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>,
  1968. which is where generic license files reside.
  1969. </para>
  1970. </glossdef>
  1971. </glossentry>
  1972. <glossentry id='var-COMPATIBLE_HOST'><glossterm>COMPATIBLE_HOST</glossterm>
  1973. <info>
  1974. COMPATIBLE_HOST[doc] = "A regular expression that resolves to one or more hosts (when the recipe is native) or one or more targets (when the recipe is non-native) with which a recipe is compatible."
  1975. </info>
  1976. <glossdef>
  1977. <para role="glossdeffirst">
  1978. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1979. A regular expression that resolves to one or more hosts
  1980. (when the recipe is native) or one or more targets (when
  1981. the recipe is non-native) with which a recipe is compatible.
  1982. The regular expression is matched against
  1983. <link linkend="var-HOST_SYS"><filename>HOST_SYS</filename></link>.
  1984. You can use the variable to stop recipes from being built
  1985. for classes of systems with which the recipes are not
  1986. compatible.
  1987. Stopping these builds is particularly useful with kernels.
  1988. The variable also helps to increase parsing speed
  1989. since the build system skips parsing recipes not
  1990. compatible with the current system.
  1991. </para>
  1992. </glossdef>
  1993. </glossentry>
  1994. <glossentry id='var-COMPATIBLE_MACHINE'><glossterm>COMPATIBLE_MACHINE</glossterm>
  1995. <info>
  1996. COMPATIBLE_MACHINE[doc] = "A regular expression that resolves to one or more target machines with which a recipe is compatible."
  1997. </info>
  1998. <glossdef>
  1999. <para role="glossdeffirst">
  2000. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2001. A regular expression that resolves to one or more
  2002. target machines with which a recipe is compatible.
  2003. The regular expression is matched against
  2004. <link linkend="var-MACHINEOVERRIDES"><filename>MACHINEOVERRIDES</filename></link>.
  2005. You can use the variable to stop recipes from being built
  2006. for machines with which the recipes are not compatible.
  2007. Stopping these builds is particularly useful with kernels.
  2008. The variable also helps to increase parsing speed
  2009. since the build system skips parsing recipes not
  2010. compatible with the current machine.
  2011. </para>
  2012. </glossdef>
  2013. </glossentry>
  2014. <glossentry id='var-COMPLEMENTARY_GLOB'><glossterm>COMPLEMENTARY_GLOB</glossterm>
  2015. <info>
  2016. COMPLEMENTARY_GLOB[doc] = "Defines wildcards to match when installing a list of complementary packages for all the packages installed in an image."
  2017. </info>
  2018. <glossdef>
  2019. <para role="glossdeffirst">
  2020. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2021. Defines wildcards to match when installing a list of
  2022. complementary packages for all the packages explicitly
  2023. (or implicitly) installed in an image.
  2024. The resulting list of complementary packages is associated
  2025. with an item that can be added to
  2026. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>.
  2027. An example usage of this is the "dev-pkgs" item that when
  2028. added to <filename>IMAGE_FEATURES</filename> will
  2029. install -dev packages (containing headers and other
  2030. development files) for every package in the image.
  2031. </para>
  2032. <para>
  2033. To add a new feature item pointing to a wildcard, use a
  2034. variable flag to specify the feature item name and
  2035. use the value to specify the wildcard.
  2036. Here is an example:
  2037. <literallayout class='monospaced'>
  2038. COMPLEMENTARY_GLOB[dev-pkgs] = '*-dev'
  2039. </literallayout>
  2040. </para>
  2041. </glossdef>
  2042. </glossentry>
  2043. <glossentry id='var-CONF_VERSION'><glossterm>CONF_VERSION</glossterm>
  2044. <info>
  2045. CONF_VERSION[doc] = "Tracks the version of local.conf. Increased each time build/conf/ changes incompatibly."
  2046. </info>
  2047. <glossdef>
  2048. <para role="glossdeffirst">
  2049. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2050. Tracks the version of the local configuration file
  2051. (i.e. <filename>local.conf</filename>).
  2052. The value for <filename>CONF_VERSION</filename>
  2053. increments each time <filename>build/conf/</filename>
  2054. compatibility changes.
  2055. </para>
  2056. </glossdef>
  2057. </glossentry>
  2058. <glossentry id='var-CONFFILES'><glossterm>CONFFILES</glossterm>
  2059. <info>
  2060. CONFFILES[doc] = "Identifies editable or configurable files that are part of a package."
  2061. </info>
  2062. <glossdef>
  2063. <para role="glossdeffirst">
  2064. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2065. Identifies editable or configurable files that are part of a package.
  2066. If the Package Management System (PMS) is being used to update
  2067. packages on the target system, it is possible that
  2068. configuration files you have changed after the original installation
  2069. and that you now want to remain unchanged are overwritten.
  2070. In other words, editable files might exist in the package that you do not
  2071. want reset as part of the package update process.
  2072. You can use the <filename>CONFFILES</filename> variable to list the files in the
  2073. package that you wish to prevent the PMS from overwriting during this update process.
  2074. </para>
  2075. <para>
  2076. To use the <filename>CONFFILES</filename> variable, provide a package name
  2077. override that identifies the resulting package.
  2078. Then, provide a space-separated list of files.
  2079. Here is an example:
  2080. <literallayout class='monospaced'>
  2081. CONFFILES_${PN} += "${sysconfdir}/file1 \
  2082. ${sysconfdir}/file2 ${sysconfdir}/file3"
  2083. </literallayout>
  2084. </para>
  2085. <para>
  2086. A relationship exists between the <filename>CONFFILES</filename> and
  2087. <filename><link linkend='var-FILES'>FILES</link></filename> variables.
  2088. The files listed within <filename>CONFFILES</filename> must be a subset of
  2089. the files listed within <filename>FILES</filename>.
  2090. Because the configuration files you provide with <filename>CONFFILES</filename>
  2091. are simply being identified so that the PMS will not overwrite them,
  2092. it makes sense that
  2093. the files must already be included as part of the package through the
  2094. <filename>FILES</filename> variable.
  2095. </para>
  2096. <note>
  2097. When specifying paths as part of the <filename>CONFFILES</filename> variable,
  2098. it is good practice to use appropriate path variables.
  2099. For example, <filename>${sysconfdir}</filename> rather than
  2100. <filename>/etc</filename> or <filename>${bindir}</filename> rather
  2101. than <filename>/usr/bin</filename>.
  2102. You can find a list of these variables at the top of the
  2103. <filename>meta/conf/bitbake.conf</filename> file in the
  2104. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>.
  2105. </note>
  2106. </glossdef>
  2107. </glossentry>
  2108. <glossentry id='var-CONFIG_INITRAMFS_SOURCE'><glossterm>CONFIG_INITRAMFS_SOURCE</glossterm>
  2109. <info>
  2110. CONFIG_INITRAMFS_SOURCE[doc] = "Identifies the initial RAM filesystem (initramfs) source files. The OpenEmbedded build system receives and uses this kernel Kconfig variable as an environment variable."
  2111. </info>
  2112. <glossdef>
  2113. <para role="glossdeffirst">
  2114. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2115. Identifies the initial RAM filesystem (initramfs) source
  2116. files.
  2117. The OpenEmbedded build system receives and uses
  2118. this kernel Kconfig variable as an environment variable.
  2119. By default, the variable is set to null ("").
  2120. </para>
  2121. <para>
  2122. The <filename>CONFIG_INITRAMFS_SOURCE</filename> can be
  2123. either a single cpio archive with a
  2124. <filename>.cpio</filename> suffix or a
  2125. space-separated list of directories and files for building
  2126. the initramfs image.
  2127. A cpio archive should contain a filesystem archive
  2128. to be used as an initramfs image.
  2129. Directories should contain a filesystem layout to be
  2130. included in the initramfs image.
  2131. Files should contain entries according to the format
  2132. described by the
  2133. <filename>usr/gen_init_cpio</filename> program in the
  2134. kernel tree.
  2135. </para>
  2136. <para>
  2137. If you specify multiple directories and files, the
  2138. initramfs image will be the aggregate of all of them.
  2139. </para>
  2140. <para>
  2141. For information on creating an initramfs, see the
  2142. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-an-initramfs-image'>Building an Initial RAM Filesystem (initramfs) Image</ulink>"
  2143. section in the Yocto Project Development Manual.
  2144. </para>
  2145. </glossdef>
  2146. </glossentry>
  2147. <glossentry id='var-CONFIG_SITE'><glossterm>CONFIG_SITE</glossterm>
  2148. <info>
  2149. CONFIG_SITE[doc] = "A list of files that contains autoconf test results relevant to the current build. This variable is used by the Autotools utilities when running configure."
  2150. </info>
  2151. <glossdef>
  2152. <para role="glossdeffirst">
  2153. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2154. A list of files that contains <filename>autoconf</filename> test results relevant
  2155. to the current build.
  2156. This variable is used by the Autotools utilities when running
  2157. <filename>configure</filename>.
  2158. </para>
  2159. </glossdef>
  2160. </glossentry>
  2161. <glossentry id='var-CONFIGURE_FLAGS'><glossterm>CONFIGURE_FLAGS</glossterm>
  2162. <info>
  2163. CONFIGURE_FLAGS[doc] = "The minimal arguments for GNU configure."
  2164. </info>
  2165. <glossdef>
  2166. <para role="glossdeffirst">
  2167. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2168. The minimal arguments for GNU configure.
  2169. </para>
  2170. </glossdef>
  2171. </glossentry>
  2172. <glossentry id='var-CONFLICT_DISTRO_FEATURES'><glossterm>CONFLICT_DISTRO_FEATURES</glossterm>
  2173. <info>
  2174. CONFLICT_DISTRO_FEATURES[doc] = "When a recipe inherits the distro_features_check class, this variable identifies distribution features that would be in conflict should the recipe be built."
  2175. </info>
  2176. <glossdef>
  2177. <para role="glossdeffirst">
  2178. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2179. When inheriting the
  2180. <link linkend='ref-classes-distro_features_check'><filename>distro_features_check</filename></link>
  2181. class, this
  2182. variable identifies distribution features that would
  2183. be in conflict should the recipe
  2184. be built.
  2185. In other words, if the
  2186. <filename>CONFLICT_DISTRO_FEATURES</filename> variable
  2187. lists a feature that also appears in
  2188. <filename>DISTRO_FEATURES</filename> within the
  2189. current configuration, an error occurs and the
  2190. build stops.
  2191. </para>
  2192. </glossdef>
  2193. </glossentry>
  2194. <glossentry id='var-COPYLEFT_LICENSE_EXCLUDE'><glossterm>COPYLEFT_LICENSE_EXCLUDE</glossterm>
  2195. <info>
  2196. COPYLEFT_LICENSE_EXCLUDE[doc] = "Licenses to exclude in the source archived by the archiver class."
  2197. </info>
  2198. <glossdef>
  2199. <para role="glossdeffirst">
  2200. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2201. A space-separated list of licenses to exclude from the
  2202. source archived by the
  2203. <link linkend='ref-classes-archiver'><filename>archiver</filename></link>
  2204. class.
  2205. In other words, if a license in a recipe's
  2206. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  2207. value is in the value of
  2208. <filename>COPYLEFT_LICENSE_EXCLUDE</filename>, then its
  2209. source is not archived by the class.
  2210. <note>
  2211. The <filename>COPYLEFT_LICENSE_EXCLUDE</filename>
  2212. variable takes precedence over the
  2213. <link linkend='var-COPYLEFT_LICENSE_INCLUDE'><filename>COPYLEFT_LICENSE_INCLUDE</filename></link>
  2214. variable.
  2215. </note>
  2216. The default value, which is "CLOSED Proprietary", for
  2217. <filename>COPYLEFT_LICENSE_EXCLUDE</filename> is set
  2218. by the
  2219. <link linkend='ref-classes-copyleft_filter'><filename>copyleft_filter</filename></link>
  2220. class, which is inherited by the
  2221. <filename>archiver</filename> class.
  2222. </para>
  2223. </glossdef>
  2224. </glossentry>
  2225. <glossentry id='var-COPYLEFT_LICENSE_INCLUDE'><glossterm>COPYLEFT_LICENSE_INCLUDE</glossterm>
  2226. <info>
  2227. COPYLEFT_LICENSE_INCLUDE[doc] = "Licenses to include in the source archived by the archiver class."
  2228. </info>
  2229. <glossdef>
  2230. <para role="glossdeffirst">
  2231. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2232. A space-separated list of licenses to include in the
  2233. source archived by the
  2234. <link linkend='ref-classes-archiver'><filename>archiver</filename></link>
  2235. class.
  2236. In other words, if a license in a recipe's
  2237. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  2238. value is in the value of
  2239. <filename>COPYLEFT_LICENSE_INCLUDE</filename>, then its
  2240. source is archived by the class.
  2241. </para>
  2242. <para>
  2243. The default value is set by the
  2244. <link linkend='ref-classes-copyleft_filter'><filename>copyleft_filter</filename></link>
  2245. class, which is inherited by the
  2246. <filename>archiver</filename> class.
  2247. The default value includes "GPL*", "LGPL*", and "AGPL*".
  2248. </para>
  2249. </glossdef>
  2250. </glossentry>
  2251. <glossentry id='var-COPYLEFT_PN_EXCLUDE'><glossterm>COPYLEFT_PN_EXCLUDE</glossterm>
  2252. <info>
  2253. COPYLEFT_PN_EXCLUDE[doc] = "Recipes to exclude in the source archived by the archiver class."
  2254. </info>
  2255. <glossdef>
  2256. <para role="glossdeffirst">
  2257. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2258. A list of recipes to exclude in the source archived
  2259. by the
  2260. <link linkend='ref-classes-archiver'><filename>archiver</filename></link>
  2261. class.
  2262. The <filename>COPYLEFT_PN_EXCLUDE</filename> variable
  2263. overrides the license inclusion and exclusion caused
  2264. through the
  2265. <link linkend='var-COPYLEFT_LICENSE_INCLUDE'><filename>COPYLEFT_LICENSE_INCLUDE</filename></link>
  2266. and
  2267. <link linkend='var-COPYLEFT_LICENSE_EXCLUDE'><filename>COPYLEFT_LICENSE_EXCLUDE</filename></link>
  2268. variables, respectively.
  2269. </para>
  2270. <para>
  2271. The default value, which is "" indicating to not explicitly
  2272. exclude any recipes by name, for
  2273. <filename>COPYLEFT_PN_EXCLUDE</filename> is set
  2274. by the
  2275. <link linkend='ref-classes-copyleft_filter'><filename>copyleft_filter</filename></link>
  2276. class, which is inherited by the
  2277. <filename>archiver</filename> class.
  2278. </para>
  2279. </glossdef>
  2280. </glossentry>
  2281. <glossentry id='var-COPYLEFT_PN_INCLUDE'><glossterm>COPYLEFT_PN_INCLUDE</glossterm>
  2282. <info>
  2283. COPYLEFT_PN_INCLUDE[doc] = "Recipes to include in the source archived by the archiver class."
  2284. </info>
  2285. <glossdef>
  2286. <para role="glossdeffirst">
  2287. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2288. A list of recipes to include in the source archived
  2289. by the
  2290. <link linkend='ref-classes-archiver'><filename>archiver</filename></link>
  2291. class.
  2292. The <filename>COPYLEFT_PN_INCLUDE</filename> variable
  2293. overrides the license inclusion and exclusion caused
  2294. through the
  2295. <link linkend='var-COPYLEFT_LICENSE_INCLUDE'><filename>COPYLEFT_LICENSE_INCLUDE</filename></link>
  2296. and
  2297. <link linkend='var-COPYLEFT_LICENSE_EXCLUDE'><filename>COPYLEFT_LICENSE_EXCLUDE</filename></link>
  2298. variables, respectively.
  2299. </para>
  2300. <para>
  2301. The default value, which is "" indicating to not explicitly
  2302. include any recipes by name, for
  2303. <filename>COPYLEFT_PN_INCLUDE</filename> is set
  2304. by the
  2305. <link linkend='ref-classes-copyleft_filter'><filename>copyleft_filter</filename></link>
  2306. class, which is inherited by the
  2307. <filename>archiver</filename> class.
  2308. </para>
  2309. </glossdef>
  2310. </glossentry>
  2311. <glossentry id='var-COPYLEFT_RECIPE_TYPES'><glossterm>COPYLEFT_RECIPE_TYPES</glossterm>
  2312. <info>
  2313. COPYLEFT_RECIPE_TYPES[doc] = "Recipe types to include in the source archived by the archiver class."
  2314. </info>
  2315. <glossdef>
  2316. <para role="glossdeffirst">
  2317. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2318. A space-separated list of recipe types to include
  2319. in the source archived by the
  2320. <link linkend='ref-classes-archiver'><filename>archiver</filename></link>
  2321. class.
  2322. Recipe types are <filename>target</filename>,
  2323. <filename>native</filename>,
  2324. <filename>nativesdk</filename>,
  2325. <filename>cross</filename>,
  2326. <filename>crosssdk</filename>, and
  2327. <filename>cross-canadian</filename>.
  2328. </para>
  2329. <para>
  2330. The default value, which is "target*", for
  2331. <filename>COPYLEFT_RECIPE_TYPES</filename> is set
  2332. by the
  2333. <link linkend='ref-classes-copyleft_filter'><filename>copyleft_filter</filename></link>
  2334. class, which is inherited by the
  2335. <filename>archiver</filename> class.
  2336. </para>
  2337. </glossdef>
  2338. </glossentry>
  2339. <glossentry id='var-COPY_LIC_DIRS'><glossterm>COPY_LIC_DIRS</glossterm>
  2340. <info>
  2341. COPY_LIC_DIRS[doc] = "If set to "1" along with the COPY_LIC_MANIFEST variable, the OpenEmbedded build system copies into the image the license files, which are located in /usr/share/common-licenses, for each package."
  2342. </info>
  2343. <glossdef>
  2344. <para role="glossdeffirst">
  2345. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2346. If set to "1" along with the
  2347. <link linkend='var-COPY_LIC_MANIFEST'><filename>COPY_LIC_MANIFEST</filename></link>
  2348. variable, the OpenEmbedded build system copies
  2349. into the image the license files, which are located in
  2350. <filename>/usr/share/common-licenses</filename>,
  2351. for each package.
  2352. The license files are placed
  2353. in directories within the image itself during build time.
  2354. <note>
  2355. The <filename>COPY_LIC_DIRS</filename> does not
  2356. offer a path for adding licenses for newly installed
  2357. packages to an image, which might be most suitable
  2358. for read-only filesystems that cannot be upgraded.
  2359. See the
  2360. <link linkend='var-LICENSE_CREATE_PACKAGE'><filename>LICENSE_CREATE_PACKAGE</filename></link>
  2361. variable for additional information.
  2362. You can also reference the
  2363. "<ulink url='&YOCTO_DOCS_DEV_URL;#providing-license-text'>Providing License Text</ulink>"
  2364. section in the Yocto Project Development Manual for
  2365. information on providing license text.
  2366. </note>
  2367. </para>
  2368. </glossdef>
  2369. </glossentry>
  2370. <glossentry id='var-COPY_LIC_MANIFEST'><glossterm>COPY_LIC_MANIFEST</glossterm>
  2371. <info>
  2372. COPY_LIC_MANIFEST[doc] = "If set to "1", the OpenEmbedded build system copies the license manifest for the image to /usr/share/common-licenses/license.manifest within the image itself."
  2373. </info>
  2374. <glossdef>
  2375. <para role="glossdeffirst">
  2376. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2377. If set to "1", the OpenEmbedded build system copies
  2378. the license manifest for the image to
  2379. <filename>/usr/share/common-licenses/license.manifest</filename>
  2380. within the image itself during build time.
  2381. <note>
  2382. The <filename>COPY_LIC_MANIFEST</filename> does not
  2383. offer a path for adding licenses for newly installed
  2384. packages to an image, which might be most suitable
  2385. for read-only filesystems that cannot be upgraded.
  2386. See the
  2387. <link linkend='var-LICENSE_CREATE_PACKAGE'><filename>LICENSE_CREATE_PACKAGE</filename></link>
  2388. variable for additional information.
  2389. You can also reference the
  2390. "<ulink url='&YOCTO_DOCS_DEV_URL;#providing-license-text'>Providing License Text</ulink>"
  2391. section in the Yocto Project Development Manual for
  2392. information on providing license text.
  2393. </note>
  2394. </para>
  2395. </glossdef>
  2396. </glossentry>
  2397. <glossentry id='var-CORE_IMAGE_EXTRA_INSTALL'><glossterm>CORE_IMAGE_EXTRA_INSTALL</glossterm>
  2398. <info>
  2399. CORE_IMAGE_EXTRA_INSTALL[doc] = "Specifies the list of packages to be added to the image. You should only set this variable in the conf/local.conf file in the Build Directory."
  2400. </info>
  2401. <glossdef>
  2402. <para role="glossdeffirst">
  2403. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2404. Specifies the list of packages to be added to the image.
  2405. You should only set this variable in the
  2406. <filename>local.conf</filename> configuration file found
  2407. in the
  2408. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>.
  2409. </para>
  2410. <para>
  2411. This variable replaces <filename>POKY_EXTRA_INSTALL</filename>, which is no longer supported.
  2412. </para>
  2413. </glossdef>
  2414. </glossentry>
  2415. <glossentry id='var-COREBASE'><glossterm>COREBASE</glossterm>
  2416. <info>
  2417. COREBASE[doc] = "Specifies the parent directory of the OpenEmbedded Core Metadata layer (i.e. meta)."
  2418. </info>
  2419. <glossdef>
  2420. <para role="glossdeffirst">
  2421. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2422. Specifies the parent directory of the OpenEmbedded
  2423. Core Metadata layer (i.e. <filename>meta</filename>).
  2424. </para>
  2425. <para>
  2426. It is an important distinction that
  2427. <filename>COREBASE</filename> points to the parent of this
  2428. layer and not the layer itself.
  2429. Consider an example where you have cloned the Poky Git
  2430. repository and retained the <filename>poky</filename>
  2431. name for your local copy of the repository.
  2432. In this case, <filename>COREBASE</filename> points to
  2433. the <filename>poky</filename> folder because it is the
  2434. parent directory of the <filename>poky/meta</filename>
  2435. layer.
  2436. </para>
  2437. </glossdef>
  2438. </glossentry>
  2439. <glossentry id='var-COREBASE_FILES'><glossterm>COREBASE_FILES</glossterm>
  2440. <info>
  2441. COREBASE_FILES[doc] = "Lists files from the COREBASE directory that should be copied other than the layers listed in the bblayers.conf file."
  2442. </info>
  2443. <glossdef>
  2444. <para role="glossdeffirst">
  2445. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2446. Lists files from the
  2447. <link linkend='var-COREBASE'><filename>COREBASE</filename></link>
  2448. directory that should be copied other than the layers
  2449. listed in the <filename>bblayers.conf</filename> file.
  2450. The <filename>COREBASE_FILES</filename> variable exists
  2451. for the purpose of copying metadata from the
  2452. OpenEmbedded build system into the extensible
  2453. SDK.
  2454. </para>
  2455. <para>
  2456. Explicitly listing files in <filename>COREBASE</filename>
  2457. is needed because it typically contains build
  2458. directories and other files that should not normally
  2459. be copied into the extensible SDK.
  2460. Consequently, the value of
  2461. <filename>COREBASE_FILES</filename> is used in order to
  2462. only copy the files that are actually needed.
  2463. </para>
  2464. </glossdef>
  2465. </glossentry>
  2466. <glossentry id='var-CPP'><glossterm>CPP</glossterm>
  2467. <info>
  2468. CPP[doc] = "Minimum command and arguments to run the C preprocessor."
  2469. </info>
  2470. <glossdef>
  2471. <para role="glossdeffirst">
  2472. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2473. The minimal command and arguments used to run the C
  2474. preprocessor.
  2475. </para>
  2476. </glossdef>
  2477. </glossentry>
  2478. <glossentry id='var-CPPFLAGS'><glossterm>CPPFLAGS</glossterm>
  2479. <info>
  2480. CPPFLAGS[doc] = "Specifies the flags to pass to the C pre-processor (i.e. to both the C and the C++ compilers)."
  2481. </info>
  2482. <glossdef>
  2483. <para role="glossdeffirst">
  2484. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2485. Specifies the flags to pass to the C pre-processor
  2486. (i.e. to both the C and the C++ compilers).
  2487. This variable is exported to an environment
  2488. variable and thus made visible to the software being
  2489. built during the compilation step.
  2490. </para>
  2491. <para>
  2492. Default initialization for <filename>CPPFLAGS</filename>
  2493. varies depending on what is being built:
  2494. <itemizedlist>
  2495. <listitem><para>
  2496. <link linkend='var-TARGET_CPPFLAGS'><filename>TARGET_CPPFLAGS</filename></link>
  2497. when building for the target
  2498. </para></listitem>
  2499. <listitem><para>
  2500. <link linkend='var-BUILD_CPPFLAGS'><filename>BUILD_CPPFLAGS</filename></link>
  2501. when building for the build host (i.e.
  2502. <filename>-native</filename>)
  2503. </para></listitem>
  2504. <listitem><para>
  2505. <link linkend='var-BUILDSDK_CPPFLAGS'><filename>BUILDSDK_CPPFLAGS</filename></link>
  2506. when building for an SDK (i.e.
  2507. <filename>nativesdk-</filename>)
  2508. </para></listitem>
  2509. </itemizedlist>
  2510. </para>
  2511. </glossdef>
  2512. </glossentry>
  2513. <glossentry id='var-CROSS_COMPILE'><glossterm>CROSS_COMPILE</glossterm>
  2514. <info>
  2515. CROSS_COMPILE[doc] = "The toolchain binary prefix for the target tools."
  2516. </info>
  2517. <glossdef>
  2518. <para role="glossdeffirst">
  2519. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2520. The toolchain binary prefix for the target tools.
  2521. The <filename>CROSS_COMPILE</filename> variable is the
  2522. same as the
  2523. <link linkend='var-TARGET_PREFIX'><filename>TARGET_PREFIX</filename></link>
  2524. variable.
  2525. <note>
  2526. The OpenEmbedded build system sets the
  2527. <filename>CROSS_COMPILE</filename> variable only in
  2528. certain contexts (e.g. when building for kernel
  2529. and kernel module recipes).
  2530. </note>
  2531. </para>
  2532. </glossdef>
  2533. </glossentry>
  2534. <glossentry id='var-CVSDIR'><glossterm>CVSDIR</glossterm>
  2535. <info>
  2536. CVSDIR[doc] = "The directory where cvs checkouts will be stored in."
  2537. </info>
  2538. <glossdef>
  2539. <para role="glossdeffirst">
  2540. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2541. The directory in which files checked out under the
  2542. CVS system are stored.
  2543. </para>
  2544. </glossdef>
  2545. </glossentry>
  2546. <glossentry id='var-CXX'><glossterm>CXX</glossterm>
  2547. <info>
  2548. CXX[doc] = "Minimum command and arguments to run the C++ compiler."
  2549. </info>
  2550. <glossdef>
  2551. <para role="glossdeffirst">
  2552. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2553. The minimal command and arguments used to run the C++
  2554. compiler.
  2555. </para>
  2556. </glossdef>
  2557. </glossentry>
  2558. <glossentry id='var-CXXFLAGS'><glossterm>CXXFLAGS</glossterm>
  2559. <info>
  2560. CXXFLAGS[doc] = "Specifies the flags to pass to the C++ compiler."
  2561. </info>
  2562. <glossdef>
  2563. <para role="glossdeffirst">
  2564. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2565. Specifies the flags to pass to the C++ compiler.
  2566. This variable is exported to an environment
  2567. variable and thus made visible to the software being
  2568. built during the compilation step.
  2569. </para>
  2570. <para>
  2571. Default initialization for <filename>CXXFLAGS</filename>
  2572. varies depending on what is being built:
  2573. <itemizedlist>
  2574. <listitem><para>
  2575. <link linkend='var-TARGET_CXXFLAGS'><filename>TARGET_CXXFLAGS</filename></link>
  2576. when building for the target
  2577. </para></listitem>
  2578. <listitem><para>
  2579. <link linkend='var-BUILD_CXXFLAGS'><filename>BUILD_CXXFLAGS</filename></link>
  2580. when building for the build host (i.e.
  2581. <filename>-native</filename>)
  2582. </para></listitem>
  2583. <listitem><para>
  2584. <link linkend='var-BUILDSDK_CXXFLAGS'><filename>BUILDSDK_CXXFLAGS</filename></link>
  2585. when building for an SDK (i.e.
  2586. <filename>nativesdk-</filename>)
  2587. </para></listitem>
  2588. </itemizedlist>
  2589. </para>
  2590. </glossdef>
  2591. </glossentry>
  2592. </glossdiv>
  2593. <glossdiv id='var-glossary-d'><title>D</title>
  2594. <glossentry id='var-D'><glossterm>D</glossterm>
  2595. <info>
  2596. D[doc] = "The destination directory."
  2597. </info>
  2598. <glossdef>
  2599. <para role="glossdeffirst">
  2600. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2601. The destination directory.
  2602. The location in the <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>
  2603. where components are installed by the
  2604. <link linkend='ref-tasks-install'><filename>do_install</filename></link>
  2605. task.
  2606. This location defaults to:
  2607. <literallayout class='monospaced'>
  2608. ${<link linkend='var-WORKDIR'>WORKDIR</link>}/image
  2609. </literallayout>
  2610. <note><title>Caution</title>
  2611. Tasks that read from or write to this directory should
  2612. run under
  2613. <link linkend='fakeroot-and-pseudo'>fakeroot</link>.
  2614. </note>
  2615. </para>
  2616. </glossdef>
  2617. </glossentry>
  2618. <glossentry id='var-DATE'><glossterm>DATE</glossterm>
  2619. <info>
  2620. DATE[doc] = "The date the build was started using YMD format."
  2621. </info>
  2622. <glossdef>
  2623. <para role="glossdeffirst">
  2624. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2625. The date the build was started.
  2626. Dates appear using the year, month, and day (YMD) format
  2627. (e.g. "20150209" for February 9th, 2015).
  2628. </para>
  2629. </glossdef>
  2630. </glossentry>
  2631. <glossentry id='var-DATETIME'><glossterm>DATETIME</glossterm>
  2632. <info>
  2633. DATETIME[doc] = "The date and time the build was started."
  2634. </info>
  2635. <glossdef>
  2636. <para role="glossdeffirst">
  2637. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2638. The date and time on which the current build started.
  2639. The format is suitable for timestamps.
  2640. </para>
  2641. </glossdef>
  2642. </glossentry>
  2643. <glossentry id='var-DEBIAN_NOAUTONAME'><glossterm>DEBIAN_NOAUTONAME</glossterm>
  2644. <info>
  2645. DEBIAN_NOAUTONAME[doc] = "Prevents a particular package from being renamed according to Debian package naming."
  2646. </info>
  2647. <glossdef>
  2648. <para role="glossdeffirst">
  2649. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2650. When the
  2651. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  2652. class is inherited, which is the default behavior,
  2653. <filename>DEBIAN_NOAUTONAME</filename> specifies a
  2654. particular package should not be renamed according to
  2655. Debian library package naming.
  2656. You must use the package name as an override when you
  2657. set this variable.
  2658. Here is an example from the <filename>fontconfig</filename>
  2659. recipe:
  2660. <literallayout class='monospaced'>
  2661. DEBIAN_NOAUTONAME_fontconfig-utils = "1"
  2662. </literallayout>
  2663. </para>
  2664. </glossdef>
  2665. </glossentry>
  2666. <glossentry id='var-DEBIANNAME'><glossterm>DEBIANNAME</glossterm>
  2667. <info>
  2668. DEBIANNAME[doc] = "Allows you to override the library name for an individual package for Debian library package renaming."
  2669. </info>
  2670. <glossdef>
  2671. <para role="glossdeffirst">
  2672. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2673. When the
  2674. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  2675. class is inherited, which is the default behavior,
  2676. <filename>DEBIANNAME</filename> allows you to override the
  2677. library name for an individual package.
  2678. Overriding the library name in these cases is rare.
  2679. You must use the package name as an override when you
  2680. set this variable.
  2681. Here is an example from the <filename>dbus</filename>
  2682. recipe:
  2683. <literallayout class='monospaced'>
  2684. DEBIANNAME_${PN} = "dbus-1"
  2685. </literallayout>
  2686. </para>
  2687. </glossdef>
  2688. </glossentry>
  2689. <glossentry id='var-DEBUG_BUILD'><glossterm>DEBUG_BUILD</glossterm>
  2690. <info>
  2691. DEBUG_BUILD[doc] = "Specifies to build packages with debugging information. This influences the value of the SELECTED_OPTIMIZATION variable."
  2692. </info>
  2693. <glossdef>
  2694. <para role="glossdeffirst">
  2695. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2696. Specifies to build packages with debugging information.
  2697. This influences the value of the
  2698. <filename><link linkend='var-SELECTED_OPTIMIZATION'>SELECTED_OPTIMIZATION</link></filename>
  2699. variable.
  2700. </para>
  2701. </glossdef>
  2702. </glossentry>
  2703. <glossentry id='var-DEBUG_OPTIMIZATION'><glossterm>DEBUG_OPTIMIZATION</glossterm>
  2704. <info>
  2705. DEBUG_OPTIMIZATION[doc] = "The options to pass in TARGET_CFLAGS and CFLAGS when compiling a system for debugging. This variable defaults to '-O -fno-omit-frame-pointer -g'."
  2706. </info>
  2707. <glossdef>
  2708. <para role="glossdeffirst">
  2709. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2710. The options to pass in
  2711. <filename><link linkend='var-TARGET_CFLAGS'>TARGET_CFLAGS</link></filename>
  2712. and <filename><link linkend='var-CFLAGS'>CFLAGS</link></filename> when compiling
  2713. a system for debugging.
  2714. This variable defaults to "-O -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe".
  2715. </para>
  2716. </glossdef>
  2717. </glossentry>
  2718. <glossentry id='var-DEFAULT_PREFERENCE'><glossterm>DEFAULT_PREFERENCE</glossterm>
  2719. <info>
  2720. DEFAULT_PREFERENCE[doc] = "Specifies a weak bias for recipe selection priority."
  2721. </info>
  2722. <glossdef>
  2723. <para role="glossdeffirst">
  2724. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2725. Specifies a weak bias for recipe selection priority.
  2726. </para>
  2727. <para>
  2728. The most common usage of this is variable is to set
  2729. it to "-1" within a recipe for a development version of a
  2730. piece of software.
  2731. Using the variable in this way causes the stable version
  2732. of the recipe to build by default in the absence of
  2733. <filename><link linkend='var-PREFERRED_VERSION'>PREFERRED_VERSION</link></filename>
  2734. being used to build the development version.
  2735. </para>
  2736. <note>
  2737. The bias provided by <filename>DEFAULT_PREFERENCE</filename>
  2738. is weak and is overridden by
  2739. <filename><link linkend='var-BBFILE_PRIORITY'>BBFILE_PRIORITY</link></filename>
  2740. if that variable is different between two layers
  2741. that contain different versions of the same recipe.
  2742. </note>
  2743. </glossdef>
  2744. </glossentry>
  2745. <glossentry id='var-DEFAULTTUNE'><glossterm>DEFAULTTUNE</glossterm>
  2746. <info>
  2747. DEFAULTTUNE[doc] = "The default CPU and Application Binary Interface (ABI) tunings (i.e. the "tune") used by the OpenEmbedded build system."
  2748. </info>
  2749. <glossdef>
  2750. <para role="glossdeffirst">
  2751. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2752. The default CPU and Application Binary Interface (ABI)
  2753. tunings (i.e. the "tune") used by the OpenEmbedded build
  2754. system.
  2755. The <filename>DEFAULTTUNE</filename> helps define
  2756. <link linkend='var-TUNE_FEATURES'><filename>TUNE_FEATURES</filename></link>.
  2757. </para>
  2758. <para>
  2759. The default tune is either implicitly or explicitly set
  2760. by the machine
  2761. (<link linkend='var-MACHINE'><filename>MACHINE</filename></link>).
  2762. However, you can override the setting using available tunes
  2763. as defined with
  2764. <link linkend='var-AVAILTUNES'><filename>AVAILTUNES</filename></link>.
  2765. </para>
  2766. </glossdef>
  2767. </glossentry>
  2768. <glossentry id='var-DEPENDS'><glossterm>DEPENDS</glossterm>
  2769. <info>
  2770. DEPENDS[doc] = "Lists a recipe's build-time dependencies (i.e. other recipe files)."
  2771. </info>
  2772. <glossdef>
  2773. <para role="glossdeffirst">
  2774. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2775. Lists a recipe's build-time dependencies.
  2776. These are dependencies on other recipes whose
  2777. contents (e.g. headers and shared libraries) are needed
  2778. by the recipe at build time.
  2779. </para>
  2780. <para>
  2781. As an example, consider a recipe <filename>foo</filename>
  2782. that contains the following assignment:
  2783. <literallayout class='monospaced'>
  2784. DEPENDS = "bar"
  2785. </literallayout>
  2786. The practical effect of the previous assignment is that
  2787. all files installed by bar will be available in the
  2788. appropriate staging sysroot, given by the
  2789. <link linkend='var-STAGING_DIR'><filename>STAGING_DIR*</filename></link>
  2790. variables, by the time the
  2791. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>
  2792. task for <filename>foo</filename> runs.
  2793. This mechanism is implemented by having
  2794. <filename>do_configure</filename> depend on the
  2795. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  2796. task of each recipe listed in <filename>DEPENDS</filename>,
  2797. through a
  2798. <filename>[</filename><ulink url='&YOCTO_DOCS_BB_URL;#variable-flags'><filename>deptask</filename></ulink><filename>]</filename>
  2799. declaration in the
  2800. <link linkend='ref-classes-base'><filename>base</filename></link>
  2801. class.
  2802. <note>
  2803. It seldom is necessary to reference, for example,
  2804. <filename>STAGING_DIR_HOST</filename> explicitly.
  2805. The standard classes and build-related variables are
  2806. configured to automatically use the appropriate staging
  2807. sysroots.
  2808. </note>
  2809. As another example, <filename>DEPENDS</filename> can also
  2810. be used to add utilities that run on the build machine
  2811. during the build.
  2812. For example, a recipe that makes use of a code generator
  2813. built by the recipe <filename>codegen</filename> might have
  2814. the following:
  2815. <literallayout class='monospaced'>
  2816. DEPENDS = "codegen-native"
  2817. </literallayout>
  2818. For more information, see the
  2819. <link linkend='ref-classes-native'><filename>native</filename></link>
  2820. class and the
  2821. <link linkend='var-EXTRANATIVEPATH'><filename>EXTRANATIVEPATH</filename></link>
  2822. variable.
  2823. <note>
  2824. <title>Notes</title>
  2825. <itemizedlist>
  2826. <listitem><para>
  2827. <filename>DEPENDS</filename> is a list of
  2828. recipe names.
  2829. Or, to be more precise, it is a list of
  2830. <link linkend='var-PROVIDES'><filename>PROVIDES</filename></link>
  2831. names, which usually match recipe names.
  2832. Putting a package name such as "foo-dev" in
  2833. <filename>DEPENDS</filename> does not make
  2834. sense.
  2835. Use "foo" instead, as this will put files
  2836. from all the packages that make up
  2837. <filename>foo</filename>, which includes
  2838. those from <filename>foo-dev</filename>, into
  2839. the sysroot.
  2840. </para></listitem>
  2841. <listitem><para>
  2842. One recipe having another recipe in
  2843. <filename>DEPENDS</filename> does not by itself
  2844. add any runtime dependencies between the
  2845. packages produced by the two recipes.
  2846. However, as explained in the
  2847. "<link linkend='automatically-added-runtime-dependencies'>Automatically Added Runtime Dependencies</link>"
  2848. section, runtime dependencies will often be
  2849. added automatically, meaning
  2850. <filename>DEPENDS</filename> alone is
  2851. sufficient for most recipes.
  2852. </para></listitem>
  2853. <listitem><para>
  2854. Counterintuitively,
  2855. <filename>DEPENDS</filename> is often necessary
  2856. even for recipes that install precompiled
  2857. components.
  2858. For example, if <filename>libfoo</filename>
  2859. is a precompiled library that links against
  2860. <filename>libbar</filename>, then
  2861. linking against <filename>libfoo</filename>
  2862. requires both <filename>libfoo</filename>
  2863. and <filename>libbar</filename> to be available
  2864. in the sysroot.
  2865. Without a <filename>DEPENDS</filename> from the
  2866. recipe that installs <filename>libfoo</filename>
  2867. to the recipe that installs
  2868. <filename>libbar</filename>, other recipes might
  2869. fail to link against
  2870. <filename>libfoo</filename>.
  2871. </para></listitem>
  2872. </itemizedlist>
  2873. </note>
  2874. </para>
  2875. <para>
  2876. For information on runtime dependencies, see the
  2877. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>
  2878. variable.
  2879. You can also see the
  2880. "<ulink url='&YOCTO_DOCS_BB_URL;#tasks'>Tasks</ulink>" and
  2881. "<ulink url='&YOCTO_DOCS_BB_URL;#dependencies'>Dependencies</ulink>"
  2882. sections in the BitBake User Manual for additional
  2883. information on tasks and dependencies.
  2884. </para>
  2885. </glossdef>
  2886. </glossentry>
  2887. <glossentry id='var-DEPLOY_DIR'><glossterm>DEPLOY_DIR</glossterm>
  2888. <info>
  2889. DEPLOY_DIR[doc] = "Points to the general area that the OpenEmbedded build system uses to place images, packages, SDKs and other output files that are ready to be used outside of the build system."
  2890. </info>
  2891. <glossdef>
  2892. <para role="glossdeffirst">
  2893. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2894. Points to the general area that the OpenEmbedded build
  2895. system uses to place images, packages, SDKs and other output
  2896. files that are ready to be used outside of the build system.
  2897. By default, this directory resides within the
  2898. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>
  2899. as <filename>${TMPDIR}/deploy</filename>.
  2900. </para>
  2901. <para>
  2902. For more information on the structure of the Build
  2903. Directory, see
  2904. "<link linkend='structure-build'>The Build Directory - <filename>build/</filename></link>"
  2905. section.
  2906. For more detail on the contents of the
  2907. <filename>deploy</filename> directory, see the
  2908. "<link linkend='images-dev-environment'>Images</link>",
  2909. "<link linkend='package-feeds-dev-environment'>Package Feeds</link>",
  2910. and
  2911. "<link linkend='sdk-dev-environment'>Application Development SDK</link>"
  2912. sections.
  2913. </para>
  2914. </glossdef>
  2915. </glossentry>
  2916. <glossentry id='var-DEPLOY_DIR_DEB'><glossterm>DEPLOY_DIR_DEB</glossterm>
  2917. <info>
  2918. DEPLOY_DIR_DEB[doc] = "Points to a Debian-specific area that the OpenEmbedded build system uses to place images, packages, SDKs and other output files that are ready to be used outside of the build system."
  2919. </info>
  2920. <glossdef>
  2921. <para role="glossdeffirst">
  2922. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2923. Points to the area that the OpenEmbedded build system uses
  2924. to place Debian packages that are ready to be used outside
  2925. of the build system.
  2926. This variable applies only when
  2927. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
  2928. contains "package_deb".
  2929. </para>
  2930. <para>
  2931. The BitBake configuration file initially defines the
  2932. <filename>DEPLOY_DIR_DEB</filename> variable as a
  2933. sub-folder of
  2934. <link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link>:
  2935. <literallayout class='monospaced'>
  2936. DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb"
  2937. </literallayout>
  2938. </para>
  2939. <para>
  2940. The
  2941. <link linkend='ref-classes-package_deb'><filename>package_deb</filename></link>
  2942. class uses the
  2943. <filename>DEPLOY_DIR_DEB</filename> variable to make sure
  2944. the
  2945. <link linkend='ref-tasks-package_write_deb'><filename>do_package_write_deb</filename></link>
  2946. task writes Debian packages into the appropriate folder.
  2947. For more information on how packaging works, see the
  2948. "<link linkend='package-feeds-dev-environment'>Package Feeds</link>"
  2949. section.
  2950. </para>
  2951. </glossdef>
  2952. </glossentry>
  2953. <glossentry id='var-DEPLOY_DIR_IMAGE'><glossterm>DEPLOY_DIR_IMAGE</glossterm>
  2954. <info>
  2955. DEPLOY_DIR_IMAGE[doc] = "Points to the area that the OpenEmbedded build system uses to place images and other associated output files that are ready to be deployed onto the target machine."
  2956. </info>
  2957. <glossdef>
  2958. <para role="glossdeffirst">
  2959. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2960. Points to the area that the OpenEmbedded build system uses
  2961. to place images and other associated output files that are
  2962. ready to be deployed onto the target machine.
  2963. The directory is machine-specific as it contains the
  2964. <filename>${MACHINE}</filename> name.
  2965. By default, this directory resides within the
  2966. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>
  2967. as <filename>${DEPLOY_DIR}/images/${MACHINE}/</filename>.
  2968. </para>
  2969. <para>
  2970. For more information on the structure of the Build
  2971. Directory, see
  2972. "<link linkend='structure-build'>The Build Directory - <filename>build/</filename></link>"
  2973. section.
  2974. For more detail on the contents of the
  2975. <filename>deploy</filename> directory, see the
  2976. "<link linkend='images-dev-environment'>Images</link>" and
  2977. "<link linkend='sdk-dev-environment'>Application Development SDK</link>"
  2978. sections.
  2979. </para>
  2980. </glossdef>
  2981. </glossentry>
  2982. <glossentry id='var-DEPLOY_DIR_IPK'><glossterm>DEPLOY_DIR_IPK</glossterm>
  2983. <info>
  2984. DEPLOY_DIR_IPK[doc] = "Points to a IPK-specific area that the OpenEmbedded build system uses to place images, packages, SDKs and other output files that are ready to be used outside of the build system."
  2985. </info>
  2986. <glossdef>
  2987. <para role="glossdeffirst">
  2988. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2989. Points to the area that the OpenEmbedded build system uses
  2990. to place IPK packages that are ready to be used outside of
  2991. the build system.
  2992. This variable applies only when
  2993. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
  2994. contains "package_ipk".
  2995. </para>
  2996. <para>
  2997. The BitBake configuration file initially defines this
  2998. variable as a sub-folder of
  2999. <link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link>:
  3000. <literallayout class='monospaced'>
  3001. DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk"
  3002. </literallayout>
  3003. </para>
  3004. <para>
  3005. The
  3006. <link linkend='ref-classes-package_ipk'><filename>package_ipk</filename></link>
  3007. class uses the
  3008. <filename>DEPLOY_DIR_IPK</filename> variable to make sure
  3009. the
  3010. <link linkend='ref-tasks-package_write_ipk'><filename>do_package_write_ipk</filename></link>
  3011. task writes IPK packages into the appropriate folder.
  3012. For more information on how packaging works, see the
  3013. "<link linkend='package-feeds-dev-environment'>Package Feeds</link>"
  3014. section.
  3015. </para>
  3016. </glossdef>
  3017. </glossentry>
  3018. <glossentry id='var-DEPLOY_DIR_RPM'><glossterm>DEPLOY_DIR_RPM</glossterm>
  3019. <info>
  3020. DEPLOY_DIR_RPM[doc] = "Points to a RPM-specific area that the OpenEmbedded build system uses to place images, packages, SDKs and other output files that are ready to be used outside of the build system."
  3021. </info>
  3022. <glossdef>
  3023. <para role="glossdeffirst">
  3024. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3025. Points to the area that the OpenEmbedded build system uses
  3026. to place RPM packages that are ready to be used outside
  3027. of the build system.
  3028. This variable applies only when
  3029. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
  3030. contains "package_rpm".
  3031. </para>
  3032. <para>
  3033. The BitBake configuration file initially defines this
  3034. variable as a sub-folder of
  3035. <link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link>:
  3036. <literallayout class='monospaced'>
  3037. DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm"
  3038. </literallayout>
  3039. </para>
  3040. <para>
  3041. The
  3042. <link linkend='ref-classes-package_rpm'><filename>package_rpm</filename></link>
  3043. class uses the
  3044. <filename>DEPLOY_DIR_RPM</filename> variable to make sure
  3045. the
  3046. <link linkend='ref-tasks-package_write_rpm'><filename>do_package_write_rpm</filename></link>
  3047. task writes RPM packages into the appropriate folder.
  3048. For more information on how packaging works, see the
  3049. "<link linkend='package-feeds-dev-environment'>Package Feeds</link>"
  3050. section.
  3051. </para>
  3052. </glossdef>
  3053. </glossentry>
  3054. <glossentry id='var-DEPLOY_DIR_TAR'><glossterm>DEPLOY_DIR_TAR</glossterm>
  3055. <info>
  3056. DEPLOY_DIR_TAR[doc] = "Points to a tarball area that the OpenEmbedded build system uses to place images, packages, SDKs and other output files that are ready to be used outside of the build system."
  3057. </info>
  3058. <glossdef>
  3059. <para role="glossdeffirst">
  3060. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3061. Points to the area that the OpenEmbedded build system uses
  3062. to place tarballs that are ready to be used outside of
  3063. the build system.
  3064. This variable applies only when
  3065. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
  3066. contains "package_tar".
  3067. </para>
  3068. <para>
  3069. The BitBake configuration file initially defines this
  3070. variable as a sub-folder of
  3071. <link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link>:
  3072. <literallayout class='monospaced'>
  3073. DEPLOY_DIR_TAR = "${DEPLOY_DIR}/tar"
  3074. </literallayout>
  3075. </para>
  3076. <para>
  3077. The
  3078. <link linkend='ref-classes-package_tar'><filename>package_tar</filename></link>
  3079. class uses the
  3080. <filename>DEPLOY_DIR_TAR</filename> variable to make sure
  3081. the
  3082. <link linkend='ref-tasks-package_write_tar'><filename>do_package_write_tar</filename></link>
  3083. task writes TAR packages into the appropriate folder.
  3084. For more information on how packaging works, see the
  3085. "<link linkend='package-feeds-dev-environment'>Package Feeds</link>"
  3086. section.
  3087. </para>
  3088. </glossdef>
  3089. </glossentry>
  3090. <glossentry id='var-DEPLOYDIR'><glossterm>DEPLOYDIR</glossterm>
  3091. <info>
  3092. DEPLOYDIR[doc] = "For recipes that inherit the deploy class, the DEPLOYDIR points to a temporary work area for deployed files."
  3093. </info>
  3094. <glossdef>
  3095. <para role="glossdeffirst">
  3096. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3097. When inheriting the
  3098. <link linkend='ref-classes-deploy'><filename>deploy</filename></link>
  3099. class, the <filename>DEPLOYDIR</filename> points to a
  3100. temporary work area for deployed files that is set in the
  3101. <filename>deploy</filename> class as follows:
  3102. <literallayout class='monospaced'>
  3103. DEPLOYDIR = "${WORKDIR}/deploy-${<link linkend='var-PN'><filename>PN</filename></link>}"
  3104. </literallayout>
  3105. </para>
  3106. <para>
  3107. Recipes inheriting the <filename>deploy</filename> class
  3108. should copy files to be deployed into
  3109. <filename>DEPLOYDIR</filename>, and the class will take
  3110. care of copying them into
  3111. <link linkend='var-DEPLOY_DIR_IMAGE'><filename>DEPLOY_DIR_IMAGE</filename></link>
  3112. afterwards.
  3113. </para>
  3114. </glossdef>
  3115. </glossentry>
  3116. <glossentry id='var-DESCRIPTION'><glossterm>DESCRIPTION</glossterm>
  3117. <info>
  3118. DESCRIPTION[doc] = "The package description used by package managers. If not set, DESCRIPTION takes the value of the SUMMARY variable."
  3119. </info>
  3120. <glossdef>
  3121. <para role="glossdeffirst">
  3122. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3123. The package description used by package managers.
  3124. If not set, <filename>DESCRIPTION</filename> takes
  3125. the value of the
  3126. <link linkend='var-SUMMARY'><filename>SUMMARY</filename></link>
  3127. variable.
  3128. </para>
  3129. </glossdef>
  3130. </glossentry>
  3131. <glossentry id='var-DISK_SIGNATURE'><glossterm>DISK_SIGNATURE</glossterm>
  3132. <info>
  3133. DISK_SIGNATURE[doc] = "A 32-bit MBR disk signature used by directdisk images."
  3134. </info>
  3135. <glossdef>
  3136. <para role="glossdeffirst">
  3137. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3138. A 32-bit MBR disk signature used by
  3139. <filename>directdisk</filename> images.
  3140. </para>
  3141. <para>
  3142. By default, the signature is set to an automatically
  3143. generated random value that allows the OpenEmbedded
  3144. build system to create a boot loader.
  3145. You can override the signature in the image recipe
  3146. by setting <filename>DISK_SIGNATURE</filename> to an
  3147. 8-digit hex string.
  3148. You might want to override
  3149. <filename>DISK_SIGNATURE</filename> if you want the disk
  3150. signature to remain constant between image builds.
  3151. </para>
  3152. <para>
  3153. When using Linux 3.8 or later, you can use
  3154. <filename>DISK_SIGNATURE</filename> to specify the root
  3155. by UUID to allow the kernel to locate the root device
  3156. even if the device name changes due to differences in
  3157. hardware configuration.
  3158. By default, <filename>ROOT_VM</filename> is set
  3159. as follows:
  3160. <literallayout class='monospaced'>
  3161. ROOT_VM ?= "root=/dev/sda2"
  3162. </literallayout>
  3163. However, you can change this to locate the root device
  3164. using the disk signature instead:
  3165. <literallayout class='monospaced'>
  3166. ROOT_VM = "root=PARTUUID=${DISK_SIGNATURE}-02"
  3167. </literallayout>
  3168. </para>
  3169. <para>
  3170. As previously mentioned, it is possible to set the
  3171. <filename>DISK_SIGNATURE</filename> variable in your
  3172. <filename>local.conf</filename> file to a fixed
  3173. value if you do not want <filename>syslinux.cfg</filename>
  3174. changing for each build.
  3175. You might find this useful when you want to upgrade the
  3176. root filesystem on a device without having to recreate or
  3177. modify the master boot record.
  3178. </para>
  3179. </glossdef>
  3180. </glossentry>
  3181. <glossentry id='var-DISTRO'><glossterm>DISTRO</glossterm>
  3182. <info>
  3183. DISTRO[doc] = "The short name of the distribution. If the variable is blank, meta/conf/distro/defaultsetup.conf will be used."
  3184. </info>
  3185. <glossdef>
  3186. <para role="glossdeffirst">
  3187. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3188. The short name of the distribution.
  3189. This variable corresponds to a distribution
  3190. configuration file whose root name is the same as the
  3191. variable's argument and whose filename extension is
  3192. <filename>.conf</filename>.
  3193. For example, the distribution configuration file for the
  3194. Poky distribution is named <filename>poky.conf</filename>
  3195. and resides in the
  3196. <filename>meta-poky/conf/distro</filename> directory of
  3197. the
  3198. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>.
  3199. </para>
  3200. <para>
  3201. Within that <filename>poky.conf</filename> file, the
  3202. <filename>DISTRO</filename> variable is set as follows:
  3203. <literallayout class='monospaced'>
  3204. DISTRO = "poky"
  3205. </literallayout>
  3206. </para>
  3207. <para>
  3208. Distribution configuration files are located in a
  3209. <filename>conf/distro</filename> directory within the
  3210. <ulink url='&YOCTO_DOCS_DEV_URL;#metadata'>Metadata</ulink>
  3211. that contains the distribution configuration.
  3212. The value for <filename>DISTRO</filename> must not contain
  3213. spaces, and is typically all lower-case.
  3214. <note>
  3215. If the <filename>DISTRO</filename> variable is blank, a set
  3216. of default configurations are used, which are specified
  3217. within
  3218. <filename>meta/conf/distro/defaultsetup.conf</filename>
  3219. also in the Source Directory.
  3220. </note>
  3221. </para>
  3222. </glossdef>
  3223. </glossentry>
  3224. <glossentry id='var-DISTRO_CODENAME'><glossterm>DISTRO_CODENAME</glossterm>
  3225. <info>
  3226. DISTRO_CODENAME[doc] = "Specifies a codename for the distribution being built."
  3227. </info>
  3228. <glossdef>
  3229. <para role="glossdeffirst">
  3230. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3231. Specifies a codename for the distribution being built.
  3232. </para>
  3233. </glossdef>
  3234. </glossentry>
  3235. <glossentry id='var-DISTRO_EXTRA_RDEPENDS'><glossterm>DISTRO_EXTRA_RDEPENDS</glossterm>
  3236. <info>
  3237. DISTRO_EXTRA_RDEPENDS[doc] = "Specifies a list of distro-specific packages to add to all images. The variable only applies to the images that include packagegroup-base."
  3238. </info>
  3239. <glossdef>
  3240. <para role="glossdeffirst">
  3241. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3242. Specifies a list of distro-specific packages to add to all images.
  3243. This variable takes affect through
  3244. <filename>packagegroup-base</filename> so the
  3245. variable only really applies to the more full-featured
  3246. images that include <filename>packagegroup-base</filename>.
  3247. You can use this variable to keep distro policy out of
  3248. generic images.
  3249. As with all other distro variables, you set this variable
  3250. in the distro <filename>.conf</filename> file.
  3251. </para>
  3252. </glossdef>
  3253. </glossentry>
  3254. <glossentry id='var-DISTRO_EXTRA_RRECOMMENDS'><glossterm>DISTRO_EXTRA_RRECOMMENDS</glossterm>
  3255. <info>
  3256. DISTRO_EXTRA_RRECOMMENDS[doc] = "Specifies a list of distro-specific packages to add to all images if the packages exist. The list of packages are automatically installed but you can remove them."
  3257. </info>
  3258. <glossdef>
  3259. <para role="glossdeffirst">
  3260. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3261. Specifies a list of distro-specific packages to add to all images
  3262. if the packages exist.
  3263. The packages might not exist or be empty (e.g. kernel modules).
  3264. The list of packages are automatically installed but you can
  3265. remove them.
  3266. </para>
  3267. </glossdef>
  3268. </glossentry>
  3269. <glossentry id='var-DISTRO_FEATURES'><glossterm>DISTRO_FEATURES</glossterm>
  3270. <info>
  3271. DISTRO_FEATURES[doc] = "The features enabled for the distribution."
  3272. </info>
  3273. <glossdef>
  3274. <para role="glossdeffirst">
  3275. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3276. The software support you want in your distribution for
  3277. various features.
  3278. You define your distribution features in the distribution
  3279. configuration file.
  3280. </para>
  3281. <para>
  3282. In most cases, the presence or absence of a feature in
  3283. <filename>DISTRO_FEATURES</filename> is translated to the
  3284. appropriate option supplied to the configure script
  3285. during the
  3286. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>
  3287. task for recipes that optionally support the feature.
  3288. For example, specifying "x11" in
  3289. <filename>DISTRO_FEATURES</filename>, causes
  3290. every piece of software built for the target that can
  3291. optionally support X11 to have its X11 support enabled.
  3292. </para>
  3293. <para>
  3294. Two more examples are Bluetooth and NFS support.
  3295. For a more complete list of features that ships with the
  3296. Yocto Project and that you can provide with this variable,
  3297. see the
  3298. "<link linkend='ref-features-distro'>Distro Features</link>"
  3299. section.
  3300. </para>
  3301. </glossdef>
  3302. </glossentry>
  3303. <glossentry id='var-DISTRO_FEATURES_BACKFILL'><glossterm>DISTRO_FEATURES_BACKFILL</glossterm>
  3304. <info>
  3305. DISTRO_FEATURES_BACKFILL[doc] = "Features to be added to DISTRO_FEATURES if not also present in DISTRO_FEATURES_BACKFILL_CONSIDERED. This variable is set in the meta/conf/bitbake.conf file and it is not intended to be user-configurable."
  3306. </info>
  3307. <glossdef>
  3308. <para role="glossdeffirst">
  3309. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3310. Features to be added to
  3311. <filename><link linkend='var-DISTRO_FEATURES'>DISTRO_FEATURES</link></filename>
  3312. if not also present in
  3313. <filename><link linkend='var-DISTRO_FEATURES_BACKFILL_CONSIDERED'>DISTRO_FEATURES_BACKFILL_CONSIDERED</link></filename>.
  3314. </para>
  3315. <para>
  3316. This variable is set in the <filename>meta/conf/bitbake.conf</filename> file.
  3317. It is not intended to be user-configurable.
  3318. It is best to just reference the variable to see which distro features are
  3319. being backfilled for all distro configurations.
  3320. See the <link linkend='ref-features-backfill'>Feature backfilling</link> section for
  3321. more information.
  3322. </para>
  3323. </glossdef>
  3324. </glossentry>
  3325. <glossentry id='var-DISTRO_FEATURES_BACKFILL_CONSIDERED'><glossterm>DISTRO_FEATURES_BACKFILL_CONSIDERED</glossterm>
  3326. <info>
  3327. DISTRO_FEATURES_BACKFILL_CONSIDERED[doc] = "Features from DISTRO_FEATURES_BACKFILL that should not be backfilled (i.e. added to DISTRO_FEATURES) during the build."
  3328. </info>
  3329. <glossdef>
  3330. <para role="glossdeffirst">
  3331. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3332. Features from
  3333. <filename><link linkend='var-DISTRO_FEATURES_BACKFILL'>DISTRO_FEATURES_BACKFILL</link></filename>
  3334. that should not be backfilled (i.e. added to
  3335. <filename><link linkend='var-DISTRO_FEATURES'>DISTRO_FEATURES</link></filename>)
  3336. during the build.
  3337. See the "<link linkend='ref-features-backfill'>Feature Backfilling</link>" section for
  3338. more information.
  3339. </para>
  3340. </glossdef>
  3341. </glossentry>
  3342. <glossentry id='var-DISTRO_FEATURES_DEFAULT'><glossterm>DISTRO_FEATURES_DEFAULT</glossterm>
  3343. <info>
  3344. DISTRO_FEATURES_DEFAULT[doc] = "Provides the default list of distro features with the exception of any libc-specific features."
  3345. </info>
  3346. <glossdef>
  3347. <para role="glossdeffirst">
  3348. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3349. A convenience variable that gives you the default
  3350. list of distro features with the exception of any
  3351. features specific to the C library
  3352. (<filename>libc</filename>).
  3353. </para>
  3354. <para>
  3355. When creating a custom distribution, you might find it
  3356. useful to be able to reuse the default
  3357. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>
  3358. options without the need to write out the full set.
  3359. Here is an example that uses
  3360. <filename>DISTRO_FEATURES_DEFAULT</filename> from a
  3361. custom distro configuration file:
  3362. <literallayout class='monospaced'>
  3363. DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC} myfeature"
  3364. </literallayout>
  3365. </para>
  3366. </glossdef>
  3367. </glossentry>
  3368. <glossentry id='var-DISTRO_FEATURES_LIBC'><glossterm>DISTRO_FEATURES_LIBC</glossterm>
  3369. <info>
  3370. DISTRO_FEATURES_LIBC[doc] = "Specifies the list of distro features that are specific to the C library (libc)."
  3371. </info>
  3372. <glossdef>
  3373. <para role="glossdeffirst">
  3374. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3375. A convenience variable that specifies the list of distro
  3376. features that are specific to the C library
  3377. (<filename>libc</filename>).
  3378. Typically, these features are prefixed with "libc-" and
  3379. control which features are enabled at during the build
  3380. within the C library itself.
  3381. </para>
  3382. </glossdef>
  3383. </glossentry>
  3384. <glossentry id='var-DISTRO_NAME'><glossterm>DISTRO_NAME</glossterm>
  3385. <info>
  3386. DISTRO_NAME[doc] = "The long name of the distribution."
  3387. </info>
  3388. <glossdef>
  3389. <para role="glossdeffirst">
  3390. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3391. The long name of the distribution.
  3392. </para>
  3393. </glossdef>
  3394. </glossentry>
  3395. <glossentry id='var-DISTRO_VERSION'><glossterm>DISTRO_VERSION</glossterm>
  3396. <info>
  3397. DISTRO_VERSION[doc] = "The version of the distribution."
  3398. </info>
  3399. <glossdef>
  3400. <para role="glossdeffirst">
  3401. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3402. The version of the distribution.
  3403. </para>
  3404. </glossdef>
  3405. </glossentry>
  3406. <glossentry id='var-DISTROOVERRIDES'><glossterm>DISTROOVERRIDES</glossterm>
  3407. <info>
  3408. DISTROOVERRIDES[doc] = "A colon-separated list of overrides specific to the current distribution."
  3409. </info>
  3410. <glossdef>
  3411. <para role="glossdeffirst">
  3412. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3413. A colon-separated list of overrides specific to the
  3414. current distribution.
  3415. By default, this list includes the value of
  3416. <link linkend='var-DISTRO'><filename>DISTRO</filename></link>.
  3417. </para>
  3418. <para>
  3419. You can extend <filename>DISTROOVERRIDES</filename>
  3420. to add extra overrides that should apply to
  3421. the distribution.
  3422. </para>
  3423. <para>
  3424. The underlying mechanism behind
  3425. <filename>DISTROOVERRIDES</filename> is simply that it
  3426. is included in the default value of
  3427. <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>.
  3428. </para>
  3429. </glossdef>
  3430. </glossentry>
  3431. <glossentry id='var-DL_DIR'><glossterm>DL_DIR</glossterm>
  3432. <info>
  3433. DL_DIR[doc] = "The central download directory used by the build process to store downloads. By default, the directory is 'downloads' in the Build Directory."
  3434. </info>
  3435. <glossdef>
  3436. <para role="glossdeffirst">
  3437. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3438. The central download directory used by the build process to
  3439. store downloads.
  3440. By default, <filename>DL_DIR</filename> gets files
  3441. suitable for mirroring for everything except Git
  3442. repositories.
  3443. If you want tarballs of Git repositories, use the
  3444. <link linkend='var-BB_GENERATE_MIRROR_TARBALLS'><filename>BB_GENERATE_MIRROR_TARBALLS</filename></link>
  3445. variable.
  3446. </para>
  3447. <para>
  3448. You can set this directory by defining the
  3449. <filename>DL_DIR</filename> variable in the
  3450. <filename>conf/local.conf</filename> file.
  3451. This directory is self-maintaining and you should not have
  3452. to touch it.
  3453. By default, the directory is <filename>downloads</filename>
  3454. in the
  3455. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>.
  3456. <literallayout class='monospaced'>
  3457. #DL_DIR ?= "${TOPDIR}/downloads"
  3458. </literallayout>
  3459. To specify a different download directory, simply remove
  3460. the comment from the line and provide your directory.
  3461. </para>
  3462. <para>
  3463. During a first build, the system downloads many different
  3464. source code tarballs from various upstream projects.
  3465. Downloading can take a while, particularly if your network
  3466. connection is slow.
  3467. Tarballs are all stored in the directory defined by
  3468. <filename>DL_DIR</filename> and the build system looks there
  3469. first to find source tarballs.
  3470. <note>
  3471. When wiping and rebuilding, you can preserve this
  3472. directory to speed up this part of subsequent
  3473. builds.
  3474. </note>
  3475. </para>
  3476. <para>
  3477. You can safely share this directory between multiple builds
  3478. on the same development machine.
  3479. For additional information on how the build process gets
  3480. source files when working behind a firewall or proxy server,
  3481. see this specific question in the
  3482. "<link linkend='how-does-the-yocto-project-obtain-source-code-and-will-it-work-behind-my-firewall-or-proxy-server'>FAQ</link>"
  3483. chapter.
  3484. You can also refer to the
  3485. "<ulink url='&YOCTO_WIKI_URL;/wiki/Working_Behind_a_Network_Proxy'>Working Behind a Network Proxy</ulink>"
  3486. Wiki page.
  3487. </para>
  3488. </glossdef>
  3489. </glossentry>
  3490. <glossentry id='var-DOC_COMPRESS'><glossterm>DOC_COMPRESS</glossterm>
  3491. <info>
  3492. DOC_COMPRESS[doc] = "When inheriting the compress_doc class, this variable sets the compression policy used when the OpenEmbedded build system compresses man pages and info pages."
  3493. </info>
  3494. <glossdef>
  3495. <para role="glossdeffirst">
  3496. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3497. When inheriting the
  3498. <link linkend='ref-classes-compress_doc'><filename>compress_doc</filename></link>
  3499. class, this variable sets the compression policy used when
  3500. the OpenEmbedded build system compresses man pages and info
  3501. pages.
  3502. By default, the compression method used is gz (gzip).
  3503. Other policies available are xz and bz2.
  3504. </para>
  3505. <para>
  3506. For information on policies and on how to use this
  3507. variable, see the comments in the
  3508. <filename>meta/classes/compress_doc.bbclass</filename> file.
  3509. </para>
  3510. </glossdef>
  3511. </glossentry>
  3512. </glossdiv>
  3513. <glossdiv id='var-glossary-e'><title>E</title>
  3514. <glossentry id='var-EFI_PROVIDER'><glossterm>EFI_PROVIDER</glossterm>
  3515. <info>
  3516. EFI_PROVIDER[doc] = "When building bootable images (i.e. where hddimg or vmdk is in IMAGE_FSTYPES), the EFI_PROVIDER variable specifies the EFI bootloader to use."
  3517. </info>
  3518. <glossdef>
  3519. <para role="glossdeffirst">
  3520. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3521. When building bootable images (i.e. where
  3522. <filename>hddimg</filename> or <filename>vmdk</filename>
  3523. is in
  3524. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>),
  3525. the <filename>EFI_PROVIDER</filename> variable specifies
  3526. the EFI bootloader to use.
  3527. The default is "grub-efi", but "systemd-boot" can be used
  3528. instead.
  3529. </para>
  3530. <para>
  3531. See the
  3532. <link linkend='ref-classes-systemd-boot'><filename>systemd-boot</filename></link>
  3533. class for more information.
  3534. </para>
  3535. </glossdef>
  3536. </glossentry>
  3537. <glossentry id='var-ENABLE_BINARY_LOCALE_GENERATION'><glossterm>ENABLE_BINARY_LOCALE_GENERATION</glossterm>
  3538. <info>
  3539. ENABLE_BINARY_LOCALE_GENERATION[doc] = "Controls which locales for glibc are generated during the build. The variable is useful if the target device has 64Mbytes of RAM or less."
  3540. </info>
  3541. <glossdef>
  3542. <para role="glossdeffirst">
  3543. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3544. Variable that controls which locales for
  3545. <filename>glibc</filename> are generated during the
  3546. build (useful if the target device has 64Mbytes
  3547. of RAM or less).
  3548. </para>
  3549. </glossdef>
  3550. </glossentry>
  3551. <glossentry id='var-ERR_REPORT_DIR'><glossterm>ERR_REPORT_DIR</glossterm>
  3552. <info>
  3553. ERR_REPORT_DIR[doc] = "When used with the report-error class, specifies the path used for storing the debug files created by the error reporting tool, which allows you to submit build errors you encounter to a central database."
  3554. </info>
  3555. <glossdef>
  3556. <para role="glossdeffirst">
  3557. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3558. When used with the
  3559. <link linkend='ref-classes-report-error'><filename>report-error</filename></link>
  3560. class, specifies the path used for storing the debug files
  3561. created by the
  3562. <ulink url='&YOCTO_DOCS_DEV_URL;#using-the-error-reporting-tool'>error reporting tool</ulink>,
  3563. which allows you to submit build errors you encounter to a
  3564. central database.
  3565. By default, the value of this variable is
  3566. <filename>${</filename><link linkend='var-LOG_DIR'><filename>LOG_DIR</filename></link><filename>}/error-report</filename>.
  3567. </para>
  3568. <para>
  3569. You can set <filename>ERR_REPORT_DIR</filename> to the path
  3570. you want the error reporting tool to store the debug files
  3571. as follows in your <filename>local.conf</filename> file:
  3572. <literallayout class='monospaced'>
  3573. ERR_REPORT_DIR = "<replaceable>path</replaceable>"
  3574. </literallayout>
  3575. </para>
  3576. </glossdef>
  3577. </glossentry>
  3578. <glossentry id='var-ERROR_QA'><glossterm>ERROR_QA</glossterm>
  3579. <info>
  3580. ERROR_QA[doc] = "Specifies the quality assurance checks whose failures are reported as errors by the OpenEmbedded build system."
  3581. </info>
  3582. <glossdef>
  3583. <para role="glossdeffirst">
  3584. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3585. Specifies the quality assurance checks whose failures are
  3586. reported as errors by the OpenEmbedded build system.
  3587. You set this variable in your distribution configuration
  3588. file.
  3589. For a list of the checks you can control with this variable,
  3590. see the
  3591. "<link linkend='ref-classes-insane'><filename>insane.bbclass</filename></link>"
  3592. section.
  3593. </para>
  3594. </glossdef>
  3595. </glossentry>
  3596. <glossentry id='var-EXCLUDE_FROM_SHLIBS'><glossterm>EXCLUDE_FROM_SHLIBS</glossterm>
  3597. <info>
  3598. EXCLUDE_FROM_SHLIBS[doc] = "Causes the OpenEmbedded build system's shared libraries resolver to exclude an entire package when scanning for shared libraries."
  3599. </info>
  3600. <glossdef>
  3601. <para role="glossdeffirst">
  3602. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3603. Triggers the OpenEmbedded build system's shared libraries
  3604. resolver to exclude an entire package when scanning for
  3605. shared libraries.
  3606. <note>
  3607. The shared libraries resolver's functionality results
  3608. in part from the internal function
  3609. <filename>package_do_shlibs</filename>, which is part of
  3610. the
  3611. <link linkend='ref-tasks-package'><filename>do_package</filename></link>
  3612. task.
  3613. You should be aware that the shared libraries resolver
  3614. might implicitly define some dependencies between
  3615. packages.
  3616. </note>
  3617. The <filename>EXCLUDE_FROM_SHLIBS</filename> variable is
  3618. similar to the
  3619. <link linkend='var-PRIVATE_LIBS'><filename>PRIVATE_LIBS</filename></link>
  3620. variable, which excludes a package's particular libraries
  3621. only and not the whole package.
  3622. </para>
  3623. <para>
  3624. Use the
  3625. <filename>EXCLUDE_FROM_SHLIBS</filename> variable by
  3626. setting it to "1" for a particular package:
  3627. <literallayout class='monospaced'>
  3628. EXCLUDE_FROM_SHLIBS = "1"
  3629. </literallayout>
  3630. </para>
  3631. </glossdef>
  3632. </glossentry>
  3633. <glossentry id='var-EXCLUDE_FROM_WORLD'><glossterm>EXCLUDE_FROM_WORLD</glossterm>
  3634. <info>
  3635. EXCLUDE_FROM_WORLD[doc] = "Directs BitBake to exclude a recipe from world builds (i.e. bitbake world)."
  3636. </info>
  3637. <glossdef>
  3638. <para role="glossdeffirst">
  3639. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3640. Directs BitBake to exclude a recipe from world builds (i.e.
  3641. <filename>bitbake world</filename>).
  3642. During world builds, BitBake locates, parses and builds all
  3643. recipes found in every layer exposed in the
  3644. <filename>bblayers.conf</filename> configuration file.
  3645. </para>
  3646. <para>
  3647. To exclude a recipe from a world build using this variable,
  3648. set the variable to "1" in the recipe.
  3649. </para>
  3650. <note>
  3651. Recipes added to <filename>EXCLUDE_FROM_WORLD</filename>
  3652. may still be built during a world build in order to satisfy
  3653. dependencies of other recipes.
  3654. Adding a recipe to <filename>EXCLUDE_FROM_WORLD</filename>
  3655. only ensures that the recipe is not explicitly added
  3656. to the list of build targets in a world build.
  3657. </note>
  3658. </glossdef>
  3659. </glossentry>
  3660. <glossentry id='var-EXTENDPE'><glossterm>EXTENDPE</glossterm>
  3661. <info>
  3662. EXTENDPE[doc] = "Used with file and pathnames to create a prefix for a recipe's version based on the recipe's PE value. If PE is set and greater than zero for a recipe, EXTENDPE becomes that value."
  3663. </info>
  3664. <glossdef>
  3665. <para role="glossdeffirst">
  3666. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3667. Used with file and pathnames to create a prefix for a recipe's
  3668. version based on the recipe's
  3669. <link linkend='var-PE'><filename>PE</filename></link> value.
  3670. If <filename>PE</filename> is set and greater than zero for a recipe,
  3671. <filename>EXTENDPE</filename> becomes that value (e.g if
  3672. <filename>PE</filename> is equal to "1" then <filename>EXTENDPE</filename>
  3673. becomes "1_").
  3674. If a recipe's <filename>PE</filename> is not set (the default) or is equal to
  3675. zero, <filename>EXTENDPE</filename> becomes "".</para>
  3676. <para>See the <link linkend='var-STAMP'><filename>STAMP</filename></link>
  3677. variable for an example.
  3678. </para>
  3679. </glossdef>
  3680. </glossentry>
  3681. <glossentry id='var-EXTENDPKGV'><glossterm>EXTENDPKGV</glossterm>
  3682. <info>
  3683. EXTENDPKGV[doc] = "The full package version specification as it appears on the final packages produced by a recipe."
  3684. </info>
  3685. <glossdef>
  3686. <para role="glossdeffirst">
  3687. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3688. The full package version specification as it appears on the
  3689. final packages produced by a recipe.
  3690. The variable's value is normally used to fix a runtime
  3691. dependency to the exact same version of another package
  3692. in the same recipe:
  3693. <literallayout class='monospaced'>
  3694. RDEPENDS_${PN}-additional-module = "${PN} (= ${EXTENDPKGV})"
  3695. </literallayout>
  3696. </para>
  3697. <para>
  3698. The dependency relationships are intended to force the
  3699. package manager to upgrade these types of packages in
  3700. lock-step.
  3701. </para>
  3702. </glossdef>
  3703. </glossentry>
  3704. <glossentry id='var-EXTERNAL_KERNEL_TOOLS'><glossterm>EXTERNAL_KERNEL_TOOLS</glossterm>
  3705. <info>
  3706. EXTERNAL_KERNEL_TOOLS[doc] = "Indicates kernel tools are external to the source tree."
  3707. </info>
  3708. <glossdef>
  3709. <para role="glossdeffirst">
  3710. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3711. When set, the <filename>EXTERNAL_KERNEL_TOOLS</filename>
  3712. variable indicates that these tools are not in the
  3713. source tree.
  3714. </para>
  3715. <para>
  3716. When kernel tools are available in the tree, they are
  3717. preferred over any externally installed tools.
  3718. Setting the <filename>EXTERNAL_KERNEL_TOOLS</filename>
  3719. variable tells the OpenEmbedded build system to prefer
  3720. the installed external tools.
  3721. See the
  3722. <link linkend='ref-classes-kernel-yocto'><filename>kernel-yocto</filename></link>
  3723. class in <filename>meta/classes</filename> to see how
  3724. the variable is used.
  3725. </para>
  3726. </glossdef>
  3727. </glossentry>
  3728. <glossentry id='var-EXTERNALSRC'><glossterm>EXTERNALSRC</glossterm>
  3729. <info>
  3730. EXTERNALSRC[doc] = "If externalsrc.bbclass is inherited, this variable points to the source tree, which is outside of the OpenEmbedded build system."
  3731. </info>
  3732. <glossdef>
  3733. <para role="glossdeffirst">
  3734. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3735. When inheriting the
  3736. <link linkend='ref-classes-externalsrc'><filename>externalsrc</filename></link>
  3737. class, this variable points to the source tree, which is
  3738. outside of the OpenEmbedded build system.
  3739. When set, this variable sets the
  3740. <link linkend='var-S'><filename>S</filename></link>
  3741. variable, which is what the OpenEmbedded build system uses
  3742. to locate unpacked recipe source code.
  3743. </para>
  3744. <para>
  3745. For more information on
  3746. <filename>externalsrc.bbclass</filename>, see the
  3747. "<link linkend='ref-classes-externalsrc'><filename>externalsrc.bbclass</filename></link>"
  3748. section.
  3749. You can also find information on how to use this variable
  3750. in the
  3751. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-software-from-an-external-source'>Building Software from an External Source</ulink>"
  3752. section in the Yocto Project Development Manual.
  3753. </para>
  3754. </glossdef>
  3755. </glossentry>
  3756. <glossentry id='var-EXTERNALSRC_BUILD'><glossterm>EXTERNALSRC_BUILD</glossterm>
  3757. <info>
  3758. EXTERNALSRC_BUILD[doc] = "If externalsrc.bbclass is inherited, this variable points to the directory in which the recipe's source code is built, which is outside of the OpenEmbedded build system."
  3759. </info>
  3760. <glossdef>
  3761. <para role="glossdeffirst">
  3762. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3763. When inheriting the
  3764. <link linkend='ref-classes-externalsrc'><filename>externalsrc</filename></link>
  3765. class, this variable points to the directory in which the
  3766. recipe's source code is built, which is outside of the
  3767. OpenEmbedded build system.
  3768. When set, this variable sets the
  3769. <link linkend='var-B'><filename>B</filename></link>
  3770. variable, which is what the OpenEmbedded build system uses
  3771. to locate the Build Directory.
  3772. </para>
  3773. <para>
  3774. For more information on
  3775. <filename>externalsrc.bbclass</filename>, see the
  3776. "<link linkend='ref-classes-externalsrc'><filename>externalsrc.bbclass</filename></link>"
  3777. section.
  3778. You can also find information on how to use this variable
  3779. in the
  3780. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-software-from-an-external-source'>Building Software from an External Source</ulink>"
  3781. section in the Yocto Project Development Manual.
  3782. </para>
  3783. </glossdef>
  3784. </glossentry>
  3785. <glossentry id='var-EXTRA_AUTORECONF'><glossterm>EXTRA_AUTORECONF</glossterm>
  3786. <info>
  3787. EXTRA_AUTORECONF[doc] = "Extra options passed to the autoreconf command, which is executed during do_configure."
  3788. </info>
  3789. <glossdef>
  3790. <para role="glossdeffirst">
  3791. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3792. For recipes inheriting the
  3793. <link linkend='ref-classes-autotools'><filename>autotools</filename></link>
  3794. class, you can use <filename>EXTRA_AUTORECONF</filename> to
  3795. specify extra options to pass to the
  3796. <filename>autoreconf</filename> command that is
  3797. executed during the
  3798. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>
  3799. task.
  3800. </para>
  3801. <para>
  3802. The default value is "--exclude=autopoint".
  3803. </para>
  3804. </glossdef>
  3805. </glossentry>
  3806. <glossentry id='var-EXTRA_IMAGE_FEATURES'><glossterm>EXTRA_IMAGE_FEATURES</glossterm>
  3807. <info>
  3808. EXTRA_IMAGE_FEATURES[doc] = "The list of additional features to include in an image. Configure this variable in the conf/local.conf file in the Build Directory."
  3809. </info>
  3810. <glossdef>
  3811. <para role="glossdeffirst">
  3812. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3813. A list of additional features to include in an image.
  3814. When listing more than one feature, separate them with
  3815. a space.
  3816. </para>
  3817. <para>
  3818. Typically, you configure this variable in your
  3819. <filename>local.conf</filename> file, which is found in the
  3820. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>.
  3821. Although you can use this variable from within a recipe,
  3822. best practices dictate that you do not.
  3823. <note>
  3824. To enable primary features from within the image
  3825. recipe, use the
  3826. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>
  3827. variable.
  3828. </note>
  3829. </para>
  3830. <para>
  3831. Here are some examples of features you can add:
  3832. <literallayout class='monospaced'>
  3833. "dbg-pkgs" - Adds -dbg packages for all installed packages
  3834. including symbol information for debugging and
  3835. profiling.
  3836. "debug-tweaks" - Makes an image suitable for debugging.
  3837. For example, allows root logins without
  3838. passwords and enables post-installation
  3839. logging. See the 'allow-empty-password'
  3840. and 'post-install-logging' features in
  3841. the "<link linkend='ref-features-image'>Image Features</link>" section for
  3842. more information.
  3843. "dev-pkgs" - Adds -dev packages for all installed packages.
  3844. This is useful if you want to develop against
  3845. the libraries in the image.
  3846. "read-only-rootfs" - Creates an image whose root
  3847. filesystem is read-only. See the
  3848. "<ulink url='&YOCTO_DOCS_DEV_URL;#creating-a-read-only-root-filesystem'>Creating a Read-Only Root Filesystem</ulink>"
  3849. section in the Yocto Project
  3850. Development Manual for more
  3851. information
  3852. "tools-debug" - Adds debugging tools such as gdb and
  3853. strace.
  3854. "tools-sdk" - Adds development tools such as gcc, make,
  3855. pkgconfig and so forth.
  3856. "tools-testapps" - Adds useful testing tools such as
  3857. ts_print, aplay, arecord and so
  3858. forth.
  3859. </literallayout>
  3860. </para>
  3861. <para>
  3862. For a complete list of image features that ships with the
  3863. Yocto Project, see the
  3864. "<link linkend="ref-features-image">Image Features</link>"
  3865. section.
  3866. </para>
  3867. <para>
  3868. For an example that shows how to customize your image by
  3869. using this variable, see the
  3870. "<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>"
  3871. section in the Yocto Project Development Manual.
  3872. </para>
  3873. </glossdef>
  3874. </glossentry>
  3875. <glossentry id='var-EXTRA_IMAGECMD'><glossterm>EXTRA_IMAGECMD</glossterm>
  3876. <info>
  3877. EXTRA_IMAGECMD[doc] = "Specifies additional options for the image creation command that has been specified in IMAGE_CMD. When setting this variable, you should use an override for the associated type."
  3878. </info>
  3879. <glossdef>
  3880. <para role="glossdeffirst">
  3881. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3882. Specifies additional options for the image
  3883. creation command that has been specified in
  3884. <link linkend='var-IMAGE_CMD'><filename>IMAGE_CMD</filename></link>.
  3885. When setting this variable, you should
  3886. use an override for the associated type.
  3887. Here is an example:
  3888. <literallayout class='monospaced'>
  3889. EXTRA_IMAGECMD_ext3 ?= "-i 4096"
  3890. </literallayout>
  3891. </para>
  3892. </glossdef>
  3893. </glossentry>
  3894. <glossentry id='var-EXTRA_IMAGEDEPENDS'><glossterm>EXTRA_IMAGEDEPENDS</glossterm>
  3895. <info>
  3896. EXTRA_IMAGEDEPENDS[doc] = "A list of recipes to build that do not provide packages for installing into the root filesystem. Use this variable to list recipes that are required to build the final image, but not needed in the root filesystem."
  3897. </info>
  3898. <glossdef>
  3899. <para role="glossdeffirst">
  3900. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3901. A list of recipes to build that do not provide packages
  3902. for installing into the root filesystem.
  3903. </para>
  3904. <para>
  3905. Sometimes a recipe is required to build the final image but is not
  3906. needed in the root filesystem.
  3907. You can use the <filename>EXTRA_IMAGEDEPENDS</filename> variable to
  3908. list these recipes and thus specify the dependencies.
  3909. A typical example is a required bootloader in a machine configuration.
  3910. </para>
  3911. <note>
  3912. To add packages to the root filesystem, see the various
  3913. <filename>*<link linkend='var-RDEPENDS'>RDEPENDS</link></filename>
  3914. and <filename>*<link linkend='var-RRECOMMENDS'>RRECOMMENDS</link></filename>
  3915. variables.
  3916. </note>
  3917. </glossdef>
  3918. </glossentry>
  3919. <glossentry id='var-EXTRANATIVEPATH'><glossterm>EXTRANATIVEPATH</glossterm>
  3920. <info>
  3921. EXTRANATIVEPATH[doc] = "A list of subdirectories of ${STAGING_BINDIR_NATIVE} added to the beginning of the environment variable PATH."
  3922. </info>
  3923. <glossdef>
  3924. <para role="glossdeffirst">
  3925. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3926. A list of subdirectories of
  3927. <filename>${</filename><link linkend='var-STAGING_BINDIR_NATIVE'><filename>STAGING_BINDIR_NATIVE</filename></link><filename>}</filename>
  3928. added to the beginning of the environment variable
  3929. <filename>PATH</filename>.
  3930. As an example, the following prepends
  3931. "${STAGING_BINDIR_NATIVE}/foo:${STAGING_BINDIR_NATIVE}/bar:"
  3932. to <filename>PATH</filename>:
  3933. <literallayout class='monospaced'>
  3934. EXTRANATIVEPATH = "foo bar"
  3935. </literallayout>
  3936. </para>
  3937. </glossdef>
  3938. </glossentry>
  3939. <glossentry id='var-EXTRA_OECMAKE'><glossterm>EXTRA_OECMAKE</glossterm>
  3940. <info>
  3941. EXTRA_OECMAKE[doc] = "Additional cmake options."
  3942. </info>
  3943. <glossdef>
  3944. <para role="glossdeffirst">
  3945. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3946. Additional <filename>cmake</filename> options.
  3947. </para>
  3948. </glossdef>
  3949. </glossentry>
  3950. <glossentry id='var-EXTRA_OECONF'><glossterm>EXTRA_OECONF</glossterm>
  3951. <info>
  3952. EXTRA_OECONF[doc] = "Additional configure script options."
  3953. </info>
  3954. <glossdef>
  3955. <para role="glossdeffirst">
  3956. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3957. Additional <filename>configure</filename> script options.
  3958. See
  3959. <link linkend='var-PACKAGECONFIG_CONFARGS'><filename>PACKAGECONFIG_CONFARGS</filename></link>
  3960. for additional information on passing configure script
  3961. options.
  3962. </para>
  3963. </glossdef>
  3964. </glossentry>
  3965. <glossentry id='var-EXTRA_OEMAKE'><glossterm>EXTRA_OEMAKE</glossterm>
  3966. <info>
  3967. EXTRA_OEMAKE[doc] = "Additional GNU make options."
  3968. </info>
  3969. <glossdef>
  3970. <para role="glossdeffirst">
  3971. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3972. Additional GNU <filename>make</filename> options.
  3973. </para>
  3974. <para>
  3975. Because the <filename>EXTRA_OEMAKE</filename> defaults to
  3976. "", you need to set the variable to specify any required
  3977. GNU options.
  3978. </para>
  3979. <para>
  3980. <link linkend='var-PARALLEL_MAKE'><filename>PARALLEL_MAKE</filename></link>
  3981. and
  3982. <link linkend='var-PARALLEL_MAKEINST'><filename>PARALLEL_MAKEINST</filename></link>
  3983. also make use of
  3984. <filename>EXTRA_OEMAKE</filename> to pass the required
  3985. flags.
  3986. </para>
  3987. </glossdef>
  3988. </glossentry>
  3989. <glossentry id='var-EXTRA_OESCONS'><glossterm>EXTRA_OESCONS</glossterm>
  3990. <info>
  3991. EXTRA_OESCONS[doc] = "When a recipe inherits the scons class, this variable specifies additional configuration options you want to pass to the scons command line."
  3992. </info>
  3993. <glossdef>
  3994. <para role="glossdeffirst">
  3995. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3996. When inheriting the
  3997. <link linkend='ref-classes-scons'><filename>scons</filename></link>
  3998. class, this variable specifies additional configuration
  3999. options you want to pass to the
  4000. <filename>scons</filename> command line.
  4001. </para>
  4002. </glossdef>
  4003. </glossentry>
  4004. <glossentry id='var-EXTRA_USERS_PARAMS'><glossterm>EXTRA_USERS_PARAMS</glossterm>
  4005. <info>
  4006. EXTRA_USERS_PARAMS[doc] = "When a recipe inherits the extrausers class, this variable provides image level user and group operations."
  4007. </info>
  4008. <glossdef>
  4009. <para role="glossdeffirst">
  4010. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4011. When inheriting the
  4012. <link linkend='ref-classes-extrausers'><filename>extrausers</filename></link>
  4013. class, this variable provides image level user and group
  4014. operations.
  4015. This is a more global method of providing user and group
  4016. configuration as compared to using the
  4017. <link linkend='ref-classes-useradd'><filename>useradd</filename></link>
  4018. class, which ties user and group configurations to a
  4019. specific recipe.
  4020. </para>
  4021. <para>
  4022. The set list of commands you can configure using the
  4023. <filename>EXTRA_USERS_PARAMS</filename> is shown in the
  4024. <filename>extrausers</filename> class.
  4025. These commands map to the normal Unix commands of the same
  4026. names:
  4027. <literallayout class='monospaced'>
  4028. # EXTRA_USERS_PARAMS = "\
  4029. # useradd -p '' tester; \
  4030. # groupadd developers; \
  4031. # userdel nobody; \
  4032. # groupdel -g video; \
  4033. # groupmod -g 1020 developers; \
  4034. # usermod -s /bin/sh tester; \
  4035. # "
  4036. </literallayout>
  4037. </para>
  4038. </glossdef>
  4039. </glossentry>
  4040. </glossdiv>
  4041. <glossdiv id='var-glossary-f'><title>F</title>
  4042. <glossentry id='var-FEATURE_PACKAGES'><glossterm>FEATURE_PACKAGES</glossterm>
  4043. <info>
  4044. FEATURE_PACKAGES[doc] = "Defines one or more packages to include in an image when a specific item is included in IMAGE_FEATURES. When setting the value, FEATURE_PACKAGES should have the name of the feature item as an override."
  4045. </info>
  4046. <glossdef>
  4047. <para role="glossdeffirst">
  4048. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4049. Defines one or more packages to include in an image when
  4050. a specific item is included in
  4051. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>.
  4052. When setting the value, <filename>FEATURE_PACKAGES</filename>
  4053. should have the name of the feature item as an override.
  4054. Here is an example:
  4055. <literallayout class='monospaced'>
  4056. FEATURE_PACKAGES_widget = "<replaceable>package1</replaceable> <replaceable>package2</replaceable>"
  4057. </literallayout>
  4058. </para>
  4059. <para>
  4060. In this example, if "widget" were added to
  4061. <filename>IMAGE_FEATURES</filename>, <replaceable>package1</replaceable> and
  4062. <replaceable>package2</replaceable> would be included in the image.
  4063. <note>
  4064. Packages installed by features defined through
  4065. <filename>FEATURE_PACKAGES</filename> are often package
  4066. groups.
  4067. While similarly named, you should not confuse the
  4068. <filename>FEATURE_PACKAGES</filename> variable with
  4069. package groups, which are discussed elsewhere in the
  4070. documentation.
  4071. </note>
  4072. </para>
  4073. </glossdef>
  4074. </glossentry>
  4075. <glossentry id='var-FEED_DEPLOYDIR_BASE_URI'><glossterm>FEED_DEPLOYDIR_BASE_URI</glossterm>
  4076. <info>
  4077. FEED_DEPLOYDIR_BASE_URI[doc] = "Allow to serve ipk deploy directory as an ad hoc feed (bogofeed). Set to base URL of the directory as exported by HTTP. Set of ad hoc feed configs will be generated in the image."
  4078. </info>
  4079. <glossdef>
  4080. <para role="glossdeffirst">
  4081. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4082. Points to the base URL of the server and location within
  4083. the document-root that provides the metadata and
  4084. packages required by OPKG to support runtime package
  4085. management of IPK packages.
  4086. You set this variable in your
  4087. <filename>local.conf</filename> file.
  4088. </para>
  4089. <para>
  4090. Consider the following example:
  4091. <literallayout class='monospaced'>
  4092. FEED_DEPLOYDIR_BASE_URI = "http://192.168.7.1/BOARD-dir"
  4093. </literallayout>
  4094. This example assumes you are serving your packages over
  4095. HTTP and your databases are located in a directory
  4096. named <filename>BOARD-dir</filename>, which is underneath
  4097. your HTTP server's document-root.
  4098. In this case, the OpenEmbedded build system generates a set
  4099. of configuration files for you in your target that work
  4100. with the feed.
  4101. </para>
  4102. </glossdef>
  4103. </glossentry>
  4104. <glossentry id='var-FILES'><glossterm>FILES</glossterm>
  4105. <info>
  4106. FILES[doc] = "The list of directories or files that are placed in a package."
  4107. </info>
  4108. <glossdef>
  4109. <para role="glossdeffirst">
  4110. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4111. The list of files and directories that are placed in a
  4112. package.
  4113. The
  4114. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>
  4115. variable lists the packages generated by a recipe.
  4116. </para>
  4117. <para>
  4118. To use the <filename>FILES</filename> variable, provide a
  4119. package name override that identifies the resulting package.
  4120. Then, provide a space-separated list of files or paths
  4121. that identify the files you want included as part of the
  4122. resulting package.
  4123. Here is an example:
  4124. <literallayout class='monospaced'>
  4125. FILES_${PN} += "${bindir}/mydir1 ${bindir}/mydir2/myfile"
  4126. </literallayout>
  4127. </para>
  4128. <note>
  4129. When specifying paths as part of the
  4130. <filename>FILES</filename> variable, it is good practice
  4131. to use appropriate path variables.
  4132. For example, use <filename>${sysconfdir}</filename> rather
  4133. than <filename>/etc</filename>, or
  4134. <filename>${bindir}</filename> rather than
  4135. <filename>/usr/bin</filename>.
  4136. You can find a list of these variables at the top of the
  4137. <filename>meta/conf/bitbake.conf</filename> file in the
  4138. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>.
  4139. You will also find the default values of the various
  4140. <filename>FILES_*</filename> variables in this file.
  4141. </note>
  4142. <para>
  4143. If some of the files you provide with the
  4144. <filename>FILES</filename> variable are editable and you
  4145. know they should not be overwritten during the package
  4146. update process by the Package Management System (PMS), you
  4147. can identify these files so that the PMS will not
  4148. overwrite them.
  4149. See the
  4150. <link linkend='var-CONFFILES'><filename>CONFFILES</filename></link>
  4151. variable for information on how to identify these files to
  4152. the PMS.
  4153. </para>
  4154. </glossdef>
  4155. </glossentry>
  4156. <glossentry id='var-FILES_SOLIBSDEV'><glossterm>FILES_SOLIBSDEV</glossterm>
  4157. <info>
  4158. FILES_SOLIBSDEV[doc] = "Defines the full path name of the development symbolic link (symlink) for shared libraries on the target platform."
  4159. </info>
  4160. <glossdef>
  4161. <para role="glossdeffirst">
  4162. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4163. Defines the file specification to match
  4164. <link linkend='var-SOLIBSDEV'><filename>SOLIBSDEV</filename></link>.
  4165. In other words, <filename>FILES_SOLIBSDEV</filename>
  4166. defines the full path name of the development symbolic link
  4167. (symlink) for shared libraries on the target platform.
  4168. </para>
  4169. <para>
  4170. The following statement from the
  4171. <filename>bitbake.conf</filename> shows how it is set:
  4172. <literallayout class='monospaced'>
  4173. FILES_SOLIBSDEV ?= "${base_libdir}/lib*${SOLIBSDEV} ${libdir}/lib*${SOLIBSDEV}"
  4174. </literallayout>
  4175. </para>
  4176. </glossdef>
  4177. </glossentry>
  4178. <glossentry id='var-FILESEXTRAPATHS'><glossterm>FILESEXTRAPATHS</glossterm>
  4179. <info>
  4180. FILESEXTRAPATHS[doc] = "Extends the search path the OpenEmbedded build system uses when looking for files and patches as it processes recipes and append files."
  4181. </info>
  4182. <glossdef>
  4183. <para role="glossdeffirst">
  4184. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4185. Extends the search path the OpenEmbedded build system uses
  4186. when looking for files and patches as it processes recipes
  4187. and append files.
  4188. The default directories BitBake uses when it processes
  4189. recipes are initially defined by the
  4190. <link linkend='var-FILESPATH'><filename>FILESPATH</filename></link>
  4191. variable.
  4192. You can extend <filename>FILESPATH</filename> variable
  4193. by using <filename>FILESEXTRAPATHS</filename>.
  4194. </para>
  4195. <para>
  4196. Best practices dictate that you accomplish this by using
  4197. <filename>FILESEXTRAPATHS</filename> from within a
  4198. <filename>.bbappend</filename> file and that you prepend
  4199. paths as follows:
  4200. <literallayout class='monospaced'>
  4201. FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
  4202. </literallayout>
  4203. In the above example, the build system first looks for files
  4204. in a directory that has the same name as the corresponding
  4205. append file.
  4206. <note>
  4207. <para>When extending <filename>FILESEXTRAPATHS</filename>,
  4208. be sure to use the immediate expansion
  4209. (<filename>:=</filename>) operator.
  4210. Immediate expansion makes sure that BitBake evaluates
  4211. <link linkend='var-THISDIR'><filename>THISDIR</filename></link>
  4212. at the time the directive is encountered rather than at
  4213. some later time when expansion might result in a
  4214. directory that does not contain the files you need.
  4215. </para>
  4216. <para>Also, include the trailing separating colon
  4217. character if you are prepending.
  4218. The trailing colon character is necessary because you
  4219. are directing BitBake to extend the path by prepending
  4220. directories to the search path.</para>
  4221. </note>
  4222. Here is another common use:
  4223. <literallayout class='monospaced'>
  4224. FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
  4225. </literallayout>
  4226. In this example, the build system extends the
  4227. <filename>FILESPATH</filename> variable to include a
  4228. directory named <filename>files</filename> that is in the
  4229. same directory as the corresponding append file.
  4230. </para>
  4231. <para>
  4232. Here is a final example that specifically adds three paths:
  4233. <literallayout class='monospaced'>
  4234. FILESEXTRAPATHS_prepend := "path_1:path_2:path_3:"
  4235. </literallayout>
  4236. </para>
  4237. <para>
  4238. By prepending paths in <filename>.bbappend</filename>
  4239. files, you allow multiple append files that reside in
  4240. different layers but are used for the same recipe to
  4241. correctly extend the path.
  4242. </para>
  4243. </glossdef>
  4244. </glossentry>
  4245. <glossentry id='var-FILESOVERRIDES'><glossterm>FILESOVERRIDES</glossterm>
  4246. <info>
  4247. FILESOVERRIDES[doc] = "A subset of OVERRIDES used by the OpenEmbedded build system for creating FILESPATH."
  4248. </info>
  4249. <glossdef>
  4250. <para role="glossdeffirst">
  4251. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4252. A subset of <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>
  4253. used by the OpenEmbedded build system for creating
  4254. <link linkend='var-FILESPATH'><filename>FILESPATH</filename></link>.
  4255. You can find more information on how overrides are handled
  4256. in the
  4257. <ulink url='&YOCTO_DOCS_BB_URL;'>BitBake Manual</ulink>.
  4258. </para>
  4259. <para>
  4260. By default, the <filename>FILESOVERRIDES</filename>
  4261. variable is defined as:
  4262. <literallayout class='monospaced'>
  4263. FILESOVERRIDES = "${TRANSLATED_TARGET_ARCH}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}"
  4264. </literallayout>
  4265. <note>
  4266. Do not hand-edit the <filename>FILESOVERRIDES</filename>
  4267. variable.
  4268. The values match up with expected overrides and are
  4269. used in an expected manner by the build system.
  4270. </note>
  4271. </para>
  4272. </glossdef>
  4273. </glossentry>
  4274. <glossentry id='var-FILESPATH'><glossterm>FILESPATH</glossterm>
  4275. <info>
  4276. FILESPATH[doc] = "The default set of directories the OpenEmbedded build system uses when searching for patches and files. It is defined in the base.bbclass class found in meta/classes in the Source Directory. Do not hand-edit the FILESPATH variable."
  4277. </info>
  4278. <glossdef>
  4279. <para role="glossdeffirst">
  4280. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4281. The default set of directories the OpenEmbedded build system
  4282. uses when searching for patches and files.
  4283. During the build process, BitBake searches each directory in
  4284. <filename>FILESPATH</filename> in the specified order when
  4285. looking for files and patches specified by each
  4286. <filename>file://</filename> URI in a recipe.
  4287. </para>
  4288. <para>
  4289. The default value for the <filename>FILESPATH</filename>
  4290. variable is defined in the <filename>base.bbclass</filename>
  4291. class found in <filename>meta/classes</filename> in the
  4292. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>:
  4293. <literallayout class='monospaced'>
  4294. FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}", \
  4295. "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
  4296. </literallayout>
  4297. <note>
  4298. Do not hand-edit the <filename>FILESPATH</filename>
  4299. variable.
  4300. If you want the build system to look in directories
  4301. other than the defaults, extend the
  4302. <filename>FILESPATH</filename> variable by using the
  4303. <link linkend='var-FILESEXTRAPATHS'><filename>FILESEXTRAPATHS</filename></link>
  4304. variable.
  4305. </note>
  4306. Be aware that the default <filename>FILESPATH</filename>
  4307. directories do not map to directories in custom layers
  4308. where append files (<filename>.bbappend</filename>)
  4309. are used.
  4310. If you want the build system to find patches or files
  4311. that reside with your append files, you need to extend
  4312. the <filename>FILESPATH</filename> variable by using
  4313. the
  4314. <link linkend='var-FILESEXTRAPATHS'><filename>FILESEXTRAPATHS</filename></link>
  4315. variable.
  4316. </para>
  4317. </glossdef>
  4318. </glossentry>
  4319. <glossentry id='var-FILESYSTEM_PERMS_TABLES'><glossterm>FILESYSTEM_PERMS_TABLES</glossterm>
  4320. <info>
  4321. FILESYSTEM_PERMS_TABLES[doc] = "Allows you to define your own file permissions settings table as part of your configuration for the packaging process."
  4322. </info>
  4323. <glossdef>
  4324. <para role="glossdeffirst">
  4325. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4326. Allows you to define your own file permissions settings table as part of
  4327. your configuration for the packaging process.
  4328. For example, suppose you need a consistent set of custom permissions for
  4329. a set of groups and users across an entire work project.
  4330. It is best to do this in the packages themselves but this is not always
  4331. possible.
  4332. </para>
  4333. <para>
  4334. By default, the OpenEmbedded build system uses the <filename>fs-perms.txt</filename>, which
  4335. is located in the <filename>meta/files</filename> folder in the
  4336. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>.
  4337. If you create your own file permissions setting table, you should place it in your
  4338. layer or the distro's layer.
  4339. </para>
  4340. <para>
  4341. You define the <filename>FILESYSTEM_PERMS_TABLES</filename> variable in the
  4342. <filename>conf/local.conf</filename> file, which is found in the
  4343. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>, to
  4344. point to your custom <filename>fs-perms.txt</filename>.
  4345. You can specify more than a single file permissions setting table.
  4346. The paths you specify to these files must be defined within the
  4347. <link linkend='var-BBPATH'><filename>BBPATH</filename></link> variable.
  4348. </para>
  4349. <para>
  4350. For guidance on how to create your own file permissions settings table file,
  4351. examine the existing <filename>fs-perms.txt</filename>.
  4352. </para>
  4353. </glossdef>
  4354. </glossentry>
  4355. <glossentry id='var-FONT_EXTRA_RDEPENDS'><glossterm>FONT_EXTRA_RDEPENDS</glossterm>
  4356. <info>
  4357. FONT_EXTRA_RDEPENDS[doc] = "When a recipe inherits the fontcache class, this variable specifies runtime dependencies for font packages. This variable defaults to 'fontconfig-utils'."
  4358. </info>
  4359. <glossdef>
  4360. <para role="glossdeffirst">
  4361. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4362. When inheriting the
  4363. <link linkend='ref-classes-fontcache'><filename>fontcache</filename></link>
  4364. class, this variable specifies the runtime dependencies
  4365. for font packages.
  4366. By default, the <filename>FONT_EXTRA_RDEPENDS</filename>
  4367. is set to "fontconfig-utils".
  4368. </para>
  4369. </glossdef>
  4370. </glossentry>
  4371. <glossentry id='var-FONT_PACKAGES'><glossterm>FONT_PACKAGES</glossterm>
  4372. <info>
  4373. FONT_PACKAGES[doc] = "When a recipe inherits the fontcache class, this variable identifies packages containing font files that need to be cached by Fontconfig."
  4374. </info>
  4375. <glossdef>
  4376. <para role="glossdeffirst">
  4377. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4378. When inheriting the
  4379. <link linkend='ref-classes-fontcache'><filename>fontcache</filename></link>
  4380. class, this variable identifies packages containing font
  4381. files that need to be cached by Fontconfig.
  4382. By default, the <filename>fontcache</filename> class assumes
  4383. that fonts are in the recipe's main package
  4384. (i.e. <filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}</filename>).
  4385. Use this variable if fonts you need are in a package
  4386. other than that main package.
  4387. </para>
  4388. </glossdef>
  4389. </glossentry>
  4390. <glossentry id='var-FORCE_RO_REMOVE'><glossterm>FORCE_RO_REMOVE</glossterm>
  4391. <info>
  4392. FORCE_RO_REMOVE[doc] = "Forces the removal of the packages listed in ROOTFS_RO_UNNEEDED during the generation of the root filesystem."
  4393. </info>
  4394. <glossdef>
  4395. <para role="glossdeffirst">
  4396. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4397. Forces the removal of the packages listed in
  4398. <filename>ROOTFS_RO_UNNEEDED</filename> during the
  4399. generation of the root filesystem.
  4400. </para>
  4401. <para>
  4402. Set the variable to "1" to force the removal of these
  4403. packages.
  4404. </para>
  4405. </glossdef>
  4406. </glossentry>
  4407. <glossentry id='var-FULL_OPTIMIZATION'><glossterm>FULL_OPTIMIZATION</glossterm>
  4408. <info>
  4409. FULL_OPTIMIZATION[doc]= "The options to pass in TARGET_CFLAGS and CFLAGS when compiling an optimized system. This variable defaults to '-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2'."
  4410. </info>
  4411. <glossdef>
  4412. <para role="glossdeffirst">
  4413. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4414. The options to pass in
  4415. <filename><link linkend='var-TARGET_CFLAGS'>TARGET_CFLAGS</link></filename>
  4416. and <filename><link linkend='var-CFLAGS'>CFLAGS</link></filename>
  4417. when compiling an optimized system.
  4418. This variable defaults to
  4419. "-O2 -pipe ${DEBUG_FLAGS}".
  4420. </para>
  4421. </glossdef>
  4422. </glossentry>
  4423. </glossdiv>
  4424. <glossdiv id='var-glossary-g'><title>G</title>
  4425. <glossentry id='var-GDB'><glossterm>GDB</glossterm>
  4426. <info>
  4427. GDB[doc] = "The minimal command and arguments to run the GNU Debugger."
  4428. </info>
  4429. <glossdef>
  4430. <para role="glossdeffirst">
  4431. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4432. The minimal command and arguments to run the GNU Debugger.
  4433. </para>
  4434. </glossdef>
  4435. </glossentry>
  4436. <glossentry id='var-GITDIR'><glossterm>GITDIR</glossterm>
  4437. <info>
  4438. GITDIR[doc] = "The directory where Git clones will be stored."
  4439. </info>
  4440. <glossdef>
  4441. <para role="glossdeffirst">
  4442. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4443. The directory in which a local copy of a Git repository
  4444. is stored when it is cloned.
  4445. </para>
  4446. </glossdef>
  4447. </glossentry>
  4448. <glossentry id='var-GLIBC_GENERATE_LOCALES'><glossterm>GLIBC_GENERATE_LOCALES</glossterm>
  4449. <info>
  4450. GLIBC_GENERATE_LOCALES[doc]= "Specifies the list of GLIBC locales to generate should you not wish generate all LIBC locals, which can be time consuming."
  4451. </info>
  4452. <glossdef>
  4453. <para role="glossdeffirst">
  4454. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4455. Specifies the list of GLIBC locales to generate should you
  4456. not wish generate all LIBC locals, which can be time
  4457. consuming.
  4458. <note>
  4459. If you specifically remove the locale
  4460. <filename>en_US.UTF-8</filename>, you must set
  4461. <link linkend='var-IMAGE_LINGUAS'><filename>IMAGE_LINGUAS</filename></link>
  4462. appropriately.
  4463. </note>
  4464. </para>
  4465. <para>
  4466. You can set <filename>GLIBC_GENERATE_LOCALES</filename>
  4467. in your <filename>local.conf</filename> file.
  4468. By default, all locales are generated.
  4469. <literallayout class='monospaced'>
  4470. GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 en_US.UTF-8"
  4471. </literallayout>
  4472. </para>
  4473. </glossdef>
  4474. </glossentry>
  4475. <glossentry id='var-GROUPADD_PARAM'><glossterm>GROUPADD_PARAM</glossterm>
  4476. <info>
  4477. GROUPADD_PARAM[doc] = "When a recipe inherits the useradd class, this variable specifies for a package what parameters should be passed to the groupadd command if you wish to add a group to the system when the package is installed."
  4478. </info>
  4479. <glossdef>
  4480. <para role="glossdeffirst">
  4481. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4482. When inheriting the
  4483. <link linkend='ref-classes-useradd'><filename>useradd</filename></link>
  4484. class, this variable
  4485. specifies for a package what parameters should be passed
  4486. to the <filename>groupadd</filename> command
  4487. if you wish to add a group to the system when the package
  4488. is installed.
  4489. </para>
  4490. <para>
  4491. Here is an example from the <filename>dbus</filename>
  4492. recipe:
  4493. <literallayout class='monospaced'>
  4494. GROUPADD_PARAM_${PN} = "-r netdev"
  4495. </literallayout>
  4496. For information on the standard Linux shell command
  4497. <filename>groupadd</filename>, see
  4498. <ulink url='http://linux.die.net/man/8/groupadd'></ulink>.
  4499. </para>
  4500. </glossdef>
  4501. </glossentry>
  4502. <glossentry id='var-GROUPMEMS_PARAM'><glossterm>GROUPMEMS_PARAM</glossterm>
  4503. <info>
  4504. GROUPMEMS_PARAM[doc] = "When a recipe inherits the useradd class, this variable specifies for a package what parameters should be passed to the groupmems command if you wish to modify the members of a group when the package is installed."
  4505. </info>
  4506. <glossdef>
  4507. <para role="glossdeffirst">
  4508. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4509. When inheriting the
  4510. <link linkend='ref-classes-useradd'><filename>useradd</filename></link>
  4511. class, this variable
  4512. specifies for a package what parameters should be passed
  4513. to the <filename>groupmems</filename> command
  4514. if you wish to modify the members of a group when the
  4515. package is installed.
  4516. </para>
  4517. <para>
  4518. For information on the standard Linux shell command
  4519. <filename>groupmems</filename>, see
  4520. <ulink url='http://linux.die.net/man/8/groupmems'></ulink>.
  4521. </para>
  4522. </glossdef>
  4523. </glossentry>
  4524. <glossentry id='var-GRUB_GFXSERIAL'><glossterm>GRUB_GFXSERIAL</glossterm>
  4525. <info>
  4526. GRUB_GFXSERIAL[doc] = "Configures the GNU GRand Unified Bootloader (GRUB) to have graphics and serial in the boot menu."
  4527. </info>
  4528. <glossdef>
  4529. <para role="glossdeffirst">
  4530. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4531. Configures the GNU GRand Unified Bootloader (GRUB) to have
  4532. graphics and serial in the boot menu.
  4533. Set this variable to "1" in your
  4534. <filename>local.conf</filename> or distribution
  4535. configuration file to enable graphics and serial
  4536. in the menu.
  4537. </para>
  4538. <para>
  4539. See the
  4540. <link linkend='ref-classes-grub-efi'><filename>grub-efi</filename></link>
  4541. class for more information on how this variable is used.
  4542. </para>
  4543. </glossdef>
  4544. </glossentry>
  4545. <glossentry id='var-GRUB_OPTS'><glossterm>GRUB_OPTS</glossterm>
  4546. <info>
  4547. GRUB_OPTS[doc] = "Additional options to add to the GNU GRand Unified Bootloader (GRUB) configuration."
  4548. </info>
  4549. <glossdef>
  4550. <para role="glossdeffirst">
  4551. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4552. Additional options to add to the GNU GRand Unified
  4553. Bootloader (GRUB) configuration.
  4554. Use a semi-colon character (<filename>;</filename>) to
  4555. separate multiple options.
  4556. </para>
  4557. <para>
  4558. The <filename>GRUB_OPTS</filename> variable is optional.
  4559. See the
  4560. <link linkend='ref-classes-grub-efi'><filename>grub-efi</filename></link>
  4561. class for more information on how this variable is used.
  4562. </para>
  4563. </glossdef>
  4564. </glossentry>
  4565. <glossentry id='var-GRUB_TIMEOUT'><glossterm>GRUB_TIMEOUT</glossterm>
  4566. <info>
  4567. GRUB_TIMEOUT[doc] = "Specifies the timeout before executing the default LABEL in the GNU GRand Unified Bootloader (GRUB)."
  4568. </info>
  4569. <glossdef>
  4570. <para role="glossdeffirst">
  4571. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4572. Specifies the timeout before executing the default
  4573. <filename>LABEL</filename> in the GNU GRand Unified
  4574. Bootloader (GRUB).
  4575. </para>
  4576. <para>
  4577. The <filename>GRUB_TIMEOUT</filename> variable is optional.
  4578. See the
  4579. <link linkend='ref-classes-grub-efi'><filename>grub-efi</filename></link>
  4580. class for more information on how this variable is used.
  4581. </para>
  4582. </glossdef>
  4583. </glossentry>
  4584. <glossentry id='var-GTKIMMODULES_PACKAGES'><glossterm>GTKIMMODULES_PACKAGES</glossterm>
  4585. <info>
  4586. GTKIMMODULES_PACKAGES[doc] = "For recipes that inherit the gtk-immodules-cache class, this variable specifies the packages that contain the GTK+ input method modules being installed when the modules are in packages other than the main package."
  4587. </info>
  4588. <glossdef>
  4589. <para role="glossdeffirst">
  4590. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4591. When inheriting the
  4592. <link linkend='ref-classes-gtk-immodules-cache'><filename>gtk-immodules-cache</filename></link>
  4593. class, this variable specifies the packages that contain the
  4594. GTK+ input method modules being installed when the modules
  4595. are in packages other than the main package.
  4596. </para>
  4597. </glossdef>
  4598. </glossentry>
  4599. </glossdiv>
  4600. <glossdiv id='var-glossary-h'><title>H</title>
  4601. <glossentry id='var-HOMEPAGE'><glossterm>HOMEPAGE</glossterm>
  4602. <info>
  4603. HOMEPAGE[doc] = "Website where more information about the software the recipe is building can be found."
  4604. </info>
  4605. <glossdef>
  4606. <para role="glossdeffirst">
  4607. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4608. Website where more information about the software the recipe is building
  4609. can be found.
  4610. </para>
  4611. </glossdef>
  4612. </glossentry>
  4613. <glossentry id='var-HOST_ARCH'><glossterm>HOST_ARCH</glossterm>
  4614. <info>
  4615. HOST_ARCH[doc] = "The name of the target architecture. Normally same as the TARGET_ARCH."
  4616. </info>
  4617. <glossdef>
  4618. <para role="glossdeffirst">
  4619. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4620. The name of the target architecture, which is normally
  4621. the same as
  4622. <link linkend='var-TARGET_ARCH'><filename>TARGET_ARCH</filename></link>.
  4623. The OpenEmbedded build system supports many
  4624. architectures.
  4625. Here is an example list of architectures supported.
  4626. This list is by no means complete as the architecture
  4627. is configurable:
  4628. <literallayout class='monospaced'>
  4629. arm
  4630. i586
  4631. x86_64
  4632. powerpc
  4633. powerpc64
  4634. mips
  4635. mipsel
  4636. </literallayout>
  4637. </para>
  4638. </glossdef>
  4639. </glossentry>
  4640. <glossentry id='var-HOST_CC_ARCH'><glossterm>HOST_CC_ARCH</glossterm>
  4641. <info>
  4642. HOST_CC_ARCH[doc] = "The name of the host architecture. Normally same as the TARGET_CC_ARCH."
  4643. </info>
  4644. <glossdef>
  4645. <para role="glossdeffirst">
  4646. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4647. Specifies architecture-specific compiler flags that are
  4648. passed to the C compiler.
  4649. </para>
  4650. <para>
  4651. Default initialization for <filename>HOST_CC_ARCH</filename>
  4652. varies depending on what is being built:
  4653. <itemizedlist>
  4654. <listitem><para>
  4655. <link linkend='var-TARGET_CC_ARCH'><filename>TARGET_CC_ARCH</filename></link>
  4656. when building for the target
  4657. </para></listitem>
  4658. <listitem><para>
  4659. <filename>BUILD_CC_ARCH</filename>
  4660. when building for the build host (i.e.
  4661. <filename>-native</filename>)
  4662. </para></listitem>
  4663. <listitem><para>
  4664. <filename>BUILDSDK_CC_ARCH</filename>
  4665. when building for an SDK (i.e.
  4666. <filename>nativesdk-</filename>)
  4667. </para></listitem>
  4668. </itemizedlist>
  4669. </para>
  4670. </glossdef>
  4671. </glossentry>
  4672. <glossentry id='var-HOST_OS'><glossterm>HOST_OS</glossterm>
  4673. <info>
  4674. HOST_OS[doc] = "The name of the target operating system. Normally the same as the TARGET_OS."
  4675. </info>
  4676. <glossdef>
  4677. <para role="glossdeffirst">
  4678. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4679. Specifies the name of the target operating system, which
  4680. is normally the same as the
  4681. <link linkend='var-TARGET_OS'><filename>TARGET_OS</filename></link>.
  4682. The variable can be set to "linux" for <filename>glibc</filename>-based systems and
  4683. to "linux-uclibc" for <filename>uclibc</filename>.
  4684. For ARM/EABI targets, there are also "linux-gnueabi" and
  4685. "linux-uclibc-gnueabi" values possible.
  4686. </para>
  4687. </glossdef>
  4688. </glossentry>
  4689. <glossentry id='var-HOST_PREFIX'><glossterm>HOST_PREFIX</glossterm>
  4690. <info>
  4691. HOST_PREFIX[doc] = "The prefix for the cross compile toolchain. Normally same as the TARGET_PREFIX."
  4692. </info>
  4693. <glossdef>
  4694. <para role="glossdeffirst">
  4695. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4696. Specifies the prefix for the cross-compile toolchain.
  4697. <filename>HOST_PREFIX</filename> is normally the same as
  4698. <link linkend='var-TARGET_PREFIX'><filename>TARGET_PREFIX</filename></link>.
  4699. </para>
  4700. </glossdef>
  4701. </glossentry>
  4702. <glossentry id='var-HOST_SYS'><glossterm>HOST_SYS</glossterm>
  4703. <info>
  4704. HOST_SYS[doc] = "Specifies the system, including the architecture and the operating system, for with the build is occurring in the context of the current recipe."
  4705. </info>
  4706. <glossdef>
  4707. <para role="glossdeffirst">
  4708. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4709. Specifies the system, including the architecture and the
  4710. operating system, for which the build is occurring
  4711. in the context of the current recipe.
  4712. </para>
  4713. <para>
  4714. The OpenEmbedded build system automatically sets this
  4715. variable based on
  4716. <link linkend='var-HOST_ARCH'><filename>HOST_ARCH</filename></link>,
  4717. <link linkend='var-HOST_VENDOR'><filename>HOST_VENDOR</filename></link>,
  4718. and
  4719. <link linkend='var-HOST_OS'><filename>HOST_OS</filename></link>
  4720. variables.
  4721. <note>
  4722. You do not need to set the variable yourself.
  4723. </note>
  4724. </para>
  4725. <para>
  4726. Consider these two examples:
  4727. <itemizedlist>
  4728. <listitem><para>Given a native recipe on a 32-bit
  4729. x86 machine running Linux, the value is
  4730. "i686-linux".
  4731. </para></listitem>
  4732. <listitem><para>Given a recipe being built for a
  4733. little-endian MIPS target running Linux,
  4734. the value might be "mipsel-linux".
  4735. </para></listitem>
  4736. </itemizedlist>
  4737. </para>
  4738. </glossdef>
  4739. </glossentry>
  4740. <glossentry id='var-HOSTTOOLS'><glossterm>HOSTTOOLS</glossterm>
  4741. <info>
  4742. HOSTTOOLS[doc] = "A space-separated list (filter) of tools on the build host that should be allowed to be called from within build tasks."
  4743. </info>
  4744. <glossdef>
  4745. <para role="glossdeffirst">
  4746. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4747. A space-separated list (filter) of tools on the build host
  4748. that should be allowed to be called from within build tasks.
  4749. Using this filter helps reduce the possibility of host
  4750. contamination.
  4751. If a tool specified in the value of
  4752. <filename>HOSTTOOLS</filename> is not found on the
  4753. build host, the OpenEmbedded build system produces
  4754. an error and the build is not started.
  4755. </para>
  4756. <para>
  4757. For additional information, see
  4758. <link linkend='var-HOSTTOOLS_NONFATAL'><filename>HOSTTOOLS_NONFATAL</filename></link>.
  4759. </para>
  4760. </glossdef>
  4761. </glossentry>
  4762. <glossentry id='var-HOSTTOOLS_NONFATAL'><glossterm>HOSTTOOLS_NONFATAL</glossterm>
  4763. <info>
  4764. HOSTTOOLS_NONFATAL[doc] = "A space-separated list (filter) of tools on the build host that should be allowed to be called from within build tasks."
  4765. </info>
  4766. <glossdef>
  4767. <para role="glossdeffirst">
  4768. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4769. A space-separated list (filter) of tools on the build host
  4770. that should be allowed to be called from within build tasks.
  4771. Using this filter helps reduce the possibility of host
  4772. contamination.
  4773. Unlike
  4774. <link linkend='var-HOSTTOOLS'><filename>HOSTTOOLS</filename></link>,
  4775. the OpenEmbedded build system does not produce and error
  4776. if a tool specified in the value of
  4777. <filename>HOSTTOOLS_NONFATAL</filename> is not found on the
  4778. build host.
  4779. Thus, you can use <filename>HOSTTOOLS_NONFATAL</filename>
  4780. to filter optional host tools.
  4781. </para>
  4782. </glossdef>
  4783. </glossentry>
  4784. <glossentry id='var-HOST_VENDOR'><glossterm>HOST_VENDOR</glossterm>
  4785. <info>
  4786. HOST_VENDOR[doc] = "The name of the vendor. Normally same as the TARGET_VENDOR."
  4787. </info>
  4788. <glossdef>
  4789. <para role="glossdeffirst">
  4790. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4791. Specifies the name of the vendor.
  4792. <filename>HOST_VENDOR</filename> is normally the same as
  4793. <link linkend='var-TARGET_PREFIX'><filename>TARGET_VENDOR</filename></link>.
  4794. </para>
  4795. </glossdef>
  4796. </glossentry>
  4797. </glossdiv>
  4798. <glossdiv id='var-glossary-i'><title>I</title>
  4799. <glossentry id='var-ICECC_DISABLED'><glossterm>ICECC_DISABLED</glossterm>
  4800. <info>
  4801. ICECC_DISABLED[doc] = "Disables or enables the icecc (Icecream) function."
  4802. </info>
  4803. <glossdef>
  4804. <para role="glossdeffirst">
  4805. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4806. Disables or enables the <filename>icecc</filename>
  4807. (Icecream) function.
  4808. For more information on this function and best practices
  4809. for using this variable, see the
  4810. "<link linkend='ref-classes-icecc'><filename>icecc.bbclass</filename></link>"
  4811. section.
  4812. </para>
  4813. <para>
  4814. Setting this variable to "1" in your
  4815. <filename>local.conf</filename> disables the function:
  4816. <literallayout class='monospaced'>
  4817. ICECC_DISABLED ??= "1"
  4818. </literallayout>
  4819. To enable the function, set the variable as follows:
  4820. <literallayout class='monospaced'>
  4821. ICECC_DISABLED = ""
  4822. </literallayout>
  4823. </para>
  4824. </glossdef>
  4825. </glossentry>
  4826. <glossentry id='var-ICECC_ENV_EXEC'><glossterm>ICECC_ENV_EXEC</glossterm>
  4827. <info>
  4828. ICECC_ENV_EXEC[doc] = "Points to the icecc-create-env script that you provide."
  4829. </info>
  4830. <glossdef>
  4831. <para role="glossdeffirst">
  4832. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4833. Points to the <filename>icecc-create-env</filename> script
  4834. that you provide.
  4835. This variable is used by the
  4836. <link linkend='ref-classes-icecc'><filename>icecc</filename></link>
  4837. class.
  4838. You set this variable in your
  4839. <filename>local.conf</filename> file.
  4840. </para>
  4841. <para>
  4842. If you do not point to a script that you provide, the
  4843. OpenEmbedded build system uses the default script provided
  4844. by the <filename>icecc-create-env.bb</filename> recipe,
  4845. which is a modified version and not the one that comes with
  4846. <filename>icecc</filename>.
  4847. </para>
  4848. </glossdef>
  4849. </glossentry>
  4850. <glossentry id='var-ICECC_PARALLEL_MAKE'><glossterm>ICECC_PARALLEL_MAKE</glossterm>
  4851. <info>
  4852. ICECC_PARALLEL_MAKE[doc] = "Extra options passed to the make command during the do_compile task that specify parallel compilation."
  4853. </info>
  4854. <glossdef>
  4855. <para role="glossdeffirst">
  4856. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4857. Extra options passed to the <filename>make</filename>
  4858. command during the
  4859. <link linkend='ref-tasks-compile'><filename>do_compile</filename></link>
  4860. task that specify parallel compilation.
  4861. This variable usually takes the form of
  4862. "-j <replaceable>x</replaceable>", where
  4863. <replaceable>x</replaceable> represents the maximum
  4864. number of parallel threads <filename>make</filename> can
  4865. run.
  4866. <note>
  4867. The options passed affect builds on all enabled
  4868. machines on the network, which are machines running the
  4869. <filename>iceccd</filename> daemon.
  4870. </note>
  4871. </para>
  4872. <para>
  4873. If your enabled machines support multiple cores,
  4874. coming up with the maximum number of parallel threads
  4875. that gives you the best performance could take some
  4876. experimentation since machine speed, network lag,
  4877. available memory, and existing machine loads can all
  4878. affect build time.
  4879. Consequently, unlike the
  4880. <link linkend='var-PARALLEL_MAKE'><filename>PARALLEL_MAKE</filename></link>
  4881. variable, there is no rule-of-thumb for setting
  4882. <filename>ICECC_PARALLEL_MAKE</filename> to achieve
  4883. optimal performance.
  4884. </para>
  4885. <para>
  4886. If you do not set <filename>ICECC_PARALLEL_MAKE</filename>,
  4887. the build system does not use it (i.e. the system does
  4888. not detect and assign the number of cores as is done with
  4889. <filename>PARALLEL_MAKE</filename>).
  4890. </para>
  4891. </glossdef>
  4892. </glossentry>
  4893. <glossentry id='var-ICECC_PATH'><glossterm>ICECC_PATH</glossterm>
  4894. <info>
  4895. ICECC_PATH[doc] = "The location of the icecc binary."
  4896. </info>
  4897. <glossdef>
  4898. <para role="glossdeffirst">
  4899. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4900. The location of the <filename>icecc</filename> binary.
  4901. You can set this variable in your
  4902. <filename>local.conf</filename> file.
  4903. If your <filename>local.conf</filename> file does not define
  4904. this variable, the
  4905. <link linkend='ref-classes-icecc'><filename>icecc</filename></link>
  4906. class attempts to define it by locating
  4907. <filename>icecc</filename> using <filename>which</filename>.
  4908. </para>
  4909. </glossdef>
  4910. </glossentry>
  4911. <glossentry id='var-ICECC_USER_CLASS_BL'><glossterm>ICECC_USER_CLASS_BL</glossterm>
  4912. <info>
  4913. ICECC_USER_CLASS_BL[doc] = "Identifies user classes that you do not want the Icecream distributed compile support to consider."
  4914. </info>
  4915. <glossdef>
  4916. <para role="glossdeffirst">
  4917. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4918. Identifies user classes that you do not want the
  4919. Icecream distributed compile support to consider.
  4920. This variable is used by the
  4921. <link linkend='ref-classes-icecc'><filename>icecc</filename></link>
  4922. class.
  4923. You set this variable in your
  4924. <filename>local.conf</filename> file.
  4925. </para>
  4926. <para>
  4927. When you list classes using this variable, you are
  4928. "blacklisting" them from distributed compilation across
  4929. remote hosts.
  4930. Any classes you list will be distributed and compiled
  4931. locally.
  4932. </para>
  4933. </glossdef>
  4934. </glossentry>
  4935. <glossentry id='var-ICECC_USER_PACKAGE_BL'><glossterm>ICECC_USER_PACKAGE_BL</glossterm>
  4936. <info>
  4937. ICECC_USER_PACKAGE_BL[doc] = "Identifies user recipes that you do not want the Icecream distributed compile support to consider."
  4938. </info>
  4939. <glossdef>
  4940. <para role="glossdeffirst">
  4941. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4942. Identifies user recipes that you do not want the
  4943. Icecream distributed compile support to consider.
  4944. This variable is used by the
  4945. <link linkend='ref-classes-icecc'><filename>icecc</filename></link>
  4946. class.
  4947. You set this variable in your
  4948. <filename>local.conf</filename> file.
  4949. </para>
  4950. <para>
  4951. When you list packages using this variable, you are
  4952. "blacklisting" them from distributed compilation across
  4953. remote hosts.
  4954. Any packages you list will be distributed and compiled
  4955. locally.
  4956. </para>
  4957. </glossdef>
  4958. </glossentry>
  4959. <glossentry id='var-ICECC_USER_PACKAGE_WL'><glossterm>ICECC_USER_PACKAGE_WL</glossterm>
  4960. <info>
  4961. ICECC_USER_PACKAGE_WL[doc] = "Identifies user recipes that use an empty PARALLEL_MAKE variable that you want to force remote distributed compilation on using the Icecream distributed compile support."
  4962. </info>
  4963. <glossdef>
  4964. <para role="glossdeffirst">
  4965. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4966. Identifies user recipes that use an empty
  4967. <link linkend='var-PARALLEL_MAKE'><filename>PARALLEL_MAKE</filename></link>
  4968. variable that you want to force remote distributed
  4969. compilation on using the Icecream distributed compile
  4970. support.
  4971. This variable is used by the
  4972. <link linkend='ref-classes-icecc'><filename>icecc</filename></link>
  4973. class.
  4974. You set this variable in your
  4975. <filename>local.conf</filename> file.
  4976. </para>
  4977. </glossdef>
  4978. </glossentry>
  4979. <glossentry id='var-IMAGE_BASENAME'><glossterm>IMAGE_BASENAME</glossterm>
  4980. <info>
  4981. IMAGE_BASENAME[doc] = "The base name of image output files."
  4982. </info>
  4983. <glossdef>
  4984. <para role="glossdeffirst">
  4985. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4986. The base name of image output files.
  4987. This variable defaults to the recipe name
  4988. (<filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}</filename>).
  4989. </para>
  4990. </glossdef>
  4991. </glossentry>
  4992. <glossentry id='var-IMAGE_BOOT_FILES'><glossterm>IMAGE_BOOT_FILES</glossterm>
  4993. <info>
  4994. IMAGE_BOOT_FILES[doc] = "Whitespace separated list of files from ${DEPLOY_DIR_IMAGE} to place in boot partition. Entries will be installed under a same name as the source file. To change the destination file name, pass a desired name after a semicolon (eg. u-boot.img;uboot)."
  4995. </info>
  4996. <glossdef>
  4997. <para role="glossdeffirst">
  4998. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4999. A space-separated list of files installed into the
  5000. boot partition when preparing an image using the
  5001. <filename>wic</filename> tool with the
  5002. <filename>bootimg-partition</filename> source
  5003. plugin.
  5004. By default, the files are installed under
  5005. the same name as the source files.
  5006. To change the installed name, separate it from the
  5007. original name with a semi-colon (;).
  5008. Source files need to be located in
  5009. <link linkend='var-DEPLOY_DIR_IMAGE'><filename>DEPLOY_DIR_IMAGE</filename></link>.
  5010. Here are two examples:
  5011. <literallayout class="monospaced">
  5012. IMAGE_BOOT_FILES = "u-boot.img uImage;kernel"
  5013. IMAGE_BOOT_FILES = "u-boot.${UBOOT_SUFFIX} ${KERNEL_IMAGETYPE}"
  5014. </literallayout>
  5015. </para>
  5016. <para>
  5017. Alternatively, source files can be picked up using
  5018. a glob pattern.
  5019. In this case, the destination file
  5020. will have the same name as the base name of the source file
  5021. path.
  5022. To install files into a directory within the
  5023. target location, pass its name after a semi-colon
  5024. (;).
  5025. Here are two examples:
  5026. <literallayout class="monospaced">
  5027. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*"
  5028. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*;boot/"
  5029. </literallayout>
  5030. The first example installs all files from
  5031. <filename>${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles</filename>
  5032. into the root of the target partition.
  5033. The second example installs the same files into a
  5034. <filename>boot</filename> directory within the
  5035. target partition.
  5036. </para>
  5037. </glossdef>
  5038. </glossentry>
  5039. <glossentry id='var-IMAGE_CLASSES'><glossterm>IMAGE_CLASSES</glossterm>
  5040. <info>
  5041. IMAGE_CLASSES[doc] = "A list of classes that all images should inherit."
  5042. </info>
  5043. <glossdef>
  5044. <para role="glossdeffirst">
  5045. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5046. A list of classes that all images should inherit.
  5047. You typically use this variable to specify the list of
  5048. classes that register the different types of images
  5049. the OpenEmbedded build system creates.
  5050. </para>
  5051. <para>
  5052. The default value for <filename>IMAGE_CLASSES</filename> is
  5053. <filename>image_types</filename>.
  5054. You can set this variable in your
  5055. <filename>local.conf</filename> or in a distribution
  5056. configuration file.
  5057. </para>
  5058. <para>
  5059. For more information, see
  5060. <filename>meta/classes/image_types.bbclass</filename> in the
  5061. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>.
  5062. </para>
  5063. </glossdef>
  5064. </glossentry>
  5065. <glossentry id='var-IMAGE_CMD'><glossterm>IMAGE_CMD</glossterm>
  5066. <info>
  5067. IMAGE_CMD[doc] = "Specifies the command to create the image file for a specific image type, which corresponds to the value set set in IMAGE_FSTYPES, (e.g. ext3, btrfs, and so forth)."
  5068. </info>
  5069. <glossdef>
  5070. <para role="glossdeffirst">
  5071. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5072. Specifies the command to create the image file for a
  5073. specific image type, which corresponds to the value set
  5074. set in
  5075. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>,
  5076. (e.g. <filename>ext3</filename>,
  5077. <filename>btrfs</filename>, and so forth).
  5078. When setting this variable, you should use
  5079. an override for the associated type.
  5080. Here is an example:
  5081. <literallayout class='monospaced'>
  5082. IMAGE_CMD_jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} \
  5083. --faketime --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \
  5084. ${EXTRA_IMAGECMD}"
  5085. </literallayout>
  5086. </para>
  5087. <para>
  5088. You typically do not need to set this variable unless
  5089. you are adding support for a new image type.
  5090. For more examples on how to set this variable, see the
  5091. <link linkend='ref-classes-image_types'><filename>image_types</filename></link>
  5092. class file, which is
  5093. <filename>meta/classes/image_types.bbclass</filename>.
  5094. </para>
  5095. </glossdef>
  5096. </glossentry>
  5097. <glossentry id='var-IMAGE_DEVICE_TABLES'><glossterm>IMAGE_DEVICE_TABLES</glossterm>
  5098. <info>
  5099. IMAGE_DEVICE_TABLES[doc] = "Specifies one or more files that contain custom device tables that are passed to the makedevs command as part of creating an image."
  5100. </info>
  5101. <glossdef>
  5102. <para role="glossdeffirst">
  5103. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5104. Specifies one or more files that contain custom device
  5105. tables that are passed to the
  5106. <filename>makedevs</filename> command as part of creating
  5107. an image.
  5108. These files list basic device nodes that should be
  5109. created under <filename>/dev</filename> within the image.
  5110. If <filename>IMAGE_DEVICE_TABLES</filename> is not set,
  5111. <filename>files/device_table-minimal.txt</filename> is
  5112. used, which is located by
  5113. <link linkend='var-BBPATH'><filename>BBPATH</filename></link>.
  5114. For details on how you should write device table files,
  5115. see <filename>meta/files/device_table-minimal.txt</filename>
  5116. as an example.
  5117. </para>
  5118. </glossdef>
  5119. </glossentry>
  5120. <glossentry id='var-IMAGE_FEATURES'><glossterm>IMAGE_FEATURES</glossterm>
  5121. <info>
  5122. IMAGE_FEATURES[doc] = "The primary list of features to include in an image. Configure this variable in an image recipe."
  5123. </info>
  5124. <glossdef>
  5125. <para role="glossdeffirst">
  5126. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5127. The primary list of features to include in an image.
  5128. Typically, you configure this variable in an image recipe.
  5129. Although you can use this variable from your
  5130. <filename>local.conf</filename> file, which is found in the
  5131. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>,
  5132. best practices dictate that you do not.
  5133. <note>
  5134. To enable extra features from outside the image recipe,
  5135. use the
  5136. <filename><link linkend='var-EXTRA_IMAGE_FEATURES'>EXTRA_IMAGE_FEATURES</link></filename> variable.
  5137. </note>
  5138. </para>
  5139. <para>
  5140. For a list of image features that ships with the Yocto
  5141. Project, see the
  5142. "<link linkend="ref-features-image">Image Features</link>"
  5143. section.
  5144. </para>
  5145. <para>
  5146. For an example that shows how to customize your image by
  5147. using this variable, see the
  5148. "<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>"
  5149. section in the Yocto Project Development Manual.
  5150. </para>
  5151. </glossdef>
  5152. </glossentry>
  5153. <glossentry id='var-IMAGE_FSTYPES'><glossterm>IMAGE_FSTYPES</glossterm>
  5154. <info>
  5155. IMAGE_FSTYPES[doc] = "Formats of root filesystem images that you want to have created."
  5156. </info>
  5157. <glossdef>
  5158. <para role="glossdeffirst">
  5159. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5160. Specifies the formats the OpenEmbedded build system uses
  5161. during the build when creating the root filesystem.
  5162. For example, setting <filename>IMAGE_FSTYPES</filename>
  5163. as follows causes the build system to create root
  5164. filesystems using two formats: <filename>.ext3</filename>
  5165. and <filename>.tar.bz2</filename>:
  5166. <literallayout class='monospaced'>
  5167. IMAGE_FSTYPES = "ext3 tar.bz2"
  5168. </literallayout>
  5169. </para>
  5170. <para>
  5171. For the complete list of supported image formats from which
  5172. you can choose, see
  5173. <link linkend='var-IMAGE_TYPES'><filename>IMAGE_TYPES</filename></link>.
  5174. </para>
  5175. <note>
  5176. If you add "live" to <filename>IMAGE_FSTYPES</filename>
  5177. inside an image recipe, be sure that you do so prior to the
  5178. "inherit image" line of the recipe or the live image will
  5179. not build.
  5180. </note>
  5181. <note>
  5182. Due to the way this variable is processed, it is not
  5183. possible to update its contents using
  5184. <filename>_append</filename> or
  5185. <filename>_prepend</filename>. To add one or more
  5186. additional options to this variable the
  5187. <filename>+=</filename> operator must be used.
  5188. </note>
  5189. </glossdef>
  5190. </glossentry>
  5191. <glossentry id='var-IMAGE_INSTALL'><glossterm>IMAGE_INSTALL</glossterm>
  5192. <info>
  5193. IMAGE_INSTALL[doc] = "Specifies the packages to install into an image. Image recipes set IMAGE_INSTALL to specify the packages to install into an image through image.bbclass."
  5194. </info>
  5195. <glossdef>
  5196. <para role="glossdeffirst">
  5197. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5198. Specifies the packages to install into an image.
  5199. The <filename>IMAGE_INSTALL</filename> variable is a
  5200. mechanism for an image recipe and you should use it
  5201. with care to avoid ordering issues.
  5202. <note>
  5203. When working with an
  5204. <link linkend='images-core-image-minimal-initramfs'><filename>core-image-minimal-initramfs</filename></link>
  5205. image, do not use the <filename>IMAGE_INSTALL</filename>
  5206. variable to specify packages for installation.
  5207. Instead, use the
  5208. <link linkend='var-PACKAGE_INSTALL'><filename>PACKAGE_INSTALL</filename></link>
  5209. variable, which allows the initial RAM filesystem
  5210. (initramfs) recipe to use a fixed set of packages and
  5211. not be affected by <filename>IMAGE_INSTALL</filename>.
  5212. For information on creating an initramfs, see the
  5213. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-an-initramfs-image'>Building an Initial RAM Filesystem (initramfs) Image</ulink>"
  5214. section in the Yocto Project Development Manual.
  5215. </note>
  5216. </para>
  5217. <para>
  5218. Image recipes set <filename>IMAGE_INSTALL</filename>
  5219. to specify the packages to install into an image through
  5220. <filename>image.bbclass</filename>.
  5221. Additionally, "helper" classes exist, such as
  5222. <filename>core-image.bbclass</filename>, that can take
  5223. <filename><link linkend='var-IMAGE_FEATURES'>IMAGE_FEATURES</link></filename>
  5224. lists and turn these into auto-generated entries in
  5225. <filename>IMAGE_INSTALL</filename> in addition to its
  5226. default contents.
  5227. </para>
  5228. <para>
  5229. Using <filename>IMAGE_INSTALL</filename> with the
  5230. <filename>+=</filename> operator from the
  5231. <filename>/conf/local.conf</filename> file or from within
  5232. an image recipe is not recommended as it can cause ordering
  5233. issues.
  5234. Since <filename>core-image.bbclass</filename> sets
  5235. <filename>IMAGE_INSTALL</filename> to a default value using
  5236. the <filename>?=</filename> operator, using a
  5237. <filename>+=</filename> operation against
  5238. <filename>IMAGE_INSTALL</filename> will result in
  5239. unexpected behavior when used in
  5240. <filename>conf/local.conf</filename>.
  5241. Furthermore, the same operation from within an image
  5242. recipe may or may not succeed depending on the specific
  5243. situation.
  5244. In both these cases, the behavior is contrary to how most
  5245. users expect the <filename>+=</filename> operator to work.
  5246. </para>
  5247. <para>
  5248. When you use this variable, it is best to use it as follows:
  5249. <literallayout class='monospaced'>
  5250. IMAGE_INSTALL_append = " <replaceable>package-name</replaceable>"
  5251. </literallayout>
  5252. Be sure to include the space between the quotation character
  5253. and the start of the package name or names.
  5254. </para>
  5255. </glossdef>
  5256. </glossentry>
  5257. <glossentry id='var-IMAGE_LINGUAS'><glossterm>IMAGE_LINGUAS</glossterm>
  5258. <info>
  5259. IMAGE_LINGUAS[doc] = "Specifies the list of locales to install into the image during the root filesystem construction process."
  5260. </info>
  5261. <glossdef>
  5262. <para role="glossdeffirst">
  5263. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5264. Specifies the list of locales to install into the image
  5265. during the root filesystem construction process.
  5266. The OpenEmbedded build system automatically splits locale
  5267. files, which are used for localization, into separate
  5268. packages.
  5269. Setting the <filename>IMAGE_LINGUAS</filename> variable
  5270. ensures that any locale packages that correspond to packages
  5271. already selected for installation into the image are also
  5272. installed.
  5273. Here is an example:
  5274. <literallayout class='monospaced'>
  5275. IMAGE_LINGUAS = "pt-br de-de"
  5276. </literallayout>
  5277. </para>
  5278. <para>
  5279. In this example, the build system ensures any Brazilian
  5280. Portuguese and German locale files that correspond to
  5281. packages in the image are installed (i.e.
  5282. <filename>*-locale-pt-br</filename>
  5283. and <filename>*-locale-de-de</filename> as well as
  5284. <filename>*-locale-pt</filename>
  5285. and <filename>*-locale-de</filename>, since some software
  5286. packages only provide locale files by language and not by
  5287. country-specific language).
  5288. </para>
  5289. <para>
  5290. See the
  5291. <link linkend='var-GLIBC_GENERATE_LOCALES'><filename>GLIBC_GENERATE_LOCALES</filename></link>
  5292. variable for information on generating GLIBC locales.
  5293. </para>
  5294. </glossdef>
  5295. </glossentry>
  5296. <glossentry id='var-IMAGE_MANIFEST'><glossterm>IMAGE_MANIFEST</glossterm>
  5297. <info>
  5298. IMAGE_MANIFEST[doc] = "The manifest file for the image. This file lists all the installed packages that make up the image."
  5299. </info>
  5300. <glossdef>
  5301. <para role="glossdeffirst">
  5302. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5303. The manifest file for the image.
  5304. This file lists all the installed packages that make up
  5305. the image.
  5306. The file contains package information on a line-per-package
  5307. basis as follows:
  5308. <literallayout class='monospaced'>
  5309. <replaceable>packagename</replaceable> <replaceable>packagearch</replaceable> <replaceable>version</replaceable>
  5310. </literallayout>
  5311. </para>
  5312. <para>
  5313. The
  5314. <link linkend='ref-classes-image'><filename>image</filename></link>
  5315. class defines the manifest file as follows:
  5316. <literallayout class='monospaced'>
  5317. IMAGE_MANIFEST = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.manifest"
  5318. </literallayout>
  5319. The location is derived using the
  5320. <link linkend='var-DEPLOY_DIR_IMAGE'><filename>DEPLOY_DIR_IMAGE</filename></link>
  5321. and
  5322. <link linkend='var-IMAGE_NAME'><filename>IMAGE_NAME</filename></link>
  5323. variables.
  5324. You can find information on how the image
  5325. is created in the
  5326. "<link linkend='image-generation-dev-environment'>Image Generation</link>"
  5327. section.
  5328. </para>
  5329. </glossdef>
  5330. </glossentry>
  5331. <glossentry id='var-IMAGE_NAME'><glossterm>IMAGE_NAME</glossterm>
  5332. <info>
  5333. IMAGE_NAME[doc] = "The name of the output image files minus the extension."
  5334. </info>
  5335. <glossdef>
  5336. <para role="glossdeffirst">
  5337. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5338. The name of the output image files minus the extension.
  5339. This variable is derived using the
  5340. <link linkend='var-IMAGE_BASENAME'><filename>IMAGE_BASENAME</filename></link>,
  5341. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>,
  5342. and
  5343. <link linkend='var-DATETIME'><filename>DATETIME</filename></link>
  5344. variables:
  5345. <literallayout class='monospaced'>
  5346. IMAGE_NAME = "${IMAGE_BASENAME}-${MACHINE}-${DATETIME}"
  5347. </literallayout>
  5348. </para>
  5349. </glossdef>
  5350. </glossentry>
  5351. <glossentry id='var-IMAGE_OVERHEAD_FACTOR'><glossterm>IMAGE_OVERHEAD_FACTOR</glossterm>
  5352. <info>
  5353. IMAGE_OVERHEAD_FACTOR[doc] = "Defines a multiplier that the build system applies to the initial image size for cases when the multiplier times the returned disk usage value for the image is greater than the sum of IMAGE_ROOTFS_SIZE and IMAGE_ROOTFS_EXTRA_SPACE."
  5354. </info>
  5355. <glossdef>
  5356. <para role="glossdeffirst">
  5357. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5358. Defines a multiplier that the build system applies to the initial image
  5359. size for cases when the multiplier times the returned disk usage value
  5360. for the image is greater than the sum of
  5361. <filename><link linkend='var-IMAGE_ROOTFS_SIZE'>IMAGE_ROOTFS_SIZE</link></filename>
  5362. and
  5363. <filename><link linkend='var-IMAGE_ROOTFS_EXTRA_SPACE'>IMAGE_ROOTFS_EXTRA_SPACE</link></filename>.
  5364. The result of the multiplier applied to the initial image size creates
  5365. free disk space in the image as overhead.
  5366. By default, the build process uses a multiplier of 1.3 for this variable.
  5367. This default value results in 30% free disk space added to the image when this
  5368. method is used to determine the final generated image size.
  5369. You should be aware that post install scripts and the package management
  5370. system uses disk space inside this overhead area.
  5371. Consequently, the multiplier does not produce an image with
  5372. all the theoretical free disk space.
  5373. See <filename><link linkend='var-IMAGE_ROOTFS_SIZE'>IMAGE_ROOTFS_SIZE</link></filename>
  5374. for information on how the build system determines the overall image size.
  5375. </para>
  5376. <para>
  5377. The default 30% free disk space typically gives the image enough room to boot
  5378. and allows for basic post installs while still leaving a small amount of
  5379. free disk space.
  5380. If 30% free space is inadequate, you can increase the default value.
  5381. For example, the following setting gives you 50% free space added to the image:
  5382. <literallayout class='monospaced'>
  5383. IMAGE_OVERHEAD_FACTOR = "1.5"
  5384. </literallayout>
  5385. </para>
  5386. <para>
  5387. Alternatively, you can ensure a specific amount of free disk space is added
  5388. to the image by using the
  5389. <filename><link linkend='var-IMAGE_ROOTFS_EXTRA_SPACE'>IMAGE_ROOTFS_EXTRA_SPACE</link></filename>
  5390. variable.
  5391. </para>
  5392. </glossdef>
  5393. </glossentry>
  5394. <glossentry id='var-IMAGE_PKGTYPE'><glossterm>IMAGE_PKGTYPE</glossterm>
  5395. <info>
  5396. IMAGE_PKGTYPE[doc] = "Defines the package type (DEB, RPM, IPK, or TAR) used by the OpenEmbedded build system."
  5397. </info>
  5398. <glossdef>
  5399. <para role="glossdeffirst">
  5400. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5401. Defines the package type (DEB, RPM, IPK, or TAR) used
  5402. by the OpenEmbedded build system.
  5403. The variable is defined appropriately by the
  5404. <link linkend='ref-classes-package_deb'><filename>package_deb</filename></link>,
  5405. <link linkend='ref-classes-package_rpm'><filename>package_rpm</filename></link>,
  5406. <link linkend='ref-classes-package_ipk'><filename>package_ipk</filename></link>,
  5407. or
  5408. <link linkend='ref-classes-package_tar'><filename>package_tar</filename></link>
  5409. class.
  5410. <note><title>Warning</title>
  5411. The <filename>package_tar</filename> class is broken
  5412. and is not supported.
  5413. It is recommended that you do not use it.
  5414. </note>
  5415. </para>
  5416. <para>
  5417. The
  5418. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_*</filename></link>
  5419. and
  5420. <link linkend='ref-classes-image'><filename>image</filename></link>
  5421. classes use the <filename>IMAGE_PKGTYPE</filename> for
  5422. packaging up images and SDKs.
  5423. </para>
  5424. <para>
  5425. You should not set the <filename>IMAGE_PKGTYPE</filename>
  5426. manually.
  5427. Rather, the variable is set indirectly through the
  5428. appropriate
  5429. <link linkend='ref-classes-package'><filename>package_*</filename></link>
  5430. class using the
  5431. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
  5432. variable.
  5433. The OpenEmbedded build system uses the first package type
  5434. (e.g. DEB, RPM, or IPK) that appears with the variable
  5435. <note>
  5436. Files using the <filename>.tar</filename> format are
  5437. never used as a substitute packaging format for DEB,
  5438. RPM, and IPK formatted files for your image or SDK.
  5439. </note>
  5440. </para>
  5441. </glossdef>
  5442. </glossentry>
  5443. <glossentry id='var-IMAGE_POSTPROCESS_COMMAND'><glossterm>IMAGE_POSTPROCESS_COMMAND</glossterm>
  5444. <info>
  5445. IMAGE_POSTPROCESS_COMMAND[doc] = "Specifies a list of functions to call once the OpenEmbedded build system has created the final image output files."
  5446. </info>
  5447. <glossdef>
  5448. <para role="glossdeffirst">
  5449. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5450. Specifies a list of functions to call once the
  5451. OpenEmbedded build system has created the final image
  5452. output files.
  5453. You can specify functions separated by semicolons:
  5454. <literallayout class='monospaced'>
  5455. IMAGE_POSTPROCESS_COMMAND += "<replaceable>function</replaceable>; ... "
  5456. </literallayout>
  5457. </para>
  5458. <para>
  5459. If you need to pass the root filesystem path to a command
  5460. within the function, you can use
  5461. <filename>${IMAGE_ROOTFS}</filename>, which points to
  5462. the directory that becomes the root filesystem image.
  5463. See the
  5464. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  5465. variable for more information.
  5466. </para>
  5467. </glossdef>
  5468. </glossentry>
  5469. <glossentry id='var-IMAGE_PREPROCESS_COMMAND'><glossterm>IMAGE_PREPROCESS_COMMAND</glossterm>
  5470. <info>
  5471. IMAGE_PREPROCESS_COMMAND[doc] = "Specifies a list of functions to call before the OpenEmbedded build system has created the final image output files."
  5472. </info>
  5473. <glossdef>
  5474. <para role="glossdeffirst">
  5475. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5476. Specifies a list of functions to call before the
  5477. OpenEmbedded build system has created the final image
  5478. output files.
  5479. You can specify functions separated by semicolons:
  5480. <literallayout class='monospaced'>
  5481. IMAGE_PREPROCESS_COMMAND += "<replaceable>function</replaceable>; ... "
  5482. </literallayout>
  5483. </para>
  5484. <para>
  5485. If you need to pass the root filesystem path to a command
  5486. within the function, you can use
  5487. <filename>${IMAGE_ROOTFS}</filename>, which points to
  5488. the directory that becomes the root filesystem image.
  5489. See the
  5490. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  5491. variable for more information.
  5492. </para>
  5493. </glossdef>
  5494. </glossentry>
  5495. <glossentry id='var-IMAGE_ROOTFS'><glossterm>IMAGE_ROOTFS</glossterm>
  5496. <info>
  5497. IMAGE_ROOTFS[doc] = "The location of the root filesystem while it is under construction (i.e. during do_rootfs)."
  5498. </info>
  5499. <glossdef>
  5500. <para role="glossdeffirst">
  5501. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5502. The location of the root filesystem while it is under
  5503. construction (i.e. during the
  5504. <link linkend='ref-tasks-rootfs'><filename>do_rootfs</filename></link>
  5505. task).
  5506. This variable is not configurable.
  5507. Do not change it.
  5508. </para>
  5509. </glossdef>
  5510. </glossentry>
  5511. <glossentry id='var-IMAGE_ROOTFS_ALIGNMENT'><glossterm>IMAGE_ROOTFS_ALIGNMENT</glossterm>
  5512. <info>
  5513. IMAGE_ROOTFS_ALIGNMENT[doc] = "Specifies the alignment for the output image file in Kbytes."
  5514. </info>
  5515. <glossdef>
  5516. <para role="glossdeffirst">
  5517. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5518. Specifies the alignment for the output image file in
  5519. Kbytes.
  5520. If the size of the image is not a multiple of
  5521. this value, then the size is rounded up to the nearest
  5522. multiple of the value.
  5523. The default value is "1".
  5524. See
  5525. <link linkend='var-IMAGE_ROOTFS_SIZE'><filename>IMAGE_ROOTFS_SIZE</filename></link>
  5526. for additional information.
  5527. </para>
  5528. </glossdef>
  5529. </glossentry>
  5530. <glossentry id='var-IMAGE_ROOTFS_EXTRA_SPACE'><glossterm>IMAGE_ROOTFS_EXTRA_SPACE</glossterm>
  5531. <info>
  5532. IMAGE_ROOTFS_EXTRA_SPACE[doc] = "Defines additional free disk space created in the image in Kbytes. By default, this variable is set to '0'."
  5533. </info>
  5534. <glossdef>
  5535. <para role="glossdeffirst">
  5536. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5537. Defines additional free disk space created in the image in Kbytes.
  5538. By default, this variable is set to "0".
  5539. This free disk space is added to the image after the build system determines
  5540. the image size as described in
  5541. <filename><link linkend='var-IMAGE_ROOTFS_SIZE'>IMAGE_ROOTFS_SIZE</link></filename>.
  5542. </para>
  5543. <para>
  5544. This variable is particularly useful when you want to ensure that a
  5545. specific amount of free disk space is available on a device after an image
  5546. is installed and running.
  5547. For example, to be sure 5 Gbytes of free disk space is available, set the
  5548. variable as follows:
  5549. <literallayout class='monospaced'>
  5550. IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
  5551. </literallayout>
  5552. </para>
  5553. <para>
  5554. For example, the Yocto Project Build Appliance specifically requests 40 Gbytes
  5555. of extra space with the line:
  5556. <literallayout class='monospaced'>
  5557. IMAGE_ROOTFS_EXTRA_SPACE = "41943040"
  5558. </literallayout>
  5559. </para>
  5560. </glossdef>
  5561. </glossentry>
  5562. <glossentry id='var-IMAGE_ROOTFS_SIZE'><glossterm>IMAGE_ROOTFS_SIZE</glossterm>
  5563. <info>
  5564. IMAGE_ROOTFS_SIZE[doc] = "Defines the size in Kbytes for the generated image."
  5565. </info>
  5566. <glossdef>
  5567. <para role="glossdeffirst">
  5568. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5569. Defines the size in Kbytes for the generated image.
  5570. The OpenEmbedded build system determines the final size for the generated
  5571. image using an algorithm that takes into account the initial disk space used
  5572. for the generated image, a requested size for the image, and requested
  5573. additional free disk space to be added to the image.
  5574. Programatically, the build system determines the final size of the
  5575. generated image as follows:
  5576. <literallayout class='monospaced'>
  5577. if (image-du * overhead) &lt; rootfs-size:
  5578. internal-rootfs-size = rootfs-size + xspace
  5579. else:
  5580. internal-rootfs-size = (image-du * overhead) + xspace
  5581. where:
  5582. image-du = Returned value of the du command on
  5583. the image.
  5584. overhead = IMAGE_OVERHEAD_FACTOR
  5585. rootfs-size = IMAGE_ROOTFS_SIZE
  5586. internal-rootfs-size = Initial root filesystem
  5587. size before any modifications.
  5588. xspace = IMAGE_ROOTFS_EXTRA_SPACE
  5589. </literallayout>
  5590. </para>
  5591. <para>
  5592. See the <link linkend='var-IMAGE_OVERHEAD_FACTOR'><filename>IMAGE_OVERHEAD_FACTOR</filename></link>
  5593. and <link linkend='var-IMAGE_ROOTFS_EXTRA_SPACE'><filename>IMAGE_ROOTFS_EXTRA_SPACE</filename></link>
  5594. variables for related information.
  5595. <!-- In the above example, <filename>overhead</filename> is defined by the
  5596. <filename><link linkend='var-IMAGE_OVERHEAD_FACTOR'>IMAGE_OVERHEAD_FACTOR</link></filename>
  5597. variable, <filename>xspace</filename> is defined by the
  5598. <filename><link linkend='var-IMAGE_ROOTFS_EXTRA_SPACE'>IMAGE_ROOTFS_EXTRA_SPACE</link></filename>
  5599. variable, and <filename>du</filename> is the results of the disk usage command
  5600. on the initially generated image. -->
  5601. </para>
  5602. </glossdef>
  5603. </glossentry>
  5604. <glossentry id='var-IMAGE_TYPEDEP'><glossterm>IMAGE_TYPEDEP</glossterm>
  5605. <info>
  5606. IMAGE_TYPEDEP[doc] = "Specifies a dependency from one image type on another."
  5607. </info>
  5608. <glossdef>
  5609. <para role="glossdeffirst">
  5610. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5611. Specifies a dependency from one image type on another.
  5612. Here is an example from the
  5613. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  5614. class:
  5615. <literallayout class='monospaced'>
  5616. IMAGE_TYPEDEP_live = "ext3"
  5617. </literallayout>
  5618. </para>
  5619. <para>
  5620. In the previous example, the variable ensures that when
  5621. "live" is listed with the
  5622. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  5623. variable, the OpenEmbedded build system produces an
  5624. <filename>ext3</filename> image first since one of the
  5625. components of the live
  5626. image is an <filename>ext3</filename>
  5627. formatted partition containing the root
  5628. filesystem.
  5629. </para>
  5630. </glossdef>
  5631. </glossentry>
  5632. <glossentry id='var-IMAGE_TYPES'><glossterm>IMAGE_TYPES</glossterm>
  5633. <info>
  5634. IMAGE_TYPES[doc] = "Specifies the complete list of supported image types by default."
  5635. </info>
  5636. <glossdef>
  5637. <para role="glossdeffirst">
  5638. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5639. Specifies the complete list of supported image types
  5640. by default:
  5641. <literallayout class='monospaced'>
  5642. btrfs
  5643. cpio
  5644. cpio.gz
  5645. cpio.lz4
  5646. cpio.lzma
  5647. cpio.xz
  5648. cramfs
  5649. elf
  5650. ext2
  5651. ext2.bz2
  5652. ext2.gz
  5653. ext2.lzma
  5654. ext3
  5655. ext3.gz
  5656. ext4
  5657. ext4.gz
  5658. hdddirect
  5659. hddimg
  5660. iso
  5661. jffs2
  5662. jffs2.sum
  5663. multiubi
  5664. qcow2
  5665. squashfs
  5666. squashfs-lzo
  5667. squashfs-xz
  5668. tar
  5669. tar.bz2
  5670. tar.gz
  5671. tar.lz4
  5672. tar.xz
  5673. ubi
  5674. ubifs
  5675. vdi
  5676. vmdk
  5677. wic
  5678. wic.bz2
  5679. wic.gz
  5680. wic.lzma
  5681. </literallayout>
  5682. </para>
  5683. <para>
  5684. For more information about these types of images, see
  5685. <filename>meta/classes/image_types*.bbclass</filename>
  5686. in the
  5687. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>.
  5688. </para>
  5689. </glossdef>
  5690. </glossentry>
  5691. <glossentry id='var-INC_PR'><glossterm>INC_PR</glossterm>
  5692. <info>
  5693. INC_PR[doc] = "Helps define the recipe revision for recipes that share a common include file."
  5694. </info>
  5695. <glossdef>
  5696. <para role="glossdeffirst">
  5697. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5698. Helps define the recipe revision for recipes that share
  5699. a common <filename>include</filename> file.
  5700. You can think of this variable as part of the recipe revision
  5701. as set from within an include file.
  5702. </para>
  5703. <para>
  5704. Suppose, for example, you have a set of recipes that
  5705. are used across several projects.
  5706. And, within each of those recipes the revision
  5707. (its <link linkend='var-PR'><filename>PR</filename></link>
  5708. value) is set accordingly.
  5709. In this case, when the revision of those recipes changes,
  5710. the burden is on you to find all those recipes and
  5711. be sure that they get changed to reflect the updated
  5712. version of the recipe.
  5713. In this scenario, it can get complicated when recipes
  5714. that are used in many places and provide common functionality
  5715. are upgraded to a new revision.
  5716. </para>
  5717. <para>
  5718. A more efficient way of dealing with this situation is
  5719. to set the <filename>INC_PR</filename> variable inside
  5720. the <filename>include</filename> files that the recipes
  5721. share and then expand the <filename>INC_PR</filename>
  5722. variable within the recipes to help
  5723. define the recipe revision.
  5724. </para>
  5725. <para>
  5726. The following provides an example that shows how to use
  5727. the <filename>INC_PR</filename> variable
  5728. given a common <filename>include</filename> file that
  5729. defines the variable.
  5730. Once the variable is defined in the
  5731. <filename>include</filename> file, you can use the
  5732. variable to set the <filename>PR</filename> values in
  5733. each recipe.
  5734. You will notice that when you set a recipe's
  5735. <filename>PR</filename> you can provide more granular
  5736. revisioning by appending values to the
  5737. <filename>INC_PR</filename> variable:
  5738. <literallayout class='monospaced'>
  5739. recipes-graphics/xorg-font/xorg-font-common.inc:INC_PR = "r2"
  5740. recipes-graphics/xorg-font/encodings_1.0.4.bb:PR = "${INC_PR}.1"
  5741. recipes-graphics/xorg-font/font-util_1.3.0.bb:PR = "${INC_PR}.0"
  5742. recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3"
  5743. </literallayout>
  5744. The first line of the example establishes the baseline
  5745. revision to be used for all recipes that use the
  5746. <filename>include</filename> file.
  5747. The remaining lines in the example are from individual
  5748. recipes and show how the <filename>PR</filename> value
  5749. is set.
  5750. </para>
  5751. </glossdef>
  5752. </glossentry>
  5753. <glossentry id='var-INCOMPATIBLE_LICENSE'><glossterm>INCOMPATIBLE_LICENSE</glossterm>
  5754. <info>
  5755. INCOMPATIBLE_LICENSE[doc] = "Specifies a space-separated list of license names (as they would appear in LICENSE) that should be excluded from the build."
  5756. </info>
  5757. <glossdef>
  5758. <para role="glossdeffirst">
  5759. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5760. Specifies a space-separated list of license names
  5761. (as they would appear in
  5762. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>)
  5763. that should be excluded from the build.
  5764. Recipes that provide no alternatives to listed incompatible
  5765. licenses are not built.
  5766. Packages that are individually licensed with the specified
  5767. incompatible licenses will be deleted.
  5768. </para>
  5769. <note>
  5770. This functionality is only regularly tested using
  5771. the following setting:
  5772. <literallayout class='monospaced'>
  5773. INCOMPATIBLE_LICENSE = "GPL-3.0 LGPL-3.0 AGPL-3.0"
  5774. </literallayout>
  5775. Although you can use other settings, you might be required
  5776. to remove dependencies on or provide alternatives to
  5777. components that are required to produce a functional system
  5778. image.
  5779. </note>
  5780. </glossdef>
  5781. </glossentry>
  5782. <glossentry id='var-INHERIT'><glossterm>INHERIT</glossterm>
  5783. <info>
  5784. INHERIT[doc] = "Causes the named class to be inherited at this point during parsing. The variable is only valid in configuration files."
  5785. </info>
  5786. <glossdef>
  5787. <para role="glossdeffirst">
  5788. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5789. Causes the named class to be inherited at
  5790. this point during parsing.
  5791. The variable is only valid in configuration files.
  5792. </para>
  5793. </glossdef>
  5794. </glossentry>
  5795. <glossentry id='var-INHERIT_DISTRO'><glossterm>INHERIT_DISTRO</glossterm>
  5796. <info>
  5797. INHERIT_DISTRO[doc] = "Lists classes that will be inherited at the distribution level. It is unlikely that you want to edit this variable."
  5798. </info>
  5799. <glossdef>
  5800. <para role="glossdeffirst">
  5801. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5802. Lists classes that will be inherited at the
  5803. distribution level.
  5804. It is unlikely that you want to edit this variable.
  5805. </para>
  5806. <para>
  5807. The default value of the variable is set as follows in the
  5808. <filename>meta/conf/distro/defaultsetup.conf</filename>
  5809. file:
  5810. <literallayout class='monospaced'>
  5811. INHERIT_DISTRO ?= "debian devshell sstate license"
  5812. </literallayout>
  5813. </para>
  5814. </glossdef>
  5815. </glossentry>
  5816. <glossentry id='var-INHIBIT_DEFAULT_DEPS'><glossterm>INHIBIT_DEFAULT_DEPS</glossterm>
  5817. <info>
  5818. INHIBIT_DEFAULT_DEPS[doc] = "Prevents the default dependencies, namely the C compiler and standard C library (libc), from being added to DEPENDS."
  5819. </info>
  5820. <glossdef>
  5821. <para role="glossdeffirst">
  5822. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5823. Prevents the default dependencies, namely the C compiler
  5824. and standard C library (libc), from being added to
  5825. <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>.
  5826. This variable is usually used within recipes that do not
  5827. require any compilation using the C compiler.
  5828. </para>
  5829. <para>
  5830. Set the variable to "1" to prevent the default dependencies
  5831. from being added.
  5832. </para>
  5833. </glossdef>
  5834. </glossentry>
  5835. <glossentry id='var-INHIBIT_PACKAGE_DEBUG_SPLIT'><glossterm>INHIBIT_PACKAGE_DEBUG_SPLIT</glossterm>
  5836. <info>
  5837. INHIBIT_PACKAGE_DEBUG_SPLIT[doc] = "If set to "1", prevents the OpenEmbedded build system from splitting out debug information during packaging"
  5838. </info>
  5839. <glossdef>
  5840. <para role="glossdeffirst">
  5841. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5842. Prevents the OpenEmbedded build system from splitting
  5843. out debug information during packaging.
  5844. By default, the build system splits out debugging
  5845. information during the
  5846. <link linkend='ref-tasks-package'><filename>do_package</filename></link>
  5847. task.
  5848. For more information on how debug information is split out,
  5849. see the
  5850. <link linkend='var-PACKAGE_DEBUG_SPLIT_STYLE'><filename>PACKAGE_DEBUG_SPLIT_STYLE</filename></link>
  5851. variable.
  5852. </para>
  5853. <para>
  5854. To prevent the build system from splitting out
  5855. debug information during packaging, set the
  5856. <filename>INHIBIT_PACKAGE_DEBUG_SPLIT</filename> variable
  5857. as follows:
  5858. <literallayout class='monospaced'>
  5859. INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
  5860. </literallayout>
  5861. </para>
  5862. </glossdef>
  5863. </glossentry>
  5864. <glossentry id='var-INHIBIT_PACKAGE_STRIP'><glossterm>INHIBIT_PACKAGE_STRIP</glossterm>
  5865. <info>
  5866. INHIBIT_PACKAGE_STRIP[doc] = "If set to "1", causes the build to not strip binaries in resulting packages."
  5867. </info>
  5868. <glossdef>
  5869. <para role="glossdeffirst">
  5870. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5871. If set to "1", causes the build to not strip binaries in
  5872. resulting packages and prevents the
  5873. <filename>-dbg</filename> package from containing the
  5874. source files.
  5875. </para>
  5876. <para>
  5877. By default, the OpenEmbedded build system strips
  5878. binaries and puts the debugging symbols into
  5879. <filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}-dbg</filename>.
  5880. Consequently, you should not set
  5881. <filename>INHIBIT_PACKAGE_STRIP</filename> when you plan
  5882. to debug in general.
  5883. </para>
  5884. </glossdef>
  5885. </glossentry>
  5886. <glossentry id='var-INITRAMFS_FSTYPES'><glossterm>INITRAMFS_FSTYPES</glossterm>
  5887. <info>
  5888. INITRAMFS_FSTYPES[doc] = "Defines the format for the output image of an initial RAM filesystem (initramfs), which is used during boot."
  5889. </info>
  5890. <glossdef>
  5891. <para role="glossdeffirst">
  5892. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5893. Defines the format for the output image of an initial
  5894. RAM filesystem (initramfs), which is used during boot.
  5895. Supported formats are the same as those supported by the
  5896. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  5897. variable.
  5898. </para>
  5899. <para>
  5900. The default value of this variable, which is set in the
  5901. <filename>meta/conf/bitbake.conf</filename> configuration
  5902. file in the
  5903. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>,
  5904. is "cpio.gz".
  5905. The Linux kernel's initramfs mechanism, as opposed to the
  5906. initial RAM filesystem
  5907. <ulink url='https://en.wikipedia.org/wiki/Initrd'>initrd</ulink>
  5908. mechanism, expects an optionally compressed cpio
  5909. archive.
  5910. </para>
  5911. </glossdef>
  5912. </glossentry>
  5913. <glossentry id='var-INITRAMFS_IMAGE'><glossterm>INITRAMFS_IMAGE</glossterm>
  5914. <info>
  5915. INITRAMFS_IMAGE[doc] = "Specifies the PROVIDES name of an image recipe that is used to build an initial RAM filesystem (initramfs) image."
  5916. </info>
  5917. <glossdef>
  5918. <para role="glossdeffirst">
  5919. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5920. Specifies the
  5921. <link linkend='var-PROVIDES'><filename>PROVIDES</filename></link>
  5922. name of an image recipe that is used to build an initial
  5923. RAM filesystem (initramfs) image.
  5924. An initramfs provides a temporary root filesystem used for
  5925. early system initialization (e.g. loading of modules
  5926. needed to locate and mount the "real" root filesystem).
  5927. The specified recipe is added as a dependency of the root
  5928. filesystem recipe (e.g.
  5929. <filename>core-image-sato</filename>).
  5930. See the <filename>meta/recipes-core/images/core-image-minimal-initramfs.bb</filename>
  5931. recipe in the
  5932. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>
  5933. for an example initramfs recipe.
  5934. To select this recipe to provide the initramfs,
  5935. set <filename>INITRAMFS_IMAGE</filename> to
  5936. "core-image-minimal-initramfs".
  5937. <note>
  5938. The initramfs image recipe should set
  5939. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  5940. to
  5941. <link linkend='var-INITRAMFS_FSTYPES'><filename>INITRAMFS_FSTYPES</filename></link>.
  5942. </note>
  5943. </para>
  5944. <para>
  5945. You can also find more information by referencing the
  5946. <filename>meta/poky/conf/local.conf.sample.extended</filename>
  5947. configuration file in the
  5948. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>,
  5949. the
  5950. <link linkend='ref-classes-image'><filename>image</filename></link>
  5951. class, and the
  5952. <link linkend='ref-classes-kernel'><filename>kernel</filename></link>
  5953. class to see how to use the
  5954. <filename>INITRAMFS_IMAGE</filename> variable.
  5955. </para>
  5956. <para>
  5957. If <filename>INITRAMFS_IMAGE</filename> is empty, which is
  5958. the default, then no initramfs is built.
  5959. </para>
  5960. <para>
  5961. For more information, you can also see the
  5962. <link linkend='var-INITRAMFS_IMAGE_BUNDLE'><filename>INITRAMFS_IMAGE_BUNDLE</filename></link>
  5963. variable, which allows the generated image to be bundled
  5964. inside the kernel image.
  5965. Additionally, for information on creating an initramfs, see
  5966. the
  5967. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-an-initramfs-image'>Building an Initial RAM Filesystem (initramfs) Image</ulink>"
  5968. section in the Yocto Project Development Manual.
  5969. </para>
  5970. </glossdef>
  5971. </glossentry>
  5972. <glossentry id='var-INITRAMFS_IMAGE_BUNDLE'><glossterm>INITRAMFS_IMAGE_BUNDLE</glossterm>
  5973. <info>
  5974. INITRAMFS_IMAGE_BUNDLE[doc] = "Controls whether or not the image recipe specified by INITRAMFS_IMAGE is run through an extra pass (do_bundle_initramfs) during kernel compilation in order to build a single binary that contains both the kernel image and the initial RAM filesystem (initramfs)."
  5975. </info>
  5976. <glossdef>
  5977. <para role="glossdeffirst">
  5978. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5979. Controls whether or not the image recipe specified by
  5980. <link linkend='var-INITRAMFS_IMAGE'><filename>INITRAMFS_IMAGE</filename></link>
  5981. is run through an extra pass
  5982. (<link linkend='ref-tasks-bundle_initramfs'><filename>do_bundle_initramfs</filename></link>)
  5983. during kernel compilation in order to build a single binary
  5984. that contains both the kernel image and the initial RAM
  5985. filesystem (initramfs) image.
  5986. This makes use of the
  5987. <link linkend='var-CONFIG_INITRAMFS_SOURCE'><filename>CONFIG_INITRAMFS_SOURCE</filename></link>
  5988. kernel feature.
  5989. <note>
  5990. Using an extra compilation pass to bundle the initramfs
  5991. avoids a circular dependency between the kernel recipe and
  5992. the initramfs recipe should the initramfs include kernel
  5993. modules.
  5994. Should that be the case, the initramfs recipe depends on
  5995. the kernel for the kernel modules, and the kernel depends
  5996. on the initramfs recipe since the initramfs is bundled
  5997. inside the kernel image.
  5998. </note>
  5999. </para>
  6000. <para>
  6001. The combined binary is deposited into the
  6002. <filename>tmp/deploy</filename> directory, which is part
  6003. of the
  6004. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>.
  6005. </para>
  6006. <para>
  6007. Setting the variable to "1" in a configuration file causes the
  6008. OpenEmbedded build system to generate a kernel image with the
  6009. initramfs specified in
  6010. <link linkend='var-INITRAMFS_IMAGE'><filename>INITRAMFS_IMAGE</filename></link>
  6011. bundled within:
  6012. <literallayout class='monospaced'>
  6013. INITRAMFS_IMAGE_BUNDLE = "1"
  6014. </literallayout>
  6015. By default, the
  6016. <link linkend='ref-classes-kernel'><filename>kernel</filename></link>
  6017. class sets this variable to a null string as follows:
  6018. <literallayout class='monospaced'>
  6019. INITRAMFS_IMAGE_BUNDLE ?= ""
  6020. </literallayout>
  6021. <note>
  6022. You must set the
  6023. <filename>INITRAMFS_IMAGE_BUNDLE</filename> variable in
  6024. a configuration file.
  6025. You cannot set the variable in a recipe file.
  6026. </note>
  6027. See the
  6028. <ulink url='&YOCTO_GIT_URL;/cgit/cgit.cgi/poky/tree/meta-poky/conf/local.conf.sample.extended'><filename>local.conf.sample.extended</filename></ulink>
  6029. file for additional information.
  6030. Also, for information on creating an initramfs, see the
  6031. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-an-initramfs-image'>Building an Initial RAM Filesystem (initramfs) Image</ulink>"
  6032. section in the Yocto Project Development Manual.
  6033. </para>
  6034. </glossdef>
  6035. </glossentry>
  6036. <glossentry id='var-INITRD'><glossterm>INITRD</glossterm>
  6037. <info>
  6038. INITRD[doc] = "Indicates a list of filesystem images to concatenate and use as an initial RAM disk (initrd)."
  6039. </info>
  6040. <glossdef>
  6041. <para role="glossdeffirst">
  6042. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6043. Indicates list of filesystem images to concatenate and use
  6044. as an initial RAM disk (<filename>initrd</filename>).
  6045. </para>
  6046. <para>
  6047. The <filename>INITRD</filename> variable is an optional
  6048. variable used with the
  6049. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  6050. class.
  6051. </para>
  6052. </glossdef>
  6053. </glossentry>
  6054. <glossentry id='var-INITRD_IMAGE'><glossterm>INITRD_IMAGE</glossterm>
  6055. <info>
  6056. INITRD_IMAGE[doc] = "When building a "live" bootable image (i.e. when IMAGE_FSTYPES contains "live"), INITRD_IMAGE specifies the image recipe that should be built to provide the initial RAM disk image."
  6057. </info>
  6058. <glossdef>
  6059. <para role="glossdeffirst">
  6060. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6061. When building a "live" bootable image (i.e. when
  6062. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  6063. contains "live"), <filename>INITRD_IMAGE</filename>
  6064. specifies the image recipe that should be built
  6065. to provide the initial RAM disk image.
  6066. The default value is "core-image-minimal-initramfs".
  6067. </para>
  6068. <para>
  6069. See the
  6070. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  6071. class for more information.
  6072. </para>
  6073. </glossdef>
  6074. </glossentry>
  6075. <glossentry id='var-INITSCRIPT_NAME'><glossterm>INITSCRIPT_NAME</glossterm>
  6076. <info>
  6077. INITSCRIPT_NAME[doc] = "The filename of the initialization script as installed to ${sysconfdir}/init.d."
  6078. </info>
  6079. <glossdef>
  6080. <para role="glossdeffirst">
  6081. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6082. The filename of the initialization script as installed to
  6083. <filename>${sysconfdir}/init.d</filename>.
  6084. </para>
  6085. <para>
  6086. This variable is used in recipes when using <filename>update-rc.d.bbclass</filename>.
  6087. The variable is mandatory.
  6088. </para>
  6089. </glossdef>
  6090. </glossentry>
  6091. <glossentry id='var-INITSCRIPT_PACKAGES'><glossterm>INITSCRIPT_PACKAGES</glossterm>
  6092. <info>
  6093. INITSCRIPT_PACKAGES[doc] = "A list of the packages that contain initscripts. This variable is used in recipes when using update-rc.d.bbclass. The variable is optional and defaults to the PN variable."
  6094. </info>
  6095. <glossdef>
  6096. <para role="glossdeffirst">
  6097. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6098. A list of the packages that contain initscripts.
  6099. If multiple packages are specified, you need to append the package name
  6100. to the other <filename>INITSCRIPT_*</filename> as an override.
  6101. </para>
  6102. <para>
  6103. This variable is used in recipes when using <filename>update-rc.d.bbclass</filename>.
  6104. The variable is optional and defaults to the
  6105. <link linkend='var-PN'><filename>PN</filename></link> variable.
  6106. </para>
  6107. </glossdef>
  6108. </glossentry>
  6109. <glossentry id='var-INITSCRIPT_PARAMS'><glossterm>INITSCRIPT_PARAMS</glossterm>
  6110. <info>
  6111. INITSCRIPT_PARAMS[doc] = "Specifies the options to pass to update-rc.d. The variable is mandatory and is used in recipes when using update-rc.d.bbclass."
  6112. </info>
  6113. <glossdef>
  6114. <para role="glossdeffirst">
  6115. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6116. Specifies the options to pass to <filename>update-rc.d</filename>.
  6117. Here is an example:
  6118. <literallayout class='monospaced'>
  6119. INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."
  6120. </literallayout>
  6121. </para>
  6122. <para>
  6123. In this example, the script has a runlevel of 99,
  6124. starts the script in initlevels 2 and 5, and
  6125. stops the script in levels 0, 1 and 6.
  6126. </para>
  6127. <para>
  6128. The variable's default value is "defaults", which is
  6129. set in the
  6130. <link linkend='ref-classes-update-rc.d'><filename>update-rc.d</filename></link>
  6131. class.
  6132. </para>
  6133. <para>
  6134. The value in
  6135. <filename>INITSCRIPT_PARAMS</filename> is passed through
  6136. to the <filename>update-rc.d</filename> command.
  6137. For more information on valid parameters, please see the
  6138. <filename>update-rc.d</filename> manual page at
  6139. <ulink url='http://www.tin.org/bin/man.cgi?section=8&amp;topic=update-rc.d'></ulink>.
  6140. </para>
  6141. </glossdef>
  6142. </glossentry>
  6143. <glossentry id='var-INSANE_SKIP'><glossterm>INSANE_SKIP</glossterm>
  6144. <info>
  6145. INSANE_SKIP[doc] = "Specifies the QA checks to skip for a specific package within a recipe."
  6146. </info>
  6147. <glossdef>
  6148. <para role="glossdeffirst">
  6149. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6150. Specifies the QA checks to skip for a specific package
  6151. within a recipe.
  6152. For example, to skip the check for symbolic link
  6153. <filename>.so</filename> files in the main package of a
  6154. recipe, add the following to the recipe.
  6155. The package name override must be used, which in this
  6156. example is <filename>${PN}</filename>:
  6157. <literallayout class='monospaced'>
  6158. INSANE_SKIP_${PN} += "dev-so"
  6159. </literallayout>
  6160. </para>
  6161. <para>
  6162. See the "<link linkend='ref-classes-insane'><filename>insane.bbclass</filename></link>"
  6163. section for a list of the valid QA checks you can
  6164. specify using this variable.
  6165. </para>
  6166. </glossdef>
  6167. </glossentry>
  6168. <glossentry id='var-INSTALL_TIMEZONE_FILE'><glossterm>INSTALL_TIMEZONE_FILE</glossterm>
  6169. <info>
  6170. INSTALL_TIMEZONE_FILE[doc] = "Enables installation of the /etc/timezone file."
  6171. </info>
  6172. <glossdef>
  6173. <para role="glossdeffirst">
  6174. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6175. By default, the <filename>tzdata</filename> recipe packages
  6176. an <filename>/etc/timezone</filename> file.
  6177. Set the <filename>INSTALL_TIMEZONE_FILE</filename>
  6178. variable to "0" at the configuration level to disable this
  6179. behavior.
  6180. </para>
  6181. </glossdef>
  6182. </glossentry>
  6183. <glossentry id='var-IPK_FEED_URIS'><glossterm>IPK_FEED_URIS</glossterm>
  6184. <info>
  6185. IPK_FEED_URIS[doc] = "List of ipkg feed records to put into generated image."
  6186. </info>
  6187. <glossdef>
  6188. <para role="glossdeffirst">
  6189. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6190. When the IPK backend is in use and package management
  6191. is enabled on the target, you can use this variable to
  6192. set up <filename>opkg</filename> in the target image
  6193. to point to package feeds on a nominated server.
  6194. Once the feed is established, you can perform
  6195. installations or upgrades using the package manager
  6196. at runtime.
  6197. </para>
  6198. </glossdef>
  6199. </glossentry>
  6200. <!--
  6201. <glossentry id='var-INTERCEPT_DIR'><glossterm>INTERCEPT_DIR</glossterm>
  6202. <glossdef>
  6203. <para>
  6204. An environment variable that defines the directory where
  6205. post installation hooks are installed for the
  6206. post install environment.
  6207. This variable is fixed as follows:
  6208. <literallayout class='monospaced'>
  6209. ${WORKDIR}/intercept_scripts
  6210. </literallayout>
  6211. </para>
  6212. <para>
  6213. After installation of a target's root filesystem,
  6214. post installation scripts, which are essentially bash scripts,
  6215. are all executed just a single time.
  6216. Limiting execution of these scripts minimizes installation
  6217. time that would be lengthened due to certain packages
  6218. triggering redundant operations.
  6219. For example, consider the installation of font packages
  6220. as a common example.
  6221. Without limiting the execution of post installation scripts,
  6222. all font directories would be rescanned to create the
  6223. cache after each individual font package was installed.
  6224. </para>
  6225. <para>
  6226. Do not edit the <filename>INTERCEPT_DIR</filename>
  6227. variable.
  6228. </para>
  6229. </glossdef>
  6230. </glossentry>
  6231. -->
  6232. </glossdiv>
  6233. <!-- <glossdiv id='var-glossary-j'><title>J</title>-->
  6234. <!-- </glossdiv>-->
  6235. <glossdiv id='var-glossary-k'><title>K</title>
  6236. <glossentry id='var-KARCH'><glossterm>KARCH</glossterm>
  6237. <info>
  6238. KARCH[doc] = "Defines the kernel architecture used when assembling the configuration. You define the KARCH variable in the BSP Descriptions."
  6239. </info>
  6240. <glossdef>
  6241. <para role="glossdeffirst">
  6242. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6243. Defines the kernel architecture used when assembling
  6244. the configuration.
  6245. Architectures supported for this release are:
  6246. <literallayout class='monospaced'>
  6247. powerpc
  6248. i386
  6249. x86_64
  6250. arm
  6251. qemu
  6252. mips
  6253. </literallayout>
  6254. </para>
  6255. <para>
  6256. You define the <filename>KARCH</filename> variable in the
  6257. <ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#bsp-descriptions'>BSP Descriptions</ulink>.
  6258. </para>
  6259. </glossdef>
  6260. </glossentry>
  6261. <glossentry id='var-KBRANCH'><glossterm>KBRANCH</glossterm>
  6262. <info>
  6263. KBRANCH[doc] = "A regular expression used by the build process to explicitly identify the kernel branch that is validated, patched and configured during a build."
  6264. </info>
  6265. <glossdef>
  6266. <para role="glossdeffirst">
  6267. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6268. A regular expression used by the build process to explicitly
  6269. identify the kernel branch that is validated, patched,
  6270. and configured during a build.
  6271. You must set this variable to ensure the exact kernel
  6272. branch you want is being used by the build process.
  6273. </para>
  6274. <para>
  6275. Values for this variable are set in the kernel's recipe
  6276. file and the kernel's append file.
  6277. For example, if you are using the Yocto Project kernel that
  6278. is based on the Linux 3.14 kernel, the kernel recipe file
  6279. is the
  6280. <filename>meta/recipes-kernel/linux/linux-yocto_3.14.bb</filename>
  6281. file.
  6282. Following is an example for a kernel recipe file:
  6283. <literallayout class='monospaced'>
  6284. KBRANCH ?= "standard/base"
  6285. </literallayout>
  6286. </para>
  6287. <para>
  6288. This variable is also used from the kernel's append file
  6289. to identify the kernel branch specific to a particular
  6290. machine or target hardware.
  6291. The kernel's append file is located in the BSP layer for
  6292. a given machine.
  6293. For example, the kernel append file for the Emenlow BSP is in the
  6294. <filename>meta-intel</filename> Git repository and is named
  6295. <filename>meta-emenlow/recipes-kernel/linux/linux-yocto_3.14.bbappend</filename>.
  6296. Here are the related statements from the append file:
  6297. <literallayout class='monospaced'>
  6298. COMPATIBLE_MACHINE_emenlow-noemgd = "emenlow-noemgd"
  6299. KMACHINE_emenlow-noemgd = "emenlow"
  6300. KBRANCH_emenlow-noemgd = "standard/base"
  6301. KERNEL_FEATURES_append_emenlow-noemgd = " features/drm-gma500/drm-gma500.scc"
  6302. </literallayout>
  6303. The <filename>KBRANCH</filename> statement identifies
  6304. the kernel branch to use when building for the Emenlow
  6305. BSP.
  6306. </para>
  6307. </glossdef>
  6308. </glossentry>
  6309. <glossentry id='var-KBUILD_DEFCONFIG'><glossterm>KBUILD_DEFCONFIG</glossterm>
  6310. <info>
  6311. KBUILD_DEFCONFIG[doc] = "Specifies an "in-tree" kernel configuration file for use during a kernel build."
  6312. </info>
  6313. <glossdef>
  6314. <para role="glossdeffirst">
  6315. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6316. When used with the
  6317. <link linkend='ref-classes-kernel-yocto'><filename>kernel-yocto</filename></link>
  6318. class, specifies an "in-tree" kernel configuration file
  6319. for use during a kernel build.
  6320. </para>
  6321. <para>
  6322. Typically, when using a <filename>defconfig</filename> to
  6323. configure a kernel during a build, you place the
  6324. file in your layer in the same manner as you would
  6325. patch files and configuration fragment files (i.e.
  6326. "out-of-tree").
  6327. However, if you want to use a <filename>defconfig</filename>
  6328. file that is part of the kernel tree (i.e. "in-tree"),
  6329. you can use the
  6330. <filename>KBUILD_DEFCONFIG</filename> variable to point
  6331. to the <filename>defconfig</filename> file.
  6332. </para>
  6333. <para>
  6334. To use the variable, set it in the append file for your
  6335. kernel recipe using the following form:
  6336. <literallayout class='monospaced'>
  6337. KBUILD_DEFCONFIG_<link linkend='var-KMACHINE'>KMACHINE</link> ?= <replaceable>defconfig_file</replaceable>
  6338. </literallayout>
  6339. Here is an example from a "raspberrypi2"
  6340. <filename>KMACHINE</filename> build that uses a
  6341. <filename>defconfig</filename> file named
  6342. "bcm2709_defconfig":
  6343. <literallayout class='monospaced'>
  6344. KBUILD_DEFCONFIG_raspberrypi2 = "bcm2709_defconfig"
  6345. </literallayout>
  6346. As an alternative, you can use the following within your
  6347. append file:
  6348. <literallayout class='monospaced'>
  6349. KBUILD_DEFCONFIG_pn-linux-yocto ?= <replaceable>defconfig_file</replaceable>
  6350. </literallayout>
  6351. For more information on how to use the
  6352. <filename>KBUILD_DEFCONFIG</filename> variable, see the
  6353. "<ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#using-an-in-tree-defconfig-file'>Using an "In-Tree" <filename>defconfig</filename> File</ulink>"
  6354. section.
  6355. </para>
  6356. </glossdef>
  6357. </glossentry>
  6358. <glossentry id='var-KERNEL_ALT_IMAGETYPE'><glossterm>KERNEL_ALT_IMAGETYPE</glossterm>
  6359. <info>
  6360. KERNEL_ALT_IMAGETYPE[doc] = "Specifies an alternate kernel image type for creation."
  6361. </info>
  6362. <glossdef>
  6363. <para role="glossdeffirst">
  6364. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6365. Specifies an alternate kernel image type for creation in
  6366. addition to the kernel image type specified using the
  6367. <link linkend='var-KERNEL_IMAGETYPE'><filename>KERNEL_IMAGETYPE</filename></link>
  6368. variable.
  6369. </para>
  6370. </glossdef>
  6371. </glossentry>
  6372. <glossentry id='var-KERNEL_CLASSES'><glossterm>KERNEL_CLASSES</glossterm>
  6373. <info>
  6374. KERNEL_CLASSES[doc] = "A list of classes defining kernel image types that kernel class should inherit."
  6375. </info>
  6376. <glossdef>
  6377. <para role="glossdeffirst">
  6378. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6379. A list of classes defining kernel image types that the
  6380. <link linkend='ref-classes-kernel'><filename>kernel</filename></link>
  6381. class should inherit.
  6382. You typically append this variable to enable extended image
  6383. types.
  6384. An example is the "kernel-fitimage", which enables
  6385. fitImage support and resides in
  6386. <filename>meta/classes/kernel-fitimage.bbclass</filename>.
  6387. You can register custom kernel image types with the
  6388. <filename>kernel</filename> class using this variable.
  6389. </para>
  6390. </glossdef>
  6391. </glossentry>
  6392. <glossentry id='var-KERNEL_DEVICETREE'><glossterm>KERNEL_DEVICETREE</glossterm>
  6393. <info>
  6394. KERNEL_DEVICETREE[doc] = "Specifies the name of the generated Linux kernel device tree (i.e. the <filename>.dtb</filename>) file."
  6395. </info>
  6396. <glossdef>
  6397. <para role="glossdeffirst">
  6398. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6399. Specifies the name of the generated Linux kernel device tree
  6400. (i.e. the <filename>.dtb</filename>) file.
  6401. <note>
  6402. Legacy support exists for specifying the full path
  6403. to the device tree.
  6404. However, providing just the <filename>.dtb</filename>
  6405. file is preferred.
  6406. </note>
  6407. In order to use this variable, you must have the include
  6408. files in your kernel recipe:
  6409. <literallayout class='monospaced'>
  6410. require recipes-kernel/linux/linux-dtb.inc
  6411. </literallayout>
  6412. or
  6413. <literallayout class='monospaced'>
  6414. require recipes-kernel/linux/linux-yocto.inc
  6415. </literallayout>
  6416. </para>
  6417. </glossdef>
  6418. </glossentry>
  6419. <glossentry id='var-KERNEL_EXTRA_ARGS'><glossterm>KERNEL_EXTRA_ARGS</glossterm>
  6420. <info>
  6421. KERNEL_EXTRA_ARGS[doc] = "Specifies additional make command-line arguments the OpenEmbedded build system passes on when compiling the kernel."
  6422. </info>
  6423. <glossdef>
  6424. <para role="glossdeffirst">
  6425. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6426. Specifies additional <filename>make</filename>
  6427. command-line arguments the OpenEmbedded build system
  6428. passes on when compiling the kernel.
  6429. </para>
  6430. </glossdef>
  6431. </glossentry>
  6432. <glossentry id='var-KERNEL_FEATURES'><glossterm>KERNEL_FEATURES</glossterm>
  6433. <info>
  6434. KERNEL_FEATURES[doc] = "Includes additional metadata from the Yocto Project kernel Git repository. The metadata you add through this variable includes config fragments and features descriptions."
  6435. </info>
  6436. <glossdef>
  6437. <para role="glossdeffirst">
  6438. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6439. Includes additional metadata from the Yocto Project kernel Git repository.
  6440. In the OpenEmbedded build system, the default Board Support Packages (BSPs)
  6441. <ulink url='&YOCTO_DOCS_DEV_URL;#metadata'>Metadata</ulink>
  6442. is provided through
  6443. the <link linkend='var-KMACHINE'><filename>KMACHINE</filename></link>
  6444. and <link linkend='var-KBRANCH'><filename>KBRANCH</filename></link> variables.
  6445. You can use the <filename>KERNEL_FEATURES</filename> variable to further
  6446. add metadata for all BSPs.
  6447. </para>
  6448. <para>
  6449. The metadata you add through this variable includes config fragments and
  6450. features descriptions,
  6451. which usually includes patches as well as config fragments.
  6452. You typically override the <filename>KERNEL_FEATURES</filename> variable
  6453. for a specific machine.
  6454. In this way, you can provide validated, but optional, sets of kernel
  6455. configurations and features.
  6456. </para>
  6457. <para>
  6458. For example, the following adds <filename>netfilter</filename> to all
  6459. the Yocto Project kernels and adds sound support to the <filename>qemux86</filename>
  6460. machine:
  6461. <literallayout class='monospaced'>
  6462. # Add netfilter to all linux-yocto kernels
  6463. KERNEL_FEATURES="features/netfilter/netfilter.scc"
  6464. # Add sound support to the qemux86 machine
  6465. KERNEL_FEATURES_append_qemux86=" cfg/sound.scc"
  6466. </literallayout></para>
  6467. </glossdef>
  6468. </glossentry>
  6469. <glossentry id='var-KERNEL_IMAGE_BASE_NAME'><glossterm>KERNEL_IMAGE_BASE_NAME</glossterm>
  6470. <info>
  6471. KERNEL_IMAGE_BASE_NAME[doc] = "The base name of the kernel image."
  6472. </info>
  6473. <glossdef>
  6474. <para role="glossdeffirst">
  6475. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6476. The base name of the kernel image.
  6477. This variable is set in the
  6478. <link linkend='ref-classes-kernel'>kernel</link> class
  6479. as follows:
  6480. <literallayout class='monospaced'>
  6481. KERNEL_IMAGE_BASE_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}"
  6482. </literallayout>
  6483. </para>
  6484. <para>
  6485. See the
  6486. <link linkend='var-PKGE'><filename>PKGE</filename></link>,
  6487. <link linkend='var-PKGV'><filename>PKGV</filename></link>,
  6488. <link linkend='var-PKGR'><filename>PKGR</filename></link>,
  6489. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>,
  6490. and
  6491. <link linkend='var-DATETIME'><filename>DATETIME</filename></link>
  6492. variables for additional information.
  6493. </para>
  6494. </glossdef>
  6495. </glossentry>
  6496. <glossentry id='var-KERNEL_IMAGE_MAXSIZE'><glossterm>KERNEL_IMAGE_MAXSIZE</glossterm>
  6497. <info>
  6498. KERNEL_IMAGE_MAXSIZE[doc] = "The maximum allowable size in kilobytes of the kernel image file."
  6499. </info>
  6500. <glossdef>
  6501. <para role="glossdeffirst">
  6502. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6503. Specifies the maximum size of the kernel image file in
  6504. kilobytes.
  6505. If <filename>KERNEL_IMAGE_MAXSIZE</filename> is set,
  6506. the size of the kernel image file is checked against
  6507. the set value during the
  6508. <link linkend='ref-tasks-sizecheck'><filename>do_sizecheck</filename></link>
  6509. task.
  6510. The task fails if the kernel image file is larger than
  6511. the setting.
  6512. </para>
  6513. <para>
  6514. <filename>KERNEL_IMAGE_MAXSIZE</filename> is useful for
  6515. target devices that have a limited amount of space in
  6516. which the kernel image must be stored.
  6517. </para>
  6518. <para>
  6519. By default, this variable is not set, which means the
  6520. size of the kernel image is not checked.
  6521. </para>
  6522. </glossdef>
  6523. </glossentry>
  6524. <glossentry id='var-KERNEL_IMAGETYPE'><glossterm>KERNEL_IMAGETYPE</glossterm>
  6525. <info>
  6526. KERNEL_IMAGETYPE[doc] = "The type of kernel to build for a device, usually set by the machine configuration files and defaults to 'zImage'."
  6527. </info>
  6528. <glossdef>
  6529. <para role="glossdeffirst">
  6530. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6531. The type of kernel to build for a device, usually set by the
  6532. machine configuration files and defaults to "zImage".
  6533. This variable is used
  6534. when building the kernel and is passed to <filename>make</filename> as the target to
  6535. build.
  6536. </para>
  6537. <para>
  6538. If you want to build an alternate kernel image type, use the
  6539. <link linkend='var-KERNEL_ALT_IMAGETYPE'><filename>KERNEL_ALT_IMAGETYPE</filename></link>
  6540. variable.
  6541. </para>
  6542. </glossdef>
  6543. </glossentry>
  6544. <glossentry id='var-KERNEL_MODULE_AUTOLOAD'><glossterm>KERNEL_MODULE_AUTOLOAD</glossterm>
  6545. <info>
  6546. KERNEL_MODULE_AUTOLOAD[doc] = "Lists kernel modules that need to be auto-loaded during boot"
  6547. </info>
  6548. <glossdef>
  6549. <para role="glossdeffirst">
  6550. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6551. Lists kernel modules that need to be auto-loaded during
  6552. boot.
  6553. <note>
  6554. This variable replaces the deprecated
  6555. <link linkend='var-module_autoload'><filename>module_autoload</filename></link>
  6556. variable.
  6557. </note>
  6558. </para>
  6559. <para>
  6560. You can use the <filename>KERNEL_MODULE_AUTOLOAD</filename>
  6561. variable anywhere that it can be
  6562. recognized by the kernel recipe or by an out-of-tree kernel
  6563. module recipe (e.g. a machine configuration file, a
  6564. distribution configuration file, an append file for the
  6565. recipe, or the recipe itself).
  6566. </para>
  6567. <para>
  6568. Specify it as follows:
  6569. <literallayout class='monospaced'>
  6570. KERNEL_MODULE_AUTOLOAD += "<replaceable>module_name1</replaceable> <replaceable>module_name2</replaceable> <replaceable>module_name3</replaceable>"
  6571. </literallayout>
  6572. </para>
  6573. <para>
  6574. Including <filename>KERNEL_MODULE_AUTOLOAD</filename> causes
  6575. the OpenEmbedded build system to populate the
  6576. <filename>/etc/modules-load.d/modname.conf</filename>
  6577. file with the list of modules to be auto-loaded on boot.
  6578. The modules appear one-per-line in the file.
  6579. Here is an example of the most common use case:
  6580. <literallayout class='monospaced'>
  6581. KERNEL_MODULE_AUTOLOAD += "<replaceable>module_name</replaceable>"
  6582. </literallayout>
  6583. </para>
  6584. <para>
  6585. For information on how to populate the
  6586. <filename>modname.conf</filename> file with
  6587. <filename>modprobe.d</filename> syntax lines, see the
  6588. <link linkend='var-KERNEL_MODULE_PROBECONF'><filename>KERNEL_MODULE_PROBECONF</filename></link>
  6589. variable.
  6590. </para>
  6591. </glossdef>
  6592. </glossentry>
  6593. <glossentry id='var-KERNEL_MODULE_PROBECONF'><glossterm>KERNEL_MODULE_PROBECONF</glossterm>
  6594. <info>
  6595. KERNEL_MODULE_PROBECONF[doc] = "Lists kernel modules for which the build system expects to find module_conf_* values that specify configuration for each of the modules."
  6596. </info>
  6597. <glossdef>
  6598. <para role="glossdeffirst">
  6599. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6600. Provides a list of modules for which the OpenEmbedded
  6601. build system expects to find
  6602. <filename>module_conf_</filename><replaceable>modname</replaceable>
  6603. values that specify configuration for each of the modules.
  6604. For information on how to provide those module
  6605. configurations, see the
  6606. <link linkend='var-module_conf'><filename>module_conf_*</filename></link>
  6607. variable.
  6608. </para>
  6609. </glossdef>
  6610. </glossentry>
  6611. <glossentry id='var-KERNEL_PATH'><glossterm>KERNEL_PATH</glossterm>
  6612. <info>
  6613. KERNEL_PATH[doc] = "The location of the kernel sources. This variable is set to the value of the STAGING_KERNEL_DIR within the module class (module.bbclass)."
  6614. </info>
  6615. <glossdef>
  6616. <para role="glossdeffirst">
  6617. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6618. The location of the kernel sources.
  6619. This variable is set to the value of the
  6620. <link linkend='var-STAGING_KERNEL_DIR'><filename>STAGING_KERNEL_DIR</filename></link>
  6621. within the
  6622. <link linkend='ref-classes-module'><filename>module</filename></link>
  6623. class.
  6624. For information on how this variable is used, see the
  6625. "<ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#incorporating-out-of-tree-modules'>Incorporating Out-of-Tree Modules</ulink>"
  6626. section.
  6627. </para>
  6628. <para>
  6629. To help maximize compatibility with out-of-tree drivers
  6630. used to build modules, the OpenEmbedded build system also
  6631. recognizes and uses the
  6632. <link linkend='var-KERNEL_SRC'><filename>KERNEL_SRC</filename></link>
  6633. variable, which is identical to the
  6634. <filename>KERNEL_PATH</filename> variable.
  6635. Both variables are common variables used by external
  6636. Makefiles to point to the kernel source directory.
  6637. </para>
  6638. </glossdef>
  6639. </glossentry>
  6640. <glossentry id='var-KERNEL_SRC'><glossterm>KERNEL_SRC</glossterm>
  6641. <info>
  6642. KERNEL_SRC[doc] = "The location of the kernel sources. This variable is set to the value of the STAGING_KERNEL_DIR within the module class (module.bbclass)."
  6643. </info>
  6644. <glossdef>
  6645. <para role="glossdeffirst">
  6646. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6647. The location of the kernel sources.
  6648. This variable is set to the value of the
  6649. <link linkend='var-STAGING_KERNEL_DIR'><filename>STAGING_KERNEL_DIR</filename></link>
  6650. within the
  6651. <link linkend='ref-classes-module'><filename>module</filename></link>
  6652. class.
  6653. For information on how this variable is used, see the
  6654. "<ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#incorporating-out-of-tree-modules'>Incorporating Out-of-Tree Modules</ulink>"
  6655. section.
  6656. </para>
  6657. <para>
  6658. To help maximize compatibility with out-of-tree drivers
  6659. used to build modules, the OpenEmbedded build system also
  6660. recognizes and uses the
  6661. <link linkend='var-KERNEL_PATH'><filename>KERNEL_PATH</filename></link>
  6662. variable, which is identical to the
  6663. <filename>KERNEL_SRC</filename> variable.
  6664. Both variables are common variables used by external
  6665. Makefiles to point to the kernel source directory.
  6666. </para>
  6667. </glossdef>
  6668. </glossentry>
  6669. <glossentry id='var-KERNEL_VERSION'><glossterm>KERNEL_VERSION</glossterm>
  6670. <info>
  6671. KERNEL_VERSION[doc] = "Specifies the version of the kernel as extracted from version.h or utsrelease.h within the kernel sources."
  6672. </info>
  6673. <glossdef>
  6674. <para role="glossdeffirst">
  6675. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6676. Specifies the version of the kernel as extracted from
  6677. <filename>version.h</filename> or
  6678. <filename>utsrelease.h</filename> within the kernel sources.
  6679. Effects of setting this variable do not take affect until
  6680. the kernel has been configured.
  6681. Consequently, attempting to refer to this variable in
  6682. contexts prior to configuration will not work.
  6683. </para>
  6684. </glossdef>
  6685. </glossentry>
  6686. <glossentry id='var-KERNELDEPMODDEPEND'><glossterm>KERNELDEPMODDEPEND</glossterm>
  6687. <info>
  6688. KERNELDEPMODDEPEND[doc] = "Specifies whether or not to use the data referenced through the PKGDATA_DIR directory."
  6689. </info>
  6690. <glossdef>
  6691. <para role="glossdeffirst">
  6692. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6693. Specifies whether the data referenced through
  6694. <link linkend='var-PKGDATA_DIR'><filename>PKGDATA_DIR</filename></link>
  6695. is needed or not.
  6696. The <filename>KERNELDEPMODDEPEND</filename> does not
  6697. control whether or not that data exists,
  6698. but simply whether or not it is used.
  6699. If you do not need to use the data, set the
  6700. <filename>KERNELDEPMODDEPEND</filename> variable in your
  6701. <filename>initramfs</filename> recipe.
  6702. Setting the variable there when the data is not needed
  6703. avoids a potential dependency loop.
  6704. </para>
  6705. </glossdef>
  6706. </glossentry>
  6707. <glossentry id='var-KFEATURE_DESCRIPTION'><glossterm>KFEATURE_DESCRIPTION</glossterm>
  6708. <info>
  6709. KFEATURE_DESCRIPTION[doc] = "Provides a short description of a configuration fragment. You use this variable in the .scc file that describes a configuration fragment file."
  6710. </info>
  6711. <glossdef>
  6712. <para role="glossdeffirst">
  6713. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6714. Provides a short description of a configuration fragment.
  6715. You use this variable in the <filename>.scc</filename>
  6716. file that describes a configuration fragment file.
  6717. Here is the variable used in a file named
  6718. <filename>smp.scc</filename> to describe SMP being
  6719. enabled:
  6720. <literallayout class='monospaced'>
  6721. define KFEATURE_DESCRIPTION "Enable SMP"
  6722. </literallayout>
  6723. </para>
  6724. </glossdef>
  6725. </glossentry>
  6726. <glossentry id='var-KMACHINE'><glossterm>KMACHINE</glossterm>
  6727. <info>
  6728. KMACHINE[doc] = "The machine as known by the kernel."
  6729. </info>
  6730. <glossdef>
  6731. <para role="glossdeffirst">
  6732. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6733. The machine as known by the kernel.
  6734. Sometimes the machine name used by the kernel does not
  6735. match the machine name used by the OpenEmbedded build
  6736. system.
  6737. For example, the machine name that the OpenEmbedded build
  6738. system understands as
  6739. <filename>core2-32-intel-common</filename> goes by a
  6740. different name in the Linux Yocto kernel.
  6741. The kernel understands that machine as
  6742. <filename>intel-core2-32</filename>.
  6743. For cases like these, the <filename>KMACHINE</filename>
  6744. variable maps the kernel machine name to the OpenEmbedded
  6745. build system machine name.
  6746. </para>
  6747. <para>
  6748. These mappings between different names occur in the
  6749. Yocto Linux Kernel's <filename>meta</filename> branch.
  6750. As an example take a look in the
  6751. <filename>common/recipes-kernel/linux/linux-yocto_3.19.bbappend</filename>
  6752. file:
  6753. <literallayout class='monospaced'>
  6754. LINUX_VERSION_core2-32-intel-common = "3.19.0"
  6755. COMPATIBLE_MACHINE_core2-32-intel-common = "${MACHINE}"
  6756. SRCREV_meta_core2-32-intel-common = "8897ef68b30e7426bc1d39895e71fb155d694974"
  6757. SRCREV_machine_core2-32-intel-common = "43b9eced9ba8a57add36af07736344dcc383f711"
  6758. KMACHINE_core2-32-intel-common = "intel-core2-32"
  6759. KBRANCH_core2-32-intel-common = "standard/base"
  6760. KERNEL_FEATURES_append_core2-32-intel-common = "${KERNEL_FEATURES_INTEL_COMMON}"
  6761. </literallayout>
  6762. The <filename>KMACHINE</filename> statement says that
  6763. the kernel understands the machine name as
  6764. "intel-core2-32".
  6765. However, the OpenEmbedded build system understands the
  6766. machine as "core2-32-intel-common".
  6767. </para>
  6768. </glossdef>
  6769. </glossentry>
  6770. <glossentry id='var-KTYPE'><glossterm>KTYPE</glossterm>
  6771. <info>
  6772. KTYPE[doc] = "Defines the kernel type to be used in assembling the configuration."
  6773. </info>
  6774. <glossdef>
  6775. <para role="glossdeffirst">
  6776. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6777. Defines the kernel type to be used in assembling the
  6778. configuration.
  6779. The linux-yocto recipes define "standard", "tiny",
  6780. and "preempt-rt" kernel types.
  6781. See the
  6782. "<ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#kernel-types'>Kernel Types</ulink>"
  6783. section in the Yocto Project Linux Kernel Development
  6784. Manual for more information on kernel types.
  6785. </para>
  6786. <para>
  6787. You define the <filename>KTYPE</filename> variable in the
  6788. <ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#bsp-descriptions'>BSP Descriptions</ulink>.
  6789. The value you use must match the value used for the
  6790. <link linkend='var-LINUX_KERNEL_TYPE'><filename>LINUX_KERNEL_TYPE</filename></link>
  6791. value used by the kernel recipe.
  6792. </para>
  6793. </glossdef>
  6794. </glossentry>
  6795. </glossdiv>
  6796. <glossdiv id='var-glossary-l'><title>L</title>
  6797. <glossentry id='var-LABELS'><glossterm>LABELS</glossterm>
  6798. <info>
  6799. LABELS[doc] = "Provides a list of targets for automatic configuration."
  6800. </info>
  6801. <glossdef>
  6802. <para role="glossdeffirst">
  6803. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6804. Provides a list of targets for automatic configuration.
  6805. </para>
  6806. <para>
  6807. See the
  6808. <link linkend='ref-classes-grub-efi'><filename>grub-efi</filename></link>
  6809. class for more information on how this variable is used.
  6810. </para>
  6811. </glossdef>
  6812. </glossentry>
  6813. <glossentry id='var-LAYERDEPENDS'><glossterm>LAYERDEPENDS</glossterm>
  6814. <info>
  6815. LAYERDEPENDS[doc] = "Lists the layers, separated by spaces, upon which this recipe depends. This variable is used in the conf/layer.conf file and must be suffixed with the name of the specific layer."
  6816. </info>
  6817. <glossdef>
  6818. <para role="glossdeffirst">
  6819. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6820. Lists the layers that this recipe depends upon, separated by spaces.
  6821. Optionally, you can specify a specific layer version for a dependency
  6822. by adding it to the end of the layer name with a colon, (e.g. "anotherlayer:3"
  6823. to be compared against
  6824. <link linkend='var-LAYERVERSION'><filename>LAYERVERSION</filename></link><filename>_anotherlayer</filename>
  6825. in this case).
  6826. An error will be produced if any dependency is missing or
  6827. the version numbers do not match exactly (if specified).
  6828. This variable is used in the <filename>conf/layer.conf</filename> file
  6829. and must be suffixed with the name of the specific layer (e.g.
  6830. <filename>LAYERDEPENDS_mylayer</filename>).
  6831. </para>
  6832. </glossdef>
  6833. </glossentry>
  6834. <glossentry id='var-LAYERDIR'><glossterm>LAYERDIR</glossterm>
  6835. <info>
  6836. LAYERDIR[doc] = "When used inside the layer.conf configuration file, this variable provides the path of the current layer."
  6837. </info>
  6838. <glossdef>
  6839. <para role="glossdeffirst">
  6840. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6841. When used inside the <filename>layer.conf</filename> configuration
  6842. file, this variable provides the path of the current layer.
  6843. This variable is not available outside of <filename>layer.conf</filename>
  6844. and references are expanded immediately when parsing of the file completes.
  6845. </para>
  6846. </glossdef>
  6847. </glossentry>
  6848. <glossentry id='var-LAYERVERSION'><glossterm>LAYERVERSION</glossterm>
  6849. <info>
  6850. LAYERVERSION[doc] = "Optionally specifies the version of a layer as a single number. This variable is used in the conf/layer.conf file and must be suffixed with the name of the specific layer."
  6851. </info>
  6852. <glossdef>
  6853. <para role="glossdeffirst">
  6854. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6855. Optionally specifies the version of a layer as a single number.
  6856. You can use this within
  6857. <link linkend='var-LAYERDEPENDS'><filename>LAYERDEPENDS</filename></link>
  6858. for another layer in order to depend on a specific version
  6859. of the layer.
  6860. This variable is used in the <filename>conf/layer.conf</filename> file
  6861. and must be suffixed with the name of the specific layer (e.g.
  6862. <filename>LAYERVERSION_mylayer</filename>).
  6863. </para>
  6864. </glossdef>
  6865. </glossentry>
  6866. <glossentry id='var-LD'><glossterm>LD</glossterm>
  6867. <info>
  6868. LD[doc] = "Minimal command and arguments to run the linker."
  6869. </info>
  6870. <glossdef>
  6871. <para role="glossdeffirst">
  6872. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6873. The minimal command and arguments used to run the
  6874. linker.
  6875. </para>
  6876. </glossdef>
  6877. </glossentry>
  6878. <glossentry id='var-LDFLAGS'><glossterm>LDFLAGS</glossterm>
  6879. <info>
  6880. LDFLAGS[doc] = "Specifies the flags to pass to the linker."
  6881. </info>
  6882. <glossdef>
  6883. <para role="glossdeffirst">
  6884. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6885. Specifies the flags to pass to the linker.
  6886. This variable is exported to an environment
  6887. variable and thus made visible to the software being
  6888. built during the compilation step.
  6889. </para>
  6890. <para>
  6891. Default initialization for <filename>LDFLAGS</filename>
  6892. varies depending on what is being built:
  6893. <itemizedlist>
  6894. <listitem><para>
  6895. <link linkend='var-TARGET_LDFLAGS'><filename>TARGET_LDFLAGS</filename></link>
  6896. when building for the target
  6897. </para></listitem>
  6898. <listitem><para>
  6899. <link linkend='var-BUILD_LDFLAGS'><filename>BUILD_LDFLAGS</filename></link>
  6900. when building for the build host (i.e.
  6901. <filename>-native</filename>)
  6902. </para></listitem>
  6903. <listitem><para>
  6904. <link linkend='var-BUILDSDK_LDFLAGS'><filename>BUILDSDK_LDFLAGS</filename></link>
  6905. when building for an SDK (i.e.
  6906. <filename>nativesdk-</filename>)
  6907. </para></listitem>
  6908. </itemizedlist>
  6909. </para>
  6910. </glossdef>
  6911. </glossentry>
  6912. <glossentry id='var-LEAD_SONAME'><glossterm>LEAD_SONAME</glossterm>
  6913. <info>
  6914. LEAD_SONAME[doc] = "Specifies the lead (or primary) compiled library file (.so) that the debian class applies its naming policy to given a recipe that packages multiple libraries."
  6915. </info>
  6916. <glossdef>
  6917. <para role="glossdeffirst">
  6918. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6919. Specifies the lead (or primary) compiled library file
  6920. (<filename>.so</filename>) that the
  6921. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  6922. class applies its naming policy to given a recipe that
  6923. packages multiple libraries.
  6924. </para>
  6925. <para>
  6926. This variable works in conjunction with the
  6927. <filename>debian</filename> class.
  6928. </para>
  6929. </glossdef>
  6930. </glossentry>
  6931. <glossentry id='var-LIC_FILES_CHKSUM'><glossterm>LIC_FILES_CHKSUM</glossterm>
  6932. <info>
  6933. LIC_FILES_CHKSUM[doc] = "Checksums of the license text in the recipe source code."
  6934. </info>
  6935. <glossdef>
  6936. <para role="glossdeffirst">
  6937. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6938. Checksums of the license text in the recipe source code.
  6939. </para>
  6940. <para>
  6941. This variable tracks changes in license text of the source
  6942. code files.
  6943. If the license text is changed, it will trigger a build
  6944. failure, which gives the developer an opportunity to review any
  6945. license change.
  6946. </para>
  6947. <para>
  6948. This variable must be defined for all recipes (unless
  6949. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  6950. is set to "CLOSED").</para>
  6951. <para>For more information, see the
  6952. "<link linkend='usingpoky-configuring-LIC_FILES_CHKSUM'>
  6953. Tracking License Changes</link>" section.
  6954. </para>
  6955. </glossdef>
  6956. </glossentry>
  6957. <glossentry id='var-LICENSE'><glossterm>LICENSE</glossterm>
  6958. <info>
  6959. LICENSE[doc] = "The list of source licenses for the recipe. The logical operators &amp;, '|', and parentheses can be used."
  6960. </info>
  6961. <glossdef>
  6962. <para role="glossdeffirst">
  6963. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6964. The list of source licenses for the recipe.
  6965. Follow these rules:
  6966. <itemizedlist>
  6967. <listitem><para>Do not use spaces within individual
  6968. license names.</para></listitem>
  6969. <listitem><para>Separate license names using
  6970. | (pipe) when there is a choice between licenses.
  6971. </para></listitem>
  6972. <listitem><para>Separate license names using
  6973. &amp; (ampersand) when multiple licenses exist
  6974. that cover different parts of the source.
  6975. </para></listitem>
  6976. <listitem><para>You can use spaces between license
  6977. names.</para></listitem>
  6978. <listitem><para>For standard licenses, use the names
  6979. of the files in
  6980. <filename>meta/files/common-licenses/</filename>
  6981. or the
  6982. <link linkend='var-SPDXLICENSEMAP'><filename>SPDXLICENSEMAP</filename></link>
  6983. flag names defined in
  6984. <filename>meta/conf/licenses.conf</filename>.
  6985. </para></listitem>
  6986. </itemizedlist>
  6987. </para>
  6988. <para>
  6989. Here are some examples:
  6990. <literallayout class='monospaced'>
  6991. LICENSE = "LGPLv2.1 | GPLv3"
  6992. LICENSE = "MPL-1 &amp; LGPLv2.1"
  6993. LICENSE = "GPLv2+"
  6994. </literallayout>
  6995. The first example is from the recipes for Qt, which the user
  6996. may choose to distribute under either the LGPL version
  6997. 2.1 or GPL version 3.
  6998. The second example is from Cairo where two licenses cover
  6999. different parts of the source code.
  7000. The final example is from <filename>sysstat</filename>,
  7001. which presents a single license.
  7002. </para>
  7003. <para>
  7004. You can also specify licenses on a per-package basis to
  7005. handle situations where components of the output have
  7006. different licenses.
  7007. For example, a piece of software whose code is
  7008. licensed under GPLv2 but has accompanying documentation
  7009. licensed under the GNU Free Documentation License 1.2 could
  7010. be specified as follows:
  7011. <literallayout class='monospaced'>
  7012. LICENSE = "GFDL-1.2 &amp; GPLv2"
  7013. LICENSE_${PN} = "GPLv2"
  7014. LICENSE_${PN}-doc = "GFDL-1.2"
  7015. </literallayout>
  7016. </para>
  7017. </glossdef>
  7018. </glossentry>
  7019. <glossentry id='var-LICENSE_CREATE_PACKAGE'><glossterm>LICENSE_CREATE_PACKAGE</glossterm>
  7020. <info>
  7021. LICENSE_CREATE_PACKAGE[doc] = "Creates an extra package (i.e. ${PN}-lic) for each recipe and adds that package to the RRECOMMENDS+${PN}."
  7022. </info>
  7023. <glossdef>
  7024. <para role="glossdeffirst">
  7025. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7026. Setting <filename>LICENSE_CREATE_PACKAGE</filename>
  7027. to "1" causes the OpenEmbedded build system to create
  7028. an extra package (i.e.
  7029. <filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}-lic</filename>)
  7030. for each recipe and to add those packages to the
  7031. <link linkend='var-RRECOMMENDS'><filename>RRECOMMENDS</filename></link><filename>_${PN}</filename>.
  7032. </para>
  7033. <para>
  7034. The <filename>${PN}-lic</filename> package installs a
  7035. directory in <filename>/usr/share/licenses</filename>
  7036. named <filename>${PN}</filename>, which is the recipe's
  7037. base name, and installs files in that directory that
  7038. contain license and copyright information (i.e. copies of
  7039. the appropriate license files from
  7040. <filename>meta/common-licenses</filename> that match the
  7041. licenses specified in the
  7042. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  7043. variable of the recipe metadata and copies of files marked
  7044. in
  7045. <link linkend='var-LIC_FILES_CHKSUM'><filename>LIC_FILES_CHKSUM</filename></link>
  7046. as containing license text).
  7047. </para>
  7048. <para>
  7049. For related information on providing license text, see the
  7050. <link linkend='var-COPY_LIC_DIRS'><filename>COPY_LIC_DIRS</filename></link>
  7051. variable, the
  7052. <link linkend='var-COPY_LIC_MANIFEST'><filename>COPY_LIC_MANIFEST</filename></link>
  7053. variable, and the
  7054. "<ulink url='&YOCTO_DOCS_DEV_URL;#providing-license-text'>Providing License Text</ulink>"
  7055. section in the Yocto Project Development Manual.
  7056. </para>
  7057. </glossdef>
  7058. </glossentry>
  7059. <glossentry id='var-LICENSE_FLAGS'><glossterm>LICENSE_FLAGS</glossterm>
  7060. <info>
  7061. LICENSE_FLAGS[doc] = "Specifies additional flags for a recipe you must whitelist through LICENSE_FLAGS_WHITELIST in order to allow the recipe to be built."
  7062. </info>
  7063. <glossdef>
  7064. <para role="glossdeffirst">
  7065. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7066. Specifies additional flags for a recipe you must
  7067. whitelist through
  7068. <link linkend='var-LICENSE_FLAGS_WHITELIST'><filename>LICENSE_FLAGS_WHITELIST</filename></link>
  7069. in order to allow the recipe to be built.
  7070. When providing multiple flags, separate them with
  7071. spaces.
  7072. </para>
  7073. <para>
  7074. This value is independent of
  7075. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  7076. and is typically used to mark recipes that might
  7077. require additional licenses in order to be used in a
  7078. commercial product.
  7079. For more information, see the
  7080. "<link linkend='enabling-commercially-licensed-recipes'>Enabling Commercially Licensed Recipes</link>"
  7081. section.
  7082. </para>
  7083. </glossdef>
  7084. </glossentry>
  7085. <glossentry id='var-LICENSE_FLAGS_WHITELIST'><glossterm>LICENSE_FLAGS_WHITELIST</glossterm>
  7086. <info>
  7087. LICENSE_FLAGS_WHITELIST[doc] = "Lists license flags that when specified in LICENSE_FLAGS within a recipe should not prevent that recipe from being built."
  7088. </info>
  7089. <glossdef>
  7090. <para role="glossdeffirst">
  7091. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7092. Lists license flags that when specified in
  7093. <link linkend='var-LICENSE_FLAGS'><filename>LICENSE_FLAGS</filename></link>
  7094. within a recipe should not prevent that recipe from being
  7095. built.
  7096. This practice is otherwise known as "whitelisting"
  7097. license flags.
  7098. For more information, see the
  7099. <link linkend='enabling-commercially-licensed-recipes'>Enabling Commercially Licensed Recipes</link>"
  7100. section.
  7101. </para>
  7102. </glossdef>
  7103. </glossentry>
  7104. <glossentry id='var-LICENSE_PATH'><glossterm>LICENSE_PATH</glossterm>
  7105. <info>
  7106. LICENSE_PATH[doc] = "Path to additional licenses used during the build."
  7107. </info>
  7108. <glossdef>
  7109. <para role="glossdeffirst">
  7110. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7111. Path to additional licenses used during the build.
  7112. By default, the OpenEmbedded build system uses <filename>COMMON_LICENSE_DIR</filename>
  7113. to define the directory that holds common license text used during the build.
  7114. The <filename>LICENSE_PATH</filename> variable allows you to extend that
  7115. location to other areas that have additional licenses:
  7116. <literallayout class='monospaced'>
  7117. LICENSE_PATH += "<replaceable>path-to-additional-common-licenses</replaceable>"
  7118. </literallayout>
  7119. </para>
  7120. </glossdef>
  7121. </glossentry>
  7122. <glossentry id='var-LINUX_KERNEL_TYPE'><glossterm>LINUX_KERNEL_TYPE</glossterm>
  7123. <info>
  7124. LINUX_KERNEL_TYPE[doc] = "Defines the kernel type to be used in assembling the configuration."
  7125. </info>
  7126. <glossdef>
  7127. <para role="glossdeffirst">
  7128. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7129. Defines the kernel type to be used in assembling the
  7130. configuration.
  7131. The linux-yocto recipes define "standard", "tiny", and
  7132. "preempt-rt" kernel types.
  7133. See the
  7134. "<ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#kernel-types'>Kernel Types</ulink>"
  7135. section in the Yocto Project Linux Kernel Development
  7136. Manual for more information on kernel types.
  7137. </para>
  7138. <para>
  7139. If you do not specify a
  7140. <filename>LINUX_KERNEL_TYPE</filename>, it defaults to
  7141. "standard".
  7142. Together with
  7143. <link linkend='var-KMACHINE'><filename>KMACHINE</filename></link>,
  7144. the <filename>LINUX_KERNEL_TYPE</filename> variable
  7145. defines the search
  7146. arguments used by the kernel tools to find the appropriate
  7147. description within the kernel
  7148. <ulink url='&YOCTO_DOCS_DEV_URL;#metadata'>Metadata</ulink>
  7149. with which to build out the sources and configuration.
  7150. </para>
  7151. </glossdef>
  7152. </glossentry>
  7153. <glossentry id='var-LINUX_VERSION'><glossterm>LINUX_VERSION</glossterm>
  7154. <info>
  7155. LINUX_VERSION[doc] = "The Linux version from kernel.org on which the Linux kernel image being built using the OpenEmbedded build system is based. You define this variable in the kernel recipe."
  7156. </info>
  7157. <glossdef>
  7158. <para role="glossdeffirst">
  7159. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7160. The Linux version from <filename>kernel.org</filename>
  7161. on which the Linux kernel image being built using the
  7162. OpenEmbedded build system is based.
  7163. You define this variable in the kernel recipe.
  7164. For example, the <filename>linux-yocto-3.4.bb</filename>
  7165. kernel recipe found in
  7166. <filename>meta/recipes-kernel/linux</filename>
  7167. defines the variables as follows:
  7168. <literallayout class='monospaced'>
  7169. LINUX_VERSION ?= "3.4.24"
  7170. </literallayout>
  7171. </para>
  7172. <para>
  7173. The <filename>LINUX_VERSION</filename> variable is used to
  7174. define <link linkend='var-PV'><filename>PV</filename></link>
  7175. for the recipe:
  7176. <literallayout class='monospaced'>
  7177. PV = "${LINUX_VERSION}+git${SRCPV}"
  7178. </literallayout>
  7179. </para>
  7180. </glossdef>
  7181. </glossentry>
  7182. <glossentry id='var-LINUX_VERSION_EXTENSION'><glossterm>LINUX_VERSION_EXTENSION</glossterm>
  7183. <info>
  7184. LINUX_VERSION_EXTENSION[doc] = "A string extension compiled into the version string of the Linux kernel built with the OpenEmbedded build system. You define this variable in the kernel recipe."
  7185. </info>
  7186. <glossdef>
  7187. <para role="glossdeffirst">
  7188. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7189. A string extension compiled into the version
  7190. string of the Linux kernel built with the OpenEmbedded
  7191. build system.
  7192. You define this variable in the kernel recipe.
  7193. For example, the linux-yocto kernel recipes all define
  7194. the variable as follows:
  7195. <literallayout class='monospaced'>
  7196. LINUX_VERSION_EXTENSION ?= "-yocto-${<link linkend='var-LINUX_KERNEL_TYPE'>LINUX_KERNEL_TYPE</link>}"
  7197. </literallayout>
  7198. </para>
  7199. <para>
  7200. Defining this variable essentially sets the
  7201. Linux kernel configuration item
  7202. <filename>CONFIG_LOCALVERSION</filename>, which is visible
  7203. through the <filename>uname</filename> command.
  7204. Here is an example that shows the extension assuming it
  7205. was set as previously shown:
  7206. <literallayout class='monospaced'>
  7207. $ uname -r
  7208. 3.7.0-rc8-custom
  7209. </literallayout>
  7210. </para>
  7211. </glossdef>
  7212. </glossentry>
  7213. <glossentry id='var-LOG_DIR'><glossterm>LOG_DIR</glossterm>
  7214. <info>
  7215. LOG_DIR[doc] = "Specifies the directory to which the OpenEmbedded build system writes overall log files. The default directory is ${TMPDIR}/log"
  7216. </info>
  7217. <glossdef>
  7218. <para role="glossdeffirst">
  7219. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7220. Specifies the directory to which the OpenEmbedded build
  7221. system writes overall log files.
  7222. The default directory is <filename>${TMPDIR}/log</filename>.
  7223. </para>
  7224. <para>
  7225. For the directory containing logs specific to each task,
  7226. see the <link linkend='var-T'><filename>T</filename></link>
  7227. variable.
  7228. </para>
  7229. </glossdef>
  7230. </glossentry>
  7231. </glossdiv>
  7232. <glossdiv id='var-glossary-m'><title>M</title>
  7233. <glossentry id='var-MACHINE'><glossterm>MACHINE</glossterm>
  7234. <info>
  7235. MACHINE[doc] = "Specifies the target device for which the image is built. You define MACHINE in the conf/local.conf file in the Build Directory."
  7236. </info>
  7237. <glossdef>
  7238. <para role="glossdeffirst">
  7239. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7240. Specifies the target device for which the image is built.
  7241. You define <filename>MACHINE</filename> in the
  7242. <filename>local.conf</filename> file found in the
  7243. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>.
  7244. By default, <filename>MACHINE</filename> is set to
  7245. "qemux86", which is an x86-based architecture machine to
  7246. be emulated using QEMU:
  7247. <literallayout class='monospaced'>
  7248. MACHINE ?= "qemux86"
  7249. </literallayout>
  7250. </para>
  7251. <para>
  7252. The variable corresponds to a machine configuration file of the
  7253. same name, through which machine-specific configurations are set.
  7254. Thus, when <filename>MACHINE</filename> is set to "qemux86" there
  7255. exists the corresponding <filename>qemux86.conf</filename> machine
  7256. configuration file, which can be found in the
  7257. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>
  7258. in <filename>meta/conf/machine</filename>.
  7259. </para>
  7260. <para>
  7261. The list of machines supported by the Yocto Project as
  7262. shipped include the following:
  7263. <literallayout class='monospaced'>
  7264. MACHINE ?= "qemuarm"
  7265. MACHINE ?= "qemuarm64"
  7266. MACHINE ?= "qemumips"
  7267. MACHINE ?= "qemumips64"
  7268. MACHINE ?= "qemuppc"
  7269. MACHINE ?= "qemux86"
  7270. MACHINE ?= "qemux86-64"
  7271. MACHINE ?= "genericx86"
  7272. MACHINE ?= "genericx86-64"
  7273. MACHINE ?= "beaglebone"
  7274. MACHINE ?= "mpc8315e-rdb"
  7275. MACHINE ?= "edgerouter"
  7276. </literallayout>
  7277. The last five are Yocto Project reference hardware boards, which
  7278. are provided in the <filename>meta-yocto-bsp</filename> layer.
  7279. <note>Adding additional Board Support Package (BSP) layers
  7280. to your configuration adds new possible settings for
  7281. <filename>MACHINE</filename>.
  7282. </note>
  7283. </para>
  7284. </glossdef>
  7285. </glossentry>
  7286. <glossentry id='var-MACHINE_ARCH'><glossterm>MACHINE_ARCH</glossterm>
  7287. <info>
  7288. MACHINE_ARCH[doc] = "Specifies the name of the machine-specific architecture. This variable is set automatically from MACHINE or TUNE_PKGARCH."
  7289. </info>
  7290. <glossdef>
  7291. <para role="glossdeffirst">
  7292. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7293. Specifies the name of the machine-specific architecture.
  7294. This variable is set automatically from
  7295. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>
  7296. or
  7297. <link linkend='var-TUNE_PKGARCH'><filename>TUNE_PKGARCH</filename></link>.
  7298. You should not hand-edit the
  7299. <filename>MACHINE_ARCH</filename> variable.
  7300. </para>
  7301. </glossdef>
  7302. </glossentry>
  7303. <glossentry id='var-MACHINE_ESSENTIAL_EXTRA_RDEPENDS'><glossterm>MACHINE_ESSENTIAL_EXTRA_RDEPENDS</glossterm>
  7304. <info>
  7305. MACHINE_ESSENTIAL_EXTRA_RDEPENDS[doc] = "A list of required machine-specific packages to install as part of the image being built. Because this is a 'machine essential' variable, the list of packages are essential for the machine to boot."
  7306. </info>
  7307. <glossdef>
  7308. <para role="glossdeffirst">
  7309. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7310. A list of required machine-specific packages to install as part of
  7311. the image being built.
  7312. The build process depends on these packages being present.
  7313. Furthermore, because this is a "machine essential" variable, the list of
  7314. packages are essential for the machine to boot.
  7315. The impact of this variable affects images based on
  7316. <filename>packagegroup-core-boot</filename>,
  7317. including the <filename>core-image-minimal</filename> image.
  7318. </para>
  7319. <para>
  7320. This variable is similar to the
  7321. <filename><link linkend='var-MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS'>MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS</link></filename>
  7322. variable with the exception that the image being built has a build
  7323. dependency on the variable's list of packages.
  7324. In other words, the image will not build if a file in this list is not found.
  7325. </para>
  7326. <para>
  7327. As an example, suppose the machine for which you are building requires
  7328. <filename>example-init</filename> to be run during boot to initialize the hardware.
  7329. In this case, you would use the following in the machine's
  7330. <filename>.conf</filename> configuration file:
  7331. <literallayout class='monospaced'>
  7332. MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "example-init"
  7333. </literallayout>
  7334. </para>
  7335. </glossdef>
  7336. </glossentry>
  7337. <glossentry id='var-MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS'><glossterm>MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS</glossterm>
  7338. <info>
  7339. MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS[doc] = "A list of recommended machine-specific packages to install as part of the image being built. Because this is a 'machine essential' variable, the list of packages are essential for the machine to boot."
  7340. </info>
  7341. <glossdef>
  7342. <para role="glossdeffirst">
  7343. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7344. A list of recommended machine-specific packages to install as part of
  7345. the image being built.
  7346. The build process does not depend on these packages being present.
  7347. However, because this is a "machine essential" variable, the list of
  7348. packages are essential for the machine to boot.
  7349. The impact of this variable affects images based on
  7350. <filename>packagegroup-core-boot</filename>,
  7351. including the <filename>core-image-minimal</filename> image.
  7352. </para>
  7353. <para>
  7354. This variable is similar to the
  7355. <filename><link linkend='var-MACHINE_ESSENTIAL_EXTRA_RDEPENDS'>MACHINE_ESSENTIAL_EXTRA_RDEPENDS</link></filename>
  7356. variable with the exception that the image being built does not have a build
  7357. dependency on the variable's list of packages.
  7358. In other words, the image will still build if a package in this list is not found.
  7359. Typically, this variable is used to handle essential kernel modules, whose
  7360. functionality may be selected to be built into the kernel rather than as a module,
  7361. in which case a package will not be produced.
  7362. </para>
  7363. <para>
  7364. Consider an example where you have a custom kernel where a specific touchscreen
  7365. driver is required for the machine to be usable.
  7366. However, the driver can be built as a module or
  7367. into the kernel depending on the kernel configuration.
  7368. If the driver is built as a module, you want it to be installed.
  7369. But, when the driver is built into the kernel, you still want the
  7370. build to succeed.
  7371. This variable sets up a "recommends" relationship so that in the latter case,
  7372. the build will not fail due to the missing package.
  7373. To accomplish this, assuming the package for the module was called
  7374. <filename>kernel-module-ab123</filename>, you would use the
  7375. following in the machine's <filename>.conf</filename> configuration
  7376. file:
  7377. <literallayout class='monospaced'>
  7378. MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "kernel-module-ab123"
  7379. </literallayout>
  7380. <note>
  7381. In this example, the
  7382. <filename>kernel-module-ab123</filename> recipe
  7383. needs to explicitly set its
  7384. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>
  7385. variable to ensure that BitBake does not use the
  7386. kernel recipe's
  7387. <link linkend='var-PACKAGES_DYNAMIC'><filename>PACKAGES_DYNAMIC</filename></link>
  7388. variable to satisfy the dependency.
  7389. </note>
  7390. </para>
  7391. <para>
  7392. Some examples of these machine essentials are flash, screen, keyboard, mouse,
  7393. or touchscreen drivers (depending on the machine).
  7394. </para>
  7395. </glossdef>
  7396. </glossentry>
  7397. <glossentry id='var-MACHINE_EXTRA_RDEPENDS'><glossterm>MACHINE_EXTRA_RDEPENDS</glossterm>
  7398. <info>
  7399. MACHINE_EXTRA_RDEPENDS[doc] = "A list of machine-specific packages to install as part of the image being built that are not essential for the machine to boot. However, the build process for more fully-featured images depends on the packages being present."
  7400. </info>
  7401. <glossdef>
  7402. <para role="glossdeffirst">
  7403. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7404. A list of machine-specific packages to install as part of the
  7405. image being built that are not essential for the machine to boot.
  7406. However, the build process for more fully-featured images
  7407. depends on the packages being present.
  7408. </para>
  7409. <para>
  7410. This variable affects all images based on
  7411. <filename>packagegroup-base</filename>, which does not include the
  7412. <filename>core-image-minimal</filename> or <filename>core-image-full-cmdline</filename>
  7413. images.
  7414. </para>
  7415. <para>
  7416. The variable is similar to the
  7417. <filename><link linkend='var-MACHINE_EXTRA_RRECOMMENDS'>MACHINE_EXTRA_RRECOMMENDS</link></filename>
  7418. variable with the exception that the image being built has a build
  7419. dependency on the variable's list of packages.
  7420. In other words, the image will not build if a file in this list is not found.
  7421. </para>
  7422. <para>
  7423. An example is a machine that has WiFi capability but is not
  7424. essential for the machine to boot the image.
  7425. However, if you are building a more fully-featured image, you want to enable
  7426. the WiFi.
  7427. The package containing the firmware for the WiFi hardware is always
  7428. expected to exist, so it is acceptable for the build process to depend upon
  7429. finding the package.
  7430. In this case, assuming the package for the firmware was called
  7431. <filename>wifidriver-firmware</filename>, you would use the following in the
  7432. <filename>.conf</filename> file for the machine:
  7433. <literallayout class='monospaced'>
  7434. MACHINE_EXTRA_RDEPENDS += "wifidriver-firmware"
  7435. </literallayout>
  7436. </para>
  7437. </glossdef>
  7438. </glossentry>
  7439. <glossentry id='var-MACHINE_EXTRA_RRECOMMENDS'><glossterm>MACHINE_EXTRA_RRECOMMENDS</glossterm>
  7440. <info>
  7441. MACHINE_EXTRA_RRECOMMENDS[doc] = "A list of machine-specific packages to install as part of the image being built that are not essential for booting the machine. The image being built has no build dependencies on the packages in this list."
  7442. </info>
  7443. <glossdef>
  7444. <para role="glossdeffirst">
  7445. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7446. A list of machine-specific packages to install as part of the
  7447. image being built that are not essential for booting the machine.
  7448. The image being built has no build dependency on this list of packages.
  7449. </para>
  7450. <para>
  7451. This variable affects only images based on
  7452. <filename>packagegroup-base</filename>, which does not include the
  7453. <filename>core-image-minimal</filename> or <filename>core-image-full-cmdline</filename>
  7454. images.
  7455. </para>
  7456. <para>
  7457. This variable is similar to the
  7458. <filename><link linkend='var-MACHINE_EXTRA_RDEPENDS'>MACHINE_EXTRA_RDEPENDS</link></filename>
  7459. variable with the exception that the image being built does not have a build
  7460. dependency on the variable's list of packages.
  7461. In other words, the image will build if a file in this list is not found.
  7462. </para>
  7463. <para>
  7464. An example is a machine that has WiFi capability but is not essential
  7465. For the machine to boot the image.
  7466. However, if you are building a more fully-featured image, you want to enable
  7467. WiFi.
  7468. In this case, the package containing the WiFi kernel module will not be produced
  7469. if the WiFi driver is built into the kernel, in which case you still want the
  7470. build to succeed instead of failing as a result of the package not being found.
  7471. To accomplish this, assuming the package for the module was called
  7472. <filename>kernel-module-examplewifi</filename>, you would use the
  7473. following in the <filename>.conf</filename> file for the machine:
  7474. <literallayout class='monospaced'>
  7475. MACHINE_EXTRA_RRECOMMENDS += "kernel-module-examplewifi"
  7476. </literallayout>
  7477. </para>
  7478. </glossdef>
  7479. </glossentry>
  7480. <glossentry id='var-MACHINE_FEATURES'><glossterm>MACHINE_FEATURES</glossterm>
  7481. <info>
  7482. MACHINE_FEATURES[doc] = "Specifies the list of hardware features the MACHINE supports."
  7483. </info>
  7484. <glossdef>
  7485. <para role="glossdeffirst">
  7486. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7487. Specifies the list of hardware features the
  7488. <link linkend='var-MACHINE'><filename>MACHINE</filename></link> is capable
  7489. of supporting.
  7490. For related information on enabling features, see the
  7491. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>,
  7492. <link linkend='var-COMBINED_FEATURES'><filename>COMBINED_FEATURES</filename></link>,
  7493. and
  7494. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>
  7495. variables.
  7496. </para>
  7497. <para>
  7498. For a list of hardware features supported by the Yocto
  7499. Project as shipped, see the
  7500. "<link linkend='ref-features-machine'>Machine Features</link>"
  7501. section.
  7502. </para>
  7503. </glossdef>
  7504. </glossentry>
  7505. <glossentry id='var-MACHINE_FEATURES_BACKFILL'><glossterm>MACHINE_FEATURES_BACKFILL</glossterm>
  7506. <info>
  7507. MACHINE_FEATURES_BACKFILL[doc] = "Features to be added to MACHINE_FEATURES if not also present in MACHINE_FEATURES_BACKFILL_CONSIDERED. This variable is set in the meta/conf/bitbake.conf file and is not intended to be user-configurable."
  7508. </info>
  7509. <glossdef>
  7510. <para role="glossdeffirst">
  7511. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7512. Features to be added to
  7513. <filename><link linkend='var-MACHINE_FEATURES'>MACHINE_FEATURES</link></filename>
  7514. if not also present in
  7515. <filename><link linkend='var-MACHINE_FEATURES_BACKFILL_CONSIDERED'>MACHINE_FEATURES_BACKFILL_CONSIDERED</link></filename>.
  7516. </para>
  7517. <para>
  7518. This variable is set in the <filename>meta/conf/bitbake.conf</filename> file.
  7519. It is not intended to be user-configurable.
  7520. It is best to just reference the variable to see which machine features are
  7521. being backfilled for all machine configurations.
  7522. See the "<link linkend='ref-features-backfill'>Feature backfilling</link>" section for
  7523. more information.
  7524. </para>
  7525. </glossdef>
  7526. </glossentry>
  7527. <glossentry id='var-MACHINE_FEATURES_BACKFILL_CONSIDERED'><glossterm>MACHINE_FEATURES_BACKFILL_CONSIDERED</glossterm>
  7528. <info>
  7529. MACHINE_FEATURES_BACKFILL_CONSIDERED[doc] = "Features from MACHINE_FEATURES_BACKFILL that should not be backfilled (i.e. added to MACHINE_FEATURES) during the build."
  7530. </info>
  7531. <glossdef>
  7532. <para role="glossdeffirst">
  7533. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7534. Features from
  7535. <filename><link linkend='var-MACHINE_FEATURES_BACKFILL'>MACHINE_FEATURES_BACKFILL</link></filename>
  7536. that should not be backfilled (i.e. added to
  7537. <filename><link linkend='var-MACHINE_FEATURES'>MACHINE_FEATURES</link></filename>)
  7538. during the build.
  7539. See the "<link linkend='ref-features-backfill'>Feature backfilling</link>" section for
  7540. more information.
  7541. </para>
  7542. </glossdef>
  7543. </glossentry>
  7544. <glossentry id='var-MACHINEOVERRIDES'><glossterm>MACHINEOVERRIDES</glossterm>
  7545. <info>
  7546. MACHINEOVERRIDES[doc] = "A colon-separated list of overrides that apply to the current machine."
  7547. </info>
  7548. <glossdef>
  7549. <para role="glossdeffirst">
  7550. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7551. A colon-separated list of overrides that apply to the
  7552. current machine.
  7553. By default, this list includes the value of
  7554. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>.
  7555. </para>
  7556. <para>
  7557. You can extend <filename>MACHINEOVERRIDES</filename>
  7558. to add extra overrides that should apply to a machine.
  7559. For example, all machines emulated in QEMU (e.g.
  7560. <filename>qemuarm</filename>, <filename>qemux86</filename>,
  7561. and so forth) include a file named
  7562. <filename>meta/conf/machine/include/qemu.inc</filename>
  7563. that prepends the following override to
  7564. <filename>MACHINEOVERRIDES</filename>:
  7565. <literallayout class='monospaced'>
  7566. MACHINEOVERRIDES =. "qemuall:"
  7567. </literallayout>
  7568. This override allows variables to be overriden for all
  7569. machines emulated in QEMU, like in the following example
  7570. from the <filename>connman-conf</filename> recipe:
  7571. <literallayout class='monospaced'>
  7572. SRC_URI_append_qemuall = "file://wired.config \
  7573. file://wired-setup \
  7574. "
  7575. </literallayout>
  7576. The underlying mechanism behind
  7577. <filename>MACHINEOVERRIDES</filename> is simply that it is
  7578. included in the default value of
  7579. <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>.
  7580. </para>
  7581. </glossdef>
  7582. </glossentry>
  7583. <glossentry id='var-MAINTAINER'><glossterm>MAINTAINER</glossterm>
  7584. <info>
  7585. MAINTAINER[doc] = "The email address of the distribution maintainer."
  7586. </info>
  7587. <glossdef>
  7588. <para role="glossdeffirst">
  7589. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7590. The email address of the distribution maintainer.
  7591. </para>
  7592. </glossdef>
  7593. </glossentry>
  7594. <glossentry id='var-MIRRORS'><glossterm>MIRRORS</glossterm>
  7595. <info>
  7596. MIRRORS[doc] = "Specifies additional paths from which the OpenEmbedded build system gets source code."
  7597. </info>
  7598. <glossdef>
  7599. <para role="glossdeffirst">
  7600. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7601. Specifies additional paths from which the OpenEmbedded
  7602. build system gets source code.
  7603. When the build system searches for source code, it first
  7604. tries the local download directory.
  7605. If that location fails, the build system tries locations
  7606. defined by
  7607. <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>,
  7608. the upstream source, and then locations specified by
  7609. <filename>MIRRORS</filename> in that order.
  7610. </para>
  7611. <para>
  7612. Assuming your distribution
  7613. (<link linkend='var-DISTRO'><filename>DISTRO</filename></link>)
  7614. is "poky", the default value for
  7615. <filename>MIRRORS</filename> is defined in the
  7616. <filename>conf/distro/poky.conf</filename> file in the
  7617. <filename>meta-poky</filename> Git repository.
  7618. </para>
  7619. </glossdef>
  7620. </glossentry>
  7621. <glossentry id='var-MLPREFIX'><glossterm>MLPREFIX</glossterm>
  7622. <info>
  7623. MLPREFIX[doc] = "Specifies a prefix has been added to PN to create a special version of a recipe or package, such as a Multilib version."
  7624. </info>
  7625. <glossdef>
  7626. <para role="glossdeffirst">
  7627. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7628. Specifies a prefix has been added to
  7629. <link linkend='var-PN'><filename>PN</filename></link> to create a special version
  7630. of a recipe or package, such as a Multilib version.
  7631. The variable is used in places where the prefix needs to be
  7632. added to or removed from a the name (e.g. the
  7633. <link linkend='var-BPN'><filename>BPN</filename></link> variable).
  7634. <filename>MLPREFIX</filename> gets set when a prefix has been
  7635. added to <filename>PN</filename>.
  7636. <note>
  7637. The "ML" in <filename>MLPREFIX</filename> stands for
  7638. "MultiLib".
  7639. This representation is historical and comes from
  7640. a time when <filename>nativesdk</filename> was a suffix
  7641. rather than a prefix on the recipe name.
  7642. When <filename>nativesdk</filename> was turned into a
  7643. prefix, it made sense to set
  7644. <filename>MLPREFIX</filename> for it as well.
  7645. </note>
  7646. </para>
  7647. <para>
  7648. To help understand when <filename>MLPREFIX</filename>
  7649. might be needed, consider when
  7650. <link linkend='var-BBCLASSEXTEND'><filename>BBCLASSEXTEND</filename></link>
  7651. is used to provide a <filename>nativesdk</filename> version
  7652. of a recipe in addition to the target version.
  7653. If that recipe declares build-time dependencies on tasks in
  7654. other recipes by using
  7655. <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>,
  7656. then a dependency on "foo" will automatically get rewritten
  7657. to a dependency on "nativesdk-foo".
  7658. However, dependencies like the following will not get
  7659. rewritten automatically:
  7660. <literallayout class='monospaced'>
  7661. do_foo[depends] += "<replaceable>recipe</replaceable>:do_foo"
  7662. </literallayout>
  7663. If you want such a dependency to also get transformed,
  7664. you can do the following:
  7665. <literallayout class='monospaced'>
  7666. do_foo[depends] += "${MLPREFIX}<replaceable>recipe</replaceable>:do_foo"
  7667. </literallayout>
  7668. </para>
  7669. </glossdef>
  7670. </glossentry>
  7671. <glossentry id='var-module_autoload'><glossterm>module_autoload</glossterm>
  7672. <info>
  7673. module_autoload[doc] = "This variable has been replaced by the KERNEL_MODULE_AUTOLOAD variable. You should replace all occurrences of module_autoload with additions to KERNEL_MODULE_AUTOLOAD."
  7674. </info>
  7675. <glossdef>
  7676. <para role="glossdeffirst">
  7677. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7678. This variable has been replaced by the
  7679. <filename>KERNEL_MODULE_AUTOLOAD</filename> variable.
  7680. You should replace all occurrences of
  7681. <filename>module_autoload</filename> with additions to
  7682. <filename>KERNEL_MODULE_AUTOLOAD</filename>, for example:
  7683. <literallayout class='monospaced'>
  7684. module_autoload_rfcomm = "rfcomm"
  7685. </literallayout>
  7686. </para>
  7687. <para>
  7688. should now be replaced with:
  7689. <literallayout class='monospaced'>
  7690. KERNEL_MODULE_AUTOLOAD += "rfcomm"
  7691. </literallayout>
  7692. See the
  7693. <link linkend='var-KERNEL_MODULE_AUTOLOAD'><filename>KERNEL_MODULE_AUTOLOAD</filename></link>
  7694. variable for more information.
  7695. </para>
  7696. </glossdef>
  7697. </glossentry>
  7698. <glossentry id='var-module_conf'><glossterm>module_conf</glossterm>
  7699. <info>
  7700. module_conf[doc] = "Specifies modprobe.d syntax lines for inclusion in the /etc/modprobe.d/modname.conf file."
  7701. </info>
  7702. <glossdef>
  7703. <para role="glossdeffirst">
  7704. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7705. Specifies
  7706. <ulink url='http://linux.die.net/man/5/modprobe.d'><filename>modprobe.d</filename></ulink>
  7707. syntax lines for inclusion in the
  7708. <filename>/etc/modprobe.d/modname.conf</filename> file.
  7709. </para>
  7710. <para>
  7711. You can use this variable anywhere that it can be
  7712. recognized by the kernel recipe or out-of-tree kernel
  7713. module recipe (e.g. a machine configuration file, a
  7714. distribution configuration file, an append file for the
  7715. recipe, or the recipe itself).
  7716. If you use this variable, you must also be sure to list
  7717. the module name in the
  7718. <link linkend='var-KERNEL_MODULE_AUTOLOAD'><filename>KERNEL_MODULE_AUTOLOAD</filename></link>
  7719. variable.
  7720. </para>
  7721. <para>
  7722. Here is the general syntax:
  7723. <literallayout class='monospaced'>
  7724. module_conf_<replaceable>module_name</replaceable> = "<replaceable>modprobe.d-syntax</replaceable>"
  7725. </literallayout>
  7726. You must use the kernel module name override.
  7727. </para>
  7728. <para>
  7729. Run <filename>man modprobe.d</filename> in the shell to
  7730. find out more information on the exact syntax
  7731. you want to provide with <filename>module_conf</filename>.
  7732. </para>
  7733. <para>
  7734. Including <filename>module_conf</filename> causes the
  7735. OpenEmbedded build system to populate the
  7736. <filename>/etc/modprobe.d/modname.conf</filename>
  7737. file with <filename>modprobe.d</filename> syntax lines.
  7738. Here is an example that adds the options
  7739. <filename>arg1</filename> and <filename>arg2</filename>
  7740. to a module named <filename>mymodule</filename>:
  7741. <literallayout class='monospaced'>
  7742. module_conf_mymodule = "options mymodule arg1=val1 arg2=val2"
  7743. </literallayout>
  7744. </para>
  7745. <para>
  7746. For information on how to specify kernel modules to
  7747. auto-load on boot, see the
  7748. <link linkend='var-KERNEL_MODULE_AUTOLOAD'><filename>KERNEL_MODULE_AUTOLOAD</filename></link>
  7749. variable.
  7750. </para>
  7751. </glossdef>
  7752. </glossentry>
  7753. <glossentry id='var-MODULE_IMAGE_BASE_NAME'><glossterm>MODULE_IMAGE_BASE_NAME</glossterm>
  7754. <info>
  7755. MODULE_IMAGE_BASE_NAME[doc] = "The base name of the kernel modules tarball."
  7756. </info>
  7757. <glossdef>
  7758. <para role="glossdeffirst">
  7759. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7760. The base name of the kernel modules tarball.
  7761. This variable is set in the
  7762. <link linkend='ref-classes-kernel'>kernel</link> class
  7763. as follows:
  7764. <literallayout class='monospaced'>
  7765. MODULE_IMAGE_BASE_NAME ?= "modules-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}"
  7766. </literallayout>
  7767. </para>
  7768. <para>
  7769. See the
  7770. <link linkend='var-PKGE'><filename>PKGE</filename></link>,
  7771. <link linkend='var-PKGV'><filename>PKGV</filename></link>,
  7772. <link linkend='var-PKGR'><filename>PKGR</filename></link>,
  7773. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>,
  7774. and
  7775. <link linkend='var-DATETIME'><filename>DATETIME</filename></link>
  7776. variables for additional information.
  7777. </para>
  7778. </glossdef>
  7779. </glossentry>
  7780. <glossentry id='var-MODULE_TARBALL_DEPLOY'><glossterm>MODULE_TARBALL_DEPLOY</glossterm>
  7781. <info>
  7782. MODULE_TARBALL_DEPLOY[doc] = "Controls creation of the modules-*.tgz file. Set this variable to "0" to disable creation of this file, which contains all of the kernel modules resulting from a kernel build."
  7783. </info>
  7784. <glossdef>
  7785. <para role="glossdeffirst">
  7786. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7787. Controls creation of the <filename>modules-*.tgz</filename>
  7788. file.
  7789. Set this variable to "0" to disable creation of this
  7790. file, which contains all of the kernel modules resulting
  7791. from a kernel build.
  7792. </para>
  7793. </glossdef>
  7794. </glossentry>
  7795. <!--
  7796. <glossentry id='var-MULTIMACH_HOST_SYS'><glossterm>MULTIMACH_HOST_SYS</glossterm>
  7797. <info>
  7798. MULTIMACH_HOST_SYS[doc] = "Separates files for different machines such that you can build for multiple host machines using the same output directories."
  7799. </info>
  7800. <glossdef>
  7801. <para role="glossdeffirst">
  7802. -->
  7803. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7804. <!--
  7805. Serves the same purpose as
  7806. <link linkend='var-MULTIMACH_TARGET_SYS'><filename>MULTIMACH_TARGET_SYS</filename></link>,
  7807. but for the "HOST" system, in situations that involve a
  7808. "HOST" and a "TARGET" system.
  7809. See the
  7810. <link linkend='var-STAGING_DIR_TARGET'><filename>STAGING_DIR_TARGET</filename></link>
  7811. variable for more information.
  7812. </para>
  7813. <para>
  7814. The default value of this variable is:
  7815. <literallayout class='monospaced'>
  7816. ${PACKAGE_ARCH}${HOST_VENDOR}-${HOST_OS}
  7817. </literallayout>
  7818. </para>
  7819. </glossdef>
  7820. </glossentry>
  7821. -->
  7822. <glossentry id='var-MULTIMACH_TARGET_SYS'><glossterm>MULTIMACH_TARGET_SYS</glossterm>
  7823. <info>
  7824. MULTIMACH_TARGET_SYS[doc] = "Separates files for different machines such that you can build for multiple target machines using the same output directories."
  7825. </info>
  7826. <glossdef>
  7827. <para role="glossdeffirst">
  7828. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7829. Uniquely identifies the type of the target system for
  7830. which packages are being built.
  7831. This variable allows output for different types of target
  7832. systems to be put into different subdirectories of the same
  7833. output directory.
  7834. </para>
  7835. <para>
  7836. The default value of this variable is:
  7837. <literallayout class='monospaced'>
  7838. ${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}
  7839. </literallayout>
  7840. Some classes (e.g.
  7841. <link linkend='ref-classes-cross-canadian'><filename>cross-canadian</filename></link>)
  7842. modify the <filename>MULTIMACH_TARGET_SYS</filename> value.
  7843. </para>
  7844. <para>
  7845. See the
  7846. <link linkend='var-STAMP'><filename>STAMP</filename></link>
  7847. variable for an example.
  7848. See the
  7849. <link linkend='var-STAGING_DIR_TARGET'><filename>STAGING_DIR_TARGET</filename></link>
  7850. variable for more information.
  7851. </para>
  7852. </glossdef>
  7853. </glossentry>
  7854. </glossdiv>
  7855. <glossdiv id='var-glossary-n'><title>N</title>
  7856. <glossentry id='var-NATIVELSBSTRING'><glossterm>NATIVELSBSTRING</glossterm>
  7857. <info>
  7858. NATIVELSBSTRING[doc] = "A string identifying the host distribution."
  7859. </info>
  7860. <glossdef>
  7861. <para role="glossdeffirst">
  7862. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7863. A string identifying the host distribution.
  7864. Strings consist of the host distributor ID
  7865. followed by the release, as reported by the
  7866. <filename>lsb_release</filename> tool
  7867. or as read from <filename>/etc/lsb-release</filename>.
  7868. For example, when running a build on Ubuntu 12.10, the value
  7869. is "Ubuntu-12.10".
  7870. If this information is unable to be determined, the value
  7871. resolves to "Unknown".
  7872. </para>
  7873. <para>
  7874. This variable is used by default to isolate native shared
  7875. state packages for different distributions (e.g. to avoid
  7876. problems with <filename>glibc</filename> version
  7877. incompatibilities).
  7878. Additionally, the variable is checked against
  7879. <link linkend='var-SANITY_TESTED_DISTROS'><filename>SANITY_TESTED_DISTROS</filename></link>
  7880. if that variable is set.
  7881. </para>
  7882. </glossdef>
  7883. </glossentry>
  7884. <glossentry id='var-NM'><glossterm>NM</glossterm>
  7885. <info>
  7886. NM[doc] = "Minimal command and arguments to run 'nm'."
  7887. </info>
  7888. <glossdef>
  7889. <para role="glossdeffirst">
  7890. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7891. The minimal command and arguments to run
  7892. <filename>nm</filename>.
  7893. </para>
  7894. </glossdef>
  7895. </glossentry>
  7896. <glossentry id='var-NO_RECOMMENDATIONS'><glossterm>NO_RECOMMENDATIONS</glossterm>
  7897. <info>
  7898. NO_RECOMMENDATIONS[doc] = "When set to '1', no recommended packages will be installed. Realize that some recommended packages might be required for certain system functionality, such as kernel-modules. It is up to the user to add packages to IMAGE_INSTALL as needed."
  7899. </info>
  7900. <glossdef>
  7901. <para role="glossdeffirst">
  7902. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7903. Prevents installation of all "recommended-only" packages.
  7904. Recommended-only packages are packages installed only
  7905. through the
  7906. <link linkend='var-RRECOMMENDS'><filename>RRECOMMENDS</filename></link>
  7907. variable).
  7908. Setting the <filename>NO_RECOMMENDATIONS</filename> variable
  7909. to "1" turns this feature on:
  7910. <literallayout class='monospaced'>
  7911. NO_RECOMMENDATIONS = "1"
  7912. </literallayout>
  7913. </para>
  7914. <para>
  7915. You can set this variable globally in your
  7916. <filename>local.conf</filename> file or you can attach it to
  7917. a specific image recipe by using the recipe name override:
  7918. <literallayout class='monospaced'>
  7919. NO_RECOMMENDATIONS_pn-<replaceable>target_image</replaceable> = "1"
  7920. </literallayout>
  7921. </para>
  7922. <para>
  7923. It is important to realize that if you choose to not install
  7924. packages using this variable and some other packages are
  7925. dependent on them (i.e. listed in a recipe's
  7926. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>
  7927. variable), the OpenEmbedded build system ignores your
  7928. request and will install the packages to avoid dependency
  7929. errors.
  7930. <note>
  7931. Some recommended packages might be required for certain
  7932. system functionality, such as kernel modules.
  7933. It is up to you to add packages with the
  7934. <link linkend='var-IMAGE_INSTALL'><filename>IMAGE_INSTALL</filename></link>
  7935. variable.
  7936. </note>
  7937. </para>
  7938. <para>
  7939. Support for this variable exists only when using the
  7940. IPK and RPM packaging backend.
  7941. Support does not exist for DEB.
  7942. </para>
  7943. <para>
  7944. See the
  7945. <link linkend='var-BAD_RECOMMENDATIONS'><filename>BAD_RECOMMENDATIONS</filename></link>
  7946. and the
  7947. <link linkend='var-PACKAGE_EXCLUDE'><filename>PACKAGE_EXCLUDE</filename></link>
  7948. variables for related information.
  7949. </para>
  7950. </glossdef>
  7951. </glossentry>
  7952. <glossentry id='var-NOHDD'><glossterm>NOHDD</glossterm>
  7953. <info>
  7954. NOHDD[doc] = "Causes the OpenEmbedded build system to skip building the .hddimg image."
  7955. </info>
  7956. <glossdef>
  7957. <para role="glossdeffirst">
  7958. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7959. Causes the OpenEmbedded build system to skip building the
  7960. <filename>.hddimg</filename> image.
  7961. The <filename>NOHDD</filename> variable is used with the
  7962. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  7963. class.
  7964. Set the variable to "1" to prevent the
  7965. <filename>.hddimg</filename> image from being built.
  7966. </para>
  7967. </glossdef>
  7968. </glossentry>
  7969. <glossentry id='var-NOISO'><glossterm>NOISO</glossterm>
  7970. <info>
  7971. NOISO[doc] = "Causes the OpenEmbedded build system to skip building the ISO image."
  7972. </info>
  7973. <glossdef>
  7974. <para role="glossdeffirst">
  7975. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7976. Causes the OpenEmbedded build system to skip building the
  7977. ISO image.
  7978. The <filename>NOISO</filename> variable is used with the
  7979. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  7980. class.
  7981. Set the variable to "1" to prevent the ISO image from
  7982. being built.
  7983. To enable building an ISO image, set the variable to "0".
  7984. </para>
  7985. </glossdef>
  7986. </glossentry>
  7987. </glossdiv>
  7988. <glossdiv id='var-glossary-o'><title>O</title>
  7989. <glossentry id='var-OBJCOPY'><glossterm>OBJCOPY</glossterm>
  7990. <info>
  7991. OBJCOPY[doc] = "Minimal command and arguments to run 'objcopy'."
  7992. </info>
  7993. <glossdef>
  7994. <para role="glossdeffirst">
  7995. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7996. The minimal command and arguments to run
  7997. <filename>objcopy</filename>.
  7998. </para>
  7999. </glossdef>
  8000. </glossentry>
  8001. <glossentry id='var-OBJDUMP'><glossterm>OBJDUMP</glossterm>
  8002. <info>
  8003. OBJDUMP[doc] = "Minimal command and arguments to run 'objdump'."
  8004. </info>
  8005. <glossdef>
  8006. <para role="glossdeffirst">
  8007. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8008. The minimal command and arguments to run
  8009. <filename>objdump</filename>.
  8010. </para>
  8011. </glossdef>
  8012. </glossentry>
  8013. <glossentry id='var-OE_BINCONFIG_EXTRA_MANGLE'><glossterm>OE_BINCONFIG_EXTRA_MANGLE</glossterm>
  8014. <info>
  8015. OE_BINCONFIG_EXTRA_MANGLE[doc] = "When a recipe inherits the binconfig.bbclass class, this variable specifies additional arguments passed to the "sed" command."
  8016. </info>
  8017. <glossdef>
  8018. <para role="glossdeffirst">
  8019. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8020. When inheriting the
  8021. <link linkend='ref-classes-binconfig'><filename>binconfig</filename></link>
  8022. class, this variable
  8023. specifies additional arguments passed to the "sed" command.
  8024. The sed command alters any paths in configuration scripts
  8025. that have been set up during compilation.
  8026. Inheriting this class results in all paths in these scripts
  8027. being changed to point into the
  8028. <filename>sysroots/</filename> directory so that all builds
  8029. that use the script will use the correct directories
  8030. for the cross compiling layout.
  8031. </para>
  8032. <para>
  8033. See the <filename>meta/classes/binconfig.bbclass</filename>
  8034. in the
  8035. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>
  8036. for details on how this class applies these additional
  8037. sed command arguments.
  8038. For general information on the
  8039. <filename>binconfig.bbclass</filename> class, see the
  8040. "<link linkend='ref-classes-binconfig'>Binary Configuration Scripts - <filename>binconfig.bbclass</filename></link>"
  8041. section.
  8042. </para>
  8043. </glossdef>
  8044. </glossentry>
  8045. <glossentry id='var-OE_IMPORTS'><glossterm>OE_IMPORTS</glossterm>
  8046. <info>
  8047. OE_IMPORTS[doc] = "An internal variable used to tell the OpenEmbedded build system what Python modules to import for every Python function run by the system."
  8048. </info>
  8049. <glossdef>
  8050. <para role="glossdeffirst">
  8051. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8052. An internal variable used to tell the OpenEmbedded build
  8053. system what Python modules to import for every Python
  8054. function run by the system.
  8055. </para>
  8056. <note>
  8057. Do not set this variable.
  8058. It is for internal use only.
  8059. </note>
  8060. </glossdef>
  8061. </glossentry>
  8062. <glossentry id='var-OE_INIT_ENV_SCRIPT'><glossterm>OE_INIT_ENV_SCRIPT</glossterm>
  8063. <info>
  8064. OE_INIT_ENV_SCRIPT[doc] = "The name of the build environment setup script for the purposes of setting up the environment within the extensible SDK."
  8065. </info>
  8066. <glossdef>
  8067. <para role="glossdeffirst">
  8068. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8069. The name of the build environment setup script for the
  8070. purposes of setting up the environment within the
  8071. extensible SDK.
  8072. The default value is "oe-init-build-env".
  8073. </para>
  8074. <para>
  8075. If you use a custom script to set up your build
  8076. environment, set the
  8077. <filename>OE_INIT_ENV_SCRIPT</filename> variable to its
  8078. name.
  8079. </para>
  8080. </glossdef>
  8081. </glossentry>
  8082. <glossentry id='var-OE_TERMINAL'><glossterm>OE_TERMINAL</glossterm>
  8083. <info>
  8084. OE_TERMINAL[doc] = "Controls how the OpenEmbedded build system spawns interactive terminals on the host development system."
  8085. </info>
  8086. <glossdef>
  8087. <para role="glossdeffirst">
  8088. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8089. Controls how the OpenEmbedded build system spawns
  8090. interactive terminals on the host development system
  8091. (e.g. using the BitBake command with the
  8092. <filename>-c devshell</filename> command-line option).
  8093. For more information, see the
  8094. "<ulink url='&YOCTO_DOCS_DEV_URL;#platdev-appdev-devshell'>Using a Development Shell</ulink>" section
  8095. in the Yocto Project Development Manual.
  8096. </para>
  8097. <para>
  8098. You can use the following values for the
  8099. <filename>OE_TERMINAL</filename> variable:
  8100. <literallayout class='monospaced'>
  8101. auto
  8102. gnome
  8103. xfce
  8104. rxvt
  8105. screen
  8106. konsole
  8107. none
  8108. </literallayout>
  8109. </para>
  8110. </glossdef>
  8111. </glossentry>
  8112. <glossentry id='var-OEROOT'><glossterm>OEROOT</glossterm>
  8113. <info>
  8114. OEROOT[doc] = "The directory from which the top-level build environment setup script is sourced."
  8115. </info>
  8116. <glossdef>
  8117. <para role="glossdeffirst">
  8118. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8119. The directory from which the top-level build environment
  8120. setup script is sourced.
  8121. The Yocto Project makes two top-level build environment
  8122. setup scripts available:
  8123. <link linkend='structure-core-script'><filename>&OE_INIT_FILE;</filename></link>
  8124. and
  8125. <link linkend='structure-memres-core-script'><filename>oe-init-build-env-memres</filename></link>.
  8126. When you run one of these scripts, the
  8127. <filename>OEROOT</filename> variable resolves to the
  8128. directory that contains the script.
  8129. </para>
  8130. <para>
  8131. For additional information on how this variable is used,
  8132. see the initialization scripts.
  8133. </para>
  8134. </glossdef>
  8135. </glossentry>
  8136. <glossentry id='var-OLDEST_KERNEL'><glossterm>OLDEST_KERNEL</glossterm>
  8137. <info>
  8138. OLDEST_KERNEL[doc] = "Declares the oldest version of the Linux kernel that the produced binaries must support."
  8139. </info>
  8140. <glossdef>
  8141. <para role="glossdeffirst">
  8142. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8143. Declares the oldest version of the Linux kernel that the
  8144. produced binaries must support.
  8145. This variable is passed into the build of the Embedded
  8146. GNU C Library (<filename>glibc</filename>).
  8147. </para>
  8148. <para>
  8149. The default for this variable comes from the
  8150. <filename>meta/conf/bitbake.conf</filename> configuration
  8151. file.
  8152. You can override this default by setting the variable
  8153. in a custom distribution configuration file.
  8154. </para>
  8155. </glossdef>
  8156. </glossentry>
  8157. <glossentry id='var-OVERRIDES'><glossterm>OVERRIDES</glossterm>
  8158. <info>
  8159. OVERRIDES[doc] = "A colon-separated list of overrides that currently apply."
  8160. </info>
  8161. <glossdef>
  8162. <para role="glossdeffirst">
  8163. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8164. A colon-separated list of overrides that currently apply.
  8165. Overrides are a BitBake mechanism that allows variables to
  8166. be selectively overridden at the end of parsing.
  8167. The set of overrides in <filename>OVERRIDES</filename>
  8168. represents the "state" during building, which includes
  8169. the current recipe being built, the machine for which
  8170. it is being built, and so forth.
  8171. </para>
  8172. <para>
  8173. As an example, if the string "an-override" appears as an
  8174. element in the colon-separated list in
  8175. <filename>OVERRIDES</filename>, then the following
  8176. assignment will override <filename>FOO</filename> with the
  8177. value "overridden" at the end of parsing:
  8178. <literallayout class='monospaced'>
  8179. FOO_an-override = "overridden"
  8180. </literallayout>
  8181. See the
  8182. "<ulink url='&YOCTO_DOCS_BB_URL;#conditional-syntax-overrides'>Conditional Syntax (Overrides)</ulink>"
  8183. section in the BitBake User Manual for more information on
  8184. the overrides mechanism.
  8185. </para>
  8186. <para>
  8187. The default value of <filename>OVERRIDES</filename>
  8188. includes the values of the
  8189. <link linkend='var-CLASSOVERRIDE'><filename>CLASSOVERRIDE</filename></link>,
  8190. <link linkend='var-MACHINEOVERRIDES'><filename>MACHINEOVERRIDES</filename></link>,
  8191. and
  8192. <link linkend='var-DISTROOVERRIDES'><filename>DISTROOVERRIDES</filename></link>
  8193. variables.
  8194. Another important override included by default is
  8195. <filename>pn-${PN}</filename>.
  8196. This override allows variables to be set for a single
  8197. recipe within configuration (<filename>.conf</filename>)
  8198. files.
  8199. Here is an example:
  8200. <literallayout class='monospaced'>
  8201. FOO_pn-myrecipe = "myrecipe-specific value"
  8202. </literallayout>
  8203. <note><title>Tip</title>
  8204. An easy way to see what overrides apply is to search for
  8205. <filename>OVERRIDES</filename> in the output of the
  8206. <filename>bitbake -e</filename> command.
  8207. See the
  8208. "<link linkend='usingpoky-debugging-viewing-variable-values'>Viewing Variable Values</link>"
  8209. section for more information.
  8210. </note>
  8211. </para>
  8212. </glossdef>
  8213. </glossentry>
  8214. </glossdiv>
  8215. <glossdiv id='var-glossary-p'><title>P</title>
  8216. <glossentry id='var-P'><glossterm>P</glossterm>
  8217. <info>
  8218. P[doc] = "The recipe name and version. P is comprised of ${PN}-${PV}."
  8219. </info>
  8220. <glossdef>
  8221. <para role="glossdeffirst">
  8222. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8223. The recipe name and version.
  8224. <filename>P</filename> is comprised of the following:
  8225. <literallayout class='monospaced'>
  8226. ${PN}-${PV}
  8227. </literallayout>
  8228. </para>
  8229. </glossdef>
  8230. </glossentry>
  8231. <glossentry id='var-PACKAGE_ARCH'><glossterm>PACKAGE_ARCH</glossterm>
  8232. <info>
  8233. PACKAGE_ARCH[doc] = "The architecture of the resulting package or packages."
  8234. </info>
  8235. <glossdef>
  8236. <para role="glossdeffirst">
  8237. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8238. The architecture of the resulting package or packages.
  8239. </para>
  8240. <para>
  8241. By default, the value of this variable is set to
  8242. <link linkend='var-TUNE_PKGARCH'><filename>TUNE_PKGARCH</filename></link>
  8243. when building for the target,
  8244. <filename>BUILD_ARCH</filename> when building for the
  8245. build host and "${SDK_ARCH}-${SDKPKGSUFFIX}" when building
  8246. for the SDK.
  8247. However, if your recipe's output packages are built
  8248. specific to the target machine rather than general for
  8249. the architecture of the machine, you should set
  8250. <filename>PACKAGE_ARCH</filename> to the value of
  8251. <link linkend='var-MACHINE_ARCH'><filename>MACHINE_ARCH</filename></link>
  8252. in the recipe as follows:
  8253. <literallayout class='monospaced'>
  8254. PACKAGE_ARCH = "${MACHINE_ARCH}"
  8255. </literallayout>
  8256. </para>
  8257. </glossdef>
  8258. </glossentry>
  8259. <glossentry id='var-PACKAGE_ARCHS'><glossterm>PACKAGE_ARCHS</glossterm>
  8260. <info>
  8261. PACKAGE_ARCHS[doc] = "A list of architectures compatible with the given target in order of priority."
  8262. </info>
  8263. <glossdef>
  8264. <para role="glossdeffirst">
  8265. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8266. Specifies a list of architectures compatible with
  8267. the target machine.
  8268. This variable is set automatically and should not
  8269. normally be hand-edited.
  8270. Entries are separated using spaces and listed in order
  8271. of priority.
  8272. The default value for
  8273. <filename>PACKAGE_ARCHS</filename> is "all any noarch
  8274. ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}".
  8275. </para>
  8276. </glossdef>
  8277. </glossentry>
  8278. <glossentry id='var-PACKAGE_BEFORE_PN'><glossterm>PACKAGE_BEFORE_PN</glossterm>
  8279. <info>
  8280. PACKAGE_BEFORE_PN[doc] = "Enables easily adding packages to PACKAGES before ${PN} so that the packages can pick up files that would normally be included in the default package."
  8281. </info>
  8282. <glossdef>
  8283. <para role="glossdeffirst">
  8284. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8285. Enables easily adding packages to
  8286. <filename><link linkend='var-PACKAGES'>PACKAGES</link></filename>
  8287. before <filename>${<link linkend='var-PN'>PN</link>}</filename>
  8288. so that those added packages can pick up files that would normally be
  8289. included in the default package.
  8290. </para>
  8291. </glossdef>
  8292. </glossentry>
  8293. <glossentry id='var-PACKAGE_CLASSES'><glossterm>PACKAGE_CLASSES</glossterm>
  8294. <info>
  8295. PACKAGE_CLASSES[doc] = "This variable specifies the package manager to use when packaging data. It is set in the conf/local.conf file in the Build Directory."
  8296. </info>
  8297. <glossdef>
  8298. <para role="glossdeffirst">
  8299. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8300. This variable, which is set in the
  8301. <filename>local.conf</filename> configuration file found in
  8302. the <filename>conf</filename> folder of the
  8303. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>,
  8304. specifies the package manager the OpenEmbedded build system
  8305. uses when packaging data.
  8306. </para>
  8307. <para>
  8308. You can provide one or more of the following arguments for
  8309. the variable:
  8310. <literallayout class='monospaced'>
  8311. PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk package_tar"
  8312. </literallayout>
  8313. <note><title>Warning</title>
  8314. While it is a legal option, the
  8315. <filename>package_tar</filename> class is broken
  8316. and is not supported.
  8317. It is recommended that you do not use it.
  8318. </note>
  8319. The build system uses only the first argument in the list
  8320. as the package manager when creating your image or SDK.
  8321. However, packages will be created using any additional
  8322. packaging classes you specify.
  8323. For example, if you use the following in your
  8324. <filename>local.conf</filename> file:
  8325. <literallayout class='monospaced'>
  8326. PACKAGE_CLASSES ?= "package_ipk"
  8327. </literallayout>
  8328. The OpenEmbedded build system uses the IPK package manager
  8329. to create your image or SDK.
  8330. </para>
  8331. <para>
  8332. For information on packaging and build performance effects
  8333. as a result of the package manager in use, see the
  8334. "<link linkend='ref-classes-package'><filename>package.bbclass</filename></link>"
  8335. section.
  8336. </para>
  8337. </glossdef>
  8338. </glossentry>
  8339. <glossentry id='var-PACKAGE_DEBUG_SPLIT_STYLE'><glossterm>PACKAGE_DEBUG_SPLIT_STYLE</glossterm>
  8340. <info>
  8341. PACKAGE_DEBUG_SPLIT_STYLE[doc] = "Determines how to split up the binary and debug information when creating *-dbg packages to be used with the GNU Project Debugger (GDB)."
  8342. </info>
  8343. <glossdef>
  8344. <para role="glossdeffirst">
  8345. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8346. Determines how to split up the binary and debug information
  8347. when creating <filename>*-dbg</filename> packages to be
  8348. used with the GNU Project Debugger (GDB).
  8349. </para>
  8350. <para>
  8351. With the
  8352. <filename>PACKAGE_DEBUG_SPLIT_STYLE</filename> variable,
  8353. you can control where debug information, which can include
  8354. or exclude source files, is stored:
  8355. <itemizedlist>
  8356. <listitem><para>
  8357. ".debug": Debug symbol files are placed next
  8358. to the binary in a <filename>.debug</filename>
  8359. directory on the target.
  8360. For example, if a binary is installed into
  8361. <filename>/bin</filename>, the corresponding debug
  8362. symbol files are installed in
  8363. <filename>/bin/.debug</filename>.
  8364. Source files are placed in
  8365. <filename>/usr/src/debug</filename>.
  8366. This is the default behavior.
  8367. </para></listitem>
  8368. <listitem><para>
  8369. "debug-file-directory": Debug symbol files are
  8370. placed under <filename>/usr/lib/debug</filename>
  8371. on the target, and separated by the path from where
  8372. the binary is installed.
  8373. For example, if a binary is installed in
  8374. <filename>/bin</filename>, the corresponding debug
  8375. symbols are installed in
  8376. <filename>/usr/lib/debug/bin</filename>.
  8377. Source files are placed in
  8378. <filename>/usr/src/debug</filename>.
  8379. </para></listitem>
  8380. <listitem><para>
  8381. "debug-without-src": The same behavior as
  8382. ".debug" previously described with the exception
  8383. that no source files are installed.
  8384. </para></listitem>.
  8385. </itemizedlist>
  8386. </para>
  8387. <para>
  8388. You can find out more about debugging using GDB by reading
  8389. the
  8390. "<ulink url='&YOCTO_DOCS_DEV_URL;#platdev-gdb-remotedebug'>Debugging With the GNU Project Debugger (GDB) Remotely</ulink>"
  8391. section in the Yocto Project Development Manual.
  8392. </para>
  8393. </glossdef>
  8394. </glossentry>
  8395. <glossentry id='var-PACKAGE_EXCLUDE_COMPLEMENTARY'><glossterm>PACKAGE_EXCLUDE_COMPLEMENTARY</glossterm>
  8396. <info>
  8397. PACKAGE_EXCLUDE_COMPLEMENTARY[doc] = "Prevents specific packages from being installed when you are installing complementary packages."
  8398. </info>
  8399. <glossdef>
  8400. <para role="glossdeffirst">
  8401. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8402. Prevents specific packages from being installed when
  8403. you are installing complementary packages.
  8404. </para>
  8405. <para>
  8406. You might find that you want to prevent installing certain
  8407. packages when you are installing complementary packages.
  8408. For example, if you are using
  8409. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>
  8410. to install <filename>dev-pkgs</filename>, you might not want
  8411. to install all packages from a particular multilib.
  8412. If you find yourself in this situation, you can use the
  8413. <filename>PACKAGE_EXCLUDE_COMPLEMENTARY</filename> variable
  8414. to specify regular expressions to match the packages you
  8415. want to exclude.
  8416. </para>
  8417. </glossdef>
  8418. </glossentry>
  8419. <glossentry id='var-PACKAGE_EXCLUDE'><glossterm>PACKAGE_EXCLUDE</glossterm>
  8420. <info>
  8421. PACKAGE_EXCLUDE[doc] = "Packages to exclude from the installation. If a listed package is required, an error is generated."
  8422. </info>
  8423. <glossdef>
  8424. <para role="glossdeffirst">
  8425. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8426. Lists packages that should not be installed into an image.
  8427. For example:
  8428. <literallayout class='monospaced'>
  8429. PACKAGE_EXCLUDE = "<replaceable>package_name</replaceable> <replaceable>package_name</replaceable> <replaceable>package_name</replaceable> ..."
  8430. </literallayout>
  8431. </para>
  8432. <para>
  8433. You can set this variable globally in your
  8434. <filename>local.conf</filename> file or you can attach it to
  8435. a specific image recipe by using the recipe name override:
  8436. <literallayout class='monospaced'>
  8437. PACKAGE_EXCLUDE_pn-<replaceable>target_image</replaceable> = "<replaceable>package_name</replaceable>"
  8438. </literallayout>
  8439. </para>
  8440. <para>
  8441. If you choose to not install
  8442. a package using this variable and some other package is
  8443. dependent on it (i.e. listed in a recipe's
  8444. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>
  8445. variable), the OpenEmbedded build system generates a fatal
  8446. installation error.
  8447. Because the build system halts the process with a fatal
  8448. error, you can use the variable with an iterative
  8449. development process to remove specific components from a
  8450. system.
  8451. </para>
  8452. <para>
  8453. Support for this variable exists only when using the
  8454. IPK and RPM packaging backend.
  8455. Support does not exist for DEB.
  8456. </para>
  8457. <para>
  8458. See the
  8459. <link linkend='var-NO_RECOMMENDATIONS'><filename>NO_RECOMMENDATIONS</filename></link>
  8460. and the
  8461. <link linkend='var-BAD_RECOMMENDATIONS'><filename>BAD_RECOMMENDATIONS</filename></link>
  8462. variables for related information.
  8463. </para>
  8464. </glossdef>
  8465. </glossentry>
  8466. <glossentry id='var-PACKAGE_EXTRA_ARCHS'><glossterm>PACKAGE_EXTRA_ARCHS</glossterm>
  8467. <info>
  8468. PACKAGE_EXTRA_ARCHS[doc] = "Specifies the list of architectures compatible with the device CPU. This variable is useful when you build for several different devices that use miscellaneous processors."
  8469. </info>
  8470. <glossdef>
  8471. <para role="glossdeffirst">
  8472. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8473. Specifies the list of architectures compatible with the device CPU.
  8474. This variable is useful when you build for several different devices that use
  8475. miscellaneous processors such as XScale and ARM926-EJS.
  8476. </para>
  8477. </glossdef>
  8478. </glossentry>
  8479. <glossentry id='var-PACKAGE_FEED_ARCHS'><glossterm>PACKAGE_FEED_ARCHS</glossterm>
  8480. <info>
  8481. PACKAGE_FEED_ARCHS[doc] = "Specifies user-defined package architectures when constructing package feed URIs."
  8482. </info>
  8483. <glossdef>
  8484. <para role="glossdeffirst">
  8485. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8486. Specifies the package architectures used as part of the
  8487. package feed URIs during the build.
  8488. The <filename>PACKAGE_FEED_ARCHS</filename> variable is
  8489. appended to the final package feed URI, which is constructed
  8490. using the
  8491. <link linkend='var-PACKAGE_FEED_URIS'><filename>PACKAGE_FEED_URIS</filename></link>
  8492. and
  8493. <link linkend='var-PACKAGE_FEED_BASE_PATHS'><filename>PACKAGE_FEED_BASE_PATHS</filename></link>
  8494. variables.
  8495. </para>
  8496. <para>
  8497. Consider the following example where the
  8498. <filename>PACKAGE_FEED_URIS</filename>,
  8499. <filename>PACKAGE_FEED_BASE_PATHS</filename>, and
  8500. <filename>PACKAGE_FEED_ARCHS</filename> variables are
  8501. defined in your <filename>local.conf</filename> file:
  8502. <literallayout class='monospaced'>
  8503. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  8504. https://example.com/packagerepos/updates"
  8505. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  8506. PACKAGE_FEED_ARCHS = "all core2-64"
  8507. </literallayout>
  8508. Given these settings, the resulting package feeds are
  8509. as follows:
  8510. <literallayout class='monospaced'>
  8511. https://example.com/packagerepos/release/rpm/all
  8512. https://example.com/packagerepos/release/rpm/core2-64
  8513. https://example.com/packagerepos/release/rpm-dev/all
  8514. https://example.com/packagerepos/release/rpm-dev/core2-64
  8515. https://example.com/packagerepos/updates/rpm/all
  8516. https://example.com/packagerepos/updates/rpm/core2-64
  8517. https://example.com/packagerepos/updates/rpm-dev/all
  8518. https://example.com/packagerepos/updates/rpm-dev/core2-64
  8519. </literallayout>
  8520. </para>
  8521. </glossdef>
  8522. </glossentry>
  8523. <glossentry id='var-PACKAGE_FEED_BASE_PATHS'><glossterm>PACKAGE_FEED_BASE_PATHS</glossterm>
  8524. <info>
  8525. PACKAGE_FEED_BASE_PATHS[doc] = "Specifies base path used when constructing package feed URIs."
  8526. </info>
  8527. <glossdef>
  8528. <para role="glossdeffirst">
  8529. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8530. Specifies the base path used when constructing package feed
  8531. URIs.
  8532. The <filename>PACKAGE_FEED_BASE_PATHS</filename> variable
  8533. makes up the middle portion of a package feed URI used
  8534. by the OpenEmbedded build system.
  8535. The base path lies between the
  8536. <link linkend='var-PACKAGE_FEED_URIS'><filename>PACKAGE_FEED_URIS</filename></link>
  8537. and
  8538. <link linkend='var-PACKAGE_FEED_ARCHS'><filename>PACKAGE_FEED_ARCHS</filename></link>
  8539. variables.
  8540. </para>
  8541. <para>
  8542. Consider the following example where the
  8543. <filename>PACKAGE_FEED_URIS</filename>,
  8544. <filename>PACKAGE_FEED_BASE_PATHS</filename>, and
  8545. <filename>PACKAGE_FEED_ARCHS</filename> variables are
  8546. defined in your <filename>local.conf</filename> file:
  8547. <literallayout class='monospaced'>
  8548. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  8549. https://example.com/packagerepos/updates"
  8550. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  8551. PACKAGE_FEED_ARCHS = "all core2-64"
  8552. </literallayout>
  8553. Given these settings, the resulting package feeds are
  8554. as follows:
  8555. <literallayout class='monospaced'>
  8556. https://example.com/packagerepos/release/rpm/all
  8557. https://example.com/packagerepos/release/rpm/core2-64
  8558. https://example.com/packagerepos/release/rpm-dev/all
  8559. https://example.com/packagerepos/release/rpm-dev/core2-64
  8560. https://example.com/packagerepos/updates/rpm/all
  8561. https://example.com/packagerepos/updates/rpm/core2-64
  8562. https://example.com/packagerepos/updates/rpm-dev/all
  8563. https://example.com/packagerepos/updates/rpm-dev/core2-64
  8564. </literallayout>
  8565. </para>
  8566. </glossdef>
  8567. </glossentry>
  8568. <glossentry id='var-PACKAGE_FEED_URIS'><glossterm>PACKAGE_FEED_URIS</glossterm>
  8569. <info>
  8570. PACKAGE_FEED_URIS[doc] = "Specifies the front portion of the package feed URI used by the OpenEmbedded build system."
  8571. </info>
  8572. <glossdef>
  8573. <para role="glossdeffirst">
  8574. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8575. Specifies the front portion of the package feed URI
  8576. used by the OpenEmbedded build system.
  8577. Each final package feed URI is comprised of
  8578. <filename>PACKAGE_FEED_URIS</filename>,
  8579. <link linkend='var-PACKAGE_FEED_BASE_PATHS'><filename>PACKAGE_FEED_BASE_PATHS</filename></link>,
  8580. and
  8581. <link linkend='var-PACKAGE_FEED_ARCHS'><filename>PACKAGE_FEED_ARCHS</filename></link>
  8582. variables.
  8583. </para>
  8584. <para>
  8585. Consider the following example where the
  8586. <filename>PACKAGE_FEED_URIS</filename>,
  8587. <filename>PACKAGE_FEED_BASE_PATHS</filename>, and
  8588. <filename>PACKAGE_FEED_ARCHS</filename> variables are
  8589. defined in your <filename>local.conf</filename> file:
  8590. <literallayout class='monospaced'>
  8591. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  8592. https://example.com/packagerepos/updates"
  8593. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  8594. PACKAGE_FEED_ARCHS = "all core2-64"
  8595. </literallayout>
  8596. Given these settings, the resulting package feeds are
  8597. as follows:
  8598. <literallayout class='monospaced'>
  8599. https://example.com/packagerepos/release/rpm/all
  8600. https://example.com/packagerepos/release/rpm/core2-64
  8601. https://example.com/packagerepos/release/rpm-dev/all
  8602. https://example.com/packagerepos/release/rpm-dev/core2-64
  8603. https://example.com/packagerepos/updates/rpm/all
  8604. https://example.com/packagerepos/updates/rpm/core2-64
  8605. https://example.com/packagerepos/updates/rpm-dev/all
  8606. https://example.com/packagerepos/updates/rpm-dev/core2-64
  8607. </literallayout>
  8608. </para>
  8609. </glossdef>
  8610. </glossentry>
  8611. <glossentry id='var-PACKAGE_GROUP'><glossterm>PACKAGE_GROUP</glossterm>
  8612. <info>
  8613. PACKAGE_GROUP[doc] = "Defines one or more packages to include in an image when a specific item is included in IMAGE_FEATURES."
  8614. </info>
  8615. <glossdef>
  8616. <para role="glossdeffirst">
  8617. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8618. The <filename>PACKAGE_GROUP</filename> variable has been
  8619. renamed to
  8620. <link linkend='var-FEATURE_PACKAGES'><filename>FEATURE_PACKAGES</filename></link>.
  8621. See the variable description for
  8622. <filename>FEATURE_PACKAGES</filename> for information.
  8623. </para>
  8624. <para>
  8625. If if you use the <filename>PACKAGE_GROUP</filename>
  8626. variable, the OpenEmbedded build system issues a warning
  8627. message.
  8628. </para>
  8629. </glossdef>
  8630. </glossentry>
  8631. <glossentry id='var-PACKAGE_INSTALL'><glossterm>PACKAGE_INSTALL</glossterm>
  8632. <info>
  8633. PACKAGE_INSTALL[doc] = "List of the packages to be installed into the image. The variable is generally not user-defined and uses IMAGE_INSTALL as part of the list."
  8634. </info>
  8635. <glossdef>
  8636. <para role="glossdeffirst">
  8637. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8638. The final list of packages passed to the package manager
  8639. for installation into the image.
  8640. </para>
  8641. <para>
  8642. Because the package manager controls actual installation
  8643. of all packages, the list of packages passed using
  8644. <filename>PACKAGE_INSTALL</filename> is not the final list
  8645. of packages that are actually installed.
  8646. This variable is internal to the image construction
  8647. code.
  8648. Consequently, in general, you should use the
  8649. <link linkend='var-IMAGE_INSTALL'><filename>IMAGE_INSTALL</filename></link>
  8650. variable to specify packages for installation.
  8651. The exception to this is when working with
  8652. the
  8653. <link linkend='images-core-image-minimal-initramfs'><filename>core-image-minimal-initramfs</filename></link>
  8654. image.
  8655. When working with an initial RAM filesystem (initramfs)
  8656. image, use the <filename>PACKAGE_INSTALL</filename>
  8657. variable.
  8658. For information on creating an initramfs, see the
  8659. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-an-initramfs-image'>Building an Initial RAM Filesystem (initramfs) Image</ulink>"
  8660. section in the Yocto Project Development Manual.
  8661. </para>
  8662. </glossdef>
  8663. </glossentry>
  8664. <glossentry id='var-PACKAGE_INSTALL_ATTEMPTONLY'><glossterm>PACKAGE_INSTALL_ATTEMPTONLY</glossterm>
  8665. <info>
  8666. PACKAGE_INSTALL_ATTEMPTONLY[doc] = "List of packages attempted to be installed when creating an image. If a listed package fails to install, the build system does not generate an error. This variable is generally not user-defined."
  8667. </info>
  8668. <glossdef>
  8669. <para role="glossdeffirst">
  8670. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8671. Specifies a list of packages the OpenEmbedded build
  8672. system attempts to install when creating an image.
  8673. If a listed package fails to install, the build system
  8674. does not generate an error.
  8675. This variable is generally not user-defined.
  8676. </para>
  8677. </glossdef>
  8678. </glossentry>
  8679. <glossentry id='var-PACKAGE_PREPROCESS_FUNCS'><glossterm>PACKAGE_PREPROCESS_FUNCS</glossterm>
  8680. <info>
  8681. PACKAGE_PREPROCESS_FUNCS[doc] = "Specifies a list of functions run to pre-process the PKGD directory prior to splitting the files out to individual packages."
  8682. </info>
  8683. <glossdef>
  8684. <para role="glossdeffirst">
  8685. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8686. Specifies a list of functions run to pre-process the
  8687. <link linkend='var-PKGD'><filename>PKGD</filename></link>
  8688. directory prior to splitting the files out to individual
  8689. packages.
  8690. </para>
  8691. </glossdef>
  8692. </glossentry>
  8693. <glossentry id='var-PACKAGE_WRITE_DEPS'><glossterm>PACKAGE_WRITE_DEPS</glossterm>
  8694. <info>
  8695. PACKAGE_WRITE_DEPS[doc] = "Specifies post-installation and pre-installation script dependencies on native/cross tools."
  8696. </info>
  8697. <glossdef>
  8698. <para role="glossdeffirst">
  8699. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8700. Specifies a list of dependencies for post-installation and
  8701. pre-installation scripts on native/cross tools.
  8702. If your post-installation or pre-installation script can
  8703. execute at rootfs creation time rather than on the
  8704. target but depends on a native tool in order to execute,
  8705. you need to list the tools in
  8706. <filename>PACKAGE_WRITE_DEPENDS</filename>.
  8707. </para>
  8708. <para>
  8709. For information on running post-installation scripts, see
  8710. the
  8711. "<ulink url='&YOCTO_DOCS_DEV_URL;#new-recipe-post-installation-scripts'>Post-Installation Scripts</ulink>"
  8712. section in the Yocto Project Development Manual.
  8713. </para>
  8714. </glossdef>
  8715. </glossentry>
  8716. <glossentry id='var-PACKAGECONFIG'><glossterm>PACKAGECONFIG</glossterm>
  8717. <info>
  8718. PACKAGECONFIG[doc] = "This variable provides a means of enabling or disabling features of a recipe on a per-recipe basis."
  8719. </info>
  8720. <glossdef>
  8721. <para role="glossdeffirst">
  8722. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8723. This variable provides a means of enabling or disabling
  8724. features of a recipe on a per-recipe basis.
  8725. <filename>PACKAGECONFIG</filename> blocks are defined
  8726. in recipes when you specify features and then arguments
  8727. that define feature behaviors.
  8728. Here is the basic block structure:
  8729. <literallayout class='monospaced'>
  8730. PACKAGECONFIG ??= "f1 f2 f3 ..."
  8731. PACKAGECONFIG[f1] = "--with-f1,--without-f1,build-deps-f1,rt-deps-f1"
  8732. PACKAGECONFIG[f2] = "--with-f2,--without-f2,build-deps-f2,rt-deps-f2"
  8733. PACKAGECONFIG[f3] = "--with-f3,--without-f3,build-deps-f3,rt-deps-f3"
  8734. </literallayout>
  8735. </para>
  8736. <para>
  8737. The <filename>PACKAGECONFIG</filename>
  8738. variable itself specifies a space-separated list of the
  8739. features to enable.
  8740. Following the features, you can determine the behavior of
  8741. each feature by providing up to four order-dependent
  8742. arguments, which are separated by commas.
  8743. You can omit any argument you like but must retain the
  8744. separating commas.
  8745. The order is important and specifies the following:
  8746. <orderedlist>
  8747. <listitem><para>Extra arguments
  8748. that should be added to the configure script
  8749. argument list
  8750. (<link linkend='var-EXTRA_OECONF'><filename>EXTRA_OECONF</filename></link>
  8751. or
  8752. <link linkend='var-PACKAGECONFIG_CONFARGS'><filename>PACKAGECONFIG_CONFARGS</filename></link>)
  8753. if the feature is enabled.</para></listitem>
  8754. <listitem><para>Extra arguments
  8755. that should be added to <filename>EXTRA_OECONF</filename>
  8756. or <filename>PACKAGECONFIG_CONFARGS</filename>
  8757. if the feature is disabled.
  8758. </para></listitem>
  8759. <listitem><para>Additional build dependencies
  8760. (<link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>)
  8761. that should be added if the feature is enabled.
  8762. </para></listitem>
  8763. <listitem><para>Additional runtime dependencies
  8764. (<link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>)
  8765. that should be added if the feature is enabled.
  8766. </para></listitem>
  8767. </orderedlist>
  8768. </para>
  8769. <para>
  8770. Consider the following
  8771. <filename>PACKAGECONFIG</filename> block taken from the
  8772. <filename>librsvg</filename> recipe.
  8773. In this example the feature is <filename>croco</filename>,
  8774. which has three arguments that determine the feature's
  8775. behavior.
  8776. <literallayout class='monospaced'>
  8777. PACKAGECONFIG ??= "croco"
  8778. PACKAGECONFIG[croco] = "--with-croco,--without-croco,libcroco"
  8779. </literallayout>
  8780. The <filename>--with-croco</filename> and
  8781. <filename>libcroco</filename> arguments apply only if
  8782. the feature is enabled.
  8783. In this case, <filename>--with-croco</filename> is
  8784. added to the configure script argument list and
  8785. <filename>libcroco</filename> is added to
  8786. <filename><link linkend='var-DEPENDS'>DEPENDS</link></filename>.
  8787. On the other hand, if the feature is disabled say through
  8788. a <filename>.bbappend</filename> file in another layer, then
  8789. the second argument <filename>--without-croco</filename> is
  8790. added to the configure script rather than
  8791. <filename>--with-croco</filename>.
  8792. </para>
  8793. <para>
  8794. The basic <filename>PACKAGECONFIG</filename> structure
  8795. previously described holds true regardless of whether you
  8796. are creating a block or changing a block.
  8797. When creating a block, use the structure inside your
  8798. recipe.
  8799. </para>
  8800. <para>
  8801. If you want to change an existing
  8802. <filename>PACKAGECONFIG</filename> block, you can do so
  8803. one of two ways:
  8804. <itemizedlist>
  8805. <listitem><para><emphasis>Append file:</emphasis>
  8806. Create an append file named
  8807. <replaceable>recipename</replaceable><filename>.bbappend</filename>
  8808. in your layer and override the value of
  8809. <filename>PACKAGECONFIG</filename>.
  8810. You can either completely override the variable:
  8811. <literallayout class='monospaced'>
  8812. PACKAGECONFIG="f4 f5"
  8813. </literallayout>
  8814. Or, you can just append the variable:
  8815. <literallayout class='monospaced'>
  8816. PACKAGECONFIG_append = " f4"
  8817. </literallayout></para></listitem>
  8818. <listitem><para><emphasis>Configuration file:</emphasis>
  8819. This method is identical to changing the block
  8820. through an append file except you edit your
  8821. <filename>local.conf</filename> or
  8822. <filename><replaceable>mydistro</replaceable>.conf</filename> file.
  8823. As with append files previously described,
  8824. you can either completely override the variable:
  8825. <literallayout class='monospaced'>
  8826. PACKAGECONFIG_pn-<replaceable>recipename</replaceable>="f4 f5"
  8827. </literallayout>
  8828. Or, you can just amend the variable:
  8829. <literallayout class='monospaced'>
  8830. PACKAGECONFIG_append_pn-<replaceable>recipename</replaceable> = " f4"
  8831. </literallayout></para></listitem>
  8832. </itemizedlist>
  8833. </para>
  8834. </glossdef>
  8835. </glossentry>
  8836. <glossentry id='var-PACKAGECONFIG_CONFARGS'><glossterm>PACKAGECONFIG_CONFARGS</glossterm>
  8837. <info>
  8838. PACKAGECONFIG_CONFARGS[doc] = "A space-separated list of configuration options generated from PACKAGECONFIG."
  8839. </info>
  8840. <glossdef>
  8841. <para role="glossdeffirst">
  8842. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8843. A space-separated list of configuration options generated
  8844. from the
  8845. <link linkend='var-PACKAGECONFIG'><filename>PACKAGECONFIG</filename></link>
  8846. setting.
  8847. This list of options helps other classes and
  8848. recipes take advantage of the
  8849. <filename>PACKAGECONFIG</filename> mechanism without
  8850. having to include options from
  8851. <link linkend='var-EXTRA_OECONF'><filename>EXTRA_OECONF</filename></link>.
  8852. </para>
  8853. <para>
  8854. To illustrate how to use
  8855. <filename>PACKAGECONFIG_CONFARGS</filename>, consider the
  8856. following example:
  8857. <literallayout class='monospaced'>
  8858. PACKAGECONFIG_CONFARGS = " \
  8859. -prefix ${prefix} \
  8860. -sysroot ${STAGING_DIR_NATIVE} \
  8861. -no-gcc-sysroot
  8862. "
  8863. </literallayout>
  8864. In the previous example,
  8865. <filename>PACKAGECONFIG_CONFARGS</filename> is set with
  8866. three configuration options that can be passed using the
  8867. <filename>PACKAGECONFIG</filename> mechanism, thus
  8868. avoiding having to use <filename>EXTRA_OECONF</filename>.
  8869. </para>
  8870. <para>
  8871. For additional information, see the
  8872. <link linkend='var-PACKAGECONFIG'><filename>PACKAGECONFIG</filename></link>
  8873. variable.
  8874. </para>
  8875. </glossdef>
  8876. </glossentry>
  8877. <glossentry id='var-PACKAGEGROUP_DISABLE_COMPLEMENTARY'><glossterm>PACKAGEGROUP_DISABLE_COMPLEMENTARY</glossterm>
  8878. <info>
  8879. PACKAGEGROUP_DISABLE_COMPLEMENTARY[doc] = "Prevents automatic creation of the normal complementary packages such as -dev and -dbg in a packagegroup recipe."
  8880. </info>
  8881. <glossdef>
  8882. <para role="glossdeffirst">
  8883. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8884. For recipes inheriting the
  8885. <link linkend='ref-classes-packagegroup'><filename>packagegroup</filename></link>
  8886. class, setting
  8887. <filename>PACKAGEGROUP_DISABLE_COMPLEMENTARY</filename> to
  8888. "1" specifies that the normal complementary packages
  8889. (i.e. <filename>-dev</filename>,
  8890. <filename>-dbg</filename>, and so forth) should not be
  8891. automatically created by the
  8892. <filename>packagegroup</filename> recipe, which is the
  8893. default behavior.
  8894. </para>
  8895. </glossdef>
  8896. </glossentry>
  8897. <glossentry id='var-PACKAGES'><glossterm>PACKAGES</glossterm>
  8898. <info>
  8899. PACKAGES[doc] = "The list of packages to be created from the recipe."
  8900. </info>
  8901. <glossdef>
  8902. <para role="glossdeffirst">
  8903. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8904. The list of packages to be created from the recipe.
  8905. The default value is the following:
  8906. <literallayout class='monospaced'>
  8907. ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}
  8908. </literallayout>
  8909. </para>
  8910. <para>
  8911. During packaging, the
  8912. <link linkend='ref-tasks-package'><filename>do_package</filename></link>
  8913. task goes through <filename>PACKAGES</filename> and uses
  8914. the
  8915. <link linkend='var-FILES'><filename>FILES</filename></link>
  8916. variable corresponding to each package to assign files to
  8917. the package.
  8918. If a file matches the <filename>FILES</filename> variable
  8919. for more than one package in <filename>PACKAGES</filename>,
  8920. it will be assigned to the earliest (leftmost) package.
  8921. </para>
  8922. <para>
  8923. Packages in the variable's list that are empty (i.e. where
  8924. none of the patterns in
  8925. <filename>FILES_</filename><replaceable>pkg</replaceable>
  8926. match any files installed by the
  8927. <link linkend='ref-tasks-install'><filename>do_install</filename></link>
  8928. task) are not generated, unless generation is forced through
  8929. the
  8930. <link linkend='var-ALLOW_EMPTY'><filename>ALLOW_EMPTY</filename></link>
  8931. variable.
  8932. </para>
  8933. </glossdef>
  8934. </glossentry>
  8935. <glossentry id='var-PACKAGES_DYNAMIC'><glossterm>PACKAGES_DYNAMIC</glossterm>
  8936. <info>
  8937. PACKAGES_DYNAMIC[doc] = "A promise that your recipe satisfies runtime dependencies for optional modules that are found in other recipes."
  8938. </info>
  8939. <glossdef>
  8940. <para role="glossdeffirst">
  8941. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8942. A promise that your recipe satisfies runtime dependencies
  8943. for optional modules that are found in other recipes.
  8944. <filename>PACKAGES_DYNAMIC</filename>
  8945. does not actually satisfy the dependencies, it only states that
  8946. they should be satisfied.
  8947. For example, if a hard, runtime dependency
  8948. (<link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>)
  8949. of another package is satisfied
  8950. at build time through the <filename>PACKAGES_DYNAMIC</filename>
  8951. variable, but a package with the module name is never actually
  8952. produced, then the other package will be broken.
  8953. Thus, if you attempt to include that package in an image,
  8954. you will get a dependency failure from the packaging system
  8955. during the
  8956. <link linkend='ref-tasks-rootfs'><filename>do_rootfs</filename></link>
  8957. task.
  8958. </para>
  8959. <para>
  8960. Typically, if there is a chance that such a situation can
  8961. occur and the package that is not created is valid
  8962. without the dependency being satisfied, then you should use
  8963. <link linkend='var-RRECOMMENDS'><filename>RRECOMMENDS</filename></link>
  8964. (a soft runtime dependency) instead of
  8965. <filename>RDEPENDS</filename>.
  8966. </para>
  8967. <para>
  8968. For an example of how to use the <filename>PACKAGES_DYNAMIC</filename>
  8969. variable when you are splitting packages, see the
  8970. "<ulink url='&YOCTO_DOCS_DEV_URL;#handling-optional-module-packaging'>Handling Optional Module Packaging</ulink>" section
  8971. in the Yocto Project Development Manual.
  8972. </para>
  8973. </glossdef>
  8974. </glossentry>
  8975. <glossentry id='var-PACKAGESPLITFUNCS'><glossterm>PACKAGESPLITFUNCS</glossterm>
  8976. <info>
  8977. PACKAGESPLITFUNCS[doc] = "Specifies a list of functions run to perform additional splitting of files into individual packages."
  8978. </info>
  8979. <glossdef>
  8980. <para role="glossdeffirst">
  8981. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8982. Specifies a list of functions run to perform additional
  8983. splitting of files into individual packages.
  8984. Recipes can either prepend to this variable or prepend
  8985. to the <filename>populate_packages</filename> function
  8986. in order to perform additional package splitting.
  8987. In either case, the function should set
  8988. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>,
  8989. <link linkend='var-FILES'><filename>FILES</filename></link>,
  8990. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>
  8991. and other packaging variables appropriately in order to
  8992. perform the desired splitting.
  8993. </para>
  8994. </glossdef>
  8995. </glossentry>
  8996. <glossentry id='var-PARALLEL_MAKE'><glossterm>PARALLEL_MAKE</glossterm>
  8997. <info>
  8998. PARALLEL_MAKE[doc] = "Specifies extra options that are passed to the make command during the compile tasks. This variable is usually in the form -j x, where x represents the maximum number of parallel threads make can run."
  8999. </info>
  9000. <glossdef>
  9001. <para role="glossdeffirst">
  9002. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9003. Extra options passed to the <filename>make</filename>
  9004. command during the
  9005. <link linkend='ref-tasks-compile'><filename>do_compile</filename></link>
  9006. task in order to specify parallel compilation on the local
  9007. build host.
  9008. This variable is usually in the form "-j <replaceable>x</replaceable>",
  9009. where <replaceable>x</replaceable> represents the maximum
  9010. number of parallel threads <filename>make</filename> can
  9011. run.
  9012. <note><title>Caution</title>
  9013. In order for <filename>PARALLEL_MAKE</filename> to be
  9014. effective, <filename>make</filename> must be called
  9015. with
  9016. <filename>${</filename><link linkend='var-EXTRA_OEMAKE'><filename>EXTRA_OEMAKE</filename></link><filename>}</filename>.
  9017. An easy way to ensure this is to use the
  9018. <filename>oe_runmake</filename> function.
  9019. </note>
  9020. </para>
  9021. <para>
  9022. By default, the OpenEmbedded build system automatically
  9023. sets this variable to be equal to the number of cores the
  9024. build system uses.
  9025. <note>
  9026. If the software being built experiences dependency
  9027. issues during the <filename>do_compile</filename>
  9028. task that result in race conditions, you can clear
  9029. the <filename>PARALLEL_MAKE</filename> variable within
  9030. the recipe as a workaround.
  9031. For information on addressing race conditions, see the
  9032. "<ulink url='&YOCTO_DOCS_DEV_URL;#debugging-parallel-make-races'>Debugging Parallel Make Races</ulink>"
  9033. section in the Yocto Project Development Manual.
  9034. </note>
  9035. For single socket systems (i.e. one CPU), you should not
  9036. have to override this variable to gain optimal parallelism
  9037. during builds.
  9038. However, if you have very large systems that employ
  9039. multiple physical CPUs, you might want to make sure the
  9040. <filename>PARALLEL_MAKE</filename> variable is not
  9041. set higher than "-j 20".
  9042. </para>
  9043. <para>
  9044. For more information on speeding up builds, see the
  9045. "<link linkend='speeding-up-the-build'>Speeding Up the Build</link>"
  9046. section.
  9047. </para>
  9048. </glossdef>
  9049. </glossentry>
  9050. <glossentry id='var-PARALLEL_MAKEINST'><glossterm>PARALLEL_MAKEINST</glossterm>
  9051. <info>
  9052. PARALLEL_MAKEINST[doc] = "Extra options passed to the make install command during the do_install task in order to specify parallel installation."
  9053. </info>
  9054. <glossdef>
  9055. <para role="glossdeffirst">
  9056. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9057. Extra options passed to the
  9058. <filename>make install</filename> command during the
  9059. <link linkend='ref-tasks-install'><filename>do_install</filename></link>
  9060. task in order to specify parallel installation.
  9061. This variable defaults to the value of
  9062. <link linkend='var-PARALLEL_MAKE'><filename>PARALLEL_MAKE</filename></link>.
  9063. <note><title>Notes and Cautions</title>
  9064. <para>In order for <filename>PARALLEL_MAKEINST</filename>
  9065. to be
  9066. effective, <filename>make</filename> must be called
  9067. with
  9068. <filename>${</filename><link linkend='var-EXTRA_OEMAKE'><filename>EXTRA_OEMAKE</filename></link><filename>}</filename>.
  9069. An easy way to ensure this is to use the
  9070. <filename>oe_runmake</filename> function.</para>
  9071. <para>If the software being built experiences
  9072. dependency issues during the
  9073. <filename>do_install</filename> task that result in
  9074. race conditions, you can clear the
  9075. <filename>PARALLEL_MAKEINST</filename> variable within
  9076. the recipe as a workaround.
  9077. For information on addressing race conditions, see the
  9078. "<ulink url='&YOCTO_DOCS_DEV_URL;#debugging-parallel-make-races'>Debugging Parallel Make Races</ulink>"
  9079. section in the Yocto Project Development Manual.</para>
  9080. </note>
  9081. </para>
  9082. </glossdef>
  9083. </glossentry>
  9084. <glossentry id='var-PATCHRESOLVE'><glossterm>PATCHRESOLVE</glossterm>
  9085. <info>
  9086. PATCHRESOLVE[doc] = "Enable or disable interactive patch resolution."
  9087. </info>
  9088. <glossdef>
  9089. <para role="glossdeffirst">
  9090. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9091. Determines the action to take when a patch fails.
  9092. You can set this variable to one of two values: "noop" and
  9093. "user".
  9094. </para>
  9095. <para>
  9096. The default value of "noop" causes the build to simply fail
  9097. when the OpenEmbedded build system cannot successfully
  9098. apply a patch.
  9099. Setting the value to "user" causes the build system to
  9100. launch a shell and places you in the right location so that
  9101. you can manually resolve the conflicts.
  9102. </para>
  9103. <para>
  9104. Set this variable in your
  9105. <filename>local.conf</filename> file.
  9106. </para>
  9107. </glossdef>
  9108. </glossentry>
  9109. <glossentry id='var-PATCHTOOL'><glossterm>PATCHTOOL</glossterm>
  9110. <info>
  9111. PATCHTOOL[doc] = "Specifies the utility used to apply patches for a recipe during do_patch."
  9112. </info>
  9113. <glossdef>
  9114. <para role="glossdeffirst">
  9115. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9116. Specifies the utility used to apply patches for a recipe
  9117. during the
  9118. <link linkend='ref-tasks-patch'><filename>do_patch</filename></link>
  9119. task.
  9120. You can specify one of three utilities: "patch", "quilt", or
  9121. "git".
  9122. The default utility used is "quilt" except for the
  9123. quilt-native recipe itself.
  9124. Because the quilt tool is not available at the
  9125. time quilt-native is being patched, it uses "patch".
  9126. </para>
  9127. <para>
  9128. If you wish to use an alternative patching tool, set the
  9129. variable in the recipe using one of the following:
  9130. <literallayout class='monospaced'>
  9131. PATCHTOOL = "patch"
  9132. PATCHTOOL = "quilt"
  9133. PATCHTOOL = "git"
  9134. </literallayout>
  9135. </para>
  9136. </glossdef>
  9137. </glossentry>
  9138. <glossentry id='var-PE'><glossterm>PE</glossterm>
  9139. <info>
  9140. PE[doc] = "The epoch of the recipe. The default value is '0'. The field is used to make upgrades possible when the versioning scheme changes in some backwards incompatible way."
  9141. </info>
  9142. <glossdef>
  9143. <para role="glossdeffirst">
  9144. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9145. The epoch of the recipe.
  9146. By default, this variable is unset.
  9147. The variable is used to make upgrades possible when the
  9148. versioning scheme changes in some backwards incompatible
  9149. way.
  9150. </para>
  9151. <para>
  9152. <filename>PE</filename> is the default value of the
  9153. <link linkend='var-PKGE'><filename>PKGE</filename></link>
  9154. variable.
  9155. </para>
  9156. </glossdef>
  9157. </glossentry>
  9158. <glossentry id='var-PF'><glossterm>PF</glossterm>
  9159. <info>
  9160. PF[doc] = "Specifies the recipe or package name and includes all version and revision numbers. This variable is comprised of ${PN}-${EXTENDPE}${PV}-${PR}."
  9161. </info>
  9162. <glossdef>
  9163. <para role="glossdeffirst">
  9164. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9165. Specifies the recipe or package name and includes all version and revision
  9166. numbers (i.e. <filename>glibc-2.13-r20+svnr15508/</filename> and
  9167. <filename>bash-4.2-r1/</filename>).
  9168. This variable is comprised of the following:
  9169. <literallayout class='monospaced'>
  9170. ${<link linkend='var-PN'>PN</link>}-${<link linkend='var-EXTENDPE'>EXTENDPE</link>}${<link linkend='var-PV'>PV</link>}-${<link linkend='var-PR'>PR</link>}
  9171. </literallayout>
  9172. </para>
  9173. </glossdef>
  9174. </glossentry>
  9175. <glossentry id='var-PIXBUF_PACKAGES'><glossterm>PIXBUF_PACKAGES</glossterm>
  9176. <info>
  9177. PIXBUF_PACKAGES[doc] = "When a recipe inherits the pixbufcache class, this variable identifies packages that contain the pixbuf loaders used with gdk-pixbuf."
  9178. </info>
  9179. <glossdef>
  9180. <para role="glossdeffirst">
  9181. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9182. When inheriting the
  9183. <link linkend='ref-classes-pixbufcache'><filename>pixbufcache</filename></link>
  9184. class, this variable identifies packages that contain
  9185. the pixbuf loaders used with
  9186. <filename>gdk-pixbuf</filename>.
  9187. By default, the <filename>pixbufcache</filename> class
  9188. assumes that the loaders are in the recipe's main package
  9189. (i.e. <filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}</filename>).
  9190. Use this variable if the loaders you need are in a package
  9191. other than that main package.
  9192. </para>
  9193. </glossdef>
  9194. </glossentry>
  9195. <glossentry id='var-PKG'><glossterm>PKG</glossterm>
  9196. <info>
  9197. PKG[doc] = "The name of the resulting package created by the OpenEmbedded build system. When you use this variable, you must use a package name override."
  9198. </info>
  9199. <glossdef>
  9200. <para role="glossdeffirst">
  9201. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9202. The name of the resulting package created by the
  9203. OpenEmbedded build system.
  9204. <note>
  9205. When using the <filename>PKG</filename> variable, you
  9206. must use a package name override.
  9207. </note>
  9208. </para>
  9209. <para>
  9210. For example, when the
  9211. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  9212. class renames the output package, it does so by setting
  9213. <filename>PKG_<replaceable>packagename</replaceable></filename>.
  9214. </para>
  9215. </glossdef>
  9216. </glossentry>
  9217. <glossentry id='var-PKG_CONFIG_PATH'><glossterm>PKG_CONFIG_PATH</glossterm>
  9218. <info>
  9219. PKG_CONFIG_PATH[doc] = "Path to pkg-config files for the current build context."
  9220. </info>
  9221. <glossdef>
  9222. <para role="glossdeffirst">
  9223. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9224. The path to <filename>pkg-config</filename> files for the
  9225. current build context.
  9226. <filename>pkg-config</filename> reads this variable
  9227. from the environment.
  9228. </para>
  9229. </glossdef>
  9230. </glossentry>
  9231. <glossentry id='var-PKGD'><glossterm>PKGD</glossterm>
  9232. <info>
  9233. PKGD[doc] = "Points to the destination directory for files to be packaged before they are split into individual packages."
  9234. </info>
  9235. <glossdef>
  9236. <para role="glossdeffirst">
  9237. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9238. Points to the destination directory for files to be
  9239. packaged before they are split into individual packages.
  9240. This directory defaults to the following:
  9241. <literallayout class='monospaced'>
  9242. ${WORKDIR}/package
  9243. </literallayout>
  9244. </para>
  9245. <para>
  9246. Do not change this default.
  9247. </para>
  9248. </glossdef>
  9249. </glossentry>
  9250. <glossentry id='var-PKGDATA_DIR'><glossterm>PKGDATA_DIR</glossterm>
  9251. <info>
  9252. PKGDATA_DIR[doc] = "Points to a shared, global-state directory that holds data generated during the packaging process."
  9253. </info>
  9254. <glossdef>
  9255. <para role="glossdeffirst">
  9256. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9257. Points to a shared, global-state directory that holds data
  9258. generated during the packaging process.
  9259. During the packaging process, the
  9260. <link linkend='ref-tasks-packagedata'><filename>do_packagedata</filename></link>
  9261. task packages data for each recipe and installs it into
  9262. this temporary, shared area.
  9263. This directory defaults to the following, which you should
  9264. not change:
  9265. <literallayout class='monospaced'>
  9266. ${STAGING_DIR_HOST}/pkgdata
  9267. </literallayout>
  9268. For examples of how this data is used, see the
  9269. "<link linkend='automatically-added-runtime-dependencies'>Automatically Added Runtime Dependencies</link>"
  9270. section and the
  9271. "<link linkend='viewing-package-information-with-oe-pkgdata-util'>Viewing Package Information with <filename>oe-pkgdata-util</filename></link>"
  9272. section.
  9273. </para>
  9274. </glossdef>
  9275. </glossentry>
  9276. <glossentry id='var-PKGDEST'><glossterm>PKGDEST</glossterm>
  9277. <info>
  9278. PKGDEST[doc] = "Points to the parent directory for files to be packaged after they have been split into individual packages."
  9279. </info>
  9280. <glossdef>
  9281. <para role="glossdeffirst">
  9282. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9283. Points to the parent directory for files to be packaged
  9284. after they have been split into individual packages.
  9285. This directory defaults to the following:
  9286. <literallayout class='monospaced'>
  9287. ${WORKDIR}/packages-split
  9288. </literallayout>
  9289. </para>
  9290. <para>
  9291. Under this directory, the build system creates
  9292. directories for each package specified in
  9293. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>.
  9294. Do not change this default.
  9295. </para>
  9296. </glossdef>
  9297. </glossentry>
  9298. <glossentry id='var-PKGDESTWORK'><glossterm>PKGDESTWORK</glossterm>
  9299. <info>
  9300. PKGDESTWORK[doc] = "Points to a temporary work area where the do_package task saves package metadata."
  9301. </info>
  9302. <glossdef>
  9303. <para role="glossdeffirst">
  9304. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9305. Points to a temporary work area where the
  9306. <link linkend='ref-tasks-package'><filename>do_package</filename></link>
  9307. task saves package metadata.
  9308. The <filename>PKGDESTWORK</filename> location defaults to
  9309. the following:
  9310. <literallayout class='monospaced'>
  9311. ${WORKDIR}/pkgdata
  9312. </literallayout>
  9313. Do not change this default.
  9314. </para>
  9315. <para>
  9316. The
  9317. <link linkend='ref-tasks-packagedata'><filename>do_packagedata</filename></link>
  9318. task copies the package metadata from
  9319. <filename>PKGDESTWORK</filename> to
  9320. <link linkend='var-PKGDATA_DIR'><filename>PKGDATA_DIR</filename></link>
  9321. to make it available globally.
  9322. </para>
  9323. </glossdef>
  9324. </glossentry>
  9325. <glossentry id='var-PKGE'><glossterm>PKGE</glossterm>
  9326. <info>
  9327. PKGE[doc] = "The epoch of the package(s) built by the recipe."
  9328. </info>
  9329. <glossdef>
  9330. <para role="glossdeffirst">
  9331. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9332. The epoch of the package(s) built by the recipe.
  9333. By default, <filename>PKGE</filename> is set to
  9334. <link linkend='var-PE'><filename>PE</filename></link>.
  9335. </para>
  9336. </glossdef>
  9337. </glossentry>
  9338. <glossentry id='var-PKGR'><glossterm>PKGR</glossterm>
  9339. <info>
  9340. PKGR[doc] = "The revision of the package(s) built by the recipe."
  9341. </info>
  9342. <glossdef>
  9343. <para role="glossdeffirst">
  9344. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9345. The revision of the package(s) built by the recipe.
  9346. By default, <filename>PKGR</filename> is set to
  9347. <link linkend='var-PR'><filename>PR</filename></link>.
  9348. </para>
  9349. </glossdef>
  9350. </glossentry>
  9351. <glossentry id='var-PKGV'><glossterm>PKGV</glossterm>
  9352. <info>
  9353. PKGV[doc] = "The version of the package(s) built by the recipe."
  9354. </info>
  9355. <glossdef>
  9356. <para role="glossdeffirst">
  9357. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9358. The version of the package(s) built by the
  9359. recipe.
  9360. By default, <filename>PKGV</filename> is set to
  9361. <link linkend='var-PV'><filename>PV</filename></link>.
  9362. </para>
  9363. </glossdef>
  9364. </glossentry>
  9365. <glossentry id='var-PN'><glossterm>PN</glossterm>
  9366. <info>
  9367. PN[doc] = "PN refers to a recipe name in the context of a file used by the OpenEmbedded build system as input to create a package. It refers to a package name in the context of a file created or produced by the OpenEmbedded build system."
  9368. </info>
  9369. <glossdef>
  9370. <para role="glossdeffirst">
  9371. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9372. This variable can have two separate functions depending on the context: a recipe
  9373. name or a resulting package name.
  9374. </para>
  9375. <para>
  9376. <filename>PN</filename> refers to a recipe name in the context of a file used
  9377. by the OpenEmbedded build system as input to create a package.
  9378. The name is normally extracted from the recipe file name.
  9379. For example, if the recipe is named
  9380. <filename>expat_2.0.1.bb</filename>, then the default value of <filename>PN</filename>
  9381. will be "expat".
  9382. </para>
  9383. <para>
  9384. The variable refers to a package name in the context of a file created or produced by the
  9385. OpenEmbedded build system.
  9386. </para>
  9387. <para>
  9388. If applicable, the <filename>PN</filename> variable also contains any special
  9389. suffix or prefix.
  9390. For example, using <filename>bash</filename> to build packages for the native
  9391. machine, <filename>PN</filename> is <filename>bash-native</filename>.
  9392. Using <filename>bash</filename> to build packages for the target and for Multilib,
  9393. <filename>PN</filename> would be <filename>bash</filename> and
  9394. <filename>lib64-bash</filename>, respectively.
  9395. </para>
  9396. </glossdef>
  9397. </glossentry>
  9398. <glossentry id='var-PNBLACKLIST'><glossterm>PNBLACKLIST</glossterm>
  9399. <info>
  9400. PNBLACKLIST[doc] = "Lists recipes you do not want the OpenEmbedded build system to build."
  9401. </info>
  9402. <glossdef>
  9403. <para role="glossdeffirst">
  9404. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9405. Lists recipes you do not want the OpenEmbedded build system
  9406. to build.
  9407. This variable works in conjunction with the
  9408. <link linkend='ref-classes-blacklist'><filename>blacklist</filename></link>
  9409. class, which the recipe must inherit globally.
  9410. </para>
  9411. <para>
  9412. To prevent a recipe from being built, inherit the class
  9413. globally and use the variable in your
  9414. <filename>local.conf</filename> file.
  9415. Here is an example that prevents
  9416. <filename>myrecipe</filename> from being built:
  9417. <literallayout class='monospaced'>
  9418. INHERIT += "blacklist"
  9419. PNBLACKLIST[myrecipe] = "Not supported by our organization."
  9420. </literallayout>
  9421. </para>
  9422. </glossdef>
  9423. </glossentry>
  9424. <glossentry id='var-POPULATE_SDK_POST_HOST_COMMAND'><glossterm>POPULATE_SDK_POST_HOST_COMMAND</glossterm>
  9425. <info>
  9426. POPULATE_SDK_POST_HOST_COMMAND[doc] = "Specifies a list of functions to call once the OpenEmbedded build system has created host part of the SDK."
  9427. </info>
  9428. <glossdef>
  9429. <para role="glossdeffirst">
  9430. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9431. Specifies a list of functions to call once the
  9432. OpenEmbedded build system has created the host part of
  9433. the SDK.
  9434. You can specify functions separated by semicolons:
  9435. <literallayout class='monospaced'>
  9436. POPULATE_SDK_POST_HOST_COMMAND += "<replaceable>function</replaceable>; ... "
  9437. </literallayout>
  9438. </para>
  9439. <para>
  9440. If you need to pass the SDK path to a command
  9441. within a function, you can use
  9442. <filename>${SDK_DIR}</filename>, which points to
  9443. the parent directory used by the OpenEmbedded build
  9444. system when creating SDK output.
  9445. See the
  9446. <link linkend='var-SDK_DIR'><filename>SDK_DIR</filename></link>
  9447. variable for more information.
  9448. </para>
  9449. </glossdef>
  9450. </glossentry>
  9451. <glossentry id='var-POPULATE_SDK_POST_TARGET_COMMAND'><glossterm>POPULATE_SDK_POST_TARGET_COMMAND</glossterm>
  9452. <info>
  9453. POPULATE_SDK_POST_TARGET_COMMAND[doc] = "Specifies a list of functions to call once the OpenEmbedded build system has created target part of the SDK."
  9454. </info>
  9455. <glossdef>
  9456. <para role="glossdeffirst">
  9457. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9458. Specifies a list of functions to call once the
  9459. OpenEmbedded build system has created the target part of
  9460. the SDK.
  9461. You can specify functions separated by semicolons:
  9462. <literallayout class='monospaced'>
  9463. POPULATE_SDK_POST_TARGET_COMMAND += "<replaceable>function</replaceable>; ... "
  9464. </literallayout>
  9465. </para>
  9466. <para>
  9467. If you need to pass the SDK path to a command
  9468. within a function, you can use
  9469. <filename>${SDK_DIR}</filename>, which points to
  9470. the parent directory used by the OpenEmbedded build
  9471. system when creating SDK output.
  9472. See the
  9473. <link linkend='var-SDK_DIR'><filename>SDK_DIR</filename></link>
  9474. variable for more information.
  9475. </para>
  9476. </glossdef>
  9477. </glossentry>
  9478. <glossentry id='var-PR'><glossterm>PR</glossterm>
  9479. <info>
  9480. PR[doc] = "The revision of the recipe. The default value for this variable is 'r0'."
  9481. </info>
  9482. <glossdef>
  9483. <para role="glossdeffirst">
  9484. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9485. The revision of the recipe. The default value for this
  9486. variable is "r0".
  9487. Subsequent revisions of the recipe conventionally have the
  9488. values "r1", "r2", and so forth.
  9489. When
  9490. <link linkend='var-PV'><filename>PV</filename></link>
  9491. increases, <filename>PR</filename> is conventionally reset
  9492. to "r0".
  9493. <note>
  9494. The OpenEmbedded build system does not need the aid of
  9495. <filename>PR</filename> to know when to rebuild a
  9496. recipe.
  9497. The build system uses the task
  9498. <ulink url='&YOCTO_DOCS_BB_URL;#checksums'>input checksums</ulink>
  9499. along with the
  9500. <link linkend='structure-build-tmp-stamps'>stamp</link>
  9501. and
  9502. <link linkend='shared-state-cache'>shared state cache</link>
  9503. mechanisms.
  9504. </note>
  9505. The <filename>PR</filename> variable primarily becomes
  9506. significant when a package manager dynamically installs
  9507. packages on an already built image.
  9508. In this case, <filename>PR</filename>, which is the default
  9509. value of
  9510. <link linkend='var-PKGR'><filename>PKGR</filename></link>,
  9511. helps the package manager distinguish which package is the
  9512. most recent one in cases where many packages have the same
  9513. <filename>PV</filename> (i.e. <filename>PKGV</filename>).
  9514. A component having many packages with the same
  9515. <filename>PV</filename> usually means that the packages all
  9516. install the same upstream version, but with later
  9517. (<filename>PR</filename>) version packages including
  9518. packaging fixes.
  9519. <note>
  9520. <filename>PR</filename> does not need to be increased
  9521. for changes that do not change the package contents or
  9522. metadata.
  9523. </note>
  9524. Because manually managing <filename>PR</filename> can be
  9525. cumbersome and error-prone, an automated solution exists.
  9526. See the
  9527. "<ulink url='&YOCTO_DOCS_DEV_URL;#working-with-a-pr-service'>Working With a PR Service</ulink>"
  9528. section for more information.
  9529. </para>
  9530. </glossdef>
  9531. </glossentry>
  9532. <glossentry id='var-PREFERRED_PROVIDER'><glossterm>PREFERRED_PROVIDER</glossterm>
  9533. <info>
  9534. PREFERRED_PROVIDER[doc] = "If multiple recipes provide an item, this variable determines which recipe should be given preference."
  9535. </info>
  9536. <glossdef>
  9537. <para role="glossdeffirst">
  9538. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9539. If multiple recipes provide an item, this variable
  9540. determines which recipe should be given preference.
  9541. You should always suffix the variable with the name of the
  9542. provided item, and you should set it to the
  9543. <link linkend='var-PN'><filename>PN</filename></link>
  9544. of the recipe to which you want to give precedence.
  9545. Some examples:
  9546. <literallayout class='monospaced'>
  9547. PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
  9548. PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86"
  9549. PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
  9550. </literallayout>
  9551. <note>
  9552. If you set <filename>PREFERRED_PROVIDER</filename>
  9553. for a <filename>virtual/*</filename> item, then any
  9554. recipe that
  9555. <link linkend='var-PROVIDES'><filename>PROVIDES</filename></link>
  9556. that item that is not selected by
  9557. <filename>PREFERRED_PROVIDER</filename> is prevented
  9558. from building, which is usually desirable since this
  9559. mechanism is designed to select between mutually
  9560. exclusive alternative providers.
  9561. </note>
  9562. </para>
  9563. </glossdef>
  9564. </glossentry>
  9565. <glossentry id='var-PREFERRED_VERSION'><glossterm>PREFERRED_VERSION</glossterm>
  9566. <info>
  9567. PREFERRED_VERSION[doc] = "If there are multiple versions of recipes available, this variable determines which recipe should be given preference."
  9568. </info>
  9569. <glossdef>
  9570. <para role="glossdeffirst">
  9571. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9572. If there are multiple versions of recipes available, this
  9573. variable determines which recipe should be given preference.
  9574. You must always suffix the variable with the
  9575. <link linkend='var-PN'><filename>PN</filename></link>
  9576. you want to select, and you should set the
  9577. <link linkend='var-PV'><filename>PV</filename></link>
  9578. accordingly for precedence.
  9579. You can use the "<filename>%</filename>" character as a
  9580. wildcard to match any number of characters, which can be
  9581. useful when specifying versions that contain long revision
  9582. numbers that could potentially change.
  9583. Here are two examples:
  9584. <literallayout class='monospaced'>
  9585. PREFERRED_VERSION_python = "3.4.0"
  9586. PREFERRED_VERSION_linux-yocto = "3.19%"
  9587. </literallayout>
  9588. <note>
  9589. The specified version is matched against
  9590. <link linkend='var-PV'><filename>PV</filename></link>,
  9591. which does not necessarily match the version part of
  9592. the recipe's filename.
  9593. For example, consider two recipes
  9594. <filename>foo_1.2.bb</filename> and
  9595. <filename>foo_git.bb</filename> where
  9596. <filename>foo_git.bb</filename> contains the following
  9597. assignment:
  9598. <literallayout class='monospaced'>
  9599. PV = "1.1+git${SRCPV}"
  9600. </literallayout>
  9601. In this case, the correct way to select
  9602. <filename>foo_git.bb</filename> is by using an
  9603. assignment such as the following:
  9604. <literallayout class='monospaced'>
  9605. PREFERRED_VERSION_foo = "1.1+git%"
  9606. </literallayout>
  9607. Compare that previous example against the following
  9608. incorrect example, which does not work:
  9609. <literallayout class='monospaced'>
  9610. PREFERRED_VERSION_foo = "git"
  9611. </literallayout>
  9612. </note>
  9613. Sometimes the <filename>PREFERRED_VERSION</filename>
  9614. variable can be set by configuration files in a way that
  9615. is hard to change.
  9616. You can use
  9617. <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>
  9618. to set a machine-specific override.
  9619. Here is an example:
  9620. <literallayout class='monospaced'>
  9621. PREFERRED_VERSION_linux-yocto_qemux86 = "3.4%"
  9622. </literallayout>
  9623. Although not recommended, worst case, you can also use the
  9624. "forcevariable" override, which is the strongest override
  9625. possible.
  9626. Here is an example:
  9627. <literallayout class='monospaced'>
  9628. PREFERRED_VERSION_linux-yocto_forcevariable = "3.4%"
  9629. </literallayout>
  9630. <note>
  9631. The <filename>_forcevariable</filename> override is
  9632. not handled specially.
  9633. This override only works because the default value of
  9634. <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>
  9635. includes "forcevariable".
  9636. </note>
  9637. </para>
  9638. </glossdef>
  9639. </glossentry>
  9640. <glossentry id='var-PREMIRRORS'><glossterm>PREMIRRORS</glossterm>
  9641. <info>
  9642. PREMIRRORS[doc] = "Specifies additional paths from which the OpenEmbedded build system gets source code."
  9643. </info>
  9644. <glossdef>
  9645. <para role="glossdeffirst">
  9646. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9647. Specifies additional paths from which the OpenEmbedded
  9648. build system gets source code.
  9649. When the build system searches for source code, it first
  9650. tries the local download directory.
  9651. If that location fails, the build system tries locations
  9652. defined by <filename>PREMIRRORS</filename>, the upstream
  9653. source, and then locations specified by
  9654. <link linkend='var-MIRRORS'><filename>MIRRORS</filename></link>
  9655. in that order.
  9656. </para>
  9657. <para>
  9658. Assuming your distribution
  9659. (<link linkend='var-DISTRO'><filename>DISTRO</filename></link>)
  9660. is "poky", the default value for
  9661. <filename>PREMIRRORS</filename> is defined in the
  9662. <filename>conf/distro/poky.conf</filename> file in the
  9663. <filename>meta-poky</filename> Git repository.
  9664. </para>
  9665. <para>
  9666. Typically, you could add a specific server for the
  9667. build system to attempt before any others by adding
  9668. something like the following to the
  9669. <filename>local.conf</filename> configuration file in the
  9670. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>:
  9671. <literallayout class='monospaced'>
  9672. PREMIRRORS_prepend = "\
  9673. git://.*/.* http://www.yoctoproject.org/sources/ \n \
  9674. ftp://.*/.* http://www.yoctoproject.org/sources/ \n \
  9675. http://.*/.* http://www.yoctoproject.org/sources/ \n \
  9676. https://.*/.* http://www.yoctoproject.org/sources/ \n"
  9677. </literallayout>
  9678. These changes cause the build system to intercept
  9679. Git, FTP, HTTP, and HTTPS requests and direct them to
  9680. the <filename>http://</filename> sources mirror.
  9681. You can use <filename>file://</filename> URLs to point
  9682. to local directories or network shares as well.
  9683. </para>
  9684. </glossdef>
  9685. </glossentry>
  9686. <glossentry id='var-PRIORITY'><glossterm>PRIORITY</glossterm>
  9687. <info>
  9688. PRIORITY[doc] = "Indicates the importance of a package. The default value is 'optional'. Other standard values are 'required', 'standard' and 'extra'."
  9689. </info>
  9690. <glossdef>
  9691. <para role="glossdeffirst">
  9692. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9693. Indicates the importance of a package.
  9694. </para>
  9695. <para>
  9696. <filename>PRIORITY</filename> is considered to be part of
  9697. the distribution policy because the importance of any given
  9698. recipe depends on the purpose for which the distribution
  9699. is being produced.
  9700. Thus, <filename>PRIORITY</filename> is not normally set
  9701. within recipes.
  9702. </para>
  9703. <para>
  9704. You can set <filename>PRIORITY</filename> to "required",
  9705. "standard", "extra", and "optional", which is the default.
  9706. </para>
  9707. </glossdef>
  9708. </glossentry>
  9709. <glossentry id='var-PRIVATE_LIBS'><glossterm>PRIVATE_LIBS</glossterm>
  9710. <info>
  9711. PRIVATE_LIBS[doc] = "Specifies libraries installed within a recipe that should be ignored by the OpenEmbedded build system's shared library resolver."
  9712. </info>
  9713. <glossdef>
  9714. <para role="glossdeffirst">
  9715. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9716. Specifies libraries installed within a recipe that
  9717. should be ignored by the OpenEmbedded build system's
  9718. shared library resolver.
  9719. This variable is typically used when software being
  9720. built by a recipe has its own private versions of a
  9721. library normally provided by another recipe.
  9722. In this case, you would not want the package containing
  9723. the private libraries to be set as a dependency on other
  9724. unrelated packages that should instead depend on the
  9725. package providing the standard version of the library.
  9726. </para>
  9727. <para>
  9728. Libraries specified in this variable should be specified
  9729. by their file name.
  9730. For example, from the Firefox recipe in meta-browser:
  9731. <literallayout class='monospaced'>
  9732. PRIVATE_LIBS = "libmozjs.so \
  9733. libxpcom.so \
  9734. libnspr4.so \
  9735. libxul.so \
  9736. libmozalloc.so \
  9737. libplc4.so \
  9738. libplds4.so"
  9739. </literallayout>
  9740. </para>
  9741. <para>
  9742. For more information, see the
  9743. "<link linkend='automatically-added-runtime-dependencies'>Automatically Added Runtime Dependencies</link>"
  9744. section.
  9745. </para>
  9746. </glossdef>
  9747. </glossentry>
  9748. <glossentry id='var-PROVIDES'><glossterm>PROVIDES</glossterm>
  9749. <info>
  9750. PROVIDES[doc] = "A list of aliases that a recipe also provides. These aliases are useful for satisfying dependencies of other recipes during the build as specified by DEPENDS."
  9751. </info>
  9752. <glossdef>
  9753. <para role="glossdeffirst">
  9754. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9755. A list of aliases by which a particular recipe can be
  9756. known.
  9757. By default, a recipe's own
  9758. <filename><link linkend='var-PN'>PN</link></filename>
  9759. is implicitly already in its <filename>PROVIDES</filename>
  9760. list.
  9761. If a recipe uses <filename>PROVIDES</filename>, the
  9762. additional aliases are synonyms for the recipe and can
  9763. be useful satisfying dependencies of other recipes during
  9764. the build as specified by
  9765. <filename><link linkend='var-DEPENDS'>DEPENDS</link></filename>.
  9766. </para>
  9767. <para>
  9768. Consider the following example
  9769. <filename>PROVIDES</filename> statement from a recipe
  9770. file <filename>libav_0.8.11.bb</filename>:
  9771. <literallayout class='monospaced'>
  9772. PROVIDES += "libpostproc"
  9773. </literallayout>
  9774. The <filename>PROVIDES</filename> statement results in
  9775. the "libav" recipe also being known as "libpostproc".
  9776. </para>
  9777. <para>
  9778. In addition to providing recipes under alternate names,
  9779. the <filename>PROVIDES</filename> mechanism is also used
  9780. to implement virtual targets.
  9781. A virtual target is a name that corresponds to some
  9782. particular functionality (e.g. a Linux kernel).
  9783. Recipes that provide the functionality in question list the
  9784. virtual target in <filename>PROVIDES</filename>.
  9785. Recipes that depend on the functionality in question can
  9786. include the virtual target in
  9787. <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>
  9788. to leave the choice of provider open.
  9789. </para>
  9790. <para>
  9791. Conventionally, virtual targets have names on the form
  9792. "virtual/function" (e.g. "virtual/kernel").
  9793. The slash is simply part of the name and has no
  9794. syntactical significance.
  9795. </para>
  9796. <para>
  9797. The
  9798. <link linkend='var-PREFERRED_PROVIDER'><filename>PREFERRED_PROVIDER</filename></link>
  9799. variable is used to select which particular recipe
  9800. provides a virtual target.
  9801. <note>
  9802. <para>A corresponding mechanism for virtual runtime
  9803. dependencies (packages) exists.
  9804. However, the mechanism does not depend on any special
  9805. functionality beyond ordinary variable assignments.
  9806. For example,
  9807. <filename>VIRTUAL-RUNTIME_dev_manager</filename>
  9808. refers to the package of the component that manages
  9809. the <filename>/dev</filename> directory.</para>
  9810. <para>Setting the "preferred provider" for runtime
  9811. dependencies is as simple as using the following
  9812. assignment in a configuration file:</para>
  9813. <literallayout class='monospaced'>
  9814. VIRTUAL-RUNTIME_dev_manager = "udev"
  9815. </literallayout>
  9816. </note>
  9817. </para>
  9818. </glossdef>
  9819. </glossentry>
  9820. <glossentry id='var-PRSERV_HOST'><glossterm>PRSERV_HOST</glossterm>
  9821. <info>
  9822. PRSERV_HOST[doc] = "The network based PR service host and port."
  9823. </info>
  9824. <glossdef>
  9825. <para role="glossdeffirst">
  9826. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9827. The network based
  9828. <link linkend='var-PR'><filename>PR</filename></link>
  9829. service host and port.
  9830. </para>
  9831. <para>
  9832. The <filename>conf/local.conf.sample.extended</filename>
  9833. configuration file in the
  9834. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>
  9835. shows how the <filename>PRSERV_HOST</filename> variable is
  9836. set:
  9837. <literallayout class='monospaced'>
  9838. PRSERV_HOST = "localhost:0"
  9839. </literallayout>
  9840. You must set the variable if you want to automatically
  9841. start a local
  9842. <ulink url='&YOCTO_DOCS_DEV_URL;#working-with-a-pr-service'>PR service</ulink>.
  9843. You can set <filename>PRSERV_HOST</filename> to other
  9844. values to use a remote PR service.
  9845. </para>
  9846. </glossdef>
  9847. </glossentry>
  9848. <glossentry id='var-PTEST_ENABLED'><glossterm>PTEST_ENABLED</glossterm>
  9849. <info>
  9850. PRSERV_HOST[doc] = "Specifies whether or not Package Test (ptest) functionality is enabled when building a recipe."
  9851. </info>
  9852. <glossdef>
  9853. <para role="glossdeffirst">
  9854. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9855. Specifies whether or not
  9856. <ulink url='&YOCTO_DOCS_DEV_URL;#testing-packages-with-ptest'>Package Test</ulink>
  9857. (ptest) functionality is enabled when building a recipe.
  9858. You should not set this variable directly.
  9859. Enabling and disabling building Package Tests
  9860. at build time should be done by adding "ptest" to (or
  9861. removing it from)
  9862. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>.
  9863. </para>
  9864. </glossdef>
  9865. </glossentry>
  9866. <glossentry id='var-PV'><glossterm>PV</glossterm>
  9867. <info>
  9868. PV[doc] = "The version of the recipe. The version is normally extracted from the recipe filename."
  9869. </info>
  9870. <glossdef>
  9871. <para role="glossdeffirst">
  9872. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9873. The version of the recipe.
  9874. The version is normally extracted from the recipe filename.
  9875. For example, if the recipe is named
  9876. <filename>expat_2.0.1.bb</filename>, then the default value
  9877. of <filename>PV</filename> will be "2.0.1".
  9878. <filename>PV</filename> is generally not overridden within
  9879. a recipe unless it is building an unstable (i.e.
  9880. development) version from a source code repository
  9881. (e.g. Git or Subversion).
  9882. </para>
  9883. <para>
  9884. <filename>PV</filename> is the default value of the
  9885. <link linkend='var-PKGV'><filename>PKGV</filename></link>
  9886. variable.
  9887. </para>
  9888. </glossdef>
  9889. </glossentry>
  9890. <glossentry id='var-PYTHON_ABI'><glossterm>PYTHON_ABI</glossterm>
  9891. <info>
  9892. PYTHON_ABI[doc] = "When used by recipes that inherit the distutils3, setuptools3, distutils, or setuptools classes, denotes the Application Binary Interface (ABI) currently in use for Python."
  9893. </info>
  9894. <glossdef>
  9895. <para role="glossdeffirst">
  9896. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9897. When used by recipes that inherit the
  9898. <link linkend='ref-classes-distutils3'><filename>distutils3</filename></link>,
  9899. <link linkend='ref-classes-setuptools3'><filename>setuptools3</filename></link>,
  9900. <link linkend='ref-classes-distutils'><filename>distutils</filename></link>,
  9901. or
  9902. <link linkend='ref-classes-setuptools'><filename>setuptools</filename></link>
  9903. classes, denotes the Application Binary Interface (ABI)
  9904. currently in use for Python.
  9905. By default, the ABI is "m".
  9906. You do not have to set this variable as the OpenEmbedded
  9907. build system sets it for you.
  9908. </para>
  9909. <para>
  9910. The OpenEmbedded build system uses the ABI to construct
  9911. directory names used when installing the Python headers
  9912. and libraries in sysroot
  9913. (e.g. <filename>.../python3.3m/...</filename>).
  9914. </para>
  9915. <para>
  9916. Recipes that inherit the
  9917. <link linkend='ref-classes-distutils'><filename>distutils</filename></link>
  9918. class during cross-builds also use this variable to
  9919. locate the headers and libraries of the appropriate Python
  9920. that the extension is targeting.
  9921. </para>
  9922. </glossdef>
  9923. </glossentry>
  9924. <glossentry id='var-PYTHON_PN'><glossterm>PYTHON_PN</glossterm>
  9925. <info>
  9926. PYTHON_PN[doc] = "When used by recipes that inherit the distutils3, setuptools3, distutils, or setuptools classes, specifies the major Python version being built."
  9927. </info>
  9928. <glossdef>
  9929. <para role="glossdeffirst">
  9930. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9931. When used by recipes that inherit the
  9932. <link linkend='ref-classes-distutils3'><filename>distutils3</filename></link>,
  9933. <link linkend='ref-classes-setuptools3'><filename>setuptools3</filename></link>,
  9934. <link linkend='ref-classes-distutils'><filename>distutils</filename></link>,
  9935. or
  9936. <link linkend='ref-classes-setuptools'><filename>setuptools</filename></link>
  9937. classes, specifies the major Python version being built.
  9938. For Python 2.x, <filename>PYTHON_PN</filename> would
  9939. be "python2". For Python 3.x, the variable would be
  9940. "python3".
  9941. You do not have to set this variable as the
  9942. OpenEmbedded build system automatically sets it for you.
  9943. </para>
  9944. <para>
  9945. The variable allows recipes to use common infrastructure
  9946. such as the following:
  9947. <literallayout class='monospaced'>
  9948. DEPENDS += "${PYTHON_PN}-native"
  9949. </literallayout>
  9950. In the previous example, the version of the dependency
  9951. is <filename>PYTHON_PN</filename>.
  9952. </para>
  9953. </glossdef>
  9954. </glossentry>
  9955. </glossdiv>
  9956. <glossdiv id='var-glossary-r'><title>R</title>
  9957. <glossentry id='var-RANLIB'><glossterm>RANLIB</glossterm>
  9958. <info>
  9959. RANLIB[doc] = "Minimal command and arguments to run 'ranlib'."
  9960. </info>
  9961. <glossdef>
  9962. <para role="glossdeffirst">
  9963. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9964. The minimal command and arguments to run
  9965. <filename>ranlib</filename>.
  9966. </para>
  9967. </glossdef>
  9968. </glossentry>
  9969. <glossentry id='var-RCONFLICTS'><glossterm>RCONFLICTS</glossterm>
  9970. <info>
  9971. RCONFLICTS[doc] = "The list of packages that conflict with another package. Note that the package will not be installed if the conflicting packages are not first removed."
  9972. </info>
  9973. <glossdef>
  9974. <para role="glossdeffirst">
  9975. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9976. The list of packages that conflict with packages.
  9977. Note that packages will not be installed if conflicting
  9978. packages are not first removed.
  9979. </para>
  9980. <para>
  9981. Like all package-controlling variables, you must always use
  9982. them in conjunction with a package name override.
  9983. Here is an example:
  9984. <literallayout class='monospaced'>
  9985. RCONFLICTS_${PN} = "<replaceable>another_conflicting_package_name</replaceable>"
  9986. </literallayout>
  9987. </para>
  9988. <para>
  9989. BitBake, which the OpenEmbedded build system uses, supports
  9990. specifying versioned dependencies.
  9991. Although the syntax varies depending on the packaging
  9992. format, BitBake hides these differences from you.
  9993. Here is the general syntax to specify versions with
  9994. the <filename>RCONFLICTS</filename> variable:
  9995. <literallayout class='monospaced'>
  9996. RCONFLICTS_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
  9997. </literallayout>
  9998. For <filename>operator</filename>, you can specify the
  9999. following:
  10000. <literallayout class='monospaced'>
  10001. =
  10002. &lt;
  10003. &gt;
  10004. &lt;=
  10005. &gt;=
  10006. </literallayout>
  10007. For example, the following sets up a dependency on version
  10008. 1.2 or greater of the package <filename>foo</filename>:
  10009. <literallayout class='monospaced'>
  10010. RCONFLICTS_${PN} = "foo (>= 1.2)"
  10011. </literallayout>
  10012. </para>
  10013. </glossdef>
  10014. </glossentry>
  10015. <glossentry id='var-RDEPENDS'><glossterm>RDEPENDS</glossterm>
  10016. <info>
  10017. RDEPENDS[doc] = "Lists runtime dependencies of a package."
  10018. </info>
  10019. <glossdef>
  10020. <para role="glossdeffirst">
  10021. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10022. Lists runtime dependencies of a package.
  10023. These dependencies are other packages that must be
  10024. installed in order for the package to function correctly.
  10025. As an example, the following assignment declares that the
  10026. package <filename>foo</filename> needs the packages
  10027. <filename>bar</filename> and <filename>baz</filename> to
  10028. be installed:
  10029. <literallayout class='monospaced'>
  10030. RDEPENDS_foo = "bar baz"
  10031. </literallayout>
  10032. The most common types of package runtime dependencies are
  10033. automatically detected and added.
  10034. Therefore, most recipes do not need to set
  10035. <filename>RDEPENDS</filename>.
  10036. For more information, see the
  10037. "<link linkend='automatically-added-runtime-dependencies'>Automatically Added Runtime Dependencies</link>"
  10038. section.
  10039. </para>
  10040. <para>
  10041. The practical effect of the above
  10042. <filename>RDEPENDS</filename> assignment is that
  10043. <filename>bar</filename> and <filename>baz</filename>
  10044. will be declared as dependencies inside the package
  10045. <filename>foo</filename> when it is written out by one of
  10046. the
  10047. <link linkend='ref-tasks-package_write_deb'><filename>do_package_write_*</filename></link>
  10048. tasks.
  10049. Exactly how this is done depends on which package format
  10050. is used, which is determined by
  10051. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>.
  10052. When the corresponding package manager installs the
  10053. package, it will know to also install the packages on
  10054. which it depends.
  10055. </para>
  10056. <para>
  10057. To ensure that the packages <filename>bar</filename> and
  10058. <filename>baz</filename> get built, the previous
  10059. <filename>RDEPENDS</filename> assignment also causes a task
  10060. dependency to be added.
  10061. This dependency is from the recipe's
  10062. <link linkend='ref-tasks-build'><filename>do_build</filename></link>
  10063. (not to be confused with
  10064. <link linkend='ref-tasks-compile'><filename>do_compile</filename></link>)
  10065. task to the <filename>do_package_write_*</filename>
  10066. task of the recipes that build <filename>bar</filename> and
  10067. <filename>baz</filename>.
  10068. </para>
  10069. <para>
  10070. The names of the packages you list within
  10071. <filename>RDEPENDS</filename> must be the names of other
  10072. packages - they cannot be recipe names.
  10073. Although package names and recipe names usually match,
  10074. the important point here is that you are
  10075. providing package names within the
  10076. <filename>RDEPENDS</filename> variable.
  10077. For an example of the default list of packages created from
  10078. a recipe, see the
  10079. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>
  10080. variable.
  10081. </para>
  10082. <para>
  10083. Because the <filename>RDEPENDS</filename> variable applies
  10084. to packages being built, you should always use the variable
  10085. in a form with an attached package name (remember that a
  10086. single recipe can build multiple packages).
  10087. For example, suppose you are building a development package
  10088. that depends on the <filename>perl</filename> package.
  10089. In this case, you would use the following
  10090. <filename>RDEPENDS</filename> statement:
  10091. <literallayout class='monospaced'>
  10092. RDEPENDS_${PN}-dev += "perl"
  10093. </literallayout>
  10094. In the example, the development package depends on
  10095. the <filename>perl</filename> package.
  10096. Thus, the <filename>RDEPENDS</filename> variable has the
  10097. <filename>${PN}-dev</filename> package name as part of the
  10098. variable.
  10099. <note>
  10100. <title>Caution</title>
  10101. <filename>RDEPENDS_${PN}-dev</filename> includes
  10102. <filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}</filename>
  10103. by default.
  10104. This default is set in the BitBake configuration file
  10105. (<filename>meta/conf/bitbake.conf</filename>).
  10106. Be careful not to accidentally remove
  10107. <filename>${PN}</filename> when modifying
  10108. <filename>RDEPENDS_${PN}-dev</filename>.
  10109. Use the "+=" operator rather than the "=" operator.
  10110. </note>
  10111. </para>
  10112. <para>
  10113. The package names you use with
  10114. <filename>RDEPENDS</filename> must appear as they would in
  10115. the <filename>PACKAGES</filename> variable.
  10116. The
  10117. <link linkend='var-PKG'><filename>PKG</filename></link>
  10118. variable allows a different name to be used for
  10119. the final package (e.g. the
  10120. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  10121. class uses this to rename packages), but this final package
  10122. name cannot be used with <filename>RDEPENDS</filename>,
  10123. which makes sense as <filename>RDEPENDS</filename> is meant
  10124. to be independent of the package format used.
  10125. </para>
  10126. <para>
  10127. BitBake, which the OpenEmbedded build system uses, supports
  10128. specifying versioned dependencies.
  10129. Although the syntax varies depending on the packaging
  10130. format, BitBake hides these differences from you.
  10131. Here is the general syntax to specify versions with
  10132. the <filename>RDEPENDS</filename> variable:
  10133. <literallayout class='monospaced'>
  10134. RDEPENDS_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
  10135. </literallayout>
  10136. For <replaceable>operator</replaceable>, you can specify the
  10137. following:
  10138. <literallayout class='monospaced'>
  10139. =
  10140. &lt;
  10141. &gt;
  10142. &lt;=
  10143. &gt;=
  10144. </literallayout>
  10145. For <replaceable>version</replaceable>, provide the version
  10146. number.
  10147. <note><title>Tip</title>
  10148. You can use
  10149. <link linkend='var-EXTENDPKGV'><filename>EXTENDPKGV</filename></link>
  10150. to provide a full package version specification.
  10151. </note>
  10152. For example, the following sets up a dependency on version
  10153. 1.2 or greater of the package <filename>foo</filename>:
  10154. <literallayout class='monospaced'>
  10155. RDEPENDS_${PN} = "foo (>= 1.2)"
  10156. </literallayout>
  10157. </para>
  10158. <para>
  10159. For information on build-time dependencies, see the
  10160. <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>
  10161. variable.
  10162. You can also see the
  10163. "<ulink url='&YOCTO_DOCS_BB_URL;#tasks'>Tasks</ulink>" and
  10164. "<ulink url='&YOCTO_DOCS_BB_URL;#dependencies'>Dependencies</ulink>"
  10165. sections in the BitBake User Manual for additional
  10166. information on tasks and dependencies.
  10167. </para>
  10168. </glossdef>
  10169. </glossentry>
  10170. <glossentry id='var-REQUIRED_DISTRO_FEATURES'><glossterm>REQUIRED_DISTRO_FEATURES</glossterm>
  10171. <info>
  10172. REQUIRED_DISTRO_FEATURES[doc] = "When a recipe inherits the distro_features_check class, this variable identifies distribution features that must exist in the current configuration in order for the OpenEmbedded build system to build the recipe."
  10173. </info>
  10174. <glossdef>
  10175. <para role="glossdeffirst">
  10176. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10177. When inheriting the
  10178. <link linkend='ref-classes-distro_features_check'><filename>distro_features_check</filename></link>
  10179. class, this
  10180. variable identifies distribution features that must
  10181. exist in the current configuration in order for the
  10182. OpenEmbedded build system to build the recipe.
  10183. In other words, if the
  10184. <filename>REQUIRED_DISTRO_FEATURES</filename> variable
  10185. lists a feature that does not appear in
  10186. <filename>DISTRO_FEATURES</filename> within the
  10187. current configuration, an error occurs and the
  10188. build stops.
  10189. </para>
  10190. </glossdef>
  10191. </glossentry>
  10192. <glossentry id='var-RM_WORK_EXCLUDE'><glossterm>RM_WORK_EXCLUDE</glossterm>
  10193. <info>
  10194. RM_WORK_EXCLUDE[doc] = "With rm_work enabled, this variable specifies a list of packages whose work directories should not be removed."
  10195. </info>
  10196. <glossdef>
  10197. <para role="glossdeffirst">
  10198. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10199. With <filename>rm_work</filename> enabled, this
  10200. variable specifies a list of recipes whose work directories
  10201. should not be removed.
  10202. See the "<link linkend='ref-classes-rm-work'><filename>rm_work.bbclass</filename></link>"
  10203. section for more details.
  10204. </para>
  10205. </glossdef>
  10206. </glossentry>
  10207. <glossentry id='var-ROOT_HOME'><glossterm>ROOT_HOME</glossterm>
  10208. <info>
  10209. ROOT_HOME[doc] = "Defines the root home directory."
  10210. </info>
  10211. <glossdef>
  10212. <para role="glossdeffirst">
  10213. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10214. Defines the root home directory.
  10215. By default, this directory is set as follows in the
  10216. BitBake configuration file:
  10217. <literallayout class='monospaced'>
  10218. ROOT_HOME ??= "/home/root"
  10219. </literallayout>
  10220. <note>
  10221. This default value is likely used because some
  10222. embedded solutions prefer to have a read-only root
  10223. filesystem and prefer to keep writeable data in one
  10224. place.
  10225. </note>
  10226. </para>
  10227. <para>
  10228. You can override the default by setting the variable
  10229. in any layer or in the <filename>local.conf</filename> file.
  10230. Because the default is set using a "weak" assignment
  10231. (i.e. "??="), you can use either of the following forms
  10232. to define your override:
  10233. <literallayout class='monospaced'>
  10234. ROOT_HOME = "/root"
  10235. ROOT_HOME ?= "/root"
  10236. </literallayout>
  10237. These override examples use <filename>/root</filename>,
  10238. which is probably the most commonly used override.
  10239. </para>
  10240. </glossdef>
  10241. </glossentry>
  10242. <glossentry id='var-ROOTFS'><glossterm>ROOTFS</glossterm>
  10243. <info>
  10244. ROOTFS[doc] = "Indicates a filesystem image to include as the root filesystem."
  10245. </info>
  10246. <glossdef>
  10247. <para role="glossdeffirst">
  10248. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10249. Indicates a filesystem image to include as the root
  10250. filesystem.
  10251. </para>
  10252. <para>
  10253. The <filename>ROOTFS</filename> variable is an optional
  10254. variable used with the
  10255. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  10256. class.
  10257. </para>
  10258. </glossdef>
  10259. </glossentry>
  10260. <glossentry id='var-ROOTFS_POSTINSTALL_COMMAND'><glossterm>ROOTFS_POSTINSTALL_COMMAND</glossterm>
  10261. <info>
  10262. ROOTFS_POSTINSTALL_COMMAND[doc] = "Specifies a list of functions to call after installing packages."
  10263. </info>
  10264. <glossdef>
  10265. <para role="glossdeffirst">
  10266. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10267. Specifies a list of functions to call after the
  10268. OpenEmbedded build system has installed packages.
  10269. You can specify functions separated by semicolons:
  10270. <literallayout class='monospaced'>
  10271. ROOTFS_POSTINSTALL_COMMAND += "<replaceable>function</replaceable>; ... "
  10272. </literallayout>
  10273. </para>
  10274. <para>
  10275. If you need to pass the root filesystem path to a command
  10276. within a function, you can use
  10277. <filename>${IMAGE_ROOTFS}</filename>, which points to
  10278. the directory that becomes the root filesystem image.
  10279. See the
  10280. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  10281. variable for more information.
  10282. </para>
  10283. </glossdef>
  10284. </glossentry>
  10285. <glossentry id='var-ROOTFS_POSTPROCESS_COMMAND'><glossterm>ROOTFS_POSTPROCESS_COMMAND</glossterm>
  10286. <info>
  10287. ROOTFS_POSTPROCESS_COMMAND[doc] = "Specifies a list of functions to call once the OpenEmbedded build system has created the root filesystem."
  10288. </info>
  10289. <glossdef>
  10290. <para role="glossdeffirst">
  10291. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10292. Specifies a list of functions to call once the
  10293. OpenEmbedded build system has created the root filesystem.
  10294. You can specify functions separated by semicolons:
  10295. <literallayout class='monospaced'>
  10296. ROOTFS_POSTPROCESS_COMMAND += "<replaceable>function</replaceable>; ... "
  10297. </literallayout>
  10298. </para>
  10299. <para>
  10300. If you need to pass the root filesystem path to a command
  10301. within a function, you can use
  10302. <filename>${IMAGE_ROOTFS}</filename>, which points to
  10303. the directory that becomes the root filesystem image.
  10304. See the
  10305. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  10306. variable for more information.
  10307. </para>
  10308. </glossdef>
  10309. </glossentry>
  10310. <glossentry id='var-ROOTFS_POSTUNINSTALL_COMMAND'><glossterm>ROOTFS_POSTUNINSTALL_COMMAND</glossterm>
  10311. <info>
  10312. ROOTFS_POSTUNINSTALL_COMMAND[doc] = "Specifies a list of functions to call after removal of unneeded packages."
  10313. </info>
  10314. <glossdef>
  10315. <para role="glossdeffirst">
  10316. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10317. Specifies a list of functions to call after the
  10318. OpenEmbedded build system has removed unnecessary
  10319. packages.
  10320. When runtime package management is disabled in the
  10321. image, several packages are removed including
  10322. <filename>base-passwd</filename>,
  10323. <filename>shadow</filename>, and
  10324. <filename>update-alternatives</filename>.
  10325. You can specify functions separated by semicolons:
  10326. <literallayout class='monospaced'>
  10327. ROOTFS_POSTUNINSTALL_COMMAND += "<replaceable>function</replaceable>; ... "
  10328. </literallayout>
  10329. </para>
  10330. <para>
  10331. If you need to pass the root filesystem path to a command
  10332. within a function, you can use
  10333. <filename>${IMAGE_ROOTFS}</filename>, which points to
  10334. the directory that becomes the root filesystem image.
  10335. See the
  10336. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  10337. variable for more information.
  10338. </para>
  10339. </glossdef>
  10340. </glossentry>
  10341. <glossentry id='var-ROOTFS_PREPROCESS_COMMAND'><glossterm>ROOTFS_PREPROCESS_COMMAND</glossterm>
  10342. <info>
  10343. ROOTFS_PREPROCESS_COMMAND[doc] = "Specifies a list of functions to call before the OpenEmbedded build system has created the root filesystem."
  10344. </info>
  10345. <glossdef>
  10346. <para role="glossdeffirst">
  10347. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10348. Specifies a list of functions to call before the
  10349. OpenEmbedded build system has created the root filesystem.
  10350. You can specify functions separated by semicolons:
  10351. <literallayout class='monospaced'>
  10352. ROOTFS_PREPROCESS_COMMAND += "<replaceable>function</replaceable>; ... "
  10353. </literallayout>
  10354. </para>
  10355. <para>
  10356. If you need to pass the root filesystem path to a command
  10357. within a function, you can use
  10358. <filename>${IMAGE_ROOTFS}</filename>, which points to
  10359. the directory that becomes the root filesystem image.
  10360. See the
  10361. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  10362. variable for more information.
  10363. </para>
  10364. </glossdef>
  10365. </glossentry>
  10366. <glossentry id='var-RPROVIDES'><glossterm>RPROVIDES</glossterm>
  10367. <info>
  10368. RPROVIDES[doc] = "A list of package name aliases that a package also provides. These aliases are useful for satisfying runtime dependencies of other packages both during the build and on the target."
  10369. </info>
  10370. <glossdef>
  10371. <para role="glossdeffirst">
  10372. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10373. A list of package name aliases that a package also provides.
  10374. These aliases are useful for satisfying runtime dependencies
  10375. of other packages both during the build and on the target
  10376. (as specified by
  10377. <filename><link linkend='var-RDEPENDS'>RDEPENDS</link></filename>).
  10378. <note>
  10379. A package's own name is implicitly already in its
  10380. <filename>RPROVIDES</filename> list.
  10381. </note>
  10382. </para>
  10383. <para>
  10384. As with all package-controlling variables, you must always
  10385. use the variable in conjunction with a package name override.
  10386. Here is an example:
  10387. <literallayout class='monospaced'>
  10388. RPROVIDES_${PN} = "widget-abi-2"
  10389. </literallayout>
  10390. </para>
  10391. </glossdef>
  10392. </glossentry>
  10393. <glossentry id='var-RRECOMMENDS'><glossterm>RRECOMMENDS</glossterm>
  10394. <info>
  10395. RRECOMMENDS[doc] = "A list of packages that extends the usability of a package being built. The package being built does not depend on this list of packages in order to successfully build, but needs them for the extended usability."
  10396. </info>
  10397. <glossdef>
  10398. <para role="glossdeffirst">
  10399. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10400. A list of packages that extends the usability of a package
  10401. being built.
  10402. The package being built does not depend on this list of
  10403. packages in order to successfully build, but rather
  10404. uses them for extended usability.
  10405. To specify runtime dependencies for packages, see the
  10406. <filename><link linkend='var-RDEPENDS'>RDEPENDS</link></filename>
  10407. variable.
  10408. </para>
  10409. <para>
  10410. The package manager will automatically install the
  10411. <filename>RRECOMMENDS</filename> list of packages when
  10412. installing the built package.
  10413. However, you can prevent listed packages from being
  10414. installed by using the
  10415. <link linkend='var-BAD_RECOMMENDATIONS'><filename>BAD_RECOMMENDATIONS</filename></link>,
  10416. <link linkend='var-NO_RECOMMENDATIONS'><filename>NO_RECOMMENDATIONS</filename></link>,
  10417. and
  10418. <link linkend='var-PACKAGE_EXCLUDE'><filename>PACKAGE_EXCLUDE</filename></link>
  10419. variables.
  10420. </para>
  10421. <para>
  10422. Packages specified in
  10423. <filename>RRECOMMENDS</filename> need not actually be
  10424. produced.
  10425. However, a recipe must exist that provides each package,
  10426. either through the
  10427. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>
  10428. or
  10429. <link linkend='var-PACKAGES_DYNAMIC'><filename>PACKAGES_DYNAMIC</filename></link>
  10430. variables or the
  10431. <link linkend='var-RPROVIDES'><filename>RPROVIDES</filename></link>
  10432. variable, or an error will occur during the build.
  10433. If such a recipe does exist and the package is not produced,
  10434. the build continues without error.
  10435. </para>
  10436. <para>
  10437. Because the <filename>RRECOMMENDS</filename> variable
  10438. applies to packages being built, you should always attach
  10439. an override to the variable to specify the particular
  10440. package whose usability is being extended.
  10441. For example, suppose you are building a development package
  10442. that is extended to support wireless functionality.
  10443. In this case, you would use the following:
  10444. <literallayout class='monospaced'>
  10445. RRECOMMENDS_${PN}-dev += "<replaceable>wireless_package_name</replaceable>"
  10446. </literallayout>
  10447. In the example, the package name
  10448. (<filename>${<link linkend='var-PN'>PN</link>}-dev</filename>)
  10449. must appear as it would in the
  10450. <filename><link linkend='var-PACKAGES'>PACKAGES</link></filename>
  10451. namespace before any renaming of the output package by
  10452. classes such as <filename>debian.bbclass</filename>.
  10453. </para>
  10454. <para>
  10455. BitBake, which the OpenEmbedded build system uses, supports
  10456. specifying versioned recommends.
  10457. Although the syntax varies depending on the packaging
  10458. format, BitBake hides these differences from you.
  10459. Here is the general syntax to specify versions with
  10460. the <filename>RRECOMMENDS</filename> variable:
  10461. <literallayout class='monospaced'>
  10462. RRECOMMENDS_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
  10463. </literallayout>
  10464. For <filename>operator</filename>, you can specify the
  10465. following:
  10466. <literallayout class='monospaced'>
  10467. =
  10468. &lt;
  10469. &gt;
  10470. &lt;=
  10471. &gt;=
  10472. </literallayout>
  10473. For example, the following sets up a recommend on version
  10474. 1.2 or greater of the package <filename>foo</filename>:
  10475. <literallayout class='monospaced'>
  10476. RRECOMMENDS_${PN} = "foo (>= 1.2)"
  10477. </literallayout>
  10478. </para>
  10479. </glossdef>
  10480. </glossentry>
  10481. <glossentry id='var-RREPLACES'><glossterm>RREPLACES</glossterm>
  10482. <info>
  10483. RREPLACES[doc] = "A list of packages replaced by a package. The package manager uses this variable to determine which package should be installed to replace other package(s) during an upgrade."
  10484. </info>
  10485. <glossdef>
  10486. <para role="glossdeffirst">
  10487. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10488. A list of packages replaced by a package.
  10489. The package manager uses this variable to determine which
  10490. package should be installed to replace other package(s)
  10491. during an upgrade.
  10492. In order to also have the other package(s) removed at the
  10493. same time, you must add the name of the other
  10494. package to the
  10495. <filename><link linkend='var-RCONFLICTS'>RCONFLICTS</link></filename> variable.
  10496. </para>
  10497. <para>
  10498. As with all package-controlling variables, you must use
  10499. this variable in conjunction with a package name
  10500. override.
  10501. Here is an example:
  10502. <literallayout class='monospaced'>
  10503. RREPLACES_${PN} = "<replaceable>other_package_being_replaced</replaceable>"
  10504. </literallayout>
  10505. </para>
  10506. <para>
  10507. BitBake, which the OpenEmbedded build system uses, supports
  10508. specifying versioned replacements.
  10509. Although the syntax varies depending on the packaging
  10510. format, BitBake hides these differences from you.
  10511. Here is the general syntax to specify versions with
  10512. the <filename>RREPLACES</filename> variable:
  10513. <literallayout class='monospaced'>
  10514. RREPLACES_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
  10515. </literallayout>
  10516. For <filename>operator</filename>, you can specify the
  10517. following:
  10518. <literallayout class='monospaced'>
  10519. =
  10520. &lt;
  10521. &gt;
  10522. &lt;=
  10523. &gt;=
  10524. </literallayout>
  10525. For example, the following sets up a replacement using
  10526. version 1.2 or greater of the package
  10527. <filename>foo</filename>:
  10528. <literallayout class='monospaced'>
  10529. RREPLACES_${PN} = "foo (>= 1.2)"
  10530. </literallayout>
  10531. </para>
  10532. </glossdef>
  10533. </glossentry>
  10534. <glossentry id='var-RSUGGESTS'><glossterm>RSUGGESTS</glossterm>
  10535. <info>
  10536. RSUGGESTS[doc] = "A list of additional packages that you can suggest for installation by the package manager at the time a package is installed. Not all package managers support this functionality."
  10537. </info>
  10538. <glossdef>
  10539. <para role="glossdeffirst">
  10540. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10541. A list of additional packages that you can suggest for
  10542. installation by the package manager at the time a package
  10543. is installed.
  10544. Not all package managers support this functionality.
  10545. </para>
  10546. <para>
  10547. As with all package-controlling variables, you must always
  10548. use this variable in conjunction with a package name
  10549. override.
  10550. Here is an example:
  10551. <literallayout class='monospaced'>
  10552. RSUGGESTS_${PN} = "<replaceable>useful_package</replaceable> <replaceable>another_package</replaceable>"
  10553. </literallayout>
  10554. </para>
  10555. </glossdef>
  10556. </glossentry>
  10557. </glossdiv>
  10558. <glossdiv id='var-glossary-s'><title>S</title>
  10559. <glossentry id='var-S'><glossterm>S</glossterm>
  10560. <info>
  10561. S[doc] = "The location in the Build Directory where unpacked package source code resides."
  10562. </info>
  10563. <glossdef>
  10564. <para role="glossdeffirst">
  10565. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10566. The location in the
  10567. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>
  10568. where unpacked recipe source code resides.
  10569. By default, this directory is
  10570. <filename>${</filename><link linkend='var-WORKDIR'><filename>WORKDIR</filename></link><filename>}/${</filename><link linkend='var-BPN'><filename>BPN</filename></link><filename>}-${</filename><link linkend='var-PV'><filename>PV</filename></link><filename>}</filename>,
  10571. where <filename>${BPN}</filename> is the base recipe name
  10572. and <filename>${PV}</filename> is the recipe version.
  10573. If the source tarball extracts the code to a directory
  10574. named anything other than <filename>${BPN}-${PV}</filename>,
  10575. or if the source code if fetched from an SCM such as
  10576. Git or Subversion, then you must set <filename>S</filename>
  10577. in the recipe so that the OpenEmbedded build system
  10578. knows where to find the unpacked source.
  10579. </para>
  10580. <para>
  10581. As an example, assume a
  10582. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>
  10583. top-level folder named <filename>poky</filename> and a
  10584. default Build Directory at <filename>poky/build</filename>.
  10585. In this case, the work directory the build system uses
  10586. to keep the unpacked recipe for <filename>db</filename>
  10587. is the following:
  10588. <literallayout class='monospaced'>
  10589. poky/build/tmp/work/qemux86-poky-linux/db/5.1.19-r3/db-5.1.19
  10590. </literallayout>
  10591. The unpacked source code resides in the
  10592. <filename>db-5.1.19</filename> folder.
  10593. </para>
  10594. <para>
  10595. This next example assumes a Git repository.
  10596. By default, Git repositories are cloned to
  10597. <filename>${WORKDIR}/git</filename> during
  10598. <link linkend='ref-tasks-fetch'><filename>do_fetch</filename></link>.
  10599. Since this path is different from the default value of
  10600. <filename>S</filename>, you must set it specifically
  10601. so the source can be located:
  10602. <literallayout class='monospaced'>
  10603. SRC_URI = "git://path/to/repo.git"
  10604. S = "${WORKDIR}/git"
  10605. </literallayout>
  10606. </para>
  10607. </glossdef>
  10608. </glossentry>
  10609. <glossentry id='var-SANITY_REQUIRED_UTILITIES'><glossterm>SANITY_REQUIRED_UTILITIES</glossterm>
  10610. <info>
  10611. SANITY_REQUIRED_UTILITIES[doc] = "Specifies a list of command-line utilities that should be checked for during the initial sanity checking process when running BitBake."
  10612. </info>
  10613. <glossdef>
  10614. <para role="glossdeffirst">
  10615. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10616. Specifies a list of command-line utilities that should be
  10617. checked for during the initial sanity checking process when
  10618. running BitBake.
  10619. If any of the utilities are not installed on the build host,
  10620. then BitBake immediately exits with an error.
  10621. </para>
  10622. </glossdef>
  10623. </glossentry>
  10624. <glossentry id='var-SANITY_TESTED_DISTROS'><glossterm>SANITY_TESTED_DISTROS</glossterm>
  10625. <info>
  10626. SANITY_TESTED_DISTROS[doc] = "A list of the host distribution identifiers that the build system has been tested against."
  10627. </info>
  10628. <glossdef>
  10629. <para role="glossdeffirst">
  10630. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10631. A list of the host distribution identifiers that the
  10632. build system has been tested against.
  10633. Identifiers consist of the host distributor ID
  10634. followed by the release,
  10635. as reported by the <filename>lsb_release</filename> tool
  10636. or as read from <filename>/etc/lsb-release</filename>.
  10637. Separate the list items with explicit newline
  10638. characters (<filename>\n</filename>).
  10639. If <filename>SANITY_TESTED_DISTROS</filename> is not empty
  10640. and the current value of
  10641. <link linkend='var-NATIVELSBSTRING'><filename>NATIVELSBSTRING</filename></link>
  10642. does not appear in the list, then the build system reports
  10643. a warning that indicates the current host distribution has
  10644. not been tested as a build host.
  10645. </para>
  10646. </glossdef>
  10647. </glossentry>
  10648. <glossentry id='var-SDK_ARCH'><glossterm>SDK_ARCH</glossterm>
  10649. <info>
  10650. SDK_ARCH[doc] = "The target architecture for the SDK."
  10651. </info>
  10652. <glossdef>
  10653. <para role="glossdeffirst">
  10654. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10655. The target architecture for the SDK.
  10656. Typically, you do not directly set this variable.
  10657. Instead, use
  10658. <link linkend='var-SDKMACHINE'><filename>SDKMACHINE</filename></link>.
  10659. </para>
  10660. </glossdef>
  10661. </glossentry>
  10662. <glossentry id='var-SDK_DEPLOY'><glossterm>SDK_DEPLOY</glossterm>
  10663. <info>
  10664. SDK_DEPLOY[doc] = "The directory set up and used by the populate_sdk_base to which the SDK is deployed."
  10665. </info>
  10666. <glossdef>
  10667. <para role="glossdeffirst">
  10668. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10669. The directory set up and used by the
  10670. <link linkend='ref-classes-populate-sdk'><filename>populate_sdk_base</filename></link>
  10671. to which the SDK is deployed.
  10672. The <filename>populate_sdk_base</filename> class defines
  10673. <filename>SDK_DEPLOY</filename> as follows:
  10674. <literallayout class='monospaced'>
  10675. SDK_DEPLOY = "${<link linkend='var-TMPDIR'>TMPDIR</link>}/deploy/sdk"
  10676. </literallayout>
  10677. </para>
  10678. </glossdef>
  10679. </glossentry>
  10680. <glossentry id='var-SDK_DIR'><glossterm>SDK_DIR</glossterm>
  10681. <info>
  10682. SDK_DIR[doc] = "The parent directory used by the OpenEmbedded build system when creating SDK output."
  10683. </info>
  10684. <glossdef>
  10685. <para role="glossdeffirst">
  10686. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10687. The parent directory used by the OpenEmbedded build system
  10688. when creating SDK output.
  10689. The
  10690. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  10691. class defines the variable as follows:
  10692. <literallayout class='monospaced'>
  10693. SDK_DIR = "${<link linkend='var-WORKDIR'><filename>WORKDIR</filename></link>}/sdk"
  10694. </literallayout>
  10695. <note>
  10696. The <filename>SDK_DIR</filename> directory is a
  10697. temporary directory as it is part of
  10698. <filename>WORKDIR</filename>.
  10699. The final output directory is
  10700. <link linkend='var-SDK_DEPLOY'><filename>SDK_DEPLOY</filename></link>.
  10701. </note>
  10702. </para>
  10703. </glossdef>
  10704. </glossentry>
  10705. <glossentry id='var-SDK_EXT_TYPE'><glossterm>SDK_EXT_TYPE</glossterm>
  10706. <info>
  10707. SDK_EXT_TYPE[doc] = "Controls whether or not shared state artifacts are copied into the extensible SDK."
  10708. </info>
  10709. <glossdef>
  10710. <para role="glossdeffirst">
  10711. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10712. Controls whether or not shared state artifacts are copied
  10713. into the extensible SDK.
  10714. The default value of "full" copies all of the required
  10715. shared state artifacts into the extensible SDK.
  10716. The value "minimal" leaves these artifacts out of the
  10717. SDK.
  10718. <note>
  10719. If you set the variable to "minimal", you need to
  10720. ensure
  10721. <link linkend='var-SSTATE_MIRRORS'><filename>SSTATE_MIRRORS</filename></link>
  10722. is set in the SDK's configuration to enable the
  10723. artifacts to be fetched as needed.
  10724. </note>
  10725. </para>
  10726. </glossdef>
  10727. </glossentry>
  10728. <glossentry id='var-SDK_HOST_MANIFEST'><glossterm>SDK_HOST_MANIFEST</glossterm>
  10729. <info>
  10730. SDK_HOST_MANIFEST[doc] = "The manifest file for the host part of the SDK. This file lists all the installed packages that make up the host part of the SDK."
  10731. </info>
  10732. <glossdef>
  10733. <para role="glossdeffirst">
  10734. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10735. The manifest file for the host part of the SDK.
  10736. This file lists all the installed packages that make up
  10737. the host part of SDK.
  10738. The file contains package information on a line-per-package
  10739. basis as follows:
  10740. <literallayout class='monospaced'>
  10741. <replaceable>packagename</replaceable> <replaceable>packagearch</replaceable> <replaceable>version</replaceable>
  10742. </literallayout>
  10743. </para>
  10744. <para>
  10745. The
  10746. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  10747. class defines the manifest file as follows:
  10748. <literallayout class='monospaced'>
  10749. SDK_HOST_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.host.manifest"
  10750. </literallayout>
  10751. The location is derived using the
  10752. <link linkend='var-SDK_DEPLOY'><filename>SDK_DEPLOY</filename></link>
  10753. and
  10754. <link linkend='var-TOOLCHAIN_OUTPUTNAME'><filename>TOOLCHAIN_OUTPUTNAME</filename></link>
  10755. variables.
  10756. </para>
  10757. </glossdef>
  10758. </glossentry>
  10759. <glossentry id='var-SDK_INCLUDE_PKGDATA'><glossterm>SDK_INCLUDE_PKGDATA</glossterm>
  10760. <info>
  10761. SDK_INCLUDE_PKGDATA[doc] = "When set to "1", specifies to include the packagedata for all recipes in the "world" target in the extensible SDK."
  10762. </info>
  10763. <glossdef>
  10764. <para role="glossdeffirst">
  10765. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10766. When set to "1", specifies to include the packagedata for
  10767. all recipes in the "world" target in the extensible SDK.
  10768. Including this data allows the
  10769. <filename>devtool search</filename> command to find these
  10770. recipes in search results, as well as allows the
  10771. <filename>devtool add</filename> command to map
  10772. dependencies more effectively.
  10773. <note>
  10774. Enabling the <filename>SDK_INCLUDE_PKGDATA</filename>
  10775. variable significantly increases build time because
  10776. all of world needs to be built.
  10777. Enabling the variable also slightly increases the size
  10778. of the extensible SDK.
  10779. </note>
  10780. </para>
  10781. </glossdef>
  10782. </glossentry>
  10783. <glossentry id='var-SDK_INCLUDE_TOOLCHAIN'><glossterm>SDK_INCLUDE_TOOLCHAIN</glossterm>
  10784. <info>
  10785. SDK_INCLUDE_TOOLCHAIN[doc] = "When set to "1", specifies to include the toolchain in the extensible SDK."
  10786. </info>
  10787. <glossdef>
  10788. <para role="glossdeffirst">
  10789. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10790. When set to "1", specifies to include the toolchain in the
  10791. extensible SDK.
  10792. Including the toolchain is useful particularly when
  10793. <link linkend='var-SDK_EXT_TYPE'><filename>SDK_EXT_TYPE</filename></link>
  10794. is set to "minimal" to keep the SDK reasonably small
  10795. but you still want to provide a usable toolchain.
  10796. For example, suppose you want to use the toolchain from an
  10797. IDE (e.g. Eclipse) or from other tools and you do not
  10798. want to perform additional steps to install the toolchain.
  10799. </para>
  10800. <para>
  10801. The <filename>SDK_INCLUDE_TOOLCHAIN</filename> variable
  10802. defaults to "0" if <filename>SDK_EXT_TYPE</filename>
  10803. is set to "minimal", and defaults to "1" if
  10804. <filename>SDK_EXT_TYPE</filename> is set to "full".
  10805. </para>
  10806. </glossdef>
  10807. </glossentry>
  10808. <glossentry id='var-SDK_INHERIT_BLACKLIST'><glossterm>SDK_INHERIT_BLACKLIST</glossterm>
  10809. <info>
  10810. SDK_INHERIT_BLACKLIST[doc] = "A list of classes to remove from the INHERIT value globally within the extensible SDK configuration."
  10811. </info>
  10812. <glossdef>
  10813. <para role="glossdeffirst">
  10814. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10815. A list of classes to remove from the
  10816. <link linkend='var-INHERIT'><filename>INHERIT</filename></link>
  10817. value globally within the extensible SDK configuration.
  10818. The default value is "buildhistory icecc".
  10819. </para>
  10820. <para>
  10821. Some classes are not generally applicable within
  10822. the extensible SDK context and you can use this variable
  10823. to disable them.
  10824. </para>
  10825. </glossdef>
  10826. </glossentry>
  10827. <glossentry id='var-SDK_LOCAL_CONF_BLACKLIST'><glossterm>SDK_LOCAL_CONF_BLACKLIST</glossterm>
  10828. <info>
  10829. SDK_LOCAL_CONF_BLACKLIST[doc] = "A list of variables not allowed through from the build system configuration into the extensible SDK configuration."
  10830. </info>
  10831. <glossdef>
  10832. <para role="glossdeffirst">
  10833. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10834. A list of variables not allowed through from the build
  10835. system configuration into the extensible SDK configuration.
  10836. Usually, these are variables that are specific to the
  10837. machine on which the build system is running and thus
  10838. would be potentially problematic within the extensible SDK.
  10839. </para>
  10840. </glossdef>
  10841. </glossentry>
  10842. <glossentry id='var-SDK_LOCAL_CONF_WHITELIST'><glossterm>SDK_LOCAL_CONF_WHITELIST</glossterm>
  10843. <info>
  10844. SDK_LOCAL_CONF_WHITELIST[doc] = "A list of variables allowed through from the build system configuration into the extensible SDK configuration."
  10845. </info>
  10846. <glossdef>
  10847. <para role="glossdeffirst">
  10848. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10849. A list of variables allowed through from the build system
  10850. configuration into the extensible SDK configuration.
  10851. This list overrides the variables specified using the
  10852. <link linkend='var-SDK_LOCAL_CONF_BLACKLIST'><filename>SDK_LOCAL_CONF_BLACKLIST</filename></link>
  10853. variable as well as any variables identified by automatic
  10854. blacklisting due to the "/" character being found at the
  10855. start of the value, which is usually indicative of being a
  10856. path and thus might not be valid on the system where the
  10857. SDK is installed.
  10858. </para>
  10859. </glossdef>
  10860. </glossentry>
  10861. <glossentry id='var-SDK_NAME'><glossterm>SDK_NAME</glossterm>
  10862. <info>
  10863. SDK_NAME[doc] = "The base name for SDK output files."
  10864. </info>
  10865. <glossdef>
  10866. <para role="glossdeffirst">
  10867. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10868. The base name for SDK output files.
  10869. The name is derived from the
  10870. <link linkend='var-DISTRO'><filename>DISTRO</filename></link>,
  10871. <link linkend='var-TCLIBC'><filename>TCLIBC</filename></link>,
  10872. <link linkend='var-SDK_ARCH'><filename>SDK_ARCH</filename></link>,
  10873. <link linkend='var-IMAGE_BASENAME'><filename>IMAGE_BASENAME</filename></link>,
  10874. and
  10875. <link linkend='var-TUNE_PKGARCH'><filename>TUNE_PKGARCH</filename></link>
  10876. variables:
  10877. <literallayout class='monospaced'>
  10878. SDK_NAME = "${DISTRO}-${TCLIBC}-${SDK_ARCH}-${IMAGE_BASENAME}-${TUNE_PKGARCH}"
  10879. </literallayout>
  10880. </para>
  10881. </glossdef>
  10882. </glossentry>
  10883. <glossentry id='var-SDK_OS'><glossterm>SDK_OS</glossterm>
  10884. <info>
  10885. SDK_OS[doc] = "The operating system for which the SDK will be built."
  10886. </info>
  10887. <glossdef>
  10888. <para role="glossdeffirst">
  10889. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10890. Specifies the operating system for which the SDK
  10891. will be built.
  10892. The default value is the value of
  10893. <link linkend='var-BUILD_OS'><filename>BUILD_OS</filename></link>.
  10894. </para>
  10895. </glossdef>
  10896. </glossentry>
  10897. <glossentry id='var-SDK_OUTPUT'><glossterm>SDK_OUTPUT</glossterm>
  10898. <info>
  10899. SDK_OUTPUT[doc] = "The location used by the OpenEmbedded build system when creating SDK output."
  10900. </info>
  10901. <glossdef>
  10902. <para role="glossdeffirst">
  10903. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10904. The location used by the OpenEmbedded build system when
  10905. creating SDK output.
  10906. The
  10907. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  10908. class defines the variable as follows:
  10909. <literallayout class='monospaced'>
  10910. SDK_OUTPUT = "${<link linkend='var-SDK_DIR'>SDK_DIR</link>}/image"
  10911. </literallayout>
  10912. <note>
  10913. The <filename>SDK_OUTPUT</filename> directory is a
  10914. temporary directory as it is part of
  10915. <filename>WORKDIR</filename> by way of
  10916. <filename>SDK_DIR</filename>.
  10917. The final output directory is
  10918. <link linkend='var-SDK_DEPLOY'><filename>SDK_DEPLOY</filename></link>.
  10919. </note>
  10920. </para>
  10921. </glossdef>
  10922. </glossentry>
  10923. <glossentry id='var-SDK_PACKAGE_ARCHS'><glossterm>SDK_PACKAGE_ARCHS</glossterm>
  10924. <info>
  10925. SDK_PACKAGE_ARCHS[doc] = "Specifies a list of architectures compatible with the SDK machine. This variable is set automatically and should not normally be hand-edited."
  10926. </info>
  10927. <glossdef>
  10928. <para role="glossdeffirst">
  10929. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10930. Specifies a list of architectures compatible with
  10931. the SDK machine.
  10932. This variable is set automatically and should not
  10933. normally be hand-edited.
  10934. Entries are separated using spaces and listed in order
  10935. of priority.
  10936. The default value for
  10937. <filename>SDK_PACKAGE_ARCHS</filename> is "all any noarch
  10938. ${SDK_ARCH}-${SDKPKGSUFFIX}".
  10939. </para>
  10940. </glossdef>
  10941. </glossentry>
  10942. <glossentry id='var-SDK_POSTPROCESS_COMMAND'><glossterm>SDK_POSTPROCESS_COMMAND</glossterm>
  10943. <info>
  10944. SDK_POSTPROCESS_COMMAND[doc] = "Specifies a list of functions to call once the OpenEmbedded build system has created the SDK."
  10945. </info>
  10946. <glossdef>
  10947. <para role="glossdeffirst">
  10948. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10949. Specifies a list of functions to call once the
  10950. OpenEmbedded build system has created the SDK.
  10951. You can specify functions separated by semicolons:
  10952. <literallayout class='monospaced'>
  10953. SDK_POSTPROCESS_COMMAND += "<replaceable>function</replaceable>; ... "
  10954. </literallayout>
  10955. </para>
  10956. <para>
  10957. If you need to pass an SDK path to a command within a
  10958. function, you can use
  10959. <filename>${SDK_DIR}</filename>, which points to
  10960. the parent directory used by the OpenEmbedded build system
  10961. when creating SDK output.
  10962. See the
  10963. <link linkend='var-SDK_DIR'><filename>SDK_DIR</filename></link>
  10964. variable for more information.
  10965. </para>
  10966. </glossdef>
  10967. </glossentry>
  10968. <glossentry id='var-SDK_PREFIX'><glossterm>SDK_PREFIX</glossterm>
  10969. <info>
  10970. SDK_PREFIX[doc] = "The toolchain binary prefix used for nativesdk recipes."
  10971. </info>
  10972. <glossdef>
  10973. <para role="glossdeffirst">
  10974. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10975. The toolchain binary prefix used for
  10976. <filename>nativesdk</filename> recipes.
  10977. The OpenEmbedded build system uses the
  10978. <filename>SDK_PREFIX</filename> value to set the
  10979. <link linkend='var-TARGET_PREFIX'><filename>TARGET_PREFIX</filename></link>
  10980. when building <filename>nativesdk</filename> recipes.
  10981. The default value is "${SDK_SYS}-".
  10982. </para>
  10983. </glossdef>
  10984. </glossentry>
  10985. <glossentry id='var-SDK_RECRDEP_TASKS'><glossterm>SDK_RECRDEP_TASKS</glossterm>
  10986. <info>
  10987. SDK_RECRDEP_TASKS[doc] = "A list of shared state tasks added to the extensible SDK."
  10988. </info>
  10989. <glossdef>
  10990. <para role="glossdeffirst">
  10991. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10992. A list of shared state tasks added to the extensible SDK.
  10993. By default, the following tasks are added:
  10994. <literallayout class='monospaced'>
  10995. do_populate_lic
  10996. do_package_qa
  10997. do_populate_sysroot
  10998. do_deploy
  10999. </literallayout>
  11000. Despite the default value of "" for the
  11001. <filename>SDK_RECRDEP_TASKS</filename> variable, the
  11002. above four tasks are always added to the SDK.
  11003. To specify tasks beyond these four, you need to use
  11004. the <filename>SDK_RECRDEP_TASKS</filename> variable (e.g.
  11005. you are defining additional tasks that are needed in
  11006. order to build
  11007. <link linkend='var-SDK_TARGETS'><filename>SDK_TARGETS</filename></link>).
  11008. </para>
  11009. </glossdef>
  11010. </glossentry>
  11011. <glossentry id='var-SDK_SYS'><glossterm>SDK_SYS</glossterm>
  11012. <info>
  11013. SDK_SYS[doc] = "Specifies the system, including the architecture and the operating system, for which the SDK will be built."
  11014. </info>
  11015. <glossdef>
  11016. <para role="glossdeffirst">
  11017. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11018. Specifies the system, including the architecture and the
  11019. operating system, for which the SDK will be built.
  11020. </para>
  11021. <para>
  11022. The OpenEmbedded build system automatically sets this
  11023. variable based on
  11024. <link linkend='var-SDK_ARCH'><filename>SDK_ARCH</filename></link>,
  11025. <link linkend='var-SDK_VENDOR'><filename>SDK_VENDOR</filename></link>,
  11026. and
  11027. <link linkend='var-SDK_OS'><filename>SDK_OS</filename></link>.
  11028. You do not need to set the <filename>SDK_SYS</filename>
  11029. variable yourself.
  11030. </para>
  11031. </glossdef>
  11032. </glossentry>
  11033. <glossentry id='var-SDK_TARGET_MANIFEST'><glossterm>SDK_TARGET_MANIFEST</glossterm>
  11034. <info>
  11035. SDK_TARGET_MANIFEST[doc] = "The manifest file for the target part of the SDK. This file lists all the installed packages that make up the target part of the SDK."
  11036. </info>
  11037. <glossdef>
  11038. <para role="glossdeffirst">
  11039. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11040. The manifest file for the target part of the SDK.
  11041. This file lists all the installed packages that make up
  11042. the target part of the SDK.
  11043. The file contains package information on a line-per-package
  11044. basis as follows:
  11045. <literallayout class='monospaced'>
  11046. <replaceable>packagename</replaceable> <replaceable>packagearch</replaceable> <replaceable>version</replaceable>
  11047. </literallayout>
  11048. </para>
  11049. <para>
  11050. The
  11051. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  11052. class defines the manifest file as follows:
  11053. <literallayout class='monospaced'>
  11054. SDK_TARGET_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.target.manifest"
  11055. </literallayout>
  11056. The location is derived using the
  11057. <link linkend='var-SDK_DEPLOY'><filename>SDK_DEPLOY</filename></link>
  11058. and
  11059. <link linkend='var-TOOLCHAIN_OUTPUTNAME'><filename>TOOLCHAIN_OUTPUTNAME</filename></link>
  11060. variables.
  11061. </para>
  11062. </glossdef>
  11063. </glossentry>
  11064. <glossentry id='var-SDK_TARGETS'><glossterm>SDK_TARGETS</glossterm>
  11065. <info>
  11066. SDK_TARGETS[doc] = "A list of targets to install from shared state as part of the standard or extensible SDK installation."
  11067. </info>
  11068. <glossdef>
  11069. <para role="glossdeffirst">
  11070. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11071. A list of targets to install from shared state as part of
  11072. the standard or extensible SDK installation.
  11073. The default value is "${PN}" (i.e. the image from which
  11074. the SDK is built).
  11075. </para>
  11076. <para>
  11077. The <filename>SDK_TARGETS</filename> variable is an
  11078. internal variable and typically would not be changed.
  11079. </para>
  11080. </glossdef>
  11081. </glossentry>
  11082. <glossentry id='var-SDK_TITLE'><glossterm>SDK_TITLE</glossterm>
  11083. <info>
  11084. SDK_TITLE[doc] = "Specifies a title to be printed when running the SDK installer."
  11085. </info>
  11086. <glossdef>
  11087. <para role="glossdeffirst">
  11088. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11089. Specifies a title to be printed when running the SDK
  11090. installer.
  11091. The <filename>SDK_TITLE</filename> variable defaults to
  11092. "<replaceable>distro</replaceable> SDK" for the standard
  11093. SDK and "<replaceable>distro</replaceable> Extensible SDK"
  11094. for the extensible SDK, where
  11095. <replaceable>distro</replaceable> is the first one of
  11096. <link linkend='var-DISTRO_NAME'><filename>DISTRO_NAME</filename></link>
  11097. or
  11098. <link linkend='var-DISTRO'><filename>DISTRO</filename></link>
  11099. that is set in your configuration.
  11100. </para>
  11101. </glossdef>
  11102. </glossentry>
  11103. <glossentry id='var-SDK_UPDATE_URL'><glossterm>SDK_UPDATE_URL</glossterm>
  11104. <info>
  11105. SDK_UPDATE_URL[doc] = "An optional URL for an update server for the extensible SDK."
  11106. </info>
  11107. <glossdef>
  11108. <para role="glossdeffirst">
  11109. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11110. An optional URL for an update server for the extensible
  11111. SDK.
  11112. If set, the value is used as the default update server when
  11113. running <filename>devtool sdk-update</filename> within the
  11114. extensible SDK.
  11115. </para>
  11116. </glossdef>
  11117. </glossentry>
  11118. <glossentry id='var-SDK_VENDOR'><glossterm>SDK_VENDOR</glossterm>
  11119. <info>
  11120. SDK_VENDOR[doc] = "Specifies the name of the SDK vendor."
  11121. </info>
  11122. <glossdef>
  11123. <para role="glossdeffirst">
  11124. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11125. Specifies the name of the SDK vendor.
  11126. </para>
  11127. </glossdef>
  11128. </glossentry>
  11129. <glossentry id='var-SDK_VERSION'><glossterm>SDK_VERSION</glossterm>
  11130. <info>
  11131. SDK_VERSION[doc] = "Specifies the version for the SDK."
  11132. </info>
  11133. <glossdef>
  11134. <para role="glossdeffirst">
  11135. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11136. Specifies the version of the SDK.
  11137. The distribution configuration file (e.g.
  11138. <filename>/meta-poky/conf/distro/poky.conf</filename>)
  11139. defines the <filename>SDK_VERSION</filename> as follows:
  11140. <literallayout class='monospaced'>
  11141. SDK_VERSION := "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot')}"
  11142. </literallayout>
  11143. </para>
  11144. <para>
  11145. For additional information, see the
  11146. <link linkend='var-DISTRO_VERSION'><filename>DISTRO_VERSION</filename></link>
  11147. and
  11148. <link linkend='var-DATE'><filename>DATE</filename></link>
  11149. variables.
  11150. </para>
  11151. </glossdef>
  11152. </glossentry>
  11153. <glossentry id='var-SDKIMAGE_FEATURES'><glossterm>SDKIMAGE_FEATURES</glossterm>
  11154. <info>
  11155. SDKIMAGE_FEATURES[doc] = "Equivalent to IMAGE_FEATURES. However, this variable applies to the SDK generated from an image using the command 'bitbake -c populate_sdk imagename'."
  11156. </info>
  11157. <glossdef>
  11158. <para role="glossdeffirst">
  11159. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11160. Equivalent to
  11161. <filename><link linkend='var-IMAGE_FEATURES'>IMAGE_FEATURES</link></filename>.
  11162. However, this variable applies to the SDK generated from an
  11163. image using the following command:
  11164. <literallayout class='monospaced'>
  11165. $ bitbake -c populate_sdk <replaceable>imagename</replaceable>
  11166. </literallayout>
  11167. </para>
  11168. </glossdef>
  11169. </glossentry>
  11170. <glossentry id='var-SDKMACHINE'><glossterm>SDKMACHINE</glossterm>
  11171. <info>
  11172. SDKMACHINE[doc] = "Specifies the architecture (i.e. i686 or x86_64) for which to build SDK items."
  11173. </info>
  11174. <glossdef>
  11175. <para role="glossdeffirst">
  11176. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11177. The machine for which the SDK is built.
  11178. In other words, the SDK is built such that it
  11179. runs on the target you specify with the
  11180. <filename>SDKMACHINE</filename> value.
  11181. The value points to a corresponding
  11182. <filename>.conf</filename> file under
  11183. <filename>conf/machine-sdk/</filename>.
  11184. </para>
  11185. <para>
  11186. You can use "i686" and "x86_64" as possible values
  11187. for this variable. The variable defaults to "i686"
  11188. and is set in the local.conf file in the Build Directory.
  11189. <literallayout class='monospaced'>
  11190. SDKMACHINE ?= "i686"
  11191. </literallayout>
  11192. <note>
  11193. You cannot set the <filename>SDKMACHINE</filename>
  11194. variable in your distribution configuration file.
  11195. If you do, the configuration will not take affect.
  11196. </note>
  11197. </para>
  11198. </glossdef>
  11199. </glossentry>
  11200. <glossentry id='var-SDKPATH'><glossterm>SDKPATH</glossterm>
  11201. <info>
  11202. SDKPATH[doc] = "Defines the path offered to the user for installation of the SDK that is generated by the OpenEmbedded build system."
  11203. </info>
  11204. <glossdef>
  11205. <para role="glossdeffirst">
  11206. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11207. Defines the path offered to the user for installation
  11208. of the SDK that is generated by the OpenEmbedded build
  11209. system.
  11210. The path appears as the default location for installing
  11211. the SDK when you run the SDK's installation script.
  11212. You can override the offered path when you run the
  11213. script.
  11214. </para>
  11215. </glossdef>
  11216. </glossentry>
  11217. <glossentry id='var-SDKTARGETSYSROOT'><glossterm>SDKTARGETSYSROOT</glossterm>
  11218. <info>
  11219. SDKTARGETSYSROOT[doc] = "Full path to the sysroot used for cross-compilation within an SDK as it will be when installed into the default SDKPATH."
  11220. </info>
  11221. <glossdef>
  11222. <para role="glossdeffirst">
  11223. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11224. The full path to the sysroot used for cross-compilation
  11225. within an SDK as it will be when installed into the
  11226. default
  11227. <link linkend='var-SDKPATH'><filename>SDKPATH</filename></link>.
  11228. </para>
  11229. </glossdef>
  11230. </glossentry>
  11231. <glossentry id='var-SECTION'><glossterm>SECTION</glossterm>
  11232. <info>
  11233. SECTION[doc] = "The section in which packages should be categorized. Package management utilities can make use of this variable."
  11234. </info>
  11235. <glossdef>
  11236. <para role="glossdeffirst">
  11237. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11238. The section in which packages should be categorized.
  11239. Package management utilities can make use of this variable.
  11240. </para>
  11241. </glossdef>
  11242. </glossentry>
  11243. <glossentry id='var-SELECTED_OPTIMIZATION'><glossterm>SELECTED_OPTIMIZATION</glossterm>
  11244. <info>
  11245. SELECTED_OPTIMIZATION[doc] = "The variable takes the value of FULL_OPTIMIZATION unless DEBUG_BUILD = '1'. In this case, the value of DEBUG_OPTIMIZATION is used."
  11246. </info>
  11247. <glossdef>
  11248. <para role="glossdeffirst">
  11249. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11250. Specifies the optimization flags passed to the C compiler
  11251. when building for the target.
  11252. The flags are passed through the default value of the
  11253. <link linkend='var-TARGET_CFLAGS'><filename>TARGET_CFLAGS</filename></link>
  11254. variable.
  11255. </para>
  11256. <para>
  11257. The <filename>SELECTED_OPTIMIZATION</filename> variable
  11258. takes the value of
  11259. <filename><link linkend='var-FULL_OPTIMIZATION'>FULL_OPTIMIZATION</link></filename>
  11260. unless <filename><link linkend='var-DEBUG_BUILD'>DEBUG_BUILD</link></filename> = "1".
  11261. If that is the case, the value of
  11262. <filename><link linkend='var-DEBUG_OPTIMIZATION'>DEBUG_OPTIMIZATION</link></filename> is used.
  11263. </para>
  11264. </glossdef>
  11265. </glossentry>
  11266. <glossentry id='var-SERIAL_CONSOLE'><glossterm>SERIAL_CONSOLE</glossterm>
  11267. <info>
  11268. SERIAL_CONSOLE[doc] = "The speed and device for the serial port used to attach the serial console. This variable is given to the kernel as the 'console' parameter. After booting occurs, getty is started on that port so remote login is possible."
  11269. </info>
  11270. <glossdef>
  11271. <para role="glossdeffirst">
  11272. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11273. Defines a serial console (TTY) to enable using getty.
  11274. Provide a value that specifies the baud rate followed by
  11275. the TTY device name separated by a space.
  11276. You cannot specify more than one TTY device:
  11277. <literallayout class='monospaced'>
  11278. SERIAL_CONSOLE = "115200 ttyS0"
  11279. </literallayout>
  11280. <note>
  11281. The <filename>SERIAL_CONSOLE</filename> variable
  11282. is deprecated.
  11283. Please use the
  11284. <link linkend='var-SERIAL_CONSOLES'><filename>SERIAL_CONSOLES</filename></link>
  11285. variable.
  11286. </note>
  11287. </para>
  11288. </glossdef>
  11289. </glossentry>
  11290. <glossentry id='var-SERIAL_CONSOLES'><glossterm>SERIAL_CONSOLES</glossterm>
  11291. <info>
  11292. SERIAL_CONSOLES[doc] = "Defines the serial consoles (TTYs) to enable using getty."
  11293. </info>
  11294. <glossdef>
  11295. <para role="glossdeffirst">
  11296. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11297. Defines the serial consoles (TTYs) to enable using getty.
  11298. Provide a value that specifies the baud rate followed by
  11299. the TTY device name separated by a semicolon.
  11300. Use spaces to separate multiple devices:
  11301. <literallayout class='monospaced'>
  11302. SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1"
  11303. </literallayout>
  11304. </para>
  11305. </glossdef>
  11306. </glossentry>
  11307. <glossentry id='var-SERIAL_CONSOLES_CHECK'><glossterm>SERIAL_CONSOLES_CHECK</glossterm>
  11308. <info>
  11309. SERIAL_CONSOLES_CHECK[doc] = "Selected SERIAL_CONSOLES to check against /proc/console before enabling using getty. Supported only by SysVinit."
  11310. </info>
  11311. <glossdef>
  11312. <para role="glossdeffirst">
  11313. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11314. Specifies serial consoles, which must be listed in
  11315. <link linkend='var-SERIAL_CONSOLES'><filename>SERIAL_CONSOLES</filename></link>,
  11316. to check against <filename>/proc/console</filename>
  11317. before enabling them using getty.
  11318. This variable allows aliasing in the format:
  11319. &lt;device&gt;:&lt;alias&gt;.
  11320. If a device was listed as "sclp_line0"
  11321. in <filename>/dev/</filename> and "ttyS0" was listed
  11322. in <filename>/proc/console</filename>, you would do the
  11323. following:
  11324. <literallayout class='monospaced'>
  11325. SERIAL_CONSOLES_CHECK = "slcp_line0:ttyS0"
  11326. </literallayout>
  11327. This variable is currently only supported with SysVinit
  11328. (i.e. not with systemd).
  11329. </para>
  11330. </glossdef>
  11331. </glossentry>
  11332. <glossentry id='var-SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS'><glossterm>SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS</glossterm>
  11333. <info>
  11334. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS[doc] = "A list of recipe dependencies that should not be used to determine signatures of tasks from one recipe when they depend on tasks from another recipe."
  11335. </info>
  11336. <glossdef>
  11337. <para role="glossdeffirst">
  11338. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11339. A list of recipe dependencies that should not be used to
  11340. determine signatures of tasks from one recipe when they
  11341. depend on tasks from another recipe.
  11342. For example:
  11343. <literallayout class='monospaced'>
  11344. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "intone->mplayer2"
  11345. </literallayout>
  11346. </para>
  11347. <para>
  11348. In this example, <filename>intone</filename> depends on
  11349. <filename>mplayer2</filename>.
  11350. </para>
  11351. <para>
  11352. Use of this variable is one mechanism to remove dependencies
  11353. that affect task signatures and thus force rebuilds when a
  11354. recipe changes.
  11355. <note><title>Caution</title>
  11356. If you add an inappropriate dependency for a recipe
  11357. relationship, the software might break during
  11358. runtime if the interface of the second recipe was
  11359. changed after the first recipe had been built.
  11360. </note>
  11361. </para>
  11362. </glossdef>
  11363. </glossentry>
  11364. <glossentry id='var-SIGGEN_EXCLUDERECIPES_ABISAFE'><glossterm>SIGGEN_EXCLUDERECIPES_ABISAFE</glossterm>
  11365. <info>
  11366. SIGGEN_EXCLUDERECIPES_ABISAFE[doc] = "A list of recipes that are completely stable and will never change."
  11367. </info>
  11368. <glossdef>
  11369. <para role="glossdeffirst">
  11370. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11371. A list of recipes that are completely stable and will
  11372. never change.
  11373. The ABI for the recipes in the list are presented by
  11374. output from the tasks run to build the recipe.
  11375. Use of this variable is one way to remove dependencies from
  11376. one recipe on another that affect task signatures and
  11377. thus force rebuilds when the recipe changes.
  11378. <note><title>Caution</title>
  11379. If you add an inappropriate variable to this list,
  11380. the software might break at runtime if the
  11381. interface of the recipe was changed after the other
  11382. had been built.
  11383. </note>
  11384. </para>
  11385. </glossdef>
  11386. </glossentry>
  11387. <glossentry id='var-SITEINFO_BITS'><glossterm>SITEINFO_BITS</glossterm>
  11388. <info>
  11389. SITEINFO_BITS[doc] = "Specifies the number of bits for the target system CPU."
  11390. </info>
  11391. <glossdef>
  11392. <para role="glossdeffirst">
  11393. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11394. Specifies the number of bits for the target system CPU.
  11395. The value should be either "32" or "64".
  11396. </para>
  11397. </glossdef>
  11398. </glossentry>
  11399. <glossentry id='var-SITEINFO_ENDIANNESS'><glossterm>SITEINFO_ENDIANNESS</glossterm>
  11400. <info>
  11401. SITEINFO_ENDIANNESS[doc] = "Specifies the endian byte order of the target system. The value should be either 'le' for 'little-endian' or 'be' for 'big-endian'."
  11402. </info>
  11403. <glossdef>
  11404. <para role="glossdeffirst">
  11405. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11406. Specifies the endian byte order of the target system.
  11407. The value should be either "le" for little-endian or "be" for big-endian.
  11408. </para>
  11409. </glossdef>
  11410. </glossentry>
  11411. <glossentry id='var-SKIP_FILEDEPS'><glossterm>SKIP_FILEDEPS</glossterm>
  11412. <info>
  11413. SKIP_FILEDEPS[doc] = "Enables you to remove all files from
  11414. the "Provides" section of an RPM package."
  11415. </info>
  11416. <glossdef>
  11417. <para role="glossdeffirst">
  11418. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11419. Enables removal of all files from the "Provides" section of
  11420. an RPM package.
  11421. Removal of these files is required for packages containing
  11422. prebuilt binaries and libraries such as
  11423. <filename>libstdc++</filename> and
  11424. <filename>glibc</filename>.
  11425. </para>
  11426. <para>
  11427. To enable file removal, set the variable to "1" in your
  11428. <filename>conf/local.conf</filename> configuration file
  11429. in your:
  11430. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>.
  11431. <literallayout class='monospaced'>
  11432. SKIP_FILEDEPS = "1"
  11433. </literallayout>
  11434. </para>
  11435. </glossdef>
  11436. </glossentry>
  11437. <glossentry id='var-SOC_FAMILY'><glossterm>SOC_FAMILY</glossterm>
  11438. <info>
  11439. SOC_FAMILY[doc] = "Groups together machines based upon the same family of SOC (System On Chip). You typically set this variable in a common .inc file that you include in the configuration files of all the machines."
  11440. </info>
  11441. <glossdef>
  11442. <para role="glossdeffirst">
  11443. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11444. Groups together machines based upon the same family
  11445. of SOC (System On Chip).
  11446. You typically set this variable in a common
  11447. <filename>.inc</filename> file that you include in the
  11448. configuration files of all the machines.
  11449. <note>
  11450. You must include
  11451. <filename>conf/machine/include/soc-family.inc</filename>
  11452. for this variable to appear in
  11453. <link linkend='var-MACHINEOVERRIDES'><filename>MACHINEOVERRIDES</filename></link>.
  11454. </note>
  11455. </para>
  11456. </glossdef>
  11457. </glossentry>
  11458. <glossentry id='var-SOLIBS'><glossterm>SOLIBS</glossterm>
  11459. <info>
  11460. SOLIBS[doc] = "Defines the suffix for shared libraries used on the target platform."
  11461. </info>
  11462. <glossdef>
  11463. <para role="glossdeffirst">
  11464. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11465. Defines the suffix for shared libraries used on the
  11466. target platform.
  11467. By default, this suffix is ".so.*" for all Linux-based
  11468. systems and is defined in the
  11469. <filename>meta/conf/bitbake.conf</filename> configuration
  11470. file.
  11471. </para>
  11472. <para>
  11473. You will see this variable referenced in the default values
  11474. of <filename>FILES_${PN}</filename>.
  11475. </para>
  11476. </glossdef>
  11477. </glossentry>
  11478. <glossentry id='var-SOLIBSDEV'><glossterm>SOLIBSDEV</glossterm>
  11479. <info>
  11480. SOLIBSDEV[doc] = "Defines the suffix for the development symbolic link (symlink) for shared libraries on the target platform."
  11481. </info>
  11482. <glossdef>
  11483. <para role="glossdeffirst">
  11484. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11485. Defines the suffix for the development symbolic link
  11486. (symlink) for shared libraries on the target platform.
  11487. By default, this suffix is ".so" for Linux-based
  11488. systems and is defined in the
  11489. <filename>meta/conf/bitbake.conf</filename> configuration
  11490. file.
  11491. </para>
  11492. <para>
  11493. You will see this variable referenced in the default values
  11494. of <filename>FILES_${PN}-dev</filename>.
  11495. </para>
  11496. </glossdef>
  11497. </glossentry>
  11498. <glossentry id='var-SOURCE_MIRROR_FETCH'><glossterm>SOURCE_MIRROR_FETCH</glossterm>
  11499. <info>
  11500. SOURCE_MIRROR_FETCH[doc] = "Set as part of a source mirror generation script to skip COMPATIBLE_MACHINE and COMPATIBLE_HOST checks."
  11501. </info>
  11502. <glossdef>
  11503. <para role="glossdeffirst">
  11504. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11505. When you are fetching files to create a mirror of sources
  11506. (i.e. creating a source mirror), setting
  11507. <filename>SOURCE_MIRROR_FETCH</filename> to "1" in your
  11508. <filename>local.conf</filename> configuration file ensures
  11509. the source for all recipes are fetched regardless of
  11510. whether or not a recipe is compatible with the
  11511. configuration.
  11512. A recipe is considered incompatible with the currently
  11513. configured machine when either or both the
  11514. <link linkend='var-COMPATIBLE_MACHINE'><filename>COMPATIBLE_MACHINE</filename></link>
  11515. variable and
  11516. <link linkend='var-COMPATIBLE_HOST'><filename>COMPATIBLE_HOST</filename></link>
  11517. variables specify compatibility with a machine other
  11518. than that of the current machine or host.
  11519. <note><title>Warning</title>
  11520. Do not set the
  11521. <filename>SOURCE_MIRROR_FETCH</filename> variable
  11522. unless you are creating a source mirror.
  11523. In other words, do not set the variable during a
  11524. normal build.
  11525. </note>
  11526. </para>
  11527. </glossdef>
  11528. </glossentry>
  11529. <glossentry id='var-SOURCE_MIRROR_URL'><glossterm>SOURCE_MIRROR_URL</glossterm>
  11530. <info>
  11531. SOURCE_MIRROR_URL[doc] = "URL to source mirror that will be used before fetching from original SRC_URI."
  11532. </info>
  11533. <glossdef>
  11534. <para role="glossdeffirst">
  11535. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11536. Defines your own
  11537. <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>
  11538. from which to first fetch source before attempting to fetch
  11539. from the upstream specified in
  11540. <link linkend='var-SRC_URI'><filename>SRC_URI</filename></link>.
  11541. </para>
  11542. <para>
  11543. To use this variable, you must globally inherit the
  11544. <link linkend='ref-classes-own-mirrors'><filename>own-mirrors</filename></link>
  11545. class and then provide the URL to your mirrors.
  11546. Here is the general syntax:
  11547. <literallayout class='monospaced'>
  11548. INHERIT += "own-mirrors"
  11549. SOURCE_MIRROR_URL = "http://<replaceable>example</replaceable>.com/<replaceable>my_source_mirror</replaceable>"
  11550. </literallayout>
  11551. <note>
  11552. You can specify only a single URL in
  11553. <filename>SOURCE_MIRROR_URL</filename>.
  11554. </note>
  11555. </para>
  11556. </glossdef>
  11557. </glossentry>
  11558. <glossentry id='var-SPDXLICENSEMAP'><glossterm>SPDXLICENSEMAP</glossterm>
  11559. <info>
  11560. SPDXLICENSEMAP[doc] = "Maps commonly used license names to their SPDX counterparts found in meta/files/common-licenses/."
  11561. </info>
  11562. <glossdef>
  11563. <para role="glossdeffirst">
  11564. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11565. Maps commonly used license names to their SPDX counterparts
  11566. found in <filename>meta/files/common-licenses/</filename>.
  11567. For the default <filename>SPDXLICENSEMAP</filename>
  11568. mappings, see the
  11569. <filename>meta/conf/licenses.conf</filename> file.
  11570. </para>
  11571. <para>
  11572. For additional information, see the
  11573. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  11574. variable.
  11575. </para>
  11576. </glossdef>
  11577. </glossentry>
  11578. <glossentry id='var-SPECIAL_PKGSUFFIX'><glossterm>SPECIAL_PKGSUFFIX</glossterm>
  11579. <info>
  11580. SPECIAL_PKGSUFFIX[doc] = "A list of prefixes for PN used by the OpenEmbedded build system to create variants of recipes or packages. The list specifies the prefixes to strip off during certain circumstances such as the generation of the BPN variable."
  11581. </info>
  11582. <glossdef>
  11583. <para role="glossdeffirst">
  11584. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11585. A list of prefixes for <link linkend='var-PN'><filename>PN</filename></link> used by the
  11586. OpenEmbedded build system to create variants of recipes or packages.
  11587. The list specifies the prefixes to strip off during certain circumstances
  11588. such as the generation of the <link linkend='var-BPN'><filename>BPN</filename></link> variable.
  11589. </para>
  11590. </glossdef>
  11591. </glossentry>
  11592. <glossentry id='var-SRC_URI'><glossterm>SRC_URI</glossterm>
  11593. <info>
  11594. SRC_URI[doc] = "The list of source files - local or remote. This variable tells the OpenEmbedded build system what bits to pull in for the build and how to pull them in."
  11595. </info>
  11596. <glossdef>
  11597. <para role="glossdeffirst">
  11598. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11599. The list of source files - local or remote.
  11600. This variable tells the OpenEmbedded build system which bits
  11601. to pull in for the build and how to pull them in.
  11602. For example, if the recipe or append file only needs to
  11603. fetch a tarball from the Internet, the recipe or
  11604. append file uses a single <filename>SRC_URI</filename>
  11605. entry.
  11606. On the other hand, if the recipe or append file needs to
  11607. fetch a tarball, apply two patches, and include a custom
  11608. file, the recipe or append file would include four
  11609. instances of the variable.
  11610. </para>
  11611. <para>
  11612. The following list explains the available URI protocols.
  11613. URI protocols are highly dependent on particular BitBake
  11614. Fetcher submodules.
  11615. Depending on the fetcher BitBake uses, various URL
  11616. parameters are employed.
  11617. For specifics on the supported Fetchers, see the
  11618. "<ulink url='&YOCTO_DOCS_BB_URL;#bb-fetchers'>Fetchers</ulink>"
  11619. section in the BitBake User Manual.
  11620. <itemizedlist>
  11621. <listitem><para><emphasis><filename>file://</filename> -</emphasis>
  11622. Fetches files, which are usually files shipped with
  11623. the
  11624. <ulink url='&YOCTO_DOCS_DEV_URL;#metadata'>Metadata</ulink>,
  11625. from the local machine.
  11626. The path is relative to the
  11627. <link linkend='var-FILESPATH'><filename>FILESPATH</filename></link>
  11628. variable.
  11629. Thus, the build system searches, in order, from the
  11630. following directories, which are assumed to be a
  11631. subdirectories of the directory in which the
  11632. recipe file (<filename>.bb</filename>) or
  11633. append file (<filename>.bbappend</filename>)
  11634. resides:
  11635. <itemizedlist>
  11636. <listitem><para><emphasis><filename>${BPN}</filename> -</emphasis>
  11637. The base recipe name without any special
  11638. suffix or version numbers.
  11639. </para></listitem>
  11640. <listitem><para><emphasis><filename>${BP}</filename> -</emphasis>
  11641. <filename>${<link linkend='var-BPN'>BPN</link>}-${PV}</filename>.
  11642. The base recipe name and version but without
  11643. any special package name suffix.
  11644. </para></listitem>
  11645. <listitem><para><emphasis>files -</emphasis>
  11646. Files within a directory, which is named
  11647. <filename>files</filename> and is also
  11648. alongside the recipe or append file.
  11649. </para></listitem>
  11650. </itemizedlist>
  11651. <note>
  11652. If you want the build system to pick up files
  11653. specified through a
  11654. <filename>SRC_URI</filename>
  11655. statement from your append file, you need to be
  11656. sure to extend the
  11657. <filename>FILESPATH</filename>
  11658. variable by also using the
  11659. <link linkend='var-FILESEXTRAPATHS'><filename>FILESEXTRAPATHS</filename></link>
  11660. variable from within your append file.
  11661. </note>
  11662. </para></listitem>
  11663. <listitem><para><emphasis><filename>bzr://</filename> -</emphasis> Fetches files from a
  11664. Bazaar revision control repository.</para></listitem>
  11665. <listitem><para><emphasis><filename>git://</filename> -</emphasis> Fetches files from a
  11666. Git revision control repository.</para></listitem>
  11667. <listitem><para><emphasis><filename>osc://</filename> -</emphasis> Fetches files from
  11668. an OSC (OpenSUSE Build service) revision control repository.</para></listitem>
  11669. <listitem><para><emphasis><filename>repo://</filename> -</emphasis> Fetches files from
  11670. a repo (Git) repository.</para></listitem>
  11671. <listitem><para><emphasis><filename>ccrc://</filename> -</emphasis>
  11672. Fetches files from a ClearCase repository.
  11673. </para></listitem>
  11674. <listitem><para><emphasis><filename>http://</filename> -</emphasis> Fetches files from
  11675. the Internet using <filename>http</filename>.</para></listitem>
  11676. <listitem><para><emphasis><filename>https://</filename> -</emphasis> Fetches files
  11677. from the Internet using <filename>https</filename>.</para></listitem>
  11678. <listitem><para><emphasis><filename>ftp://</filename> -</emphasis> Fetches files
  11679. from the Internet using <filename>ftp</filename>.</para></listitem>
  11680. <listitem><para><emphasis><filename>cvs://</filename> -</emphasis> Fetches files from
  11681. a CVS revision control repository.</para></listitem>
  11682. <listitem><para><emphasis><filename>hg://</filename> -</emphasis> Fetches files from
  11683. a Mercurial (<filename>hg</filename>) revision control repository.</para></listitem>
  11684. <listitem><para><emphasis><filename>p4://</filename> -</emphasis> Fetches files from
  11685. a Perforce (<filename>p4</filename>) revision control repository.</para></listitem>
  11686. <listitem><para><emphasis><filename>ssh://</filename> -</emphasis> Fetches files from
  11687. a secure shell.</para></listitem>
  11688. <listitem><para><emphasis><filename>svn://</filename> -</emphasis> Fetches files from
  11689. a Subversion (<filename>svn</filename>) revision control repository.</para></listitem>
  11690. </itemizedlist>
  11691. </para>
  11692. <para>
  11693. Standard and recipe-specific options for <filename>SRC_URI</filename> exist.
  11694. Here are standard options:
  11695. <itemizedlist>
  11696. <listitem><para><emphasis><filename>apply</filename> -</emphasis> Whether to apply
  11697. the patch or not.
  11698. The default action is to apply the patch.</para></listitem>
  11699. <listitem><para><emphasis><filename>striplevel</filename> -</emphasis> Which
  11700. striplevel to use when applying the patch.
  11701. The default level is 1.</para></listitem>
  11702. <listitem><para><emphasis><filename>patchdir</filename> -</emphasis> Specifies
  11703. the directory in which the patch should be applied.
  11704. The default is <filename>${</filename><link linkend='var-S'><filename>S</filename></link><filename>}</filename>.
  11705. </para></listitem>
  11706. </itemizedlist>
  11707. </para>
  11708. <para>
  11709. Here are options specific to recipes building code from a revision control system:
  11710. <itemizedlist>
  11711. <listitem><para><emphasis><filename>mindate</filename> -</emphasis>
  11712. Apply the patch only if
  11713. <link linkend='var-SRCDATE'><filename>SRCDATE</filename></link>
  11714. is equal to or greater than <filename>mindate</filename>.
  11715. </para></listitem>
  11716. <listitem><para><emphasis><filename>maxdate</filename> -</emphasis>
  11717. Apply the patch only if <filename>SRCDATE</filename>
  11718. is not later than <filename>mindate</filename>.
  11719. </para></listitem>
  11720. <listitem><para><emphasis><filename>minrev</filename> -</emphasis>
  11721. Apply the patch only if <filename>SRCREV</filename>
  11722. is equal to or greater than <filename>minrev</filename>.
  11723. </para></listitem>
  11724. <listitem><para><emphasis><filename>maxrev</filename> -</emphasis>
  11725. Apply the patch only if <filename>SRCREV</filename>
  11726. is not later than <filename>maxrev</filename>.
  11727. </para></listitem>
  11728. <listitem><para><emphasis><filename>rev</filename> -</emphasis>
  11729. Apply the patch only if <filename>SRCREV</filename>
  11730. is equal to <filename>rev</filename>.
  11731. </para></listitem>
  11732. <listitem><para><emphasis><filename>notrev</filename> -</emphasis>
  11733. Apply the patch only if <filename>SRCREV</filename>
  11734. is not equal to <filename>rev</filename>.
  11735. </para></listitem>
  11736. </itemizedlist>
  11737. </para>
  11738. <para>
  11739. Here are some additional options worth mentioning:
  11740. <itemizedlist>
  11741. <listitem><para><emphasis><filename>unpack</filename> -</emphasis> Controls
  11742. whether or not to unpack the file if it is an archive.
  11743. The default action is to unpack the file.</para></listitem>
  11744. <listitem><para><emphasis><filename>destsuffix</filename> -</emphasis> Places the file
  11745. (or extracts its contents) into the specified
  11746. subdirectory of <link linkend='var-WORKDIR'><filename>WORKDIR</filename></link>
  11747. when the Git fetcher is used.
  11748. </para></listitem>
  11749. <listitem><para><emphasis><filename>subdir</filename> -</emphasis> Places the file
  11750. (or extracts its contents) into the specified
  11751. subdirectory of <link linkend='var-WORKDIR'><filename>WORKDIR</filename></link>
  11752. when the local (<filename>file://</filename>)
  11753. fetcher is used.
  11754. </para></listitem>
  11755. <listitem><para><emphasis><filename>localdir</filename> -</emphasis> Places the file
  11756. (or extracts its contents) into the specified
  11757. subdirectory of <link linkend='var-WORKDIR'><filename>WORKDIR</filename></link>
  11758. when the CVS fetcher is used.
  11759. </para></listitem>
  11760. <listitem><para><emphasis><filename>subpath</filename> -</emphasis>
  11761. Limits the checkout to a specific subpath of the
  11762. tree when using the Git fetcher is used.
  11763. </para></listitem>
  11764. <listitem><para><emphasis><filename>name</filename> -</emphasis> Specifies a
  11765. name to be used for association with <filename>SRC_URI</filename> checksums
  11766. when you have more than one file specified in <filename>SRC_URI</filename>.
  11767. </para></listitem>
  11768. <listitem><para><emphasis><filename>downloadfilename</filename> -</emphasis> Specifies
  11769. the filename used when storing the downloaded file.</para></listitem>
  11770. </itemizedlist>
  11771. </para>
  11772. </glossdef>
  11773. </glossentry>
  11774. <glossentry id='var-SRC_URI_OVERRIDES_PACKAGE_ARCH'><glossterm>SRC_URI_OVERRIDES_PACKAGE_ARCH</glossterm>
  11775. <info>
  11776. SRC_URI_OVERRIDES_PACKAGE_ARCH[doc] = "By default, the OpenEmbedded build system automatically detects whether SRC_URI contains files that are machine-specific. If so, the build system automatically changes PACKAGE_ARCH. Setting this variable to '0' disables this behavior."
  11777. </info>
  11778. <glossdef>
  11779. <para role="glossdeffirst">
  11780. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11781. By default, the OpenEmbedded build system automatically detects whether
  11782. <filename><link linkend='var-SRC_URI'>SRC_URI</link></filename>
  11783. contains files that are machine-specific.
  11784. If so, the build system automatically changes
  11785. <filename><link linkend='var-PACKAGE_ARCH'>PACKAGE_ARCH</link></filename>.
  11786. Setting this variable to "0" disables this behavior.
  11787. </para>
  11788. </glossdef>
  11789. </glossentry>
  11790. <glossentry id='var-SRCDATE'><glossterm>SRCDATE</glossterm>
  11791. <info>
  11792. SRCDATE[doc] = "The date of the source code used to build the package. This variable applies only if the source was fetched from a Source Code Manager (SCM)."
  11793. </info>
  11794. <glossdef>
  11795. <para role="glossdeffirst">
  11796. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11797. The date of the source code used to build the package.
  11798. This variable applies only if the source was fetched from a Source Code Manager (SCM).
  11799. </para>
  11800. </glossdef>
  11801. </glossentry>
  11802. <glossentry id='var-SRCPV'><glossterm>SRCPV</glossterm>
  11803. <info>
  11804. SRCPV[doc] = "Returns the version string of the current package. This string is used to help define the value of PV."
  11805. </info>
  11806. <glossdef>
  11807. <para role="glossdeffirst">
  11808. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11809. Returns the version string of the current package.
  11810. This string is used to help define the value of
  11811. <link linkend='var-PV'><filename>PV</filename></link>.
  11812. </para>
  11813. <para>
  11814. The <filename>SRCPV</filename> variable is defined in the
  11815. <filename>meta/conf/bitbake.conf</filename> configuration
  11816. file in the
  11817. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>
  11818. as follows:
  11819. <literallayout class='monospaced'>
  11820. SRCPV = "${@bb.fetch2.get_srcrev(d)}"
  11821. </literallayout>
  11822. </para>
  11823. <para>
  11824. Recipes that need to define <filename>PV</filename> do so
  11825. with the help of the <filename>SRCPV</filename>.
  11826. For example, the <filename>ofono</filename> recipe
  11827. (<filename>ofono_git.bb</filename>) located in
  11828. <filename>meta/recipes-connectivity</filename> in the
  11829. Source Directory defines <filename>PV</filename> as
  11830. follows:
  11831. <literallayout class='monospaced'>
  11832. PV = "0.12-git${SRCPV}"
  11833. </literallayout>
  11834. </para>
  11835. </glossdef>
  11836. </glossentry>
  11837. <glossentry id='var-SRCREV'><glossterm>SRCREV</glossterm>
  11838. <info>
  11839. SRCREV[doc] = "The revision of the source code used to build the package. This variable applies to Subversion, Git, Mercurial and Bazaar only."
  11840. </info>
  11841. <glossdef>
  11842. <para role="glossdeffirst">
  11843. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11844. The revision of the source code used to build the package.
  11845. This variable applies to Subversion, Git, Mercurial and
  11846. Bazaar only.
  11847. Note that if you want to build a fixed revision and you
  11848. want to avoid performing a query on the remote repository
  11849. every time BitBake parses your recipe, you should specify
  11850. a <filename>SRCREV</filename> that is a
  11851. full revision identifier and not just a tag.
  11852. <note>
  11853. For information on limitations when inheriting the
  11854. latest revision of software using
  11855. <filename>SRCREV</filename>, see the
  11856. <link linkend='var-AUTOREV'><filename>AUTOREV</filename></link>
  11857. variable description and the
  11858. "<ulink url='&YOCTO_DOCS_DEV_URL;#automatically-incrementing-a-binary-package-revision-number'>Automatically Incrementing a Binary Package Revision Number</ulink>"
  11859. section, which is in the Yocto Project Development Manual.
  11860. </note>
  11861. </para>
  11862. </glossdef>
  11863. </glossentry>
  11864. <glossentry id='var-SSTATE_DIR'><glossterm>SSTATE_DIR</glossterm>
  11865. <info>
  11866. SSTATE_DIR[doc] = "The directory for the shared state cache."
  11867. </info>
  11868. <glossdef>
  11869. <para role="glossdeffirst">
  11870. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11871. The directory for the shared state cache.
  11872. </para>
  11873. </glossdef>
  11874. </glossentry>
  11875. <glossentry id='var-SSTATE_MIRROR_ALLOW_NETWORK'><glossterm>SSTATE_MIRROR_ALLOW_NETWORK</glossterm>
  11876. <info>
  11877. SSTATE_MIRROR_ALLOW_NETWORK[doc] = "If set to "1", allows fetches from mirrors that are specified in SSTATE_MIRRORS to work even when fetching from the network has been disabled by setting BB_NO_NETWORK to "1"."
  11878. </info>
  11879. <glossdef>
  11880. <para role="glossdeffirst">
  11881. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11882. If set to "1", allows fetches from
  11883. mirrors that are specified in
  11884. <link linkend='var-SSTATE_MIRRORS'><filename>SSTATE_MIRRORS</filename></link>
  11885. to work even when fetching from the network has been
  11886. disabled by setting <filename>BB_NO_NETWORK</filename>
  11887. to "1".
  11888. Using the
  11889. <filename>SSTATE_MIRROR_ALLOW_NETWORK</filename>
  11890. variable is useful if you have set
  11891. <filename>SSTATE_MIRRORS</filename> to point to an
  11892. internal server for your shared state cache, but
  11893. you want to disable any other fetching from the network.
  11894. </para>
  11895. </glossdef>
  11896. </glossentry>
  11897. <glossentry id='var-SSTATE_MIRRORS'><glossterm>SSTATE_MIRRORS</glossterm>
  11898. <info>
  11899. SSTATE_MIRRORS[doc] = "Configures the OpenEmbedded build system to search other mirror locations for prebuilt cache data objects before building out the data. You can specify a filesystem directory or a remote URL such as HTTP or FTP."
  11900. </info>
  11901. <glossdef>
  11902. <para role="glossdeffirst">
  11903. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11904. Configures the OpenEmbedded build system to search other
  11905. mirror locations for prebuilt cache data objects before
  11906. building out the data.
  11907. This variable works like fetcher
  11908. <link linkend='var-MIRRORS'><filename>MIRRORS</filename></link>
  11909. and <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>
  11910. and points to the cache locations to check for the shared
  11911. objects.
  11912. </para>
  11913. <para>
  11914. You can specify a filesystem directory or a remote URL such
  11915. as HTTP or FTP.
  11916. The locations you specify need to contain the shared state
  11917. cache (sstate-cache) results from previous builds.
  11918. The sstate-cache you point to can also be from builds on
  11919. other machines.
  11920. </para>
  11921. <para>
  11922. If a mirror uses the same structure as
  11923. <link linkend='var-SSTATE_DIR'><filename>SSTATE_DIR</filename></link>,
  11924. you need to add
  11925. "PATH" at the end as shown in the examples below.
  11926. The build system substitutes the correct path within the
  11927. directory structure.
  11928. <literallayout class='monospaced'>
  11929. SSTATE_MIRRORS ?= "\
  11930. file://.* http://<replaceable>someserver</replaceable>.tld/share/sstate/PATH;downloadfilename=PATH \n \
  11931. file://.* file:///<replaceable>some-local-dir</replaceable>/sstate/PATH"
  11932. </literallayout>
  11933. </para>
  11934. </glossdef>
  11935. </glossentry>
  11936. <glossentry id='var-SSTATE_SCAN_FILES'><glossterm>SSTATE_SCAN_FILES</glossterm>
  11937. <info>
  11938. SSTATE_SCAN_FILES[doc] = "Controls the list of files the OpenEmbedded build system scans for hardcoded installation paths."
  11939. </info>
  11940. <glossdef>
  11941. <para role="glossdeffirst">
  11942. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11943. Controls the list of files the OpenEmbedded build system
  11944. scans for hardcoded installation paths.
  11945. </para>
  11946. <para>
  11947. During a build, the OpenEmbedded build system creates a
  11948. shared state (sstate) object during the first stage of
  11949. preparing the sysroots.
  11950. During the build, the object is scanned for hardcoded paths
  11951. for original installation locations.
  11952. The list of files that are scanned for paths is controlled
  11953. by the <filename>SSTATE_SCAN_FILES</filename> variable.
  11954. </para>
  11955. <para>
  11956. For details on the process, see the
  11957. <link linkend='ref-classes-staging'><filename>staging</filename></link>
  11958. class.
  11959. </para>
  11960. </glossdef>
  11961. </glossentry>
  11962. <glossentry id='var-STAGING_BASE_LIBDIR_NATIVE'><glossterm>STAGING_BASE_LIBDIR_NATIVE</glossterm>
  11963. <info>
  11964. STAGING_BASE_LIBDIR_NATIVE[doc] = "Specifies the path to the /lib subdirectory of the sysroot directory for the build host."
  11965. </info>
  11966. <glossdef>
  11967. <para role="glossdeffirst">
  11968. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11969. Specifies the path to the <filename>/lib</filename>
  11970. subdirectory of the sysroot directory for the
  11971. build host.
  11972. </para>
  11973. </glossdef>
  11974. </glossentry>
  11975. <glossentry id='var-STAGING_BASELIBDIR'><glossterm>STAGING_BASELIBDIR</glossterm>
  11976. <info>
  11977. STAGING_BASELIBDIR[doc] = "Specifies the path to the /lib subdirectory of the sysroot directory for the target for which the current recipe is being built (STAGING_DIR_HOST)."
  11978. </info>
  11979. <glossdef>
  11980. <para role="glossdeffirst">
  11981. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11982. Specifies the path to the <filename>/lib</filename>
  11983. subdirectory of the sysroot directory for the target
  11984. for which the current recipe is being built
  11985. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  11986. </para>
  11987. </glossdef>
  11988. </glossentry>
  11989. <glossentry id='var-STAGING_BINDIR'><glossterm>STAGING_BINDIR</glossterm>
  11990. <info>
  11991. STAGING_BINDIR[doc] = "Specifies the path to the /usr/bin subdirectory of the sysroot directory for the target for which the current recipe is being built (STAGING_DIR_HOST)."
  11992. </info>
  11993. <glossdef>
  11994. <para role="glossdeffirst">
  11995. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11996. Specifies the path to the
  11997. <filename>/usr/bin</filename> subdirectory of the
  11998. sysroot directory for the target for which the current
  11999. recipe is being built
  12000. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  12001. </para>
  12002. </glossdef>
  12003. </glossentry>
  12004. <glossentry id='var-STAGING_BINDIR_CROSS'><glossterm>STAGING_BINDIR_CROSS</glossterm>
  12005. <info>
  12006. STAGING_BINDIR_CROSS[doc] = "Specifies the path to the directory containing binary configuration scripts. These scripts provide configuration information for other software that wants to make use of libraries or include files provided by the software associated with the script."
  12007. </info>
  12008. <glossdef>
  12009. <para role="glossdeffirst">
  12010. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12011. Specifies the path to the directory containing binary
  12012. configuration scripts.
  12013. These scripts provide configuration information for
  12014. other software that wants to make use of libraries or
  12015. include files provided by the software associated with
  12016. the script.
  12017. <note>
  12018. This style of build configuration has been largely
  12019. replaced by <filename>pkg-config</filename>.
  12020. Consequently, if <filename>pkg-config</filename>
  12021. is supported by the library to which you are linking,
  12022. it is recommended you use
  12023. <filename>pkg-config</filename> instead of a
  12024. provided configuration script.
  12025. </note>
  12026. </para>
  12027. </glossdef>
  12028. </glossentry>
  12029. <glossentry id='var-STAGING_BINDIR_NATIVE'><glossterm>STAGING_BINDIR_NATIVE</glossterm>
  12030. <info>
  12031. STAGING_BINDIR_NATIVE[doc] = "Specifies the path to the /usr/bin subdirectory of the sysroot directory for the build host."
  12032. </info>
  12033. <glossdef>
  12034. <para role="glossdeffirst">
  12035. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12036. Specifies the path to the
  12037. <filename>/usr/bin</filename> subdirectory of the
  12038. sysroot directory for the build host.
  12039. </para>
  12040. </glossdef>
  12041. </glossentry>
  12042. <glossentry id='var-STAGING_DATADIR'><glossterm>STAGING_DATADIR</glossterm>
  12043. <info>
  12044. STAGING_DATADIR[doc] = "Specifies the path to the /usr/share subdirectory of the sysroot directory for the target for which the current recipe is being built (STAGING_DIR_HOST)."
  12045. </info>
  12046. <glossdef>
  12047. <para role="glossdeffirst">
  12048. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12049. Specifies the path to the <filename>/usr/share</filename>
  12050. subdirectory of the sysroot directory for the target
  12051. for which the current recipe is being built
  12052. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  12053. </para>
  12054. </glossdef>
  12055. </glossentry>
  12056. <glossentry id='var-STAGING_DATADIR_NATIVE'><glossterm>STAGING_DATADIR_NATIVE</glossterm>
  12057. <info>
  12058. STAGING_DATADIR_NATIVE[doc] = "Specifies the path to the /usr/share subdirectory of the sysroot directory for the build host."
  12059. </info>
  12060. <glossdef>
  12061. <para role="glossdeffirst">
  12062. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12063. Specifies the path to the <filename>/usr/share</filename>
  12064. subdirectory of the sysroot directory for the build host.
  12065. </para>
  12066. </glossdef>
  12067. </glossentry>
  12068. <glossentry id='var-STAGING_DIR'><glossterm>STAGING_DIR</glossterm>
  12069. <info>
  12070. STAGING_DIR[doc] = "Specifies the path to the top-level sysroots directory (i.e. ${TMPDIR}/sysroots)."
  12071. </info>
  12072. <glossdef>
  12073. <para role="glossdeffirst">
  12074. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12075. Specifies the path to the top-level sysroots directory
  12076. (i.e.
  12077. <filename>${</filename><link linkend='var-TMPDIR'><filename>TMPDIR</filename></link><filename>}/sysroots</filename>).
  12078. </para>
  12079. <para>
  12080. <filename>STAGING_DIR</filename> contains the directories
  12081. that are staged into the sysroot by the
  12082. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  12083. task.
  12084. See the
  12085. <link linkend='var-SYSROOT_DIRS'><filename>SYSROOT_DIRS</filename></link>
  12086. variable and the
  12087. "<ulink url='&YOCTO_DOCS_DEV_URL;#new-sharing-files-between-recipes'>Sharing Files Between Recipes</ulink>"
  12088. section for more information.
  12089. <note>
  12090. Recipes should never write files directly under
  12091. the <filename>STAGING_DIR</filename> directory because
  12092. the OpenEmbedded build system
  12093. manages the directory automatically.
  12094. Instead, files should be installed to
  12095. <filename>${</filename><link linkend='var-D'><filename>D</filename></link><filename>}</filename>
  12096. within your recipe's
  12097. <link linkend='ref-tasks-install'><filename>do_install</filename></link>
  12098. task and then the OpenEmbedded build system will
  12099. stage a subset of those files into the sysroot.
  12100. </note>
  12101. </para>
  12102. </glossdef>
  12103. </glossentry>
  12104. <glossentry id='var-STAGING_DIR_HOST'><glossterm>STAGING_DIR_HOST</glossterm>
  12105. <info>
  12106. STAGING_DIR_HOST[doc] = "Specifies the path to the sysroot directory for the system that the component is built to run on."
  12107. </info>
  12108. <glossdef>
  12109. <para role="glossdeffirst">
  12110. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12111. Specifies the path to the sysroot directory for the system
  12112. that the component is built to run on (the system that hosts
  12113. the component).
  12114. For most recipes, this sysroot is the one that the recipe's
  12115. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  12116. task copies files into.
  12117. Exceptions include <filename>-native</filename> recipes,
  12118. where the <filename>do_populate_sysroot</filename> task
  12119. instead uses
  12120. <link linkend='var-STAGING_DIR_NATIVE'><filename>STAGING_DIR_NATIVE</filename></link>.
  12121. Depending on the type of recipe and the build target,
  12122. <filename>STAGING_DIR_HOST</filename> can have the
  12123. following values:
  12124. <itemizedlist>
  12125. <listitem><para>For recipes building for the target
  12126. machine, the value is
  12127. "${<link linkend='var-STAGING_DIR'>STAGING_DIR</link>}/${<link linkend='var-MACHINE'>MACHINE</link>}".
  12128. </para></listitem>
  12129. <listitem><para>For native recipes building
  12130. for the build host, the value is empty given the
  12131. assumption that when building for the build host,
  12132. the build host's own directories should be used.
  12133. <note><para>
  12134. <filename>-native</filename> recipes are not
  12135. installed into host paths like such as
  12136. <filename>/usr</filename>.
  12137. Rather, these recipes are installed into
  12138. <filename>STAGING_DIR_NATIVE</filename>.
  12139. When compiling <filename>-native</filename>
  12140. recipes, standard build environment variables
  12141. such as
  12142. <link linkend='var-CPPFLAGS'><filename>CPPFLAGS</filename></link>
  12143. and
  12144. <link linkend='var-CFLAGS'><filename>CFLAGS</filename></link>
  12145. are set up so that both host paths and
  12146. <filename>STAGING_DIR_NATIVE</filename> are
  12147. searched for libraries and headers using, for
  12148. example, GCC's <filename>-isystem</filename>
  12149. option.</para>
  12150. <para>This emphasizes that the
  12151. <filename>STAGING_DIR*</filename> variables
  12152. should be viewed as input variables by tasks
  12153. such as
  12154. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>,
  12155. <link linkend='ref-tasks-compile'><filename>do_compile</filename></link>,
  12156. and
  12157. <link linkend='ref-tasks-install'><filename>do_install</filename></link>.
  12158. Having the real system root correspond to
  12159. <filename>STAGING_DIR_HOST</filename> makes
  12160. conceptual sense for
  12161. <filename>-native</filename> recipes, as
  12162. they make use of host headers and libraries.
  12163. </para>
  12164. </note>
  12165. </para></listitem>
  12166. </itemizedlist>
  12167. </para>
  12168. </glossdef>
  12169. </glossentry>
  12170. <glossentry id='var-STAGING_DIR_NATIVE'><glossterm>STAGING_DIR_NATIVE</glossterm>
  12171. <info>
  12172. STAGING_DIR_NATIVE[doc] = "Specifies the path to the sysroot directory used when building components that run on the build host itself."
  12173. </info>
  12174. <glossdef>
  12175. <para role="glossdeffirst">
  12176. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12177. Specifies the path to the sysroot directory used when
  12178. building components that run on the build host itself.
  12179. </para>
  12180. </glossdef>
  12181. </glossentry>
  12182. <glossentry id='var-STAGING_DIR_TARGET'><glossterm>STAGING_DIR_TARGET</glossterm>
  12183. <info>
  12184. STAGING_DIR_TARGET[doc] = "Specifies the path to the sysroot used for the system for which the component generates code."
  12185. </info>
  12186. <glossdef>
  12187. <para role="glossdeffirst">
  12188. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12189. Specifies the path to the sysroot used for the system for
  12190. which the component generates code.
  12191. For components that do not generate code, which is the
  12192. majority, <filename>STAGING_DIR_TARGET</filename> is set
  12193. to match
  12194. <link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>.
  12195. </para>
  12196. <para>
  12197. Some recipes build binaries that can run on the target
  12198. system but those binaries in turn generate code for
  12199. another different system (e.g. cross-canadian recipes).
  12200. Using terminology from GNU, the primary system is referred
  12201. to as the "HOST" and the secondary, or different, system is
  12202. referred to as the "TARGET".
  12203. Thus, the binaries run on the "HOST" system
  12204. and generate binaries for the "TARGET" system.
  12205. The <filename>STAGING_DIR_HOST</filename> variable points
  12206. to the sysroot used for the "HOST" system, while
  12207. <filename>STAGING_DIR_TARGET</filename>
  12208. points to the sysroot used for the "TARGET" system.
  12209. </para>
  12210. </glossdef>
  12211. </glossentry>
  12212. <glossentry id='var-STAGING_ETCDIR_NATIVE'><glossterm>STAGING_ETCDIR_NATIVE</glossterm>
  12213. <info>
  12214. STAGING_ETCDIR_NATIVE[doc] = "Specifies the path to the /etc subdirectory of the sysroot directory for the build host."
  12215. </info>
  12216. <glossdef>
  12217. <para role="glossdeffirst">
  12218. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12219. Specifies the path to the <filename>/etc</filename>
  12220. subdirectory of the sysroot directory for the
  12221. build host.
  12222. </para>
  12223. </glossdef>
  12224. </glossentry>
  12225. <glossentry id='var-STAGING_EXECPREFIXDIR'><glossterm>STAGING_EXECPREFIXDIR</glossterm>
  12226. <info>
  12227. STAGING_EXECPREFIXDIR[doc] = "Specifies the path to the /usr subdirectory of the sysroot directory for the target for which the current recipe is being built (STAGING_DIR_HOST)."
  12228. </info>
  12229. <glossdef>
  12230. <para role="glossdeffirst">
  12231. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12232. Specifies the path to the <filename>/usr</filename>
  12233. subdirectory of the sysroot directory for the target
  12234. for which the current recipe is being built
  12235. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  12236. </para>
  12237. </glossdef>
  12238. </glossentry>
  12239. <glossentry id='var-STAGING_INCDIR'><glossterm>STAGING_INCDIR</glossterm>
  12240. <info>
  12241. STAGING_INCDIR[doc] = "Specifies the path to the /usr/include subdirectory of the sysroot directory for the target for which the current recipe being built (STAGING_DIR_HOST)."
  12242. </info>
  12243. <glossdef>
  12244. <para role="glossdeffirst">
  12245. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12246. Specifies the path to the
  12247. <filename>/usr/include</filename> subdirectory of the
  12248. sysroot directory for the target for which the current
  12249. recipe being built
  12250. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  12251. </para>
  12252. </glossdef>
  12253. </glossentry>
  12254. <glossentry id='var-STAGING_INCDIR_NATIVE'><glossterm>STAGING_INCDIR_NATIVE</glossterm>
  12255. <info>
  12256. STAGING_INCDIR_NATIVE[doc] = "Specifies the path to the /usr/include subdirectory of the sysroot directory for the build host."
  12257. </info>
  12258. <glossdef>
  12259. <para role="glossdeffirst">
  12260. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12261. Specifies the path to the <filename>/usr/include</filename>
  12262. subdirectory of the sysroot directory for the build host.
  12263. </para>
  12264. </glossdef>
  12265. </glossentry>
  12266. <glossentry id='var-STAGING_KERNEL_BUILDDIR'><glossterm>STAGING_KERNEL_BUILDDIR</glossterm>
  12267. <info>
  12268. STAGING_KERNEL_BUILDDIR[doc] = "Points to the directory containing the kernel build artifacts."
  12269. </info>
  12270. <glossdef>
  12271. <para role="glossdeffirst">
  12272. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12273. Points to the directory containing the kernel build
  12274. artifacts.
  12275. Recipes building software that needs to access kernel
  12276. build artifacts
  12277. (e.g. <filename>systemtap-uprobes</filename>) can look in
  12278. the directory specified with the
  12279. <filename>STAGING_KERNEL_BUILDDIR</filename> variable to
  12280. find these artifacts after the kernel has been built.
  12281. </para>
  12282. </glossdef>
  12283. </glossentry>
  12284. <glossentry id='var-STAGING_KERNEL_DIR'><glossterm>STAGING_KERNEL_DIR</glossterm>
  12285. <info>
  12286. STAGING_KERNEL_DIR[doc] = "The directory with kernel headers that are required to build out-of-tree modules."
  12287. </info>
  12288. <glossdef>
  12289. <para role="glossdeffirst">
  12290. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12291. The directory with kernel headers that are required to build out-of-tree
  12292. modules.
  12293. </para>
  12294. </glossdef>
  12295. </glossentry>
  12296. <glossentry id='var-STAGING_LIBDIR'><glossterm>STAGING_LIBDIR</glossterm>
  12297. <info>
  12298. STAGING_LIBDIR[doc] = "Specifies the path to the /usr/lib subdirectory of the sysroot directory for the target for which the current recipe is being built (STAGING_DIR_HOST)."
  12299. </info>
  12300. <glossdef>
  12301. <para role="glossdeffirst">
  12302. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12303. Specifies the path to the <filename>/usr/lib</filename>
  12304. subdirectory of the sysroot directory for the target for
  12305. which the current recipe is being built
  12306. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  12307. </para>
  12308. </glossdef>
  12309. </glossentry>
  12310. <glossentry id='var-STAGING_LIBDIR_NATIVE'><glossterm>STAGING_LIBDIR_NATIVE</glossterm>
  12311. <info>
  12312. STAGING_LIBDIR_NATIVE[doc] = "Specifies the path to the /usr/lib subdirectory of the sysroot directory for the build host."
  12313. </info>
  12314. <glossdef>
  12315. <para role="glossdeffirst">
  12316. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12317. Specifies the path to the <filename>/usr/lib</filename>
  12318. subdirectory of the sysroot directory for the build host.
  12319. </para>
  12320. </glossdef>
  12321. </glossentry>
  12322. <glossentry id='var-STAMP'><glossterm>STAMP</glossterm>
  12323. <info>
  12324. STAMP[doc] = "Specifies the base path used to create recipe stamp files. The path to an actual stamp file is constructed by evaluating this string and then appending additional information."
  12325. </info>
  12326. <glossdef>
  12327. <para role="glossdeffirst">
  12328. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12329. Specifies the base path used to create recipe stamp files.
  12330. The path to an actual stamp file is constructed by evaluating this
  12331. string and then appending additional information.
  12332. Currently, the default assignment for <filename>STAMP</filename>
  12333. as set in the <filename>meta/conf/bitbake.conf</filename> file
  12334. is:
  12335. <literallayout class='monospaced'>
  12336. STAMP = "${STAMPS_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}"
  12337. </literallayout>
  12338. </para>
  12339. <para>
  12340. For information on how BitBake uses stamp files to determine
  12341. if a task should be rerun, see the
  12342. "<link linkend='stamp-files-and-the-rerunning-of-tasks'>Stamp Files and the Rerunning of Tasks</link>"
  12343. section.
  12344. </para>
  12345. <para>
  12346. See <link linkend='var-STAMPS_DIR'><filename>STAMPS_DIR</filename></link>,
  12347. <link linkend='var-MULTIMACH_TARGET_SYS'><filename>MULTIMACH_TARGET_SYS</filename></link>,
  12348. <link linkend='var-PN'><filename>PN</filename></link>,
  12349. <link linkend='var-EXTENDPE'><filename>EXTENDPE</filename></link>,
  12350. <link linkend='var-PV'><filename>PV</filename></link>, and
  12351. <link linkend='var-PR'><filename>PR</filename></link> for related variable
  12352. information.
  12353. </para>
  12354. </glossdef>
  12355. </glossentry>
  12356. <glossentry id='var-STAMPS_DIR'><glossterm>STAMPS_DIR</glossterm>
  12357. <info>
  12358. STAMPS_DIR[doc] = "Specifies the base directory in which the OpenEmbedded build system places stamps."
  12359. </info>
  12360. <glossdef>
  12361. <para role="glossdeffirst">
  12362. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12363. Specifies the base directory in which the OpenEmbedded
  12364. build system places stamps.
  12365. The default directory is
  12366. <filename>${TMPDIR}/stamps</filename>.
  12367. </para>
  12368. </glossdef>
  12369. </glossentry>
  12370. <glossentry id='var-STRIP'><glossterm>STRIP</glossterm>
  12371. <info>
  12372. STRIP[doc] = "Minimal command and arguments to run 'strip' (strip symbols)."
  12373. </info>
  12374. <glossdef>
  12375. <para role="glossdeffirst">
  12376. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12377. The minimal command and arguments to run
  12378. <filename>strip</filename>, which is used to strip
  12379. symbols.
  12380. </para>
  12381. </glossdef>
  12382. </glossentry>
  12383. <glossentry id='var-SUMMARY'><glossterm>SUMMARY</glossterm>
  12384. <info>
  12385. SUMMARY[doc] = "The short (80 characters or less) summary of the binary package for packaging systems such as opkg, rpm or dpkg. By default, SUMMARY is used to define the DESCRIPTION variable if DESCRIPTION is not set in the recipe."
  12386. </info>
  12387. <glossdef>
  12388. <para role="glossdeffirst">
  12389. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12390. The short (72 characters or less) summary of the binary package for packaging
  12391. systems such as <filename>opkg</filename>, <filename>rpm</filename> or
  12392. <filename>dpkg</filename>.
  12393. By default, <filename>SUMMARY</filename> is used to define
  12394. the <link linkend='var-DESCRIPTION'><filename>DESCRIPTION</filename></link>
  12395. variable if <filename>DESCRIPTION</filename> is not set
  12396. in the recipe.
  12397. </para>
  12398. </glossdef>
  12399. </glossentry>
  12400. <glossentry id='var-SVNDIR'><glossterm>SVNDIR</glossterm>
  12401. <info>
  12402. SVNDIR[doc] = "The directory where Subversion checkouts will be stored."
  12403. </info>
  12404. <glossdef>
  12405. <para role="glossdeffirst">
  12406. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12407. The directory in which files checked out of a Subversion
  12408. system are stored.
  12409. </para>
  12410. </glossdef>
  12411. </glossentry>
  12412. <glossentry id='var-SYSLINUX_DEFAULT_CONSOLE'><glossterm>SYSLINUX_DEFAULT_CONSOLE</glossterm>
  12413. <info>
  12414. SYSLINUX_DEFAULT_CONSOLE[doc] = "Specifies the kernel boot default console."
  12415. </info>
  12416. <glossdef>
  12417. <para role="glossdeffirst">
  12418. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12419. Specifies the kernel boot default console.
  12420. If you want to use a console other than the default,
  12421. set this variable in your recipe as follows where "X" is
  12422. the console number you want to use:
  12423. <literallayout class='monospaced'>
  12424. SYSLINUX_DEFAULT_CONSOLE = "console=ttyX"
  12425. </literallayout>
  12426. </para>
  12427. <para>
  12428. The
  12429. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  12430. class initially sets this variable to null but then checks
  12431. for a value later.
  12432. </para>
  12433. </glossdef>
  12434. </glossentry>
  12435. <glossentry id='var-SYSLINUX_OPTS'><glossterm>SYSLINUX_OPTS</glossterm>
  12436. <info>
  12437. SYSLINUX_OPTS[doc] = "Lists additional options to add to the syslinux file."
  12438. </info>
  12439. <glossdef>
  12440. <para role="glossdeffirst">
  12441. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12442. Lists additional options to add to the syslinux file.
  12443. You need to set this variable in your recipe.
  12444. If you want to list multiple options, separate the options
  12445. with a semicolon character (<filename>;</filename>).
  12446. </para>
  12447. <para>
  12448. The
  12449. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  12450. class uses this variable to create a set of options.
  12451. </para>
  12452. </glossdef>
  12453. </glossentry>
  12454. <glossentry id='var-SYSLINUX_SERIAL'><glossterm>SYSLINUX_SERIAL</glossterm>
  12455. <info>
  12456. SYSLINUX_SERIAL[doc] = "Specifies the alternate serial port or turns it off."
  12457. </info>
  12458. <glossdef>
  12459. <para role="glossdeffirst">
  12460. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12461. Specifies the alternate serial port or turns it off.
  12462. To turn off serial, set this variable to an empty string
  12463. in your recipe.
  12464. The variable's default value is set in the
  12465. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  12466. as follows:
  12467. <literallayout class='monospaced'>
  12468. SYSLINUX_SERIAL ?= "0 115200"
  12469. </literallayout>
  12470. </para>
  12471. <para>
  12472. The class checks for and uses the variable as needed.
  12473. </para>
  12474. </glossdef>
  12475. </glossentry>
  12476. <glossentry id='var-SYSLINUX_SPLASH'><glossterm>SYSLINUX_SPLASH</glossterm>
  12477. <info>
  12478. SYSLINUX_SPLASH[doc] = "An .LSS file used as the background for the VGA boot menu when you are using the boot menu."
  12479. </info>
  12480. <glossdef>
  12481. <para role="glossdeffirst">
  12482. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12483. An <filename>.LSS</filename> file used as the background
  12484. for the VGA boot menu when you are using the boot menu.
  12485. You need to set this variable in your recipe.
  12486. </para>
  12487. <para>
  12488. The
  12489. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  12490. class checks for this variable and if found, the
  12491. OpenEmbedded build system installs the splash screen.
  12492. </para>
  12493. </glossdef>
  12494. </glossentry>
  12495. <glossentry id='var-SYSLINUX_SERIAL_TTY'><glossterm>SYSLINUX_SERIAL_TTY</glossterm>
  12496. <info>
  12497. SYSLINUX_SERIAL_TTY[doc] = "Specifies the alternate console=tty... kernel boot argument."
  12498. </info>
  12499. <glossdef>
  12500. <para role="glossdeffirst">
  12501. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12502. Specifies the alternate console=tty... kernel boot argument.
  12503. The variable's default value is set in the
  12504. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  12505. as follows:
  12506. <literallayout class='monospaced'>
  12507. SYSLINUX_SERIAL_TTY ?= "console=ttyS0,115200"
  12508. </literallayout>
  12509. </para>
  12510. <para>
  12511. The class checks for and uses the variable as needed.
  12512. </para>
  12513. </glossdef>
  12514. </glossentry>
  12515. <glossentry id='var-SYSROOT_DIRS'><glossterm>SYSROOT_DIRS</glossterm>
  12516. <info>
  12517. SYSROOT_DIRS[doc] = "Directories that are staged into the sysroot by the do_populate_sysroot task."
  12518. </info>
  12519. <glossdef>
  12520. <para role="glossdeffirst">
  12521. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12522. Directories that are staged into the sysroot by the
  12523. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  12524. task.
  12525. By default, the following directories are staged:
  12526. <literallayout class='monospaced'>
  12527. SYSROOT_DIRS = " \
  12528. ${includedir} \
  12529. ${libdir} \
  12530. ${base_libdir} \
  12531. ${nonarch_base_libdir} \
  12532. ${datadir} \
  12533. "
  12534. </literallayout>
  12535. </para>
  12536. </glossdef>
  12537. </glossentry>
  12538. <glossentry id='var-SYSROOT_DIRS_BLACKLIST'><glossterm>SYSROOT_DIRS_BLACKLIST</glossterm>
  12539. <info>
  12540. SYSROOT_DIRS_BLACKLIST[doc] = "Directories that are not staged into the sysroot by the do_populate_sysroot task."
  12541. </info>
  12542. <glossdef>
  12543. <para role="glossdeffirst">
  12544. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12545. Directories that are not staged into the sysroot by the
  12546. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  12547. task.
  12548. You can use this variable to exclude certain subdirectories
  12549. of directories listed in
  12550. <link linkend='var-SYSROOT_DIRS'><filename>SYSROOT_DIRS</filename></link>
  12551. from staging.
  12552. By default, the following directories are not staged:
  12553. <literallayout class='monospaced'>
  12554. SYSROOT_DIRS_BLACKLIST = " \
  12555. ${mandir} \
  12556. ${docdir} \
  12557. ${infodir} \
  12558. ${datadir}/locale \
  12559. ${datadir}/applications \
  12560. ${datadir}/fonts \
  12561. ${datadir}/pixmaps \
  12562. "
  12563. </literallayout>
  12564. </para>
  12565. </glossdef>
  12566. </glossentry>
  12567. <glossentry id='var-SYSROOT_DIRS_NATIVE'><glossterm>SYSROOT_DIRS_NATIVE</glossterm>
  12568. <info>
  12569. SYSROOT_DIRS_NATIVE[doc] = "Extra directories staged into the sysroot by the do_populate_sysroot task for -native recipes, in addition to those specified in SYSROOT_DIRS."
  12570. </info>
  12571. <glossdef>
  12572. <para role="glossdeffirst">
  12573. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12574. Extra directories staged into the sysroot by the
  12575. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  12576. task for <filename>-native</filename> recipes, in addition
  12577. to those specified in
  12578. <link linkend='var-SYSROOT_DIRS'><filename>SYSROOT_DIRS</filename></link>.
  12579. By default, the following extra directories are staged:
  12580. <literallayout class='monospaced'>
  12581. SYSROOT_DIRS_NATIVE = " \
  12582. ${bindir} \
  12583. ${sbindir} \
  12584. ${base_bindir} \
  12585. ${base_sbindir} \
  12586. ${libexecdir} \
  12587. ${sysconfdir} \
  12588. ${localstatedir} \
  12589. "
  12590. </literallayout>
  12591. <note>
  12592. Programs built by <filename>-native</filename> recipes
  12593. run directly from the sysroot
  12594. (<link linkend='var-STAGING_DIR_NATIVE'><filename>STAGING_DIR_NATIVE</filename></link>),
  12595. which is why additional directories containing program
  12596. executables and supporting files need to be staged.
  12597. </note>
  12598. </para>
  12599. </glossdef>
  12600. </glossentry>
  12601. <glossentry id='var-SYSROOT_PREPROCESS_FUNCS'><glossterm>SYSROOT_PREPROCESS_FUNCS</glossterm>
  12602. <info>
  12603. SYSROOT_PREPROCESS_FUNCS[doc] = "A list of functions to execute after files are staged into the sysroot. These functions are usually used to apply additional processing on the staged files, or to stage additional files."
  12604. </info>
  12605. <glossdef>
  12606. <para role="glossdeffirst">
  12607. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12608. A list of functions to execute after files are staged into
  12609. the sysroot.
  12610. These functions are usually used to apply additional
  12611. processing on the staged files, or to stage additional
  12612. files.
  12613. </para>
  12614. </glossdef>
  12615. </glossentry>
  12616. <glossentry id='var-SYSTEMD_AUTO_ENABLE'><glossterm>SYSTEMD_AUTO_ENABLE</glossterm>
  12617. <info>
  12618. SYSTEMD_AUTO_ENABLE[doc] = "For recipes that inherit the systemd class, this variable specifies whether the service you have specified in SYSTEMD_SERVICE should be started automatically or not."
  12619. </info>
  12620. <glossdef>
  12621. <para role="glossdeffirst">
  12622. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12623. When inheriting the
  12624. <link linkend='ref-classes-systemd'><filename>systemd</filename></link>
  12625. class, this variable specifies whether the service you have
  12626. specified in
  12627. <link linkend='var-SYSTEMD_SERVICE'><filename>SYSTEMD_SERVICE</filename></link>
  12628. should be started automatically or not.
  12629. By default, the service is enabled to automatically start
  12630. at boot time.
  12631. The default setting is in the
  12632. <link linkend='ref-classes-systemd'><filename>systemd</filename></link>
  12633. class as follows:
  12634. <literallayout class='monospaced'>
  12635. SYSTEMD_AUTO_ENABLE ??= "enable"
  12636. </literallayout>
  12637. </para>
  12638. <para>
  12639. You can disable the service by setting the variable to
  12640. "disable".
  12641. </para>
  12642. </glossdef>
  12643. </glossentry>
  12644. <glossentry id='var-SYSTEMD_BOOT_CFG'><glossterm>SYSTEMD_BOOT_CFG</glossterm>
  12645. <info>
  12646. SYSTEMD_BOOT_CFG[doc] = "When EFI_PROVIDER is set to "systemd-boot", the SYSTEMD_BOOT_CFG variable specifies the configuration file that should be used."
  12647. </info>
  12648. <glossdef>
  12649. <para role="glossdeffirst">
  12650. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12651. When
  12652. <link linkend='var-EFI_PROVIDER'><filename>EFI_PROVIDER</filename></link>
  12653. is set to "systemd-boot", the
  12654. <filename>SYSTEMD_BOOT_CFG</filename> variable specifies the
  12655. configuration file that should be used.
  12656. By default, the
  12657. <link linkend='ref-classes-systemd-boot'><filename>systemd-boot</filename></link>
  12658. class sets the <filename>SYSTEMD_BOOT_CFG</filename> as
  12659. follows:
  12660. <literallayout class='monospaced'>
  12661. SYSTEMD_BOOT_CFG ?= "${<link linkend='var-S'>S</link>}/loader.conf"
  12662. </literallayout>
  12663. </para>
  12664. <para>
  12665. For information on Systemd-boot, see the
  12666. <ulink url='http://www.freedesktop.org/wiki/Software/systemd/systemd-boot/'>Systemd-boot documentation</ulink>.
  12667. </para>
  12668. </glossdef>
  12669. </glossentry>
  12670. <glossentry id='var-SYSTEMD_BOOT_ENTRIES'><glossterm>SYSTEMD_BOOT_ENTRIES</glossterm>
  12671. <info>
  12672. SYSTEMD_BOOT_ENTRIES[doc] = "When EFI_PROVIDER is set to "systemd-boot", the SYSTEMD_BOOT_ENTRIES variable specifies a list of entry files (*.conf) to be installed containing one boot entry per file."
  12673. </info>
  12674. <glossdef>
  12675. <para role="glossdeffirst">
  12676. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12677. When
  12678. <link linkend='var-EFI_PROVIDER'><filename>EFI_PROVIDER</filename></link>
  12679. is set to "systemd-boot", the
  12680. <filename>SYSTEMD_BOOT_ENTRIES</filename> variable specifies
  12681. a list of entry files
  12682. (<filename>*.conf</filename>) to be installed
  12683. containing one boot entry per file.
  12684. By default, the
  12685. <link linkend='ref-classes-systemd-boot'><filename>systemd-boot</filename></link>
  12686. class sets the <filename>SYSTEMD_BOOT_ENTRIES</filename> as
  12687. follows:
  12688. <literallayout class='monospaced'>
  12689. SYSTEMD_BOOT_ENTRIES ?= ""
  12690. </literallayout>
  12691. </para>
  12692. <para>
  12693. For information on Systemd-boot, see the
  12694. <ulink url='http://www.freedesktop.org/wiki/Software/systemd/systemd-boot/'>Systemd-boot documentation</ulink>.
  12695. </para>
  12696. </glossdef>
  12697. </glossentry>
  12698. <glossentry id='var-SYSTEMD_BOOT_TIMEOUT'><glossterm>SYSTEMD_BOOT_TIMEOUT</glossterm>
  12699. <info>
  12700. SYSTEMD_BOOT_TIMEOUT[doc] = "When EFI_PROVIDER is set to "systemd-boot", the SYSTEMD_BOOT_TIMEOUT variable specifies the boot menu timeout in seconds."
  12701. </info>
  12702. <glossdef>
  12703. <para role="glossdeffirst">
  12704. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12705. When
  12706. <link linkend='var-EFI_PROVIDER'><filename>EFI_PROVIDER</filename></link>
  12707. is set to "systemd-boot", the
  12708. <filename>SYSTEMD_BOOT_TIMEOUT</filename> variable specifies
  12709. the boot menu timeout in seconds.
  12710. By default, the
  12711. <link linkend='ref-classes-systemd-boot'><filename>systemd-boot</filename></link>
  12712. class sets the <filename>SYSTEMD_BOOT_TIMEOUT</filename> as
  12713. follows:
  12714. <literallayout class='monospaced'>
  12715. SYSTEMD_BOOT_TIMEOUT ?= "10"
  12716. </literallayout>
  12717. </para>
  12718. <para>
  12719. For information on Systemd-boot, see the
  12720. <ulink url='http://www.freedesktop.org/wiki/Software/systemd/systemd-boot/'>Systemd-boot documentation</ulink>.
  12721. </para>
  12722. </glossdef>
  12723. </glossentry>
  12724. <glossentry id='var-SYSTEMD_PACKAGES'><glossterm>SYSTEMD_PACKAGES</glossterm>
  12725. <info>
  12726. SYSTEMD_PACKAGES[doc] = "For recipes that inherit the systemd class, this variable locates the systemd unit files when they are not found in the main recipe's package."
  12727. </info>
  12728. <glossdef>
  12729. <para role="glossdeffirst">
  12730. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12731. When inheriting the
  12732. <link linkend='ref-classes-systemd'><filename>systemd</filename></link>
  12733. class, this variable locates the systemd unit files when
  12734. they are not found in the main recipe's package.
  12735. By default, the
  12736. <filename>SYSTEMD_PACKAGES</filename> variable is set
  12737. such that the systemd unit files are assumed to reside in
  12738. the recipes main package:
  12739. <literallayout class='monospaced'>
  12740. SYSTEMD_PACKAGES ?= "${PN}"
  12741. </literallayout>
  12742. </para>
  12743. <para>
  12744. If these unit files are not in this recipe's main
  12745. package, you need to use
  12746. <filename>SYSTEMD_PACKAGES</filename> to list the package
  12747. or packages in which the build system can find the systemd
  12748. unit files.
  12749. </para>
  12750. </glossdef>
  12751. </glossentry>
  12752. <glossentry id='var-SYSTEMD_SERVICE'><glossterm>SYSTEMD_SERVICE</glossterm>
  12753. <info>
  12754. SYSTEMD_SERVICE[doc] = "For recipes that inherit the systemd class, this variable specifies the systemd service name for a package."
  12755. </info>
  12756. <glossdef>
  12757. <para role="glossdeffirst">
  12758. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12759. When inheriting the
  12760. <link linkend='ref-classes-systemd'><filename>systemd</filename></link>
  12761. class, this variable specifies the systemd service name for
  12762. a package.
  12763. </para>
  12764. <para>
  12765. When you specify this file in your recipe, use a package
  12766. name override to indicate the package to which the value
  12767. applies.
  12768. Here is an example from the connman recipe:
  12769. <literallayout class='monospaced'>
  12770. SYSTEMD_SERVICE_${PN} = "connman.service"
  12771. </literallayout>
  12772. </para>
  12773. </glossdef>
  12774. </glossentry>
  12775. <glossentry id='var-SYSVINIT_ENABLED_GETTYS'><glossterm>SYSVINIT_ENABLED_GETTYS</glossterm>
  12776. <info>
  12777. SYSVINIT_ENABLED_GETTYS[doc] = "Specifies which virtual terminals should be running a getty, the default is '1'."
  12778. </info>
  12779. <glossdef>
  12780. <para role="glossdeffirst">
  12781. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12782. When using
  12783. <ulink url='&YOCTO_DOCS_DEV_URL;#new-recipe-enabling-system-services'>SysVinit</ulink>,
  12784. specifies a space-separated list of the virtual terminals
  12785. that should be running a
  12786. <ulink url='http://en.wikipedia.org/wiki/Getty_%28Unix%29'>getty</ulink>
  12787. (allowing login), assuming
  12788. <link linkend='var-USE_VT'><filename>USE_VT</filename></link>
  12789. is not set to "0".
  12790. </para>
  12791. <para>
  12792. The default value for
  12793. <filename>SYSVINIT_ENABLED_GETTYS</filename> is "1"
  12794. (i.e. only run a getty on the first virtual terminal).
  12795. </para>
  12796. </glossdef>
  12797. </glossentry>
  12798. </glossdiv>
  12799. <glossdiv id='var-glossary-t'><title>T</title>
  12800. <glossentry id='var-T'><glossterm>T</glossterm>
  12801. <info>
  12802. T[doc] = "This variable points to a directory were BitBake places temporary files, which consist mostly of task logs and scripts, when building a particular recipe."
  12803. </info>
  12804. <glossdef>
  12805. <para role="glossdeffirst">
  12806. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12807. This variable points to a directory were BitBake places
  12808. temporary files, which consist mostly of task logs and
  12809. scripts, when building a particular recipe.
  12810. The variable is typically set as follows:
  12811. <literallayout class='monospaced'>
  12812. T = "${WORKDIR}/temp"
  12813. </literallayout>
  12814. </para>
  12815. <para>
  12816. The <link linkend='var-WORKDIR'><filename>WORKDIR</filename></link>
  12817. is the directory into which BitBake unpacks and builds the
  12818. recipe.
  12819. The default <filename>bitbake.conf</filename> file sets this variable.</para>
  12820. <para>The <filename>T</filename> variable is not to be confused with
  12821. the <link linkend='var-TMPDIR'><filename>TMPDIR</filename></link> variable,
  12822. which points to the root of the directory tree where BitBake
  12823. places the output of an entire build.
  12824. </para>
  12825. </glossdef>
  12826. </glossentry>
  12827. <glossentry id='var-TARGET_ARCH'><glossterm>TARGET_ARCH</glossterm>
  12828. <info>
  12829. TARGET_ARCH[doc] = "The architecture of the device being built. The OpenEmbedded build system supports the following architectures: arm, mips, ppc, x86, x86-64."
  12830. </info>
  12831. <glossdef>
  12832. <para role="glossdeffirst">
  12833. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12834. The target machine's architecture.
  12835. The OpenEmbedded build system supports many
  12836. architectures.
  12837. Here is an example list of architectures supported.
  12838. This list is by no means complete as the architecture
  12839. is configurable:
  12840. <literallayout class='monospaced'>
  12841. arm
  12842. i586
  12843. x86_64
  12844. powerpc
  12845. powerpc64
  12846. mips
  12847. mipsel
  12848. </literallayout>
  12849. </para>
  12850. <para>
  12851. For additional information on machine architectures, see
  12852. the
  12853. <link linkend='var-TUNE_ARCH'><filename>TUNE_ARCH</filename></link>
  12854. variable.
  12855. </para>
  12856. </glossdef>
  12857. </glossentry>
  12858. <glossentry id='var-TARGET_AS_ARCH'><glossterm>TARGET_AS_ARCH</glossterm>
  12859. <info>
  12860. TARGET_AS_ARCH[doc] = "Specifies architecture-specific assembler flags for the target system."
  12861. </info>
  12862. <glossdef>
  12863. <para role="glossdeffirst">
  12864. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12865. Specifies architecture-specific assembler flags for the
  12866. target system.
  12867. <filename>TARGET_AS_ARCH</filename> is initialized from
  12868. <link linkend='var-TUNE_ASARGS'><filename>TUNE_ASARGS</filename></link>
  12869. by default in the BitBake configuration file
  12870. (<filename>meta/conf/bitbake.conf</filename>):
  12871. <literallayout class='monospaced'>
  12872. TARGET_AS_ARCH = "${TUNE_ASARGS}"
  12873. </literallayout>
  12874. </para>
  12875. </glossdef>
  12876. </glossentry>
  12877. <glossentry id='var-TARGET_CC_ARCH'><glossterm>TARGET_CC_ARCH</glossterm>
  12878. <info>
  12879. TARGET_CC_ARCH[doc] = "Specifies architecture-specific C compiler flags for the target system."
  12880. </info>
  12881. <glossdef>
  12882. <para role="glossdeffirst">
  12883. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12884. Specifies architecture-specific C compiler flags for the
  12885. target system.
  12886. <filename>TARGET_CC_ARCH</filename> is initialized from
  12887. <link linkend='var-TUNE_CCARGS'><filename>TUNE_CCARGS</filename></link>
  12888. by default.
  12889. <note>
  12890. It is a common workaround to append
  12891. <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
  12892. to <filename>TARGET_CC_ARCH</filename>
  12893. in recipes that build software for the target that
  12894. would not otherwise respect the exported
  12895. <filename>LDFLAGS</filename> variable.
  12896. </note>
  12897. </para>
  12898. </glossdef>
  12899. </glossentry>
  12900. <glossentry id='var-TARGET_CC_KERNEL_ARCH'><glossterm>TARGET_CC_KERNEL_ARCH</glossterm>
  12901. <info>
  12902. TARGET_CC_KERNEL_ARCH[doc] = "This is a specific kernel compiler flag for a CPU or Application Binary Interface (ABI) tune."
  12903. </info>
  12904. <glossdef>
  12905. <para role="glossdeffirst">
  12906. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12907. This is a specific kernel compiler flag for a CPU or
  12908. Application Binary Interface (ABI) tune.
  12909. The flag is used rarely and only for cases where a
  12910. userspace
  12911. <link linkend='var-TUNE_CCARGS'><filename>TUNE_CCARGS</filename></link>
  12912. is not compatible with the kernel compilation.
  12913. The <filename>TARGET_CC_KERNEL_ARCH</filename> variable
  12914. allows the kernel (and associated modules) to use a
  12915. different configuration.
  12916. See the
  12917. <filename>meta/conf/machine/include/arm/feature-arm-thumb.inc</filename>
  12918. file in the
  12919. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>
  12920. for an example.
  12921. </para>
  12922. </glossdef>
  12923. </glossentry>
  12924. <glossentry id='var-TARGET_CFLAGS'><glossterm>TARGET_CFLAGS</glossterm>
  12925. <info>
  12926. TARGET_CFLAGS[doc] = "Flags passed to the C compiler for the target system. This variable evaluates to the same as CFLAGS."
  12927. </info>
  12928. <glossdef>
  12929. <para role="glossdeffirst">
  12930. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12931. Specifies the flags to pass to the C compiler when building
  12932. for the target.
  12933. When building in the target context,
  12934. <link linkend='var-CFLAGS'><filename>CFLAGS</filename></link>
  12935. is set to the value of this variable by default.
  12936. </para>
  12937. <para>
  12938. Additionally, the SDK's environment setup script sets
  12939. the
  12940. <link linkend='var-CFLAGS'><filename>CFLAGS</filename></link>
  12941. variable in the environment to the
  12942. <filename>TARGET_CFLAGS</filename> value so that
  12943. executables built using the SDK also have the flags
  12944. applied.
  12945. </para>
  12946. </glossdef>
  12947. </glossentry>
  12948. <glossentry id='var-TARGET_CPPFLAGS'><glossterm>TARGET_CPPFLAGS</glossterm>
  12949. <info>
  12950. TARGET_CPPFLAGS[doc] = "Specifies the flags to pass to the C pre-processor (i.e. to both the C and the C++ compilers) when building for the target."
  12951. </info>
  12952. <glossdef>
  12953. <para role="glossdeffirst">
  12954. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12955. Specifies the flags to pass to the C pre-processor
  12956. (i.e. to both the C and the C++ compilers) when building
  12957. for the target.
  12958. When building in the target context,
  12959. <link linkend='var-CPPFLAGS'><filename>CPPFLAGS</filename></link>
  12960. is set to the value of this variable by default.
  12961. </para>
  12962. <para>
  12963. Additionally, the SDK's environment setup script sets
  12964. the
  12965. <link linkend='var-CPPFLAGS'><filename>CPPFLAGS</filename></link>
  12966. variable in the environment to the
  12967. <filename>TARGET_CPPFLAGS</filename> value so that
  12968. executables built using the SDK also have the flags
  12969. applied.
  12970. </para>
  12971. </glossdef>
  12972. </glossentry>
  12973. <glossentry id='var-TARGET_CXXFLAGS'><glossterm>TARGET_CXXFLAGS</glossterm>
  12974. <info>
  12975. TARGET_CXXFLAGS[doc] = "Specifies the flags to pass to the C++ compiler when building for the target."
  12976. </info>
  12977. <glossdef>
  12978. <para role="glossdeffirst">
  12979. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12980. Specifies the flags to pass to the C++ compiler when
  12981. building for the target.
  12982. When building in the target context,
  12983. <link linkend='var-CXXFLAGS'><filename>CXXFLAGS</filename></link>
  12984. is set to the value of this variable by default.
  12985. </para>
  12986. <para>
  12987. Additionally, the SDK's environment setup script sets
  12988. the
  12989. <link linkend='var-CXXFLAGS'><filename>CXXFLAGS</filename></link>
  12990. variable in the environment to the
  12991. <filename>TARGET_CXXFLAGS</filename> value so that
  12992. executables built using the SDK also have the flags
  12993. applied.
  12994. </para>
  12995. </glossdef>
  12996. </glossentry>
  12997. <glossentry id='var-TARGET_FPU'><glossterm>TARGET_FPU</glossterm>
  12998. <info>
  12999. TARGET_FPU[doc] = "Specifies the method for handling FPU code. For FPU-less targets, which include most ARM CPUs, the variable must be set to 'soft'. If not, the kernel emulation gets used, which results in a performance penalty."
  13000. </info>
  13001. <glossdef>
  13002. <para role="glossdeffirst">
  13003. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13004. Specifies the method for handling FPU code.
  13005. For FPU-less targets, which include most ARM CPUs, the variable must be
  13006. set to "soft".
  13007. If not, the kernel emulation gets used, which results in a performance penalty.
  13008. </para>
  13009. </glossdef>
  13010. </glossentry>
  13011. <glossentry id='var-TARGET_LD_ARCH'><glossterm>TARGET_LD_ARCH</glossterm>
  13012. <info>
  13013. TARGET_LD_ARCH[doc] = "Specifies architecture-specific linker flags for the target system."
  13014. </info>
  13015. <glossdef>
  13016. <para role="glossdeffirst">
  13017. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13018. Specifies architecture-specific linker flags for the
  13019. target system.
  13020. <filename>TARGET_LD_ARCH</filename> is initialized from
  13021. <link linkend='var-TUNE_LDARGS'><filename>TUNE_LDARGS</filename></link>
  13022. by default in the BitBake configuration file
  13023. (<filename>meta/conf/bitbake.conf</filename>):
  13024. <literallayout class='monospaced'>
  13025. TARGET_LD_ARCH = "${TUNE_LDARGS}"
  13026. </literallayout>
  13027. </para>
  13028. </glossdef>
  13029. </glossentry>
  13030. <glossentry id='var-TARGET_LDFLAGS'><glossterm>TARGET_LDFLAGS</glossterm>
  13031. <info>
  13032. TARGET_LDFLAGS[doc] = "Specifies the flags to pass to the linker when building for the target."
  13033. </info>
  13034. <glossdef>
  13035. <para role="glossdeffirst">
  13036. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13037. Specifies the flags to pass to the linker when building
  13038. for the target.
  13039. When building in the target context,
  13040. <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
  13041. is set to the value of this variable by default.
  13042. </para>
  13043. <para>
  13044. Additionally, the SDK's environment setup script sets
  13045. the
  13046. <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
  13047. variable in the environment to the
  13048. <filename>TARGET_LDFLAGS</filename> value so that
  13049. executables built using the SDK also have the flags
  13050. applied.
  13051. </para>
  13052. </glossdef>
  13053. </glossentry>
  13054. <glossentry id='var-TARGET_OS'><glossterm>TARGET_OS</glossterm>
  13055. <info>
  13056. TARGET_OS[doc] = "Specifies the target's operating system."
  13057. </info>
  13058. <glossdef>
  13059. <para role="glossdeffirst">
  13060. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13061. Specifies the target's operating system.
  13062. The variable can be set to "linux" for <filename>glibc</filename>-based systems and
  13063. to "linux-uclibc" for <filename>uclibc</filename>.
  13064. For ARM/EABI targets, there are also "linux-gnueabi" and
  13065. "linux-uclibc-gnueabi" values possible.
  13066. </para>
  13067. </glossdef>
  13068. </glossentry>
  13069. <glossentry id='var-TARGET_PREFIX'><glossterm>TARGET_PREFIX</glossterm>
  13070. <info>
  13071. TARGET_PREFIX[doc] = "The prefix used for the toolchain binary target tools."
  13072. </info>
  13073. <glossdef>
  13074. <para role="glossdeffirst">
  13075. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13076. Specifies the prefix used for the toolchain binary target
  13077. tools.
  13078. </para>
  13079. <para>
  13080. Depending on the type of recipe and the build target,
  13081. <filename>TARGET_PREFIX</filename> is set as follows:
  13082. <itemizedlist>
  13083. <listitem><para>
  13084. For recipes building for the target machine,
  13085. the value is
  13086. "${<link linkend='var-TARGET_SYS'>TARGET_SYS</link>}-".
  13087. </para></listitem>
  13088. <listitem><para>
  13089. For native recipes, the build system sets the
  13090. variable to the value of
  13091. <filename>BUILD_PREFIX</filename>.
  13092. </para></listitem>
  13093. <listitem><para>
  13094. For native SDK recipes
  13095. (<filename>nativesdk</filename>), the
  13096. build system sets the variable to the value of
  13097. <filename>SDK_PREFIX</filename>.
  13098. </para></listitem>
  13099. </itemizedlist>
  13100. </para>
  13101. </glossdef>
  13102. </glossentry>
  13103. <glossentry id='var-TARGET_SYS'><glossterm>TARGET_SYS</glossterm>
  13104. <info>
  13105. TARGET_SYS[doc] = "The target system is comprised of TARGET_ARCH,TARGET_VENDOR and TARGET_OS."
  13106. </info>
  13107. <glossdef>
  13108. <para role="glossdeffirst">
  13109. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13110. Specifies the system, including the architecture and the
  13111. operating system, for which the build is occurring in
  13112. the context of the current recipe.
  13113. </para>
  13114. <para>
  13115. The OpenEmbedded build system automatically sets this
  13116. variable based on
  13117. <link linkend='var-TARGET_ARCH'><filename>TARGET_ARCH</filename></link>,
  13118. <link linkend='var-TARGET_VENDOR'><filename>TARGET_VENDOR</filename></link>,
  13119. and
  13120. <link linkend='var-TARGET_OS'><filename>TARGET_OS</filename></link>
  13121. variables.
  13122. <note>
  13123. You do not need to set the
  13124. <filename>TARGET_SYS</filename> variable yourself.
  13125. </note>
  13126. </para>
  13127. <para>
  13128. Consider these two examples:
  13129. <itemizedlist>
  13130. <listitem><para>
  13131. Given a native recipe on a 32-bit, x86 machine
  13132. running Linux, the value is "i686-linux".
  13133. </para></listitem>
  13134. <listitem><para>
  13135. Given a recipe being built for a little-endian,
  13136. MIPS target running Linux, the value might be
  13137. "mipsel-linux".
  13138. </para></listitem>
  13139. </itemizedlist>
  13140. </para>
  13141. </glossdef>
  13142. </glossentry>
  13143. <glossentry id='var-TARGET_VENDOR'><glossterm>TARGET_VENDOR</glossterm>
  13144. <info>
  13145. TARGET_VENDOR[doc] = "The name of the target vendor."
  13146. </info>
  13147. <glossdef>
  13148. <para role="glossdeffirst">
  13149. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13150. Specifies the name of the target vendor.
  13151. </para>
  13152. </glossdef>
  13153. </glossentry>
  13154. <glossentry id='var-TCLIBCAPPEND'><glossterm>TCLIBCAPPEND</glossterm>
  13155. <info>
  13156. TCLIBCAPPEND[doc] = "Specifies a suffix appended to TMPDIR that identifies the libc variant for the build."
  13157. </info>
  13158. <glossdef>
  13159. <para role="glossdeffirst">
  13160. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13161. Specifies a suffix to be appended onto the
  13162. <link linkend='var-TMPDIR'><filename>TMPDIR</filename></link>
  13163. value.
  13164. The suffix identifies the <filename>libc</filename> variant
  13165. for building.
  13166. When you are building for multiple variants with the same
  13167. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>,
  13168. this mechanism ensures that output for different
  13169. <filename>libc</filename> variants is kept separate to
  13170. avoid potential conflicts.
  13171. </para>
  13172. <para>
  13173. In the <filename>defaultsetup.conf</filename> file, the
  13174. default value of <filename>TCLIBCAPPEND</filename> is
  13175. "-${TCLIBC}".
  13176. However, distros such as poky, which normally only support
  13177. one <filename>libc</filename> variant, set
  13178. <filename>TCLIBCAPPEND</filename> to "" in their distro
  13179. configuration file resulting in no suffix being applied.
  13180. </para>
  13181. </glossdef>
  13182. </glossentry>
  13183. <glossentry id='var-TCLIBC'><glossterm>TCLIBC</glossterm>
  13184. <info>
  13185. TCLIBC[doc] = "Specifies GNU standard C library (libc) variant to use during the build process. You can select 'glibc' or 'uclibc'."
  13186. </info>
  13187. <glossdef>
  13188. <para role="glossdeffirst">
  13189. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13190. Specifies the GNU standard C library (<filename>libc</filename>)
  13191. variant to use during the build process.
  13192. This variable replaces <filename>POKYLIBC</filename>, which is no longer
  13193. supported.
  13194. </para>
  13195. <para>
  13196. You can select "glibc" or "uclibc".
  13197. </para>
  13198. </glossdef>
  13199. </glossentry>
  13200. <glossentry id='var-TCMODE'><glossterm>TCMODE</glossterm>
  13201. <info>
  13202. TCMODE[doc] = "Enables an external toolchain (where provided by an additional layer) if set to a value other than 'default'."
  13203. </info>
  13204. <glossdef>
  13205. <para role="glossdeffirst">
  13206. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13207. Specifies the toolchain selector.
  13208. <filename>TCMODE</filename> controls the characteristics
  13209. of the generated packages and images by telling the
  13210. OpenEmbedded build system which toolchain profile to use.
  13211. By default, the OpenEmbedded build system builds its own
  13212. internal toolchain.
  13213. The variable's default value is "default", which uses
  13214. that internal toolchain.
  13215. <note>
  13216. If <filename>TCMODE</filename> is set to a value
  13217. other than "default", then it is your responsibility
  13218. to ensure that the toolchain is compatible with the
  13219. default toolchain.
  13220. Using older or newer versions of these components
  13221. might cause build problems.
  13222. See the
  13223. <ulink url='&YOCTO_RELEASE_NOTES;'>Release Notes</ulink>
  13224. for the specific components with which the toolchain
  13225. must be compatible.
  13226. </note>
  13227. </para>
  13228. <para>
  13229. The <filename>TCMODE</filename> variable is similar to
  13230. <link linkend='var-TCLIBC'><filename>TCLIBC</filename></link>,
  13231. which controls the variant of the GNU standard C library
  13232. (<filename>libc</filename>) used during the build process:
  13233. <filename>glibc</filename> or <filename>uclibc</filename>.
  13234. </para>
  13235. <para>
  13236. With additional layers, it is possible to use a pre-compiled
  13237. external toolchain.
  13238. One example is the Sourcery G++ Toolchain.
  13239. The support for this toolchain resides in the separate
  13240. <trademark class='registered'>Mentor Graphics</trademark>
  13241. <filename>meta-sourcery</filename> layer at
  13242. <ulink url='http://github.com/MentorEmbedded/meta-sourcery/'></ulink>.
  13243. </para>
  13244. <para>
  13245. The layer's <filename>README</filename> file contains
  13246. information on how to use the Sourcery G++ Toolchain as
  13247. an external toolchain.
  13248. In summary, you must be sure to add the layer to your
  13249. <filename>bblayers.conf</filename> file in front of the
  13250. <filename>meta</filename> layer and then set the
  13251. <filename>EXTERNAL_TOOLCHAIN</filename>
  13252. variable in your <filename>local.conf</filename> file
  13253. to the location in which you installed the toolchain.
  13254. </para>
  13255. <para>
  13256. The fundamentals used for this example apply to any
  13257. external toolchain.
  13258. You can use <filename>meta-sourcery</filename> as a
  13259. template for adding support for other external toolchains.
  13260. </para>
  13261. </glossdef>
  13262. </glossentry>
  13263. <glossentry id='var-TEST_EXPORT_DIR'><glossterm>TEST_EXPORT_DIR</glossterm>
  13264. <info>
  13265. TEST_EXPORT_DIR[doc] = "The location the OpenEmbedded build system uses to export tests when the TEST_EXPORT_ONLY variable is set to "1"."
  13266. </info>
  13267. <glossdef>
  13268. <para role="glossdeffirst">
  13269. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13270. The location the OpenEmbedded build system uses to export
  13271. tests when the
  13272. <link linkend='var-TEST_EXPORT_ONLY'><filename>TEST_EXPORT_ONLY</filename></link>
  13273. variable is set to "1".
  13274. </para>
  13275. <para>
  13276. The <filename>TEST_EXPORT_DIR</filename> variable defaults
  13277. to <filename>"${TMPDIR}/testimage/${PN}"</filename>.
  13278. </para>
  13279. </glossdef>
  13280. </glossentry>
  13281. <glossentry id='var-TEST_EXPORT_ONLY'><glossterm>TEST_EXPORT_ONLY</glossterm>
  13282. <info>
  13283. TEST_EXPORT_ONLY[doc] = "Specifies to export the tests only. Set this variable to "1" if you do not want to run the tests but you want them to be exported in a manner that you to run them outside of the build system."
  13284. </info>
  13285. <glossdef>
  13286. <para role="glossdeffirst">
  13287. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13288. Specifies to export the tests only.
  13289. Set this variable to "1" if you do not want to run the
  13290. tests but you want them to be exported in a manner that
  13291. you to run them outside of the build system.
  13292. </para>
  13293. </glossdef>
  13294. </glossentry>
  13295. <glossentry id='var-TEST_IMAGE'><glossterm>TEST_IMAGE</glossterm>
  13296. <info>
  13297. TEST_IMAGE[doc] = "Enables test booting of virtual machine images under the QEMU emulator after any root filesystems are created and runs tests against those images."
  13298. </info>
  13299. <glossdef>
  13300. <para role="glossdeffirst">
  13301. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13302. Automatically runs the series of automated tests for
  13303. images when an image is successfully built.
  13304. </para>
  13305. <para>
  13306. These tests are written in Python making use of the
  13307. <filename>unittest</filename> module, and the majority of
  13308. them run commands on the target system over
  13309. <filename>ssh</filename>.
  13310. You can set this variable to "1" in your
  13311. <filename>local.conf</filename> file in the
  13312. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>
  13313. to have the OpenEmbedded build system automatically run
  13314. these tests after an image successfully builds:
  13315. <literallayout class='monospaced'>
  13316. TEST_IMAGE = "1"
  13317. </literallayout>
  13318. For more information on enabling, running, and writing
  13319. these tests, see the
  13320. "<ulink url='&YOCTO_DOCS_DEV_URL;#performing-automated-runtime-testing'>Performing Automated Runtime Testing</ulink>"
  13321. section in the Yocto Project Development Manual and the
  13322. "<link linkend='ref-classes-testimage*'><filename>testimage*.bbclass</filename></link>"
  13323. section.
  13324. </para>
  13325. </glossdef>
  13326. </glossentry>
  13327. <glossentry id='var-TEST_LOG_DIR'><glossterm>TEST_LOG_DIR</glossterm>
  13328. <info>
  13329. TEST_LOG_DIR[doc] = "Holds the SSH log and the boot log for QEMU machines. The <filename>TEST_LOG_DIR</filename> variable defaults to "${WORKDIR}/testimage"."
  13330. </info>
  13331. <glossdef>
  13332. <para role="glossdeffirst">
  13333. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13334. Holds the SSH log and the boot log for QEMU machines.
  13335. The <filename>TEST_LOG_DIR</filename> variable defaults
  13336. to <filename>"${WORKDIR}/testimage"</filename>.
  13337. <note>
  13338. Actual test results reside in the task log
  13339. (<filename>log.do_testimage</filename>), which is in
  13340. the <filename>${WORKDIR}/temp/</filename> directory.
  13341. </note>
  13342. </para>
  13343. </glossdef>
  13344. </glossentry>
  13345. <glossentry id='var-TEST_POWERCONTROL_CMD'><glossterm>TEST_POWERCONTROL_CMD</glossterm>
  13346. <info>
  13347. TEST_POWERCONTROL_CMD[doc] = "For automated hardware testing, specifies the command to use to control the power of the target machine under test"
  13348. </info>
  13349. <glossdef>
  13350. <para role="glossdeffirst">
  13351. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13352. For automated hardware testing, specifies the command to
  13353. use to control the power of the target machine under test.
  13354. Typically, this command would point to a script that
  13355. performs the appropriate action (e.g. interacting
  13356. with a web-enabled power strip).
  13357. The specified command should expect to receive as the last
  13358. argument "off", "on" or "cycle" specifying to power off,
  13359. on, or cycle (power off and then power on) the device,
  13360. respectively.
  13361. </para>
  13362. </glossdef>
  13363. </glossentry>
  13364. <glossentry id='var-TEST_POWERCONTROL_EXTRA_ARGS'><glossterm>TEST_POWERCONTROL_EXTRA_ARGS</glossterm>
  13365. <info>
  13366. TEST_POWERCONTROL_EXTRA_ARGS[doc] = "For automated hardware testing, specifies additional arguments to pass through to the command specified in TEST_POWERCONTROL_CMD"
  13367. </info>
  13368. <glossdef>
  13369. <para role="glossdeffirst">
  13370. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13371. For automated hardware testing, specifies additional
  13372. arguments to pass through to the command specified in
  13373. <link linkend='var-TEST_POWERCONTROL_CMD'><filename>TEST_POWERCONTROL_CMD</filename></link>.
  13374. Setting <filename>TEST_POWERCONTROL_EXTRA_ARGS</filename>
  13375. is optional.
  13376. You can use it if you wish, for example, to separate the
  13377. machine-specific and non-machine-specific parts of the
  13378. arguments.
  13379. </para>
  13380. </glossdef>
  13381. </glossentry>
  13382. <glossentry id='var-TEST_QEMUBOOT_TIMEOUT'><glossterm>TEST_QEMUBOOT_TIMEOUT</glossterm>
  13383. <info>
  13384. TEST_QEMUBOOT_TIMEOUT[doc] = "The time in seconds allowed for an image to boot before automated runtime tests begin to run against an image."
  13385. </info>
  13386. <glossdef>
  13387. <para role="glossdeffirst">
  13388. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13389. The time in seconds allowed for an image to boot before
  13390. automated runtime tests begin to run against an
  13391. image.
  13392. The default timeout period to allow the boot process to
  13393. reach the login prompt is 500 seconds.
  13394. You can specify a different value in the
  13395. <filename>local.conf</filename> file.
  13396. </para>
  13397. <para>
  13398. For more information on testing images, see the
  13399. "<ulink url='&YOCTO_DOCS_DEV_URL;#performing-automated-runtime-testing'>Performing Automated Runtime Testing</ulink>"
  13400. section in the Yocto Project Development Manual.
  13401. </para>
  13402. </glossdef>
  13403. </glossentry>
  13404. <glossentry id='var-TEST_SERIALCONTROL_CMD'><glossterm>TEST_SERIALCONTROL_CMD</glossterm>
  13405. <info>
  13406. TEST_SERIALCONTROL_CMD[doc] = "For automated hardware testing, specifies the command to use to connect to the serial console of the target machine under test."
  13407. </info>
  13408. <glossdef>
  13409. <para role="glossdeffirst">
  13410. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13411. For automated hardware testing, specifies the command
  13412. to use to connect to the serial console of the target
  13413. machine under test.
  13414. This command simply needs to connect to the serial console
  13415. and forward that connection to standard input and output
  13416. as any normal terminal program does.
  13417. </para>
  13418. <para>
  13419. For example, to use the Picocom terminal program on
  13420. serial device <filename>/dev/ttyUSB0</filename> at
  13421. 115200bps, you would set the variable as follows:
  13422. <literallayout class='monospaced'>
  13423. TEST_SERIALCONTROL_CMD = "picocom /dev/ttyUSB0 -b 115200"
  13424. </literallayout>
  13425. </para>
  13426. </glossdef>
  13427. </glossentry>
  13428. <glossentry id='var-TEST_SERIALCONTROL_EXTRA_ARGS'><glossterm>TEST_SERIALCONTROL_EXTRA_ARGS</glossterm>
  13429. <info>
  13430. TEST_SERIALCONTROL_EXTRA_ARGS[doc] = "For automated hardware testing, specifies additional arguments to pass through to the command specified in TEST_SERIALCONTROL_CMD."
  13431. </info>
  13432. <glossdef>
  13433. <para role="glossdeffirst">
  13434. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13435. For automated hardware testing, specifies additional
  13436. arguments to pass through to the command specified in
  13437. <link linkend='var-TEST_SERIALCONTROL_CMD'><filename>TEST_SERIALCONTROL_CMD</filename></link>.
  13438. Setting <filename>TEST_SERIALCONTROL_EXTRA_ARGS</filename>
  13439. is optional.
  13440. You can use it if you wish, for example, to separate the
  13441. machine-specific and non-machine-specific parts of the
  13442. command.
  13443. </para>
  13444. </glossdef>
  13445. </glossentry>
  13446. <glossentry id='var-TEST_SERVER_IP'><glossterm>TEST_SERVER_IP</glossterm>
  13447. <info>
  13448. TEST_SERVER_IP[doc] = "The IP address of the build machine (host machine). This IP address is usually automatically detected."
  13449. </info>
  13450. <glossdef>
  13451. <para role="glossdeffirst">
  13452. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13453. The IP address of the build machine (host machine).
  13454. This IP address is usually automatically detected.
  13455. However, if detection fails, this variable needs to be set
  13456. to the IP address of the build machine (i.e. where
  13457. the build is taking place).
  13458. <note>
  13459. The <filename>TEST_SERVER_IP</filename> variable
  13460. is only used for a small number of tests such as
  13461. the "dnf" test suite, which needs to download
  13462. packages from
  13463. <filename>WORKDIR/oe-rootfs-repo</filename>.
  13464. </note>
  13465. </para>
  13466. </glossdef>
  13467. </glossentry>
  13468. <glossentry id='var-TEST_TARGET'><glossterm>TEST_TARGET</glossterm>
  13469. <info>
  13470. TEST_TARGET[doc] = "For automated runtime testing, specifies the method of deploying the image and running tests on the target machine."
  13471. </info>
  13472. <glossdef>
  13473. <para role="glossdeffirst">
  13474. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13475. Specifies the target controller to use when running tests
  13476. against a test image.
  13477. The default controller to use is "qemu":
  13478. <literallayout class='monospaced'>
  13479. TEST_TARGET = "qemu"
  13480. </literallayout>
  13481. </para>
  13482. <para>
  13483. A target controller is a class that defines how an
  13484. image gets deployed on a target and how a target is started.
  13485. A layer can extend the controllers by adding a module
  13486. in the layer's <filename>/lib/oeqa/controllers</filename>
  13487. directory and by inheriting the
  13488. <filename>BaseTarget</filename> class, which is an abstract
  13489. class that cannot be used as a value of
  13490. <filename>TEST_TARGET</filename>.
  13491. </para>
  13492. <para>
  13493. You can provide the following arguments with
  13494. <filename>TEST_TARGET</filename>:
  13495. <itemizedlist>
  13496. <listitem><para><emphasis>"qemu" and "QemuTarget":</emphasis>
  13497. Boots a QEMU image and runs the tests.
  13498. See the
  13499. "<ulink url='&YOCTO_DOCS_DEV_URL;#qemu-image-enabling-tests'>Enabling Runtime Tests on QEMU</ulink>"
  13500. section in the Yocto Project Development Manual for
  13501. more information.
  13502. </para></listitem>
  13503. <listitem><para><emphasis>"simpleremote" and "SimpleRemoteTarget":</emphasis>
  13504. Runs the tests on target hardware that is already
  13505. up and running.
  13506. The hardware can be on the network or it can be
  13507. a device running an image on QEMU.
  13508. You must also set
  13509. <link linkend='var-TEST_TARGET_IP'><filename>TEST_TARGET_IP</filename></link>
  13510. when you use "simpleremote" or "SimpleRemoteTarget".
  13511. <note>
  13512. This argument is defined in
  13513. <filename>meta/lib/oeqa/targetcontrol.py</filename>.
  13514. The small caps names are kept for compatibility
  13515. reasons.
  13516. </note>
  13517. </para></listitem>
  13518. <listitem><para><emphasis>"GummibootTarget":</emphasis>
  13519. Automatically deploys and runs tests on an
  13520. EFI-enabled machine that has a master image
  13521. installed.
  13522. <note>
  13523. This argument is defined in
  13524. <filename>meta/lib/oeqa/controllers/masterimage.py</filename>.
  13525. </note>
  13526. </para></listitem>
  13527. </itemizedlist>
  13528. </para>
  13529. <para>
  13530. For information on running tests on hardware, see the
  13531. "<ulink url='&YOCTO_DOCS_DEV_URL;#hardware-image-enabling-tests'>Enabling Runtime Tests on Hardware</ulink>"
  13532. section in the Yocto Project Development Manual.
  13533. </para>
  13534. </glossdef>
  13535. </glossentry>
  13536. <glossentry id='var-TEST_TARGET_IP'><glossterm>TEST_TARGET_IP</glossterm>
  13537. <info>
  13538. TEST_TARGET_IP[doc] = "The IP address of your hardware under test."
  13539. </info>
  13540. <glossdef>
  13541. <para role="glossdeffirst">
  13542. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13543. The IP address of your hardware under test.
  13544. The <filename>TEST_TARGET_IP</filename> variable has no
  13545. effect when
  13546. <link linkend='var-TEST_TARGET'><filename>TEST_TARGET</filename></link>
  13547. is set to "qemu".
  13548. </para>
  13549. <para>
  13550. When you specify the IP address, you can also include a
  13551. port.
  13552. Here is an example:
  13553. <literallayout class='monospaced'>
  13554. TEST_TARGET_IP = "192.168.1.4:2201"
  13555. </literallayout>
  13556. Specifying a port is useful when SSH is started on a
  13557. non-standard port or in cases when your hardware under test
  13558. is behind a firewall or network that is not directly
  13559. accessible from your host and you need to do port address
  13560. translation.
  13561. </para>
  13562. </glossdef>
  13563. </glossentry>
  13564. <glossentry id='var-TEST_SUITES'><glossterm>TEST_SUITES</glossterm>
  13565. <info>
  13566. TEST_SUITES[doc] = "An ordered list of tests (modules) to run against an image when performing automated runtime testing."
  13567. </info>
  13568. <glossdef>
  13569. <para role="glossdeffirst">
  13570. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13571. An ordered list of tests (modules) to run against
  13572. an image when performing automated runtime testing.
  13573. </para>
  13574. <para>
  13575. The OpenEmbedded build system provides a core set of tests
  13576. that can be used against images.
  13577. <note>
  13578. Currently, there is only support for running these tests
  13579. under QEMU.
  13580. </note>
  13581. Tests include <filename>ping</filename>,
  13582. <filename>ssh</filename>, <filename>df</filename> among
  13583. others.
  13584. You can add your own tests to the list of tests by
  13585. appending <filename>TEST_SUITES</filename> as follows:
  13586. <literallayout class='monospaced'>
  13587. TEST_SUITES_append = " <replaceable>mytest</replaceable>"
  13588. </literallayout>
  13589. Alternatively, you can provide the "auto" option to
  13590. have all applicable tests run against the image.
  13591. <literallayout class='monospaced'>
  13592. TEST_SUITES_append = " auto"
  13593. </literallayout>
  13594. Using this option causes the build system to automatically
  13595. run tests that are applicable to the image.
  13596. Tests that are not applicable are skipped.
  13597. </para>
  13598. <para>
  13599. The order in which tests are run is important.
  13600. Tests that depend on another test must appear later in the
  13601. list than the test on which they depend.
  13602. For example, if you append the list of tests with two
  13603. tests (<filename>test_A</filename> and
  13604. <filename>test_B</filename>) where
  13605. <filename>test_B</filename> is dependent on
  13606. <filename>test_A</filename>, then you must order the tests
  13607. as follows:
  13608. <literallayout class='monospaced'>
  13609. TEST_SUITES = " test_A test_B"
  13610. </literallayout>
  13611. </para>
  13612. <para>
  13613. For more information on testing images, see the
  13614. "<ulink url='&YOCTO_DOCS_DEV_URL;#performing-automated-runtime-testing'>Performing Automated Runtime Testing</ulink>"
  13615. section in the Yocto Project Development Manual.
  13616. </para>
  13617. </glossdef>
  13618. </glossentry>
  13619. <glossentry id='var-THISDIR'><glossterm>THISDIR</glossterm>
  13620. <info>
  13621. THISDIR[doc] = "The directory in which the file BitBake is currently parsing is located."
  13622. </info>
  13623. <glossdef>
  13624. <para role="glossdeffirst">
  13625. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13626. The directory in which the file BitBake is currently
  13627. parsing is located.
  13628. Do not manually set this variable.
  13629. </para>
  13630. </glossdef>
  13631. </glossentry>
  13632. <glossentry id='var-TIME'><glossterm>TIME</glossterm>
  13633. <info>
  13634. TIME[doc] = "The time the build was started using HMS format."
  13635. </info>
  13636. <glossdef>
  13637. <para role="glossdeffirst">
  13638. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13639. The time the build was started.
  13640. Times appear using the hour, minute, and second (HMS)
  13641. format (e.g. "140159" for one minute and fifty-nine
  13642. seconds past 1400 hours).
  13643. </para>
  13644. </glossdef>
  13645. </glossentry>
  13646. <glossentry id='var-TMPDIR'><glossterm>TMPDIR</glossterm>
  13647. <info>
  13648. TMPDIR[doc] = "The temporary directory the OpenEmbedded build system uses when it does its work building images. By default, the TMPDIR variable is named tmp within the Build Directory."
  13649. </info>
  13650. <glossdef>
  13651. <para role="glossdeffirst">
  13652. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13653. This variable is the base directory the OpenEmbedded
  13654. build system uses for all build output and intermediate
  13655. files (other than the shared state cache).
  13656. By default, the <filename>TMPDIR</filename> variable points
  13657. to <filename>tmp</filename> within the
  13658. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>.
  13659. </para>
  13660. <para>
  13661. If you want to establish this directory in a location other
  13662. than the default, you can uncomment and edit the following
  13663. statement in the
  13664. <filename>conf/local.conf</filename> file in the
  13665. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>:
  13666. <literallayout class='monospaced'>
  13667. #TMPDIR = "${TOPDIR}/tmp"
  13668. </literallayout>
  13669. An example use for this scenario is to set
  13670. <filename>TMPDIR</filename> to a local disk, which does
  13671. not use NFS, while having the Build Directory use NFS.
  13672. </para>
  13673. <para>
  13674. The filesystem used by <filename>TMPDIR</filename> must
  13675. have standard filesystem semantics (i.e. mixed-case files
  13676. are unique, POSIX file locking, and persistent inodes).
  13677. Due to various issues with NFS and bugs in some
  13678. implementations, NFS does not meet this minimum
  13679. requirement.
  13680. Consequently, <filename>TMPDIR</filename> cannot be on
  13681. NFS.
  13682. </para>
  13683. </glossdef>
  13684. </glossentry>
  13685. <glossentry id='var-TOOLCHAIN_HOST_TASK'><glossterm>TOOLCHAIN_HOST_TASK</glossterm>
  13686. <info>
  13687. TOOLCHAIN_HOST_TASK[doc] = "This variable lists packages the OpenEmbedded build system uses when building an SDK, which contains a cross-development environment."
  13688. </info>
  13689. <glossdef>
  13690. <para role="glossdeffirst">
  13691. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13692. This variable lists packages the OpenEmbedded build system
  13693. uses when building an SDK, which contains a
  13694. cross-development environment.
  13695. The packages specified by this variable are part of the
  13696. toolchain set that runs on the
  13697. <link linkend='var-SDKMACHINE'><filename>SDKMACHINE</filename></link>,
  13698. and each package should usually have the prefix
  13699. <filename>nativesdk-</filename>.
  13700. For example, consider the following command when
  13701. building an SDK:
  13702. <literallayout class='monospaced'>
  13703. $ bitbake -c populate_sdk <replaceable>imagename</replaceable>
  13704. </literallayout>
  13705. In this case, a default list of packages is set in this
  13706. variable, but you can add additional packages to the list.
  13707. See the
  13708. "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-adding-individual-packages'>Adding Individual Packages to the Standard SDK</ulink>"
  13709. section in the Yocto Project Software Development Kit (SDK)
  13710. Developer's Guide for more information.
  13711. </para>
  13712. <para>
  13713. For background information on cross-development toolchains
  13714. in the Yocto Project development environment, see the
  13715. "<link linkend='cross-development-toolchain-generation'>Cross-Development Toolchain Generation</link>"
  13716. section.
  13717. For information on setting up a cross-development
  13718. environment, see the
  13719. <ulink url='&YOCTO_DOCS_SDK_URL;#sdk-manual'>Yocto Project Software Development Kit (SDK) Developer's Guide</ulink>.
  13720. </para>
  13721. </glossdef>
  13722. </glossentry>
  13723. <glossentry id='var-TOOLCHAIN_OUTPUTNAME'><glossterm>TOOLCHAIN_OUTPUTNAME</glossterm>
  13724. <info>
  13725. TOOLCHAIN_OUTPUTNAME[doc] = "Defines the name used for the toolchain output."
  13726. </info>
  13727. <glossdef>
  13728. <para role="glossdeffirst">
  13729. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13730. This variable defines the name used for the toolchain
  13731. output.
  13732. The
  13733. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  13734. class sets the
  13735. <filename>TOOLCHAIN_OUTPUTNAME</filename> variable as
  13736. follows:
  13737. <literallayout class='monospaced'>
  13738. TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${SDK_VERSION}"
  13739. </literallayout>
  13740. See the
  13741. <link linkend='var-SDK_NAME'><filename>SDK_NAME</filename></link>
  13742. and
  13743. <link linkend='var-SDK_VERSION'><filename>SDK_VERSION</filename></link>
  13744. variables for additional information.
  13745. </para>
  13746. </glossdef>
  13747. </glossentry>
  13748. <glossentry id='var-TOOLCHAIN_TARGET_TASK'><glossterm>TOOLCHAIN_TARGET_TASK</glossterm>
  13749. <info>
  13750. TOOLCHAIN_TARGET_TASK[doc] = "This variable lists packages the OpenEmbedded build system uses when it creates the target part of an SDK, which includes libraries and headers."
  13751. </info>
  13752. <glossdef>
  13753. <para role="glossdeffirst">
  13754. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13755. This variable lists packages the OpenEmbedded build system
  13756. uses when it creates the target part of an SDK
  13757. (i.e. the part built for the target hardware), which
  13758. includes libraries and headers.
  13759. Use this variable to add individual packages to the
  13760. part of the SDK that runs on the target.
  13761. See the
  13762. "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-adding-individual-packages'>Adding Individual Packages to the Standard SDK</ulink>"
  13763. section in the Yocto Project Software Development Kit (SDK)
  13764. Developer's Guide for more information.
  13765. </para>
  13766. <para>
  13767. For background information on cross-development toolchains
  13768. in the Yocto Project development environment, see the
  13769. "<link linkend='cross-development-toolchain-generation'>Cross-Development Toolchain Generation</link>"
  13770. section.
  13771. For information on setting up a cross-development
  13772. environment, see the
  13773. <ulink url='&YOCTO_DOCS_SDK_URL;#sdk-manual'>Yocto Project Software Development Kit (SDK) Developer's Guide</ulink>.
  13774. </para>
  13775. </glossdef>
  13776. </glossentry>
  13777. <glossentry id='var-TOPDIR'><glossterm>TOPDIR</glossterm>
  13778. <info>
  13779. TOPDIR[doc] = "The Build Directory. BitBake automatically sets this variable. The OpenEmbedded build system uses the Build Directory when building images."
  13780. </info>
  13781. <glossdef>
  13782. <para role="glossdeffirst">
  13783. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13784. The top-level
  13785. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>.
  13786. BitBake automatically sets this variable when you
  13787. initialize your build environment using either
  13788. <link linkend='structure-core-script'><filename>&OE_INIT_FILE;</filename></link>
  13789. or
  13790. <link linkend='structure-memres-core-script'><filename>oe-init-build-env-memres</filename></link>.
  13791. </para>
  13792. </glossdef>
  13793. </glossentry>
  13794. <glossentry id='var-TRANSLATED_TARGET_ARCH'><glossterm>TRANSLATED_TARGET_ARCH</glossterm>
  13795. <info>
  13796. TRANSLATED_TARGET_ARCH[doc] = "A sanitized version of TARGET_ARCH. This variable is used where the architecture is needed in a value where underscores are not allowed."
  13797. </info>
  13798. <glossdef>
  13799. <para role="glossdeffirst">
  13800. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13801. A sanitized version of
  13802. <link linkend='var-TARGET_ARCH'><filename>TARGET_ARCH</filename></link>.
  13803. This variable is used where the architecture is needed in
  13804. a value where underscores are not allowed, for example
  13805. within package filenames.
  13806. In this case, dash characters replace any underscore
  13807. characters used in TARGET_ARCH.
  13808. </para>
  13809. <para>
  13810. Do not edit this variable.
  13811. </para>
  13812. </glossdef>
  13813. </glossentry>
  13814. <glossentry id='var-TUNE_ARCH'><glossterm>TUNE_ARCH</glossterm>
  13815. <info>
  13816. TUNE_ARCH[doc] = "The GNU canonical architecture for a specific architecture (i.e. arm, armeb, mips, mips64, and so forth)."
  13817. </info>
  13818. <glossdef>
  13819. <para role="glossdeffirst">
  13820. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13821. The GNU canonical architecture for a specific architecture
  13822. (i.e. <filename>arm</filename>,
  13823. <filename>armeb</filename>,
  13824. <filename>mips</filename>,
  13825. <filename>mips64</filename>, and so forth).
  13826. BitBake uses this value to setup configuration.
  13827. </para>
  13828. <para>
  13829. <filename>TUNE_ARCH</filename> definitions are specific to
  13830. a given architecture.
  13831. The definitions can be a single static definition, or
  13832. can be dynamically adjusted.
  13833. You can see details for a given CPU family by looking at
  13834. the architecture's <filename>README</filename> file.
  13835. For example, the
  13836. <filename>meta/conf/machine/include/mips/README</filename>
  13837. file in the
  13838. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>
  13839. provides information for <filename>TUNE_ARCH</filename>
  13840. specific to the <filename>mips</filename> architecture.
  13841. </para>
  13842. <para>
  13843. <filename>TUNE_ARCH</filename> is tied closely to
  13844. <link linkend='var-TARGET_ARCH'><filename>TARGET_ARCH</filename></link>,
  13845. which defines the target machine's architecture.
  13846. The BitBake configuration file
  13847. (<filename>meta/conf/bitbake.conf</filename>) sets
  13848. <filename>TARGET_ARCH</filename> as follows:
  13849. <literallayout class='monospaced'>
  13850. TARGET_ARCH = "${TUNE_ARCH}"
  13851. </literallayout>
  13852. </para>
  13853. <para>
  13854. The following list, which is by no means complete since
  13855. architectures are configurable, shows supported machine
  13856. architectures:
  13857. <literallayout class='monospaced'>
  13858. arm
  13859. i586
  13860. x86_64
  13861. powerpc
  13862. powerpc64
  13863. mips
  13864. mipsel
  13865. </literallayout>
  13866. </para>
  13867. </glossdef>
  13868. </glossentry>
  13869. <glossentry id='var-TUNE_ASARGS'><glossterm>TUNE_ASARGS</glossterm>
  13870. <info>
  13871. TUNE_ASARGS[doc] = "Specifies architecture-specific assembler flags for the target system."
  13872. </info>
  13873. <glossdef>
  13874. <para role="glossdeffirst">
  13875. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13876. Specifies architecture-specific assembler flags for
  13877. the target system.
  13878. The set of flags is based on the selected tune features.
  13879. <filename>TUNE_ASARGS</filename> is set using
  13880. the tune include files, which are typically under
  13881. <filename>meta/conf/machine/include/</filename> and are
  13882. influenced through
  13883. <link linkend='var-TUNE_FEATURES'><filename>TUNE_FEATURES</filename></link>.
  13884. For example, the
  13885. <filename>meta/conf/machine/include/x86/arch-x86.inc</filename>
  13886. file defines the flags for the x86 architecture as follows:
  13887. <literallayout class='monospaced'>
  13888. TUNE_ASARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-x32", "", d)}"
  13889. </literallayout>
  13890. <note>
  13891. Board Support Packages (BSPs) select the tune.
  13892. The selected tune, in turn, affects the tune variables
  13893. themselves (i.e. the tune can supply its own
  13894. set of flags).
  13895. </note>
  13896. </para>
  13897. </glossdef>
  13898. </glossentry>
  13899. <glossentry id='var-TUNE_CCARGS'><glossterm>TUNE_CCARGS</glossterm>
  13900. <info>
  13901. TUNE_CCARGS[doc] = "Specifies architecture-specific C compiler flags for the target system."
  13902. </info>
  13903. <glossdef>
  13904. <para role="glossdeffirst">
  13905. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13906. Specifies architecture-specific C compiler flags for
  13907. the target system.
  13908. The set of flags is based on the selected tune features.
  13909. <filename>TUNE_CCARGS</filename> is set using
  13910. the tune include files, which are typically under
  13911. <filename>meta/conf/machine/include/</filename> and are
  13912. influenced through
  13913. <link linkend='var-TUNE_FEATURES'><filename>TUNE_FEATURES</filename></link>.
  13914. <note>
  13915. Board Support Packages (BSPs) select the tune.
  13916. The selected tune, in turn, affects the tune variables
  13917. themselves (i.e. the tune can supply its own
  13918. set of flags).
  13919. </note>
  13920. </para>
  13921. </glossdef>
  13922. </glossentry>
  13923. <glossentry id='var-TUNE_LDARGS'><glossterm>TUNE_LDARGS</glossterm>
  13924. <info>
  13925. TUNE_LDARGS[doc] = "Specifies architecture-specific linker flags for the target system."
  13926. </info>
  13927. <glossdef>
  13928. <para role="glossdeffirst">
  13929. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13930. Specifies architecture-specific linker flags for
  13931. the target system.
  13932. The set of flags is based on the selected tune features.
  13933. <filename>TUNE_LDARGS</filename> is set using
  13934. the tune include files, which are typically under
  13935. <filename>meta/conf/machine/include/</filename> and are
  13936. influenced through
  13937. <link linkend='var-TUNE_FEATURES'><filename>TUNE_FEATURES</filename></link>.
  13938. For example, the
  13939. <filename>meta/conf/machine/include/x86/arch-x86.inc</filename>
  13940. file defines the flags for the x86 architecture as follows:
  13941. <literallayout class='monospaced'>
  13942. TUNE_LDARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-m elf32_x86_64", "", d)}"
  13943. </literallayout>
  13944. <note>
  13945. Board Support Packages (BSPs) select the tune.
  13946. The selected tune, in turn, affects the tune variables
  13947. themselves (i.e. the tune can supply its own
  13948. set of flags).
  13949. </note>
  13950. </para>
  13951. </glossdef>
  13952. </glossentry>
  13953. <glossentry id='var-TUNE_FEATURES'><glossterm>TUNE_FEATURES</glossterm>
  13954. <info>
  13955. TUNE_FEATURES[doc] = "Features used to "tune" a compiler for optimal use given a specific processor."
  13956. </info>
  13957. <glossdef>
  13958. <para role="glossdeffirst">
  13959. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13960. Features used to "tune" a compiler for optimal use
  13961. given a specific processor.
  13962. The features are defined within the tune files and allow
  13963. arguments (i.e. <filename>TUNE_*ARGS</filename>) to be
  13964. dynamically generated based on the features.
  13965. </para>
  13966. <para>
  13967. The OpenEmbedded build system verifies the features
  13968. to be sure they are not conflicting and that they are
  13969. supported.
  13970. </para>
  13971. <para>
  13972. The BitBake configuration file
  13973. (<filename>meta/conf/bitbake.conf</filename>) defines
  13974. <filename>TUNE_FEATURES</filename> as follows:
  13975. <literallayout class='monospaced'>
  13976. TUNE_FEATURES ??= "${TUNE_FEATURES_tune-${DEFAULTTUNE}}"
  13977. </literallayout>
  13978. See the
  13979. <link linkend='var-DEFAULTTUNE'><filename>DEFAULTTUNE</filename></link>
  13980. variable for more information.
  13981. </para>
  13982. </glossdef>
  13983. </glossentry>
  13984. <glossentry id='var-TUNE_PKGARCH'><glossterm>TUNE_PKGARCH</glossterm>
  13985. <info>
  13986. TUNE_PKGARCH[doc] = "The package architecture understood by the packaging system to define the architecture, ABI, and tuning of output packages."
  13987. </info>
  13988. <glossdef>
  13989. <para role="glossdeffirst">
  13990. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13991. The package architecture understood by the packaging
  13992. system to define the architecture, ABI, and tuning of
  13993. output packages.
  13994. The specific tune is defined using the "_tune" override
  13995. as follows:
  13996. <literallayout class='monospaced'>
  13997. TUNE_PKGARCH_tune-<replaceable>tune</replaceable> = "<replaceable>tune</replaceable>"
  13998. </literallayout>
  13999. </para>
  14000. <para>
  14001. These tune-specific package architectures are defined in
  14002. the machine include files.
  14003. Here is an example of the "core2-32" tuning as used
  14004. in the
  14005. <filename>meta/conf/machine/include/tune-core2.inc</filename>
  14006. file:
  14007. <literallayout class='monospaced'>
  14008. TUNE_PKGARCH_tune-core2-32 = "core2-32"
  14009. </literallayout>
  14010. </para>
  14011. </glossdef>
  14012. </glossentry>
  14013. <glossentry id='var-TUNEABI'><glossterm>TUNEABI</glossterm>
  14014. <info>
  14015. TUNEABI[doc] = "An underlying ABI used by a particular tuning in a given toolchain layer. This feature allows providers using prebuilt libraries to check compatibility of a tuning against their selection of libraries."
  14016. </info>
  14017. <glossdef>
  14018. <para role="glossdeffirst">
  14019. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14020. An underlying Application Binary Interface (ABI) used by
  14021. a particular tuning in a given toolchain layer.
  14022. Providers that use prebuilt libraries can use the
  14023. <filename>TUNEABI</filename>,
  14024. <link linkend='var-TUNEABI_OVERRIDE'><filename>TUNEABI_OVERRIDE</filename></link>,
  14025. and
  14026. <link linkend='var-TUNEABI_WHITELIST'><filename>TUNEABI_WHITELIST</filename></link>
  14027. variables to check compatibility of tunings against their
  14028. selection of libraries.
  14029. </para>
  14030. <para>
  14031. If <filename>TUNEABI</filename> is undefined, then every
  14032. tuning is allowed.
  14033. See the
  14034. <link linkend='ref-classes-sanity'><filename>sanity</filename></link>
  14035. class to see how the variable is used.
  14036. </para>
  14037. </glossdef>
  14038. </glossentry>
  14039. <glossentry id='var-TUNEABI_OVERRIDE'><glossterm>TUNEABI_OVERRIDE</glossterm>
  14040. <info>
  14041. TUNEABI_OVERRIDE[doc] = "If set, ignores TUNEABI_WHITELIST."
  14042. </info>
  14043. <glossdef>
  14044. <para role="glossdeffirst">
  14045. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14046. If set, the OpenEmbedded system ignores the
  14047. <link linkend='var-TUNEABI_WHITELIST'><filename>TUNEABI_WHITELIST</filename></link>
  14048. variable.
  14049. Providers that use prebuilt libraries can use the
  14050. <filename>TUNEABI_OVERRIDE</filename>,
  14051. <filename>TUNEABI_WHITELIST</filename>,
  14052. and
  14053. <link linkend='var-TUNEABI'><filename>TUNEABI</filename></link>
  14054. variables to check compatibility of a tuning against their
  14055. selection of libraries.
  14056. </para>
  14057. <para>
  14058. See the
  14059. <link linkend='ref-classes-sanity'><filename>sanity</filename></link>
  14060. class to see how the variable is used.
  14061. </para>
  14062. </glossdef>
  14063. </glossentry>
  14064. <glossentry id='var-TUNEABI_WHITELIST'><glossterm>TUNEABI_WHITELIST</glossterm>
  14065. <info>
  14066. TUNEABI_WHITELIST[doc] = "A whitelist of permissible TUNEABI values. If the variable is not set, all values are allowed."
  14067. </info>
  14068. <glossdef>
  14069. <para role="glossdeffirst">
  14070. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14071. A whitelist of permissible
  14072. <link linkend='var-TUNEABI'><filename>TUNEABI</filename></link>
  14073. values.
  14074. If <filename>TUNEABI_WHITELIST</filename> is not set,
  14075. all tunes are allowed.
  14076. Providers that use prebuilt libraries can use the
  14077. <filename>TUNEABI_WHITELIST</filename>,
  14078. <link linkend='var-TUNEABI_OVERRIDE'><filename>TUNEABI_OVERRIDE</filename></link>,
  14079. and <filename>TUNEABI</filename> variables to check
  14080. compatibility of a tuning against their selection of
  14081. libraries.
  14082. </para>
  14083. <para>
  14084. See the
  14085. <link linkend='ref-classes-sanity'><filename>sanity</filename></link>
  14086. class to see how the variable is used.
  14087. </para>
  14088. </glossdef>
  14089. </glossentry>
  14090. <glossentry id='var-TUNECONFLICTS'><glossterm>TUNECONFLICTS[<replaceable>feature</replaceable>]</glossterm>
  14091. <info>
  14092. TUNECONFLICTS[doc] = "Specifies CPU or Application Binary Interface (ABI) tuning features that conflict with specified feature."
  14093. </info>
  14094. <glossdef>
  14095. <para role="glossdeffirst">
  14096. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14097. Specifies CPU or Application Binary Interface (ABI)
  14098. tuning features that conflict with <replaceable>feature</replaceable>.
  14099. </para>
  14100. <para>
  14101. Known tuning conflicts are specified in the machine include
  14102. files in the
  14103. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>.
  14104. Here is an example from the
  14105. <filename>meta/conf/machine/include/mips/arch-mips.inc</filename>
  14106. include file that lists the "o32" and "n64" features as
  14107. conflicting with the "n32" feature:
  14108. <literallayout class='monospaced'>
  14109. TUNECONFLICTS[n32] = "o32 n64"
  14110. </literallayout>
  14111. </para>
  14112. </glossdef>
  14113. </glossentry>
  14114. <glossentry id='var-TUNEVALID'><glossterm>TUNEVALID[<replaceable>feature</replaceable>]</glossterm>
  14115. <info>
  14116. TUNEVALID[doc] = "Descriptions, stored as flags, of valid tuning features."
  14117. </info>
  14118. <glossdef>
  14119. <para role="glossdeffirst">
  14120. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14121. Specifies a valid CPU or Application Binary Interface (ABI)
  14122. tuning feature.
  14123. The specified feature is stored as a flag.
  14124. Valid features are specified in the machine include files
  14125. (e.g. <filename>meta/conf/machine/include/arm/arch-arm.inc</filename>).
  14126. Here is an example from that file:
  14127. <literallayout class='monospaced'>
  14128. TUNEVALID[bigendian] = "Enable big-endian mode."
  14129. </literallayout>
  14130. </para>
  14131. <para>
  14132. See the machine include files in the
  14133. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>
  14134. for these features.
  14135. </para>
  14136. </glossdef>
  14137. </glossentry>
  14138. </glossdiv>
  14139. <glossdiv id='var-glossary-u'><title>U</title>
  14140. <glossentry id='var-UBOOT_CONFIG'><glossterm>UBOOT_CONFIG</glossterm>
  14141. <info>
  14142. UBOOT_CONFIG[doc] = "Configures the UBOOT_MACHINE and can also define IMAGE_FSTYPES for individual cases."
  14143. </info>
  14144. <glossdef>
  14145. <para role="glossdeffirst">
  14146. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14147. Configures the
  14148. <link linkend='var-UBOOT_MACHINE'><filename>UBOOT_MACHINE</filename></link>
  14149. and can also define
  14150. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  14151. for individual cases.
  14152. </para>
  14153. <para>
  14154. Following is an example from the
  14155. <filename>meta-fsl-arm</filename> layer.
  14156. <literallayout class='monospaced'>
  14157. UBOOT_CONFIG ??= "sd"
  14158. UBOOT_CONFIG[sd] = "mx6qsabreauto_config,sdcard"
  14159. UBOOT_CONFIG[eimnor] = "mx6qsabreauto_eimnor_config"
  14160. UBOOT_CONFIG[nand] = "mx6qsabreauto_nand_config,ubifs"
  14161. UBOOT_CONFIG[spinor] = "mx6qsabreauto_spinor_config"
  14162. </literallayout>
  14163. In this example, "sd" is selected as the configuration
  14164. of the possible four for the
  14165. <filename>UBOOT_MACHINE</filename>.
  14166. The "sd" configuration defines "mx6qsabreauto_config"
  14167. as the value for <filename>UBOOT_MACHINE</filename>, while
  14168. the "sdcard" specifies the
  14169. <filename>IMAGE_FSTYPES</filename> to use for the U-boot
  14170. image.
  14171. </para>
  14172. <para>
  14173. For more information on how the
  14174. <filename>UBOOT_CONFIG</filename> is handled, see the
  14175. <ulink url='http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/uboot-config.bbclass'><filename>uboot-config</filename></ulink>
  14176. class.
  14177. </para>
  14178. </glossdef>
  14179. </glossentry>
  14180. <glossentry id='var-UBOOT_ENTRYPOINT'><glossterm>UBOOT_ENTRYPOINT</glossterm>
  14181. <info>
  14182. UBOOT_ENTRYPOINT[doc] = "Specifies the entry point for the U-Boot image."
  14183. </info>
  14184. <glossdef>
  14185. <para role="glossdeffirst">
  14186. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14187. Specifies the entry point for the U-Boot image.
  14188. During U-Boot image creation, the
  14189. <filename>UBOOT_ENTRYPOINT</filename> variable is passed
  14190. as a command-line parameter to the
  14191. <filename>uboot-mkimage</filename> utility.
  14192. </para>
  14193. </glossdef>
  14194. </glossentry>
  14195. <glossentry id='var-UBOOT_LOADADDRESS'><glossterm>UBOOT_LOADADDRESS</glossterm>
  14196. <info>
  14197. UBOOT_LOADADDRESS[doc] = "Specifies the load address for the U-Boot image."
  14198. </info>
  14199. <glossdef>
  14200. <para role="glossdeffirst">
  14201. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14202. Specifies the load address for the U-Boot image.
  14203. During U-Boot image creation, the
  14204. <filename>UBOOT_LOADADDRESS</filename> variable is passed
  14205. as a command-line parameter to the
  14206. <filename>uboot-mkimage</filename> utility.
  14207. </para>
  14208. </glossdef>
  14209. </glossentry>
  14210. <glossentry id='var-UBOOT_LOCALVERSION'><glossterm>UBOOT_LOCALVERSION</glossterm>
  14211. <info>
  14212. UBOOT_LOCALVERSION[doc] = "Appends a string to the name of the local version of the U-Boot image."
  14213. </info>
  14214. <glossdef>
  14215. <para role="glossdeffirst">
  14216. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14217. Appends a string to the name of the local version of the
  14218. U-Boot image.
  14219. For example, assuming the version of the U-Boot image
  14220. built was "2013.10, the full version string reported by
  14221. U-Boot would be "2013.10-yocto" given the following
  14222. statement:
  14223. <literallayout class='monospaced'>
  14224. UBOOT_LOCALVERSION = "-yocto"
  14225. </literallayout>
  14226. </para>
  14227. </glossdef>
  14228. </glossentry>
  14229. <glossentry id='var-UBOOT_MACHINE'><glossterm>UBOOT_MACHINE</glossterm>
  14230. <info>
  14231. UBOOT_MACHINE[doc] = "Specifies the value passed on the make command line when building a U-Boot image."
  14232. </info>
  14233. <glossdef>
  14234. <para role="glossdeffirst">
  14235. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14236. Specifies the value passed on the
  14237. <filename>make</filename> command line when building
  14238. a U-Boot image.
  14239. The value indicates the target platform configuration.
  14240. You typically set this variable from the machine
  14241. configuration file (i.e.
  14242. <filename>conf/machine/<replaceable>machine_name</replaceable>.conf</filename>).
  14243. </para>
  14244. <para>
  14245. Please see the "Selection of Processor Architecture and
  14246. Board Type" section in the U-Boot README for valid values
  14247. for this variable.
  14248. </para>
  14249. </glossdef>
  14250. </glossentry>
  14251. <glossentry id='var-UBOOT_MAKE_TARGET'><glossterm>UBOOT_MAKE_TARGET</glossterm>
  14252. <info>
  14253. UBOOT_MAKE_TARGET[doc] = "Specifies the target called in the Makefile."
  14254. </info>
  14255. <glossdef>
  14256. <para role="glossdeffirst">
  14257. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14258. Specifies the target called in the
  14259. <filename>Makefile</filename>.
  14260. The default target is "all".
  14261. </para>
  14262. </glossdef>
  14263. </glossentry>
  14264. <glossentry id='var-UBOOT_SUFFIX'><glossterm>UBOOT_SUFFIX</glossterm>
  14265. <info>
  14266. UBOOT_SUFFIX[doc] = "Points to the generated U-Boot extension."
  14267. </info>
  14268. <glossdef>
  14269. <para role="glossdeffirst">
  14270. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14271. Points to the generated U-Boot extension.
  14272. For example, <filename>u-boot.sb</filename> has a
  14273. <filename>.sb</filename> extension.
  14274. </para>
  14275. <para>
  14276. The default U-Boot extension is
  14277. <filename>.bin</filename>
  14278. </para>
  14279. </glossdef>
  14280. </glossentry>
  14281. <glossentry id='var-UBOOT_TARGET'><glossterm>UBOOT_TARGET</glossterm>
  14282. <info>
  14283. UBOOT_TARGET[doc] = "Specifies the target used for building U-Boot."
  14284. </info>
  14285. <glossdef>
  14286. <para role="glossdeffirst">
  14287. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14288. Specifies the target used for building U-Boot.
  14289. The target is passed directly as part of the "make" command
  14290. (e.g. SPL and AIS).
  14291. If you do not specifically set this variable, the
  14292. OpenEmbedded build process passes and uses "all" for the
  14293. target during the U-Boot building process.
  14294. </para>
  14295. </glossdef>
  14296. </glossentry>
  14297. <glossentry id='var-UNKNOWN_CONFIGURE_WHITELIST'><glossterm>UNKNOWN_CONFIGURE_WHITELIST</glossterm>
  14298. <info>
  14299. UNKNOWN_CONFIGURE_WHITELIST[doc] = "Specifies a list of options that, if reported by the configure script as being invalid, should not generate a warning during the do_configure task."
  14300. </info>
  14301. <glossdef>
  14302. <para role="glossdeffirst">
  14303. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14304. Specifies a list of options that, if reported by the
  14305. configure script as being invalid, should not generate a
  14306. warning during the
  14307. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>
  14308. task.
  14309. Normally, invalid configure options are simply not passed
  14310. to the configure script (e.g. should be removed from
  14311. <link linkend='var-EXTRA_OECONF'><filename>EXTRA_OECONF</filename></link>
  14312. or
  14313. <link linkend='var-PACKAGECONFIG_CONFARGS'><filename>PACKAGECONFIG_CONFARGS</filename></link>).
  14314. However, common options, for example, exist that are passed
  14315. to all configure scripts at a class level that might not
  14316. be valid for some configure scripts.
  14317. It follows that no benefit exists in seeing a warning about
  14318. these options.
  14319. For these cases, the options are added to
  14320. <filename>UNKNOWN_CONFIGURE_WHITELIST</filename>.
  14321. </para>
  14322. <para>
  14323. The configure arguments check that uses
  14324. <filename>UNKNOWN_CONFIGURE_WHITELIST</filename> is part
  14325. of the
  14326. <link linkend='ref-classes-insane'><filename>insane</filename></link>
  14327. class and is only enabled if the recipe inherits the
  14328. <link linkend='ref-classes-autotools'><filename>autotools</filename></link>
  14329. class.
  14330. </para>
  14331. </glossdef>
  14332. </glossentry>
  14333. <glossentry id='var-UPDATERCPN'><glossterm>UPDATERCPN</glossterm>
  14334. <info>
  14335. UPDATERCPN[doc] = "Specifies the package that contains the initscript that is to be enabled."
  14336. </info>
  14337. <glossdef>
  14338. <para role="glossdeffirst">
  14339. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14340. For recipes inheriting the
  14341. <link linkend='ref-classes-update-rc.d'><filename>update-rc.d</filename></link>
  14342. class, <filename>UPDATERCPN</filename> specifies
  14343. the package that contains the initscript that is to be
  14344. enabled.
  14345. </para>
  14346. <para>
  14347. The default value is "${PN}".
  14348. Given that almost all recipes that install initscripts
  14349. package them in the main package for the recipe, you
  14350. rarely need to set this variable in individual recipes.
  14351. </para>
  14352. </glossdef>
  14353. </glossentry>
  14354. <glossentry id='var-UPSTREAM_CHECK_GITTAGREGEX'><glossterm>UPSTREAM_CHECK_GITTAGREGEX</glossterm>
  14355. <info>
  14356. UPSTREAM_CHECK_GITTAGREGEX[doc] = "Filters relevant Git tags when fetching source from an upstream Git repository."
  14357. </info>
  14358. <glossdef>
  14359. <para role="glossdeffirst">
  14360. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14361. When the
  14362. <link linkend='ref-classes-distrodata'><filename>distrodata</filename></link>
  14363. class is enabled globally, you can perform a per-recipe
  14364. check for what the latest upstream source code version is
  14365. by calling
  14366. <filename>bitbake -c checkpkg</filename> <replaceable>recipe</replaceable>.
  14367. If the recipe source code is provided from Git
  14368. repositories, the OpenEmbedded build system determines the
  14369. latest upstream version by picking the latest tag from the
  14370. list of all repository tags.
  14371. You can use the
  14372. <filename>UPSTREAM_CHECK_GITTAGREGEX</filename>
  14373. variable to provide a regular expression to filter only the
  14374. relevant tags should the default filter not work
  14375. correctly.
  14376. <literallayout class='monospaced'>
  14377. UPSTREAM_CHECK_GITTAGREGEX = "git_tag_regex"
  14378. </literallayout>
  14379. </para>
  14380. </glossdef>
  14381. </glossentry>
  14382. <glossentry id='var-UPSTREAM_CHECK_REGEX'><glossterm>UPSTREAM_CHECK_REGEX</glossterm>
  14383. <info>
  14384. UPSTREAM_CHECK_REGEX[doc] = "The regular expression the package checking system uses to parse the page pointed to by UPSTREAM_CHECK_URI."
  14385. </info>
  14386. <glossdef>
  14387. <para role="glossdeffirst">
  14388. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14389. When the
  14390. <link linkend='ref-classes-distrodata'><filename>distrodata</filename></link>
  14391. class is enabled globally, use the
  14392. <filename>UPSTREAM_CHECK_REGEX</filename> variable to
  14393. specify a different regular expression instead of the
  14394. default one when the package checking system is parsing
  14395. the page found using
  14396. <link linkend='var-UPSTREAM_CHECK_URI'><filename>UPSTREAM_CHECK_URI</filename></link>.
  14397. <literallayout class='monospaced'>
  14398. UPSTREAM_CHECK_REGEX = "package_regex"
  14399. </literallayout>
  14400. </para>
  14401. </glossdef>
  14402. </glossentry>
  14403. <glossentry id='var-UPSTREAM_CHECK_URI'><glossterm>UPSTREAM_CHECK_URI</glossterm>
  14404. <info>
  14405. UPSTREAM_CHECK_URI[doc] = "The URL used by the package checking system to get the latest version of the package when source files are fetched from an upstream Git repository."
  14406. </info>
  14407. <glossdef>
  14408. <para role="glossdeffirst">
  14409. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14410. When the
  14411. <link linkend='ref-classes-distrodata'><filename>distrodata</filename></link>
  14412. class is enabled globally, you can perform a per-recipe
  14413. check for what the latest upstream source code version is
  14414. by calling <filename>bitbake -c checkpkg</filename>
  14415. <replaceable>recipe</replaceable>.
  14416. If the source code is provided from tarballs, the latest
  14417. version is determined by fetching the directory listing
  14418. where the tarball is and attempting to find a later tarball.
  14419. When this approach does not work, you can use
  14420. <filename>UPSTREAM_CHECK_URI</filename> to
  14421. provide a different URI that contains the link to the
  14422. latest tarball.
  14423. <literallayout class='monospaced'>
  14424. UPSTREAM_CHECK_URI = "recipe_url"
  14425. </literallayout>
  14426. </para>
  14427. </glossdef>
  14428. </glossentry>
  14429. <glossentry id='var-USE_DEVFS'><glossterm>USE_DEVFS</glossterm>
  14430. <info>
  14431. USE_DEVFS[doc] = "Determines if devtmpfs is used for /dev population."
  14432. </info>
  14433. <glossdef>
  14434. <para role="glossdeffirst">
  14435. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14436. Determines if <filename>devtmpfs</filename> is used for
  14437. <filename>/dev</filename> population.
  14438. The default value used for <filename>USE_DEVFS</filename>
  14439. is "1" when no value is specifically set.
  14440. Typically, you would set <filename>USE_DEVFS</filename>
  14441. to "0" for a statically populated <filename>/dev</filename>
  14442. directory.
  14443. </para>
  14444. <para>
  14445. See the
  14446. "<ulink url='&YOCTO_DOCS_DEV_URL;#selecting-dev-manager'>Selecting a Device Manager</ulink>"
  14447. section in the Yocto Project Development Manual for
  14448. information on how to use this variable.
  14449. </para>
  14450. </glossdef>
  14451. </glossentry>
  14452. <glossentry id='var-USE_VT'><glossterm>USE_VT</glossterm>
  14453. <info>
  14454. USE_VT[doc] = "When using SysVinit, determines whether or not to run a getty on any virtual terminals in order to enable logging in through those terminals."
  14455. </info>
  14456. <glossdef>
  14457. <para role="glossdeffirst">
  14458. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14459. When using
  14460. <ulink url='&YOCTO_DOCS_DEV_URL;#new-recipe-enabling-system-services'>SysVinit</ulink>,
  14461. determines whether or not to run a
  14462. <ulink url='http://en.wikipedia.org/wiki/Getty_%28Unix%29'>getty</ulink>
  14463. on any virtual terminals in order to enable logging in
  14464. through those terminals.
  14465. </para>
  14466. <para>
  14467. The default value used for <filename>USE_VT</filename>
  14468. is "1" when no default value is specifically set.
  14469. Typically, you would set <filename>USE_VT</filename>
  14470. to "0" in the machine configuration file for machines
  14471. that do not have a graphical display attached and
  14472. therefore do not need virtual terminal functionality.
  14473. </para>
  14474. </glossdef>
  14475. </glossentry>
  14476. <glossentry id='var-USER_CLASSES'><glossterm>USER_CLASSES</glossterm>
  14477. <info>
  14478. USER_CLASSES[doc] = "List of additional classes to use when building images that enable extra features."
  14479. </info>
  14480. <glossdef>
  14481. <para role="glossdeffirst">
  14482. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14483. A list of classes to globally inherit.
  14484. These classes are used by the OpenEmbedded build system
  14485. to enable extra features (e.g.
  14486. <filename>buildstats</filename>,
  14487. <filename>image-mklibs</filename>, and so forth).
  14488. </para>
  14489. <para>
  14490. The default list is set in your
  14491. <filename>local.conf</filename> file:
  14492. <literallayout class='monospaced'>
  14493. USER_CLASSES ?= "buildstats image-mklibs image-prelink"
  14494. </literallayout>
  14495. For more information, see
  14496. <filename>meta-poky/conf/local.conf.sample</filename> in
  14497. the
  14498. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>.
  14499. </para>
  14500. </glossdef>
  14501. </glossentry>
  14502. <glossentry id='var-USERADD_ERROR_DYNAMIC'><glossterm>USERADD_ERROR_DYNAMIC</glossterm>
  14503. <info>
  14504. USERADD_ERROR_DYNAMIC[doc] = "If set to 'error', forces the OpenEmbedded build system to produce an error if the user identification (uid) and group identification (gid) values are not defined in files/passwd and files/group files. If set to 'warn', a warning will be issued instead."
  14505. </info>
  14506. <glossdef>
  14507. <para role="glossdeffirst">
  14508. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14509. If set to "error", forces the OpenEmbedded build system to
  14510. produce an error if the user identification
  14511. (<filename>uid</filename>) and group identification
  14512. (<filename>gid</filename>) values are not defined
  14513. in <filename>files/passwd</filename>
  14514. and <filename>files/group</filename> files.
  14515. If set to "warn", a warning will be issued instead.
  14516. </para>
  14517. <para>
  14518. The default behavior for the build system is to dynamically
  14519. apply <filename>uid</filename> and
  14520. <filename>gid</filename> values.
  14521. Consequently, the <filename>USERADD_ERROR_DYNAMIC</filename>
  14522. variable is by default not set.
  14523. If you plan on using statically assigned
  14524. <filename>gid</filename> and <filename>uid</filename>
  14525. values, you should set
  14526. the <filename>USERADD_ERROR_DYNAMIC</filename> variable in
  14527. your <filename>local.conf</filename> file as
  14528. follows:
  14529. <literallayout class='monospaced'>
  14530. USERADD_ERROR_DYNAMIC = "error"
  14531. </literallayout>
  14532. Overriding the default behavior implies you are going to
  14533. also take steps to set static <filename>uid</filename> and
  14534. <filename>gid</filename> values through use of the
  14535. <link linkend='var-USERADDEXTENSION'><filename>USERADDEXTENSION</filename></link>,
  14536. <link linkend='var-USERADD_UID_TABLES'><filename>USERADD_UID_TABLES</filename></link>,
  14537. and
  14538. <link linkend='var-USERADD_GID_TABLES'><filename>USERADD_GID_TABLES</filename></link>
  14539. variables.
  14540. </para>
  14541. </glossdef>
  14542. </glossentry>
  14543. <glossentry id='var-USERADD_GID_TABLES'><glossterm>USERADD_GID_TABLES</glossterm>
  14544. <info>
  14545. USERADD_GID_TABLES[doc] = "Specifies a password file to use for obtaining static group identification (gid) values when the OpenEmbedded build system adds a group to the system during package installation."
  14546. </info>
  14547. <glossdef>
  14548. <para role="glossdeffirst">
  14549. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14550. Specifies a password file to use for obtaining static
  14551. group identification (<filename>gid</filename>) values
  14552. when the OpenEmbedded build system adds a group to the
  14553. system during package installation.
  14554. </para>
  14555. <para>
  14556. When applying static group identification
  14557. (<filename>gid</filename>) values, the OpenEmbedded build
  14558. system looks in
  14559. <link linkend='var-BBPATH'><filename>BBPATH</filename></link>
  14560. for a <filename>files/group</filename> file and then applies
  14561. those <filename>uid</filename> values.
  14562. Set the variable as follows in your
  14563. <filename>local.conf</filename> file:
  14564. <literallayout class='monospaced'>
  14565. USERADD_GID_TABLES = "files/group"
  14566. </literallayout>
  14567. </para>
  14568. <note>
  14569. Setting the
  14570. <link linkend='var-USERADDEXTENSION'><filename>USERADDEXTENSION</filename></link>
  14571. variable to "useradd-staticids" causes the build system
  14572. to use static <filename>gid</filename> values.
  14573. </note>
  14574. </glossdef>
  14575. </glossentry>
  14576. <glossentry id='var-USERADD_PACKAGES'><glossterm>USERADD_PACKAGES</glossterm>
  14577. <info>
  14578. USERADD_PACKAGES[doc] = "When a recipe inherits the useradd class, this variable specifies the individual packages within the recipe that require users and/or groups to be added."
  14579. </info>
  14580. <glossdef>
  14581. <para role="glossdeffirst">
  14582. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14583. When inheriting the
  14584. <link linkend='ref-classes-useradd'><filename>useradd</filename></link>
  14585. class, this variable
  14586. specifies the individual packages within the recipe that
  14587. require users and/or groups to be added.
  14588. </para>
  14589. <para>
  14590. You must set this variable if the recipe inherits the
  14591. class.
  14592. For example, the following enables adding a user for the
  14593. main package in a recipe:
  14594. <literallayout class='monospaced'>
  14595. USERADD_PACKAGES = "${PN}"
  14596. </literallayout>
  14597. <note>
  14598. If follows that if you are going to use the
  14599. <filename>USERADD_PACKAGES</filename> variable,
  14600. you need to set one or more of the
  14601. <link linkend='var-USERADD_PARAM'><filename>USERADD_PARAM</filename></link>,
  14602. <link linkend='var-GROUPADD_PARAM'><filename>GROUPADD_PARAM</filename></link>,
  14603. or
  14604. <link linkend='var-GROUPMEMS_PARAM'><filename>GROUPMEMS_PARAM</filename></link>
  14605. variables.
  14606. </note>
  14607. </para>
  14608. </glossdef>
  14609. </glossentry>
  14610. <glossentry id='var-USERADD_PARAM'><glossterm>USERADD_PARAM</glossterm>
  14611. <info>
  14612. USERADD_PARAM[doc] = "When a recipe inherits the useradd class, this variable specifies for a package what parameters should be passed to the useradd command if you wish to add a user to the system when the package is installed."
  14613. </info>
  14614. <glossdef>
  14615. <para role="glossdeffirst">
  14616. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14617. When inheriting the
  14618. <link linkend='ref-classes-useradd'><filename>useradd</filename></link>
  14619. class, this variable
  14620. specifies for a package what parameters should be passed
  14621. to the <filename>useradd</filename> command
  14622. if you wish to add a user to the system when the package
  14623. is installed.
  14624. </para>
  14625. <para>
  14626. Here is an example from the <filename>dbus</filename>
  14627. recipe:
  14628. <literallayout class='monospaced'>
  14629. USERADD_PARAM_${PN} = "--system --home ${localstatedir}/lib/dbus \
  14630. --no-create-home --shell /bin/false \
  14631. --user-group messagebus"
  14632. </literallayout>
  14633. For information on the standard Linux shell command
  14634. <filename>useradd</filename>, see
  14635. <ulink url='http://linux.die.net/man/8/useradd'></ulink>.
  14636. </para>
  14637. </glossdef>
  14638. </glossentry>
  14639. <glossentry id='var-USERADD_UID_TABLES'><glossterm>USERADD_UID_TABLES</glossterm>
  14640. <info>
  14641. USERADD_UID_TABLES[doc] = "Specifies a password file to use for obtaining static user identification (uid) values when the OpenEmbedded build system adds a user to the system during package installation."
  14642. </info>
  14643. <glossdef>
  14644. <para role="glossdeffirst">
  14645. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14646. Specifies a password file to use for obtaining static
  14647. user identification (<filename>uid</filename>) values
  14648. when the OpenEmbedded build system adds a user to the
  14649. system during package installation.
  14650. </para>
  14651. <para>
  14652. When applying static user identification
  14653. (<filename>uid</filename>) values, the OpenEmbedded build
  14654. system looks in
  14655. <link linkend='var-BBPATH'><filename>BBPATH</filename></link>
  14656. for a <filename>files/passwd</filename> file and then applies
  14657. those <filename>uid</filename> values.
  14658. Set the variable as follows in your
  14659. <filename>local.conf</filename> file:
  14660. <literallayout class='monospaced'>
  14661. USERADD_UID_TABLES = "files/passwd"
  14662. </literallayout>
  14663. </para>
  14664. <note>
  14665. Setting the
  14666. <link linkend='var-USERADDEXTENSION'><filename>USERADDEXTENSION</filename></link>
  14667. variable to "useradd-staticids" causes the build system
  14668. to use static <filename>uid</filename> values.
  14669. </note>
  14670. </glossdef>
  14671. </glossentry>
  14672. <glossentry id='var-USERADDEXTENSION'><glossterm>USERADDEXTENSION</glossterm>
  14673. <info>
  14674. USERADDEXTENSION[doc] = "When set to 'useradd-staticids', causes the OpenEmbedded build system to base all user and group additions on a static passwd and group files found in BBPATH."
  14675. </info>
  14676. <glossdef>
  14677. <para role="glossdeffirst">
  14678. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14679. When set to "useradd-staticids", causes the
  14680. OpenEmbedded build system to base all user and group
  14681. additions on a static
  14682. <filename>passwd</filename> and
  14683. <filename>group</filename> files found in
  14684. <link linkend='var-BBPATH'><filename>BBPATH</filename></link>.
  14685. </para>
  14686. <para>
  14687. To use static user identification (<filename>uid</filename>)
  14688. and group identification (<filename>gid</filename>)
  14689. values, set the variable
  14690. as follows in your <filename>local.conf</filename> file:
  14691. <literallayout class='monospaced'>
  14692. USERADDEXTENSION = "useradd-staticids"
  14693. </literallayout>
  14694. <note>
  14695. Setting this variable to use static
  14696. <filename>uid</filename> and <filename>gid</filename>
  14697. values causes the OpenEmbedded build system to employ
  14698. the
  14699. <link linkend='ref-classes-useradd'><filename>useradd-staticids</filename></link>
  14700. class.
  14701. </note>
  14702. </para>
  14703. <para>
  14704. If you use static <filename>uid</filename> and
  14705. <filename>gid</filename> information, you must also
  14706. specify the <filename>files/passwd</filename> and
  14707. <filename>files/group</filename> files by setting the
  14708. <link linkend='var-USERADD_UID_TABLES'><filename>USERADD_UID_TABLES</filename></link>
  14709. and
  14710. <link linkend='var-USERADD_GID_TABLES'><filename>USERADD_GID_TABLES</filename></link>
  14711. variables.
  14712. Additionally, you should also set the
  14713. <link linkend='var-USERADD_ERROR_DYNAMIC'><filename>USERADD_ERROR_DYNAMIC</filename></link>
  14714. variable.
  14715. </para>
  14716. </glossdef>
  14717. </glossentry>
  14718. </glossdiv>
  14719. <glossdiv id='var-glossary-v'><title>V</title>
  14720. <glossentry id='var-VOLATILE_LOG_DIR'><glossterm>VOLATILE_LOG_DIR</glossterm>
  14721. <info>
  14722. VOLATILE_LOG_DIR[doc] = "Specifies the persistence of the target's /var/log directory, which is used to house postinstall target log files."
  14723. </info>
  14724. <glossdef>
  14725. <para role="glossdeffirst">
  14726. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14727. Specifies the persistence of the target's
  14728. <filename>/var/log</filename> directory, which is used to
  14729. house postinstall target log files.
  14730. </para>
  14731. <para>
  14732. By default, <filename>VOLATILE_LOG_DIR</filename> is set
  14733. to "yes", which means the file is not persistent.
  14734. You can override this setting by setting the
  14735. variable to "no" to make the log directory persistent.
  14736. </para>
  14737. </glossdef>
  14738. </glossentry>
  14739. </glossdiv>
  14740. <glossdiv id='var-glossary-w'><title>W</title>
  14741. <glossentry id='var-WARN_QA'><glossterm>WARN_QA</glossterm>
  14742. <info>
  14743. WARN_QA[doc] = "Specifies the quality assurance checks whose failures are reported as warnings by the OpenEmbedded build system."
  14744. </info>
  14745. <glossdef>
  14746. <para role="glossdeffirst">
  14747. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14748. Specifies the quality assurance checks whose failures are
  14749. reported as warnings by the OpenEmbedded build system.
  14750. You set this variable in your distribution configuration
  14751. file.
  14752. For a list of the checks you can control with this variable,
  14753. see the
  14754. "<link linkend='ref-classes-insane'><filename>insane.bbclass</filename></link>"
  14755. section.
  14756. </para>
  14757. </glossdef>
  14758. </glossentry>
  14759. <glossentry id='var-WKS_FILE_DEPENDS'><glossterm>WKS_FILE_DEPENDS</glossterm>
  14760. <info>
  14761. WKS_FILE_DEPENDS[doc] = "Lists a recipe's build-time dependencies specific to Wic."
  14762. </info>
  14763. <glossdef>
  14764. <para role="glossdeffirst">
  14765. When placed in the recipe that builds your image, this
  14766. variable lists build-time dependencies.
  14767. The <filename>WKS_FILE_DEPENDS</filename> variable is only
  14768. applicable when Wic images are active (i.e. when
  14769. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  14770. contains entries related to Wic).
  14771. If your recipe does not create Wic images, the variable
  14772. has no effect.
  14773. </para>
  14774. <para>
  14775. The <filename>WKS_FILE_DEPENDS</filename> variable is
  14776. similar to the
  14777. <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>
  14778. variable.
  14779. When you use the variable in your recipe that builds the
  14780. Wic image, dependencies you list in the
  14781. <filename>WIC_FILE_DEPENDS</filename> variable are added to
  14782. the <filename>DEPENDS</filename> variable.
  14783. </para>
  14784. <para>
  14785. With the <filename>WKS_FILE_DEPENDS</filename> variable,
  14786. you have the possibility to specify a list of additional
  14787. dependencies (e.g. native tools, bootloaders, and so forth),
  14788. that are required to build Wic images.
  14789. Following is an example:
  14790. <literallayout class='monospaced'>
  14791. WKS_FILE_DEPENDS = "<replaceable>some-native-tool</replaceable>"
  14792. </literallayout>
  14793. In the previous example,
  14794. <replaceable>some-native-tool</replaceable> would be
  14795. replaced with an actual native tool on which the build
  14796. would depend.
  14797. </para>
  14798. </glossdef>
  14799. </glossentry>
  14800. <glossentry id='var-WKS_FILE'><glossterm>WKS_FILE</glossterm>
  14801. <info>
  14802. WKS_FILE[doc] = "Specifies the name of the wic kickstart file."
  14803. </info>
  14804. <glossdef>
  14805. <para role="glossdeffirst">
  14806. Specifies the location of the Wic
  14807. kickstart file that is used by the OpenEmbedded build
  14808. system to create a partitioned image
  14809. (<replaceable>image</replaceable><filename>.wic</filename>).
  14810. For information on how to create a
  14811. partitioned image, see the
  14812. "<ulink url='&YOCTO_DOCS_DEV_URL;#creating-wic-images-oe'>Creating Partitioned Images</ulink>"
  14813. section.
  14814. For details on the kickstart file format, see the
  14815. "<ulink url='&YOCTO_DOCS_DEV_URL;#openembedded-kickstart-wks-reference'>OpenEmbedded Kickstart (<filename>.wks</filename>) Reference</ulink>.
  14816. </para>
  14817. </glossdef>
  14818. </glossentry>
  14819. <glossentry id='var-WORKDIR'><glossterm>WORKDIR</glossterm>
  14820. <info>
  14821. WORKDIR[doc] = "The pathname of the working directory in which the OpenEmbedded build system builds a recipe. This directory is located within the TMPDIR directory structure and changes as different packages are built."
  14822. </info>
  14823. <glossdef>
  14824. <para role="glossdeffirst">
  14825. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14826. The pathname of the work directory in which the OpenEmbedded
  14827. build system builds a recipe.
  14828. This directory is located within the
  14829. <link linkend='var-TMPDIR'><filename>TMPDIR</filename></link>
  14830. directory structure and is specific to the recipe being
  14831. built and the system for which it is being built.
  14832. </para>
  14833. <para>
  14834. The <filename>WORKDIR</filename> directory is defined as
  14835. follows:
  14836. <literallayout class='monospaced'>
  14837. ${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}
  14838. </literallayout>
  14839. The actual directory depends on several things:
  14840. <itemizedlist>
  14841. <listitem><link linkend='var-TMPDIR'><filename>TMPDIR</filename></link>:
  14842. The top-level build output directory</listitem>
  14843. <listitem><link linkend='var-MULTIMACH_TARGET_SYS'><filename>MULTIMACH_TARGET_SYS</filename></link>:
  14844. The target system identifier</listitem>
  14845. <listitem><link linkend='var-PN'><filename>PN</filename></link>:
  14846. The recipe name</listitem>
  14847. <listitem><link linkend='var-EXTENDPE'><filename>EXTENDPE</filename></link>:
  14848. The epoch - (if
  14849. <link linkend='var-PE'><filename>PE</filename></link>
  14850. is not specified, which is usually the case for most
  14851. recipes, then <filename>EXTENDPE</filename> is blank)</listitem>
  14852. <listitem><link linkend='var-PV'><filename>PV</filename></link>:
  14853. The recipe version</listitem>
  14854. <listitem><link linkend='var-PR'><filename>PR</filename></link>:
  14855. The recipe revision</listitem>
  14856. </itemizedlist>
  14857. </para>
  14858. <para>
  14859. As an example, assume a Source Directory top-level folder
  14860. name <filename>poky</filename>, a default Build Directory at
  14861. <filename>poky/build</filename>, and a
  14862. <filename>qemux86-poky-linux</filename> machine target
  14863. system.
  14864. Furthermore, suppose your recipe is named
  14865. <filename>foo_1.3.0-r0.bb</filename>.
  14866. In this case, the work directory the build system uses to
  14867. build the package would be as follows:
  14868. <literallayout class='monospaced'>
  14869. poky/build/tmp/work/qemux86-poky-linux/foo/1.3.0-r0
  14870. </literallayout>
  14871. </para>
  14872. </glossdef>
  14873. </glossentry>
  14874. </glossdiv>
  14875. <glossdiv id='var-glossary-x'><title>X</title>
  14876. <glossentry id='var-XSERVER'><glossterm>XSERVER</glossterm>
  14877. <info>
  14878. XSERVER[doc] = "Specifies the packages that should be installed
  14879. to provide an X server and drivers for the current machine."
  14880. </info>
  14881. <glossdef>
  14882. <para role="glossdeffirst">
  14883. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14884. Specifies the packages that should be installed to
  14885. provide an X server and drivers for the current machine,
  14886. assuming your image directly includes
  14887. <filename>packagegroup-core-x11-xserver</filename> or,
  14888. perhaps indirectly, includes "x11-base" in
  14889. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>.
  14890. </para>
  14891. <para>
  14892. The default value of <filename>XSERVER</filename>, if not
  14893. specified in the machine configuration, is
  14894. "xserver-xorg xf86-video-fbdev xf86-input-evdev".
  14895. </para>
  14896. </glossdef>
  14897. </glossentry>
  14898. </glossdiv>
  14899. <!-- <glossdiv id='var-glossary-y'><title>Y</title>-->
  14900. <!-- </glossdiv>-->
  14901. <!-- <glossdiv id='var-glossary-z'><title>Z</title>-->
  14902. <!-- </glossdiv>-->
  14903. </glossary>
  14904. </chapter>
  14905. <!--
  14906. vim: expandtab tw=80 ts=4
  14907. -->