variables.rst 372 KB

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