variables.rst 365 KB

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