variables.rst 447 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442
  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 <FAKEROOT>`
  9. :term:`G <GCCPIE>` :term:`H <HGDIR>` :term:`I <ICECC_CLASS_DISABLE>`
  10. :term:`K <KARCH>` :term:`L <LABELS>` :term:`M <MACHINE>`
  11. :term:`N <NATIVELSBSTRING>` :term:`O <OBJCOPY>` :term:`P`
  12. :term:`Q <QA_EMPTY_DIRS>` :term:`R <RANLIB>` :term:`S` :term:`T`
  13. :term:`U <UBOOT_BINARY>` :term:`V <VIRTUAL-RUNTIME>`
  14. :term:`W <WARN_QA>` :term:`X <XSERVER>` :term:`Z <ZSTD_THREADS>`
  15. .. glossary::
  16. :sorted:
  17. :term:`ABIEXTENSION`
  18. Extension to the Application Binary Interface (ABI) field of the GNU
  19. canonical architecture name (e.g. "eabi").
  20. ABI extensions are set in the machine include files. For example, the
  21. ``meta/conf/machine/include/arm/arch-arm.inc`` file sets the
  22. following extension::
  23. ABIEXTENSION = "eabi"
  24. :term:`ALLOW_EMPTY`
  25. Specifies whether to produce an output package even if it is empty.
  26. By default, BitBake does not produce empty packages. This default
  27. behavior can cause issues when there is an
  28. :term:`RDEPENDS` or some other hard runtime
  29. requirement on the existence of the package.
  30. Like all package-controlling variables, you must always use them in
  31. conjunction with a package name override, as in::
  32. ALLOW_EMPTY:${PN} = "1"
  33. ALLOW_EMPTY:${PN}-dev = "1"
  34. ALLOW_EMPTY:${PN}-staticdev = "1"
  35. :term:`ALTERNATIVE`
  36. Lists commands in a package that need an alternative binary naming
  37. scheme. Sometimes the same command is provided in multiple packages.
  38. When this occurs, the OpenEmbedded build system needs to use the
  39. alternatives system to create a different binary naming scheme so the
  40. commands can co-exist.
  41. To use the variable, list out the package's commands that are also
  42. provided by another package. For example, if the ``busybox`` package
  43. has four such commands, you identify them as follows::
  44. ALTERNATIVE:busybox = "sh sed test bracket"
  45. For more information on the alternatives system, see the
  46. ":ref:`ref-classes-update-alternatives`"
  47. section.
  48. :term:`ALTERNATIVE_LINK_NAME`
  49. Used by the alternatives system to map duplicated commands to actual
  50. locations. For example, if the ``bracket`` command provided by the
  51. ``busybox`` package is duplicated through another package, you must
  52. use the :term:`ALTERNATIVE_LINK_NAME` variable to specify the actual
  53. location::
  54. ALTERNATIVE_LINK_NAME[bracket] = "/usr/bin/["
  55. In this example, the binary for the ``bracket`` command (i.e. ``[``)
  56. from the ``busybox`` package resides in ``/usr/bin/``.
  57. .. note::
  58. If :term:`ALTERNATIVE_LINK_NAME` is not defined, it defaults to ``${bindir}/name``.
  59. For more information on the alternatives system, see the
  60. ":ref:`ref-classes-update-alternatives`"
  61. section.
  62. :term:`ALTERNATIVE_PRIORITY`
  63. Used by the alternatives system to create default priorities for
  64. duplicated commands. You can use the variable to create a single
  65. default regardless of the command name or package, a default for
  66. specific duplicated commands regardless of the package, or a default
  67. for specific commands tied to particular packages. Here are the
  68. available syntax forms::
  69. ALTERNATIVE_PRIORITY = "priority"
  70. ALTERNATIVE_PRIORITY[name] = "priority"
  71. ALTERNATIVE_PRIORITY_pkg[name] = "priority"
  72. For more information on the alternatives system, see the
  73. ":ref:`ref-classes-update-alternatives`"
  74. section.
  75. :term:`ALTERNATIVE_TARGET`
  76. Used by the alternatives system to create default link locations for
  77. duplicated commands. You can use the variable to create a single
  78. default location for all duplicated commands regardless of the
  79. command name or package, a default for specific duplicated commands
  80. regardless of the package, or a default for specific commands tied to
  81. particular packages. Here are the available syntax forms::
  82. ALTERNATIVE_TARGET = "target"
  83. ALTERNATIVE_TARGET[name] = "target"
  84. ALTERNATIVE_TARGET_pkg[name] = "target"
  85. .. note::
  86. If :term:`ALTERNATIVE_TARGET` is not defined, it inherits the value
  87. from the :term:`ALTERNATIVE_LINK_NAME` variable.
  88. If :term:`ALTERNATIVE_LINK_NAME` and :term:`ALTERNATIVE_TARGET` are the
  89. same, the target for :term:`ALTERNATIVE_TARGET` has "``.{BPN}``"
  90. appended to it.
  91. Finally, if the file referenced has not been renamed, the
  92. alternatives system will rename it to avoid the need to rename
  93. alternative files in the :ref:`ref-tasks-install`
  94. task while retaining support for the command if necessary.
  95. For more information on the alternatives system, see the
  96. ":ref:`ref-classes-update-alternatives`" section.
  97. :term:`ANY_OF_DISTRO_FEATURES`
  98. When inheriting the :ref:`ref-classes-features_check`
  99. class, this variable identifies a list of distribution features where
  100. at least one must be enabled in the current configuration in order
  101. for the OpenEmbedded build system to build the recipe. In other words,
  102. if none of the features listed in :term:`ANY_OF_DISTRO_FEATURES`
  103. appear in :term:`DISTRO_FEATURES` within the current configuration, then
  104. the recipe will be skipped, and if the build system attempts to build
  105. the recipe then an error will be triggered.
  106. :term:`APPEND`
  107. An override list of append strings for each target specified with
  108. :term:`LABELS`.
  109. See the :ref:`ref-classes-grub-efi` class for more
  110. information on how this variable is used.
  111. :term:`AR`
  112. The minimal command and arguments used to run ``ar``.
  113. :term:`ARCHIVER_MODE`
  114. When used with the :ref:`ref-classes-archiver` class,
  115. determines the type of information used to create a released archive.
  116. You can use this variable to create archives of patched source,
  117. original source, configured source, and so forth by employing the
  118. following variable flags (varflags)::
  119. ARCHIVER_MODE[src] = "original" # Uses original (unpacked) source files.
  120. ARCHIVER_MODE[src] = "patched" # Uses patched source files. This is the default.
  121. ARCHIVER_MODE[src] = "configured" # Uses configured source files.
  122. ARCHIVER_MODE[diff] = "1" # Uses patches between do_unpack and do_patch.
  123. ARCHIVER_MODE[diff-exclude] ?= "file file ..." # Lists files and directories to exclude from diff.
  124. ARCHIVER_MODE[dumpdata] = "1" # Uses environment data.
  125. ARCHIVER_MODE[recipe] = "1" # Uses recipe and include files.
  126. ARCHIVER_MODE[srpm] = "1" # Uses RPM package files.
  127. For information on how the variable works, see the
  128. ``meta/classes/archiver.bbclass`` file in the :term:`Source Directory`.
  129. :term:`AS`
  130. Minimal command and arguments needed to run the assembler.
  131. :term:`ASSUME_PROVIDED`
  132. Lists recipe names (:term:`PN` values) BitBake does not
  133. attempt to build. Instead, BitBake assumes these recipes have already
  134. been built.
  135. In OpenEmbedded-Core, :term:`ASSUME_PROVIDED` mostly specifies native
  136. tools that should not be built. An example is ``git-native``, which
  137. when specified, allows for the Git binary from the host to be used
  138. rather than building ``git-native``.
  139. :term:`ASSUME_SHLIBS`
  140. Provides additional ``shlibs`` provider mapping information, which
  141. adds to or overwrites the information provided automatically by the
  142. system. Separate multiple entries using spaces.
  143. As an example, use the following form to add an ``shlib`` provider of
  144. shlibname in packagename with the optional version::
  145. shlibname:packagename[_version]
  146. Here is an example that adds a shared library named ``libEGL.so.1``
  147. as being provided by the ``libegl-implementation`` package::
  148. ASSUME_SHLIBS = "libEGL.so.1:libegl-implementation"
  149. :term:`AUTO_LIBNAME_PKGS`
  150. When the :ref:`ref-classes-debian` class is inherited,
  151. which is the default behavior, :term:`AUTO_LIBNAME_PKGS` specifies which
  152. packages should be checked for libraries and renamed according to
  153. Debian library package naming.
  154. The default value is "${PACKAGES}", which causes the
  155. :ref:`ref-classes-debian` class to act on all packages that are
  156. explicitly generated by the recipe.
  157. :term:`AUTOREV`
  158. When :term:`SRCREV` is set to the value of this variable, it specifies to
  159. use the latest source revision in the repository. Here is an example::
  160. SRCREV = "${AUTOREV}"
  161. If you use the previous statement to retrieve the latest version of
  162. software, you need to make sure :term:`PV` contains the ``+`` sign so
  163. :term:`bitbake` includes source control information to :term:`PKGV` when
  164. packaging the recipe. For example::
  165. PV = "6.10.y+git"
  166. For more information see the
  167. ":ref:`dev-manual/packages:automatically incrementing a package version number`"
  168. section in the Yocto Project Development Tasks Manual.
  169. :term:`AUTO_SYSLINUXMENU`
  170. Enables creating an automatic menu for the syslinux bootloader. You
  171. must set this variable in your recipe. The
  172. :ref:`ref-classes-syslinux` class checks this variable.
  173. :term:`AVAILTUNES`
  174. The list of defined CPU and Application Binary Interface (ABI)
  175. tunings (i.e. "tunes") available for use by the OpenEmbedded build
  176. system.
  177. The list simply presents the tunes that are available. Not all tunes
  178. may be compatible with a particular machine configuration, or with
  179. each other in a
  180. :ref:`Multilib <dev-manual/libraries:combining multiple versions of library files into one image>`
  181. configuration.
  182. To add a tune to the list, be sure to append it with spaces using the
  183. "+=" BitBake operator. Do not simply replace the list by using the
  184. "=" operator. See the
  185. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:basic syntax`" section in the BitBake
  186. User Manual for more information.
  187. :term:`AZ_SAS`
  188. Azure Storage Shared Access Signature, when using the
  189. :ref:`Azure Storage fetcher (az://) <bitbake-user-manual/bitbake-user-manual-fetching:fetchers>`
  190. This variable can be defined to be used by the fetcher to authenticate
  191. and gain access to non-public artifacts::
  192. AZ_SAS = ""se=2021-01-01&sp=r&sv=2018-11-09&sr=c&skoid=<skoid>&sig=<signature>""
  193. For more information see Microsoft's Azure Storage documentation at
  194. https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview
  195. :term:`B`
  196. The directory within the :term:`Build Directory` in which the
  197. OpenEmbedded build system places generated objects during a recipe's
  198. build process. By default, this directory is the same as the
  199. :term:`S` directory, which is defined as::
  200. S = "${WORKDIR}/${BP}"
  201. You can separate the (:term:`S`) directory and the directory pointed to
  202. by the :term:`B` variable. Most Autotools-based recipes support
  203. separating these directories. The build system defaults to using
  204. separate directories for ``gcc`` and some kernel recipes.
  205. :term:`BAD_RECOMMENDATIONS`
  206. Lists "recommended-only" packages to not install. Recommended-only
  207. packages are packages installed only through the
  208. :term:`RRECOMMENDS` variable. You can prevent any
  209. of these "recommended" packages from being installed by listing them
  210. with the :term:`BAD_RECOMMENDATIONS` variable::
  211. BAD_RECOMMENDATIONS = "package_name package_name package_name ..."
  212. You can set this variable globally in your ``local.conf`` file or you
  213. can attach it to a specific image recipe by using the recipe name
  214. override::
  215. BAD_RECOMMENDATIONS:pn-target_image = "package_name"
  216. It is important to realize that if you choose to not install packages
  217. using this variable and some other packages are dependent on them
  218. (i.e. listed in a recipe's :term:`RDEPENDS`
  219. variable), the OpenEmbedded build system ignores your request and
  220. will install the packages to avoid dependency errors.
  221. This variable is supported only when using the IPK and RPM
  222. packaging backends. DEB is not supported.
  223. See the :term:`NO_RECOMMENDATIONS` and the
  224. :term:`PACKAGE_EXCLUDE` variables for related
  225. information.
  226. :term:`BAREBOX_BINARY`
  227. When using the :ref:`ref-classes-barebox` class, this variable allows you
  228. to specify a particular binary that should be deployed and installed.
  229. The barebox build system can build multiple barebox binaries at once.
  230. By default, all built binaries will be deployed and installed under their
  231. original name.
  232. Here is an example usage of this variable::
  233. BAREBOX_BINARY = "barebox-boundarydevices-imx6dl-nitrogen6x-1g.img"
  234. :term:`BAREBOX_CONFIG`
  235. When using the :ref:`ref-classes-barebox` class, this variable allows you
  236. to specify the name of the barebox defconfig to build.
  237. The name must be a defconfig file known to the barebox build environment.
  238. This variable is mainly useful for generic use cases where a dedicated
  239. configuration is not required.
  240. The :ref:`ref-classes-barebox` class itself already sets it for some QEMU
  241. machines::
  242. BAREBOX_CONFIG:qemuarm = "multi_v7_defconfig"
  243. BAREBOX_CONFIG:qemuarm64 = "multi_v8_defconfig"
  244. BAREBOX_CONFIG:qemux86-64 = "efi_defconfig"
  245. Except for these, the default value of :term:`BAREBOX_CONFIG` is empty.
  246. For more information on how to provide a barebox configuration, see the
  247. :ref:`ref-classes-barebox` class.
  248. :term:`BASE_LIB`
  249. The library directory name for the CPU or Application Binary
  250. Interface (ABI) tune. The :term:`BASE_LIB` applies only in the Multilib
  251. context. See the ":ref:`dev-manual/libraries:combining multiple versions of library files into one image`"
  252. section in the Yocto Project Development Tasks Manual for information
  253. on Multilib.
  254. The :term:`BASE_LIB` variable is defined in the machine include files in
  255. the :term:`Source Directory`. If Multilib is not
  256. being used, the value defaults to "lib".
  257. :term:`BASE_WORKDIR`
  258. Points to the base of the work directory for all recipes. The default
  259. value is "${TMPDIR}/work".
  260. :term:`BB_ALLOWED_NETWORKS`
  261. Specifies a space-delimited list of hosts that the fetcher is allowed
  262. to use to obtain the required source code. Here are
  263. considerations surrounding this variable:
  264. - This host list is only used if :term:`BB_NO_NETWORK` is either not set
  265. or set to "0".
  266. - There is limited support for wildcard matching against the beginning of
  267. host names. For example, the following setting matches
  268. ``git.gnu.org``, ``ftp.gnu.org``, and ``foo.git.gnu.org``::
  269. BB_ALLOWED_NETWORKS = "*.gnu.org"
  270. .. note::
  271. The use of the "``*``" character only works at the beginning of
  272. a host name and it must be isolated from the remainder of the
  273. host name. You cannot use the wildcard character in any other
  274. location of the name or combined with the front part of the
  275. name.
  276. For example, ``*.foo.bar`` is supported, while ``*aa.foo.bar``
  277. is not.
  278. - Mirrors not in the host list are skipped and logged in debug.
  279. - Attempts to access networks not in the host list cause a failure.
  280. Using :term:`BB_ALLOWED_NETWORKS` in conjunction with
  281. :term:`PREMIRRORS` is very useful. Adding the host
  282. you want to use to :term:`PREMIRRORS` results in the source code being
  283. fetched from an allowed location and avoids raising an error when a
  284. host that is not allowed is in a :term:`SRC_URI`
  285. statement. This is because the fetcher does not attempt to use the
  286. host listed in :term:`SRC_URI` after a successful fetch from the
  287. :term:`PREMIRRORS` occurs.
  288. :term:`BB_BASEHASH_IGNORE_VARS`
  289. See :term:`bitbake:BB_BASEHASH_IGNORE_VARS` in the BitBake manual.
  290. :term:`BB_CACHEDIR`
  291. See :term:`bitbake:BB_CACHEDIR` in the BitBake manual.
  292. :term:`BB_CHECK_SSL_CERTS`
  293. See :term:`bitbake:BB_CHECK_SSL_CERTS` in the BitBake manual.
  294. :term:`BB_CONSOLELOG`
  295. See :term:`bitbake:BB_CONSOLELOG` in the BitBake manual.
  296. :term:`BB_CURRENTTASK`
  297. See :term:`bitbake:BB_CURRENTTASK` in the BitBake manual.
  298. :term:`BB_DEFAULT_TASK`
  299. See :term:`bitbake:BB_DEFAULT_TASK` in the BitBake manual.
  300. :term:`BB_DEFAULT_UMASK`
  301. See :term:`bitbake:BB_DEFAULT_UMASK` in the BitBake manual.
  302. :term:`BB_DISKMON_DIRS`
  303. Monitors disk space and available inodes during the build and allows
  304. you to control the build based on these parameters.
  305. Disk space monitoring is disabled by default. To enable monitoring,
  306. add the :term:`BB_DISKMON_DIRS` variable to your ``conf/local.conf`` file
  307. found in the :term:`Build Directory`. Use the
  308. following form:
  309. .. code-block:: none
  310. BB_DISKMON_DIRS = "action,dir,threshold [...]"
  311. where:
  312. action is:
  313. ABORT: Immediately stop the build when
  314. a threshold is broken.
  315. STOPTASKS: Stop the build after the currently
  316. executing tasks have finished when
  317. a threshold is broken.
  318. WARN: Issue a warning but continue the
  319. build when a threshold is broken.
  320. Subsequent warnings are issued as
  321. defined by the BB_DISKMON_WARNINTERVAL
  322. variable, which must be defined in
  323. the conf/local.conf file.
  324. dir is:
  325. Any directory you choose. You can specify one or
  326. more directories to monitor by separating the
  327. groupings with a space. If two directories are
  328. on the same device, only the first directory
  329. is monitored.
  330. threshold is:
  331. Either the minimum available disk space,
  332. the minimum number of free inodes, or
  333. both. You must specify at least one. To
  334. omit one or the other, simply omit the value.
  335. Specify the threshold using G, M, K for Gbytes,
  336. Mbytes, and Kbytes, respectively. If you do
  337. not specify G, M, or K, Kbytes is assumed by
  338. default. Do not use GB, MB, or KB.
  339. Here are some examples::
  340. BB_DISKMON_DIRS = "ABORT,${TMPDIR},1G,100K WARN,${SSTATE_DIR},1G,100K"
  341. BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},1G"
  342. BB_DISKMON_DIRS = "ABORT,${TMPDIR},,100K"
  343. The first example works only if you also provide the
  344. :term:`BB_DISKMON_WARNINTERVAL`
  345. variable in the ``conf/local.conf``. This example causes the build
  346. system to immediately stop when either the disk space in
  347. ``${TMPDIR}`` drops below 1 Gbyte or the available free inodes drops
  348. below 100 Kbytes. Because two directories are provided with the
  349. variable, the build system also issue a warning when the disk space
  350. in the ``${SSTATE_DIR}`` directory drops below 1 Gbyte or the number
  351. of free inodes drops below 100 Kbytes. Subsequent warnings are issued
  352. during intervals as defined by the :term:`BB_DISKMON_WARNINTERVAL`
  353. variable.
  354. The second example stops the build after all currently executing
  355. tasks complete when the minimum disk space in the ``${TMPDIR}``
  356. directory drops below 1 Gbyte. No disk monitoring occurs for the free
  357. inodes in this case.
  358. The final example immediately stops the build when the number of
  359. free inodes in the ``${TMPDIR}`` directory drops below 100 Kbytes. No
  360. disk space monitoring for the directory itself occurs in this case.
  361. :term:`BB_DISKMON_WARNINTERVAL`
  362. Defines the disk space and free inode warning intervals. To set these
  363. intervals, define the variable in your ``conf/local.conf`` file in
  364. the :term:`Build Directory`.
  365. If you are going to use the :term:`BB_DISKMON_WARNINTERVAL` variable, you
  366. must also use the :term:`BB_DISKMON_DIRS`
  367. variable and define its action as "WARN". During the build,
  368. subsequent warnings are issued each time disk space or number of free
  369. inodes further reduces by the respective interval.
  370. If you do not provide a :term:`BB_DISKMON_WARNINTERVAL` variable and you
  371. do use :term:`BB_DISKMON_DIRS` with the "WARN" action, the disk
  372. monitoring interval defaults to the following::
  373. BB_DISKMON_WARNINTERVAL = "50M,5K"
  374. When specifying the variable in your configuration file, use the
  375. following form:
  376. .. code-block:: none
  377. BB_DISKMON_WARNINTERVAL = "disk_space_interval,disk_inode_interval"
  378. where:
  379. disk_space_interval is:
  380. An interval of memory expressed in either
  381. G, M, or K for Gbytes, Mbytes, or Kbytes,
  382. respectively. You cannot use GB, MB, or KB.
  383. disk_inode_interval is:
  384. An interval of free inodes expressed in either
  385. G, M, or K for Gbytes, Mbytes, or Kbytes,
  386. respectively. You cannot use GB, MB, or KB.
  387. Here is an example::
  388. BB_DISKMON_DIRS = "WARN,${SSTATE_DIR},1G,100K"
  389. BB_DISKMON_WARNINTERVAL = "50M,5K"
  390. These variables cause the
  391. OpenEmbedded build system to issue subsequent warnings each time the
  392. available disk space further reduces by 50 Mbytes or the number of
  393. free inodes further reduces by 5 Kbytes in the ``${SSTATE_DIR}``
  394. directory. Subsequent warnings based on the interval occur each time
  395. a respective interval is reached beyond the initial warning (i.e. 1
  396. Gbytes and 100 Kbytes).
  397. :term:`BB_ENV_PASSTHROUGH`
  398. See :term:`bitbake:BB_ENV_PASSTHROUGH` in the BitBake manual.
  399. :term:`BB_ENV_PASSTHROUGH_ADDITIONS`
  400. See :term:`bitbake:BB_ENV_PASSTHROUGH_ADDITIONS` in the BitBake manual.
  401. :term:`BB_FETCH_PREMIRRORONLY`
  402. See :term:`bitbake:BB_FETCH_PREMIRRORONLY` in the BitBake manual.
  403. :term:`BB_FILENAME`
  404. See :term:`bitbake:BB_FILENAME` in the BitBake manual.
  405. :term:`BB_GENERATE_MIRROR_TARBALLS`
  406. Causes tarballs of the source control repositories (e.g. Git
  407. repositories), including metadata, to be placed in the
  408. :term:`DL_DIR` directory.
  409. For performance reasons, creating and placing tarballs of these
  410. repositories is not the default action by the OpenEmbedded build
  411. system::
  412. BB_GENERATE_MIRROR_TARBALLS = "1"
  413. Set this variable in your
  414. ``local.conf`` file in the :term:`Build Directory`.
  415. Once you have the tarballs containing your source files, you can
  416. clean up your :term:`DL_DIR` directory by deleting any Git or other
  417. source control work directories.
  418. :term:`BB_GENERATE_SHALLOW_TARBALLS`
  419. See :term:`bitbake:BB_GENERATE_SHALLOW_TARBALLS` in the BitBake manual.
  420. :term:`BB_GIT_SHALLOW`
  421. See :term:`bitbake:BB_GIT_SHALLOW` in the BitBake manual.
  422. :term:`BB_GIT_SHALLOW_DEPTH`
  423. See :term:`bitbake:BB_GIT_SHALLOW_DEPTH` in the BitBake manual.
  424. :term:`BB_HASHCHECK_FUNCTION`
  425. See :term:`bitbake:BB_HASHCHECK_FUNCTION` in the BitBake manual.
  426. :term:`BB_HASHCONFIG_IGNORE_VARS`
  427. See :term:`bitbake:BB_HASHCONFIG_IGNORE_VARS` in the BitBake manual.
  428. :term:`BB_HASHSERVE`
  429. See :term:`bitbake:BB_HASHSERVE` in the BitBake manual.
  430. :term:`BB_HASHSERVE_UPSTREAM`
  431. See :term:`bitbake:BB_HASHSERVE_UPSTREAM` in the BitBake manual.
  432. :term:`BB_INVALIDCONF`
  433. See :term:`bitbake:BB_INVALIDCONF` in the BitBake manual.
  434. :term:`BB_LOADFACTOR_MAX`
  435. The system load threshold above which BitBake will stop runnig extra
  436. tasks.
  437. :term:`BB_LOGCONFIG`
  438. See :term:`bitbake:BB_LOGCONFIG` in the BitBake manual.
  439. :term:`BB_LOGFMT`
  440. See :term:`bitbake:BB_LOGFMT` in the BitBake manual.
  441. :term:`BB_MULTI_PROVIDER_ALLOWED`
  442. See :term:`bitbake:BB_MULTI_PROVIDER_ALLOWED` in the BitBake manual.
  443. :term:`BB_NICE_LEVEL`
  444. See :term:`bitbake:BB_NICE_LEVEL` in the BitBake manual.
  445. :term:`BB_NO_NETWORK`
  446. See :term:`bitbake:BB_NO_NETWORK` in the BitBake manual.
  447. :term:`BB_NUMBER_PARSE_THREADS`
  448. See :term:`bitbake:BB_NUMBER_PARSE_THREADS` in the BitBake manual.
  449. :term:`BB_NUMBER_THREADS`
  450. The maximum number of tasks BitBake should run in parallel at any one
  451. time. The OpenEmbedded build system automatically configures this
  452. variable to be equal to the number of cores on the build system. For
  453. example, a system with a dual core processor that also uses
  454. hyper-threading causes the :term:`BB_NUMBER_THREADS` variable to default
  455. to "4".
  456. For single socket systems (i.e. one CPU), you should not have to
  457. override this variable to gain optimal parallelism during builds.
  458. However, if you have very large systems that employ multiple physical
  459. CPUs, you might want to make sure the :term:`BB_NUMBER_THREADS` variable
  460. is not set higher than "20".
  461. For more information on speeding up builds, see the
  462. ":ref:`dev-manual/speeding-up-build:speeding up a build`"
  463. section in the Yocto Project Development Tasks Manual.
  464. On the other hand, if your goal is to limit the amount of system
  465. resources consumed by BitBake tasks, setting :term:`BB_NUMBER_THREADS`
  466. to a number lower than the number of CPU threads in your machine
  467. won't be sufficient. That's because each package will still be built
  468. and installed through a number of parallel jobs specified by the
  469. :term:`PARALLEL_MAKE` variable, which is by default the number of CPU
  470. threads in your system, and is not impacted by the
  471. :term:`BB_NUMBER_THREADS` value.
  472. So, if you set :term:`BB_NUMBER_THREADS` to "1" but don't set
  473. :term:`PARALLEL_MAKE`, most of your system resources will be consumed
  474. anyway.
  475. Therefore, if you intend to reduce the load of your build system by
  476. setting :term:`BB_NUMBER_THREADS` to a relatively low value compared
  477. to the number of CPU threads on your system, you should also set
  478. :term:`PARALLEL_MAKE` to a similarly low value.
  479. An alternative to using :term:`BB_NUMBER_THREADS` to keep the usage
  480. of build system resources under control is to use the smarter
  481. :term:`BB_PRESSURE_MAX_CPU`, :term:`BB_PRESSURE_MAX_IO` or
  482. :term:`BB_PRESSURE_MAX_MEMORY` controls. They will prevent BitBake
  483. from starting new tasks as long as thresholds are exceeded. Anyway,
  484. as with :term:`BB_NUMBER_THREADS`, such controls won't prevent the
  485. tasks already being run from using all CPU threads on the system
  486. if :term:`PARALLEL_MAKE` is not set to a low value.
  487. :term:`BB_ORIGENV`
  488. See :term:`bitbake:BB_ORIGENV` in the BitBake manual.
  489. :term:`BB_PRESERVE_ENV`
  490. See :term:`bitbake:BB_PRESERVE_ENV` in the BitBake manual.
  491. :term:`BB_PRESSURE_MAX_CPU`
  492. See :term:`bitbake:BB_PRESSURE_MAX_CPU` in the BitBake manual.
  493. :term:`BB_PRESSURE_MAX_IO`
  494. See :term:`bitbake:BB_PRESSURE_MAX_IO` in the BitBake manual.
  495. :term:`BB_PRESSURE_MAX_MEMORY`
  496. See :term:`bitbake:BB_PRESSURE_MAX_MEMORY` in the BitBake manual.
  497. :term:`BB_RUNFMT`
  498. See :term:`bitbake:BB_RUNFMT` in the BitBake manual.
  499. :term:`BB_RUNTASK`
  500. See :term:`bitbake:BB_RUNTASK` in the BitBake manual.
  501. :term:`BB_SCHEDULER`
  502. See :term:`bitbake:BB_SCHEDULER` in the BitBake manual.
  503. :term:`BB_SCHEDULERS`
  504. See :term:`bitbake:BB_SCHEDULERS` in the BitBake manual.
  505. :term:`BB_SERVER_TIMEOUT`
  506. Specifies the time (in seconds) after which to unload the BitBake
  507. server due to inactivity. Set :term:`BB_SERVER_TIMEOUT` to determine how
  508. long the BitBake server stays resident between invocations.
  509. For example, the following statement in your ``local.conf`` file
  510. instructs the server to be unloaded after 20 seconds of inactivity::
  511. BB_SERVER_TIMEOUT = "20"
  512. If you want the server to never be unloaded,
  513. set :term:`BB_SERVER_TIMEOUT` to "-1".
  514. :term:`BB_SETSCENE_DEPVALID`
  515. See :term:`bitbake:BB_SETSCENE_DEPVALID` in the BitBake manual.
  516. :term:`BB_SIGNATURE_EXCLUDE_FLAGS`
  517. See :term:`bitbake:BB_SIGNATURE_EXCLUDE_FLAGS` in the BitBake manual.
  518. :term:`BB_SIGNATURE_HANDLER`
  519. See :term:`bitbake:BB_SIGNATURE_HANDLER` in the BitBake manual.
  520. :term:`BB_SRCREV_POLICY`
  521. See :term:`bitbake:BB_SRCREV_POLICY` in the BitBake manual.
  522. :term:`BB_STRICT_CHECKSUM`
  523. See :term:`bitbake:BB_STRICT_CHECKSUM` in the BitBake manual.
  524. :term:`BB_TASK_IONICE_LEVEL`
  525. See :term:`bitbake:BB_TASK_IONICE_LEVEL` in the BitBake manual.
  526. :term:`BB_TASK_NICE_LEVEL`
  527. See :term:`bitbake:BB_TASK_NICE_LEVEL` in the BitBake manual.
  528. :term:`BB_TASKHASH`
  529. See :term:`bitbake:BB_TASKHASH` in the BitBake manual.
  530. :term:`BB_VERBOSE_LOGS`
  531. See :term:`bitbake:BB_VERBOSE_LOGS` in the BitBake manual.
  532. :term:`BB_WORKERCONTEXT`
  533. See :term:`bitbake:BB_WORKERCONTEXT` in the BitBake manual.
  534. :term:`BBCLASSEXTEND`
  535. Allows you to extend a recipe so that it builds variants of the
  536. software. There are common variants for recipes as "natives" like
  537. ``quilt-native``, which is a copy of Quilt built to run on the build
  538. system; "crosses" such as ``gcc-cross``, which is a compiler built to
  539. run on the build machine but produces binaries that run on the target
  540. :term:`MACHINE`; ":ref:`ref-classes-nativesdk`", which
  541. targets the SDK machine instead of :term:`MACHINE`; and "mulitlibs" in
  542. the form "``multilib:``\ multilib_name".
  543. To build a different variant of the recipe with a minimal amount of
  544. code, it usually is as simple as adding the following to your recipe::
  545. BBCLASSEXTEND =+ "native nativesdk"
  546. BBCLASSEXTEND =+ "multilib:multilib_name"
  547. .. note::
  548. Internally, the :term:`BBCLASSEXTEND` mechanism generates recipe
  549. variants by rewriting variable values and applying overrides such
  550. as ``:class-native``. For example, to generate a native version of
  551. a recipe, a :term:`DEPENDS` on "foo" is rewritten
  552. to a :term:`DEPENDS` on "foo-native".
  553. Even when using :term:`BBCLASSEXTEND`, the recipe is only parsed once.
  554. Parsing once adds some limitations. For example, it is not
  555. possible to include a different file depending on the variant,
  556. since ``include`` statements are processed when the recipe is
  557. parsed.
  558. :term:`BBDEBUG`
  559. See :term:`bitbake:BBDEBUG` in the BitBake manual.
  560. :term:`BBFILE_COLLECTIONS`
  561. Lists the names of configured layers. These names are used to find
  562. the other ``BBFILE_*`` variables. Typically, each layer will append
  563. its name to this variable in its ``conf/layer.conf`` file.
  564. :term:`BBFILE_PATTERN`
  565. Variable that expands to match files from
  566. :term:`BBFILES` in a particular layer. This variable
  567. is used in the ``conf/layer.conf`` file and must be suffixed with the
  568. name of the specific layer (e.g. ``BBFILE_PATTERN_emenlow``).
  569. :term:`BBFILE_PRIORITY`
  570. Assigns the priority for recipe files in each layer.
  571. This variable is useful in situations where the same recipe appears
  572. in more than one layer. Setting this variable allows you to
  573. prioritize a layer against other layers that contain the same recipe
  574. --- effectively letting you control the precedence for the multiple
  575. layers. The precedence established through this variable stands
  576. regardless of a recipe's version (:term:`PV` variable). For
  577. example, a layer that has a recipe with a higher :term:`PV` value but for
  578. which the :term:`BBFILE_PRIORITY` is set to have a lower precedence still
  579. has a lower precedence.
  580. A larger value for the :term:`BBFILE_PRIORITY` variable results in a
  581. higher precedence. For example, the value 6 has a higher precedence
  582. than the value 5. If not specified, the :term:`BBFILE_PRIORITY` variable
  583. is set based on layer dependencies (see the :term:`LAYERDEPENDS` variable
  584. for more information. The default priority, if unspecified for a
  585. layer with no dependencies, is the lowest defined priority + 1 (or 1
  586. if no priorities are defined).
  587. .. tip::
  588. You can use the command ``bitbake-layers show-layers``
  589. to list all configured layers along with their priorities.
  590. :term:`BBFILES`
  591. A space-separated list of recipe files BitBake uses to build
  592. software.
  593. When specifying recipe files, you can pattern match using Python's
  594. `glob <https://docs.python.org/3/library/glob.html>`__ syntax.
  595. For details on the syntax, see the documentation by following the
  596. previous link.
  597. :term:`BBFILES_DYNAMIC`
  598. Activates content when identified layers are present. You identify
  599. the layers by the collections that the layers define.
  600. Use the :term:`BBFILES_DYNAMIC` variable to avoid ``.bbappend`` files
  601. whose corresponding ``.bb`` file is in a layer that attempts to
  602. modify other layers through ``.bbappend`` but does not want to
  603. introduce a hard dependency on those other layers.
  604. Use the following form for :term:`BBFILES_DYNAMIC`:
  605. ``collection_name:filename_pattern``.
  606. The following example identifies two collection names and two
  607. filename patterns::
  608. BBFILES_DYNAMIC += " \
  609. clang-layer:${LAYERDIR}/bbappends/meta-clang/*/*/*.bbappend \
  610. core:${LAYERDIR}/bbappends/openembedded-core/meta/*/*/*.bbappend \
  611. "
  612. This next example shows an error message that occurs because invalid
  613. entries are found, which cause parsing to fail:
  614. .. code-block:: none
  615. ERROR: BBFILES_DYNAMIC entries must be of the form <collection name>:<filename pattern>, not:
  616. /work/my-layer/bbappends/meta-security-isafw/*/*/*.bbappend
  617. /work/my-layer/bbappends/openembedded-core/meta/*/*/*.bbappend
  618. :term:`BBINCLUDED`
  619. See :term:`bitbake:BBINCLUDED` in the BitBake manual.
  620. :term:`BBINCLUDELOGS`
  621. Variable that controls how BitBake displays logs on build failure.
  622. :term:`BBINCLUDELOGS_LINES`
  623. If :term:`BBINCLUDELOGS` is set, specifies the
  624. maximum number of lines from the task log file to print when
  625. reporting a failed task. If you do not set :term:`BBINCLUDELOGS_LINES`,
  626. the entire log is printed.
  627. :term:`BBLAYERS`
  628. Lists the layers to enable during the build. This variable is defined
  629. in the ``bblayers.conf`` configuration file in the :term:`Build Directory`.
  630. Here is an example::
  631. BBLAYERS = " \
  632. /home/scottrif/poky/meta \
  633. /home/scottrif/poky/meta-poky \
  634. /home/scottrif/poky/meta-yocto-bsp \
  635. /home/scottrif/poky/meta-mykernel \
  636. "
  637. This example enables four layers, one of which is a custom,
  638. user-defined layer named ``meta-mykernel``.
  639. :term:`BBLAYERS_FETCH_DIR`
  640. See :term:`bitbake:BBLAYERS_FETCH_DIR` in the BitBake manual.
  641. :term:`BBMASK`
  642. Prevents BitBake from processing recipes and recipe append files.
  643. You can use the :term:`BBMASK` variable to "hide" these ``.bb`` and
  644. ``.bbappend`` files. BitBake ignores any recipe or recipe append
  645. files that match any of the expressions. It is as if BitBake does not
  646. see them at all. Consequently, matching files are not parsed or
  647. otherwise used by BitBake.
  648. The values you provide are passed to Python's regular expression
  649. compiler. Consequently, the syntax follows Python's Regular
  650. Expression (re) syntax. The expressions are compared against the full
  651. paths to the files. For complete syntax information, see Python's
  652. documentation at https://docs.python.org/3/library/re.html#regular-expression-syntax.
  653. The following example uses a complete regular expression to tell
  654. BitBake to ignore all recipe and recipe append files in the
  655. ``meta-ti/recipes-misc/`` directory::
  656. BBMASK = "meta-ti/recipes-misc/"
  657. If you want to mask out multiple directories or recipes, you can
  658. specify multiple regular expression fragments. This next example
  659. masks out multiple directories and individual recipes::
  660. BBMASK += "/meta-ti/recipes-misc/ meta-ti/recipes-ti/packagegroup/"
  661. BBMASK += "/meta-oe/recipes-support/"
  662. BBMASK += "/meta-foo/.*/openldap"
  663. BBMASK += "opencv.*\.bbappend"
  664. BBMASK += "lzma"
  665. .. note::
  666. When specifying a directory name, use the trailing slash character
  667. to ensure you match just that directory name.
  668. :term:`BBMULTICONFIG`
  669. Specifies each additional separate configuration when you are
  670. building targets with multiple configurations. Use this variable in
  671. your ``conf/local.conf`` configuration file. Specify a
  672. multiconfigname for each configuration file you are using. For
  673. example, the following line specifies three configuration files::
  674. BBMULTICONFIG = "configA configB configC"
  675. Each configuration file you use must reside in a ``multiconfig``
  676. subdirectory of a configuration directory within a layer, or
  677. within the :term:`Build Directory` (e.g.
  678. ``build_directory/conf/multiconfig/configA.conf`` or
  679. ``mylayer/conf/multiconfig/configB.conf``).
  680. For information on how to use :term:`BBMULTICONFIG` in an environment
  681. that supports building targets with multiple configurations, see the
  682. ":ref:`dev-manual/building:building images for multiple targets using multiple configurations`"
  683. section in the Yocto Project Development Tasks Manual.
  684. :term:`BBPATH`
  685. See :term:`bitbake:BBPATH` in the BitBake manual.
  686. :term:`BBSERVER`
  687. If defined in the BitBake environment, :term:`BBSERVER` points to the
  688. BitBake remote server.
  689. Use the following format to export the variable to the BitBake
  690. environment::
  691. export BBSERVER=localhost:$port
  692. By default, :term:`BBSERVER` also appears in :term:`BB_BASEHASH_IGNORE_VARS`.
  693. Consequently, :term:`BBSERVER` is excluded from checksum and dependency
  694. data.
  695. :term:`BBTARGETS`
  696. See :term:`bitbake:BBTARGETS` in the BitBake manual.
  697. :term:`BINCONFIG`
  698. When inheriting the :ref:`ref-classes-binconfig-disabled` class, this
  699. variable specifies binary configuration scripts to disable in favor of
  700. using ``pkg-config`` to query the information. The
  701. :ref:`ref-classes-binconfig-disabled` class will modify the specified
  702. scripts to return an error so that calls to them can be easily found
  703. and replaced.
  704. To add multiple scripts, separate them by spaces. Here is an example
  705. from the ``libpng`` recipe::
  706. BINCONFIG = "${bindir}/libpng-config ${bindir}/libpng16-config"
  707. :term:`BINCONFIG_GLOB`
  708. When inheriting the :ref:`ref-classes-binconfig` class,
  709. this variable specifies a wildcard for configuration scripts that
  710. need editing. The scripts are edited to correct any paths that have
  711. been set up during compilation so that they are correct for use when
  712. installed into the sysroot and called by the build processes of other
  713. recipes.
  714. .. note::
  715. The :term:`BINCONFIG_GLOB` variable uses
  716. `shell globbing <https://tldp.org/LDP/abs/html/globbingref.html>`__,
  717. which is recognition and expansion of wildcards during pattern
  718. matching. Shell globbing is very similar to
  719. `fnmatch <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__
  720. and `glob <https://docs.python.org/3/library/glob.html>`__.
  721. For more information on how this variable works, see
  722. ``meta/classes-recipe/binconfig.bbclass`` in the :term:`Source Directory`.
  723. You can also find general
  724. information on the class in the
  725. ":ref:`ref-classes-binconfig`" section.
  726. :term:`BITBAKE_UI`
  727. See :term:`bitbake:BITBAKE_UI` in the BitBake manual.
  728. :term:`BP`
  729. The base recipe name and version but without any special recipe name
  730. suffix (i.e. ``-native``, ``lib64-``, and so forth). :term:`BP` is
  731. comprised of the following::
  732. ${BPN}-${PV}
  733. :term:`BPN`
  734. This variable is a version of the :term:`PN` variable with
  735. common prefixes and suffixes removed, such as ``nativesdk-``,
  736. ``-cross``, ``-native``, and multilib's ``lib64-`` and ``lib32-``.
  737. The exact lists of prefixes and suffixes removed are specified by the
  738. :term:`MLPREFIX` and
  739. :term:`SPECIAL_PKGSUFFIX` variables,
  740. respectively.
  741. :term:`BUGTRACKER`
  742. Specifies a URL for an upstream bug tracking website for a recipe.
  743. The OpenEmbedded build system does not use this variable. Rather, the
  744. variable is a useful pointer in case a bug in the software being
  745. built needs to be manually reported.
  746. :term:`BUILD_ARCH`
  747. Specifies the architecture of the build host (e.g. ``i686``). The
  748. OpenEmbedded build system sets the value of :term:`BUILD_ARCH` from the
  749. machine name reported by the ``uname`` command.
  750. :term:`BUILD_AS_ARCH`
  751. Specifies the architecture-specific assembler flags for the build
  752. host. By default, the value of :term:`BUILD_AS_ARCH` is empty.
  753. :term:`BUILD_CC_ARCH`
  754. Specifies the architecture-specific C compiler flags for the build
  755. host. By default, the value of :term:`BUILD_CC_ARCH` is empty.
  756. :term:`BUILD_CCLD`
  757. Specifies the linker command to be used for the build host when the C
  758. compiler is being used as the linker. By default, :term:`BUILD_CCLD`
  759. points to GCC and passes as arguments the value of
  760. :term:`BUILD_CC_ARCH`, assuming
  761. :term:`BUILD_CC_ARCH` is set.
  762. :term:`BUILD_CFLAGS`
  763. Specifies the flags to pass to the C compiler when building for the
  764. build host. When building in the ``-native`` context,
  765. :term:`CFLAGS` is set to the value of this variable by
  766. default.
  767. :term:`BUILD_CPPFLAGS`
  768. Specifies the flags to pass to the C preprocessor (i.e. to both the C
  769. and the C++ compilers) when building for the build host. When
  770. building in the ``-native`` context, :term:`CPPFLAGS`
  771. is set to the value of this variable by default.
  772. :term:`BUILD_CXXFLAGS`
  773. Specifies the flags to pass to the C++ compiler when building for the
  774. build host. When building in the ``-native`` context,
  775. :term:`CXXFLAGS` is set to the value of this variable
  776. by default.
  777. :term:`BUILD_FC`
  778. Specifies the Fortran compiler command for the build host. By
  779. default, :term:`BUILD_FC` points to Gfortran and passes as arguments the
  780. value of :term:`BUILD_CC_ARCH`, assuming
  781. :term:`BUILD_CC_ARCH` is set.
  782. :term:`BUILD_LD`
  783. Specifies the linker command for the build host. By default,
  784. :term:`BUILD_LD` points to the GNU linker (ld) and passes as arguments
  785. the value of :term:`BUILD_LD_ARCH`, assuming
  786. :term:`BUILD_LD_ARCH` is set.
  787. :term:`BUILD_LD_ARCH`
  788. Specifies architecture-specific linker flags for the build host. By
  789. default, the value of :term:`BUILD_LD_ARCH` is empty.
  790. :term:`BUILD_LDFLAGS`
  791. Specifies the flags to pass to the linker when building for the build
  792. host. When building in the ``-native`` context,
  793. :term:`LDFLAGS` is set to the value of this variable
  794. by default.
  795. :term:`BUILD_OPTIMIZATION`
  796. Specifies the optimization flags passed to the C compiler when
  797. building for the build host or the SDK. The flags are passed through
  798. the :term:`BUILD_CFLAGS` and
  799. :term:`BUILDSDK_CFLAGS` default values.
  800. The default value of the :term:`BUILD_OPTIMIZATION` variable is "-O2
  801. -pipe".
  802. :term:`BUILD_OS`
  803. Specifies the operating system in use on the build host (e.g.
  804. "linux"). The OpenEmbedded build system sets the value of
  805. :term:`BUILD_OS` from the OS reported by the ``uname`` command --- the
  806. first word, converted to lower-case characters.
  807. :term:`BUILD_PREFIX`
  808. The toolchain binary prefix used for native recipes. The OpenEmbedded
  809. build system uses the :term:`BUILD_PREFIX` value to set the
  810. :term:`TARGET_PREFIX` when building for :ref:`ref-classes-native` recipes.
  811. :term:`BUILD_STRIP`
  812. Specifies the command to be used to strip debugging symbols from
  813. binaries produced for the build host. By default, :term:`BUILD_STRIP`
  814. points to
  815. ``${``\ :term:`BUILD_PREFIX`\ ``}strip``.
  816. :term:`BUILD_SYS`
  817. Specifies the system, including the architecture and the operating
  818. system, to use when building for the build host (i.e. when building
  819. :ref:`ref-classes-native` recipes).
  820. The OpenEmbedded build system automatically sets this variable based
  821. on :term:`BUILD_ARCH`,
  822. :term:`BUILD_VENDOR`, and
  823. :term:`BUILD_OS`. You do not need to set the
  824. :term:`BUILD_SYS` variable yourself.
  825. :term:`BUILD_VENDOR`
  826. Specifies the vendor name to use when building for the build host.
  827. The default value is an empty string ("").
  828. :term:`BUILDDIR`
  829. Points to the location of the :term:`Build Directory`. You can define
  830. this directory indirectly through the :ref:`structure-core-script` script
  831. by passing in a :term:`Build Directory` path when you run the script. If
  832. you run the script and do not provide a :term:`Build Directory` path, the
  833. :term:`BUILDDIR` defaults to ``build`` in the current directory.
  834. :term:`BUILDHISTORY_COMMIT`
  835. When inheriting the :ref:`ref-classes-buildhistory` class, this variable
  836. specifies whether or not to commit the build history output in a local
  837. Git repository. If set to "1", this local repository will be maintained
  838. automatically by the :ref:`ref-classes-buildhistory` class and a commit
  839. will be created on every build for changes to each top-level subdirectory
  840. of the build history output (images, packages, and sdk). If you want to
  841. track changes to build history over time, you should set this value to
  842. "1".
  843. By default, the :ref:`ref-classes-buildhistory` class
  844. enables committing the buildhistory output in a local Git repository::
  845. BUILDHISTORY_COMMIT ?= "1"
  846. :term:`BUILDHISTORY_COMMIT_AUTHOR`
  847. When inheriting the :ref:`ref-classes-buildhistory`
  848. class, this variable specifies the author to use for each Git commit.
  849. In order for the :term:`BUILDHISTORY_COMMIT_AUTHOR` variable to work, the
  850. :term:`BUILDHISTORY_COMMIT` variable must
  851. be set to "1".
  852. Git requires that the value you provide for the
  853. :term:`BUILDHISTORY_COMMIT_AUTHOR` variable takes the form of "name
  854. email@host". Providing an email address or host that is not valid
  855. does not produce an error.
  856. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  857. as follows::
  858. BUILDHISTORY_COMMIT_AUTHOR ?= "buildhistory <buildhistory@${DISTRO}>"
  859. :term:`BUILDHISTORY_DIR`
  860. When inheriting the :ref:`ref-classes-buildhistory`
  861. class, this variable specifies the directory in which build history
  862. information is kept. For more information on how the variable works,
  863. see the :ref:`ref-classes-buildhistory` class.
  864. By default, the :ref:`ref-classes-buildhistory` class sets the directory
  865. as follows::
  866. BUILDHISTORY_DIR ?= "${TOPDIR}/buildhistory"
  867. :term:`BUILDHISTORY_FEATURES`
  868. When inheriting the :ref:`ref-classes-buildhistory`
  869. class, this variable specifies the build history features to be
  870. enabled. For more information on how build history works, see the
  871. ":ref:`dev-manual/build-quality:maintaining build output quality`"
  872. section in the Yocto Project Development Tasks Manual.
  873. You can specify these features in the form of a space-separated list:
  874. - *image:* Analysis of the contents of images, which includes the
  875. list of installed packages among other things.
  876. - *package:* Analysis of the contents of individual packages.
  877. - *sdk:* Analysis of the contents of the software development kit
  878. (SDK).
  879. - *task:* Save output file signatures for
  880. :ref:`shared state <overview-manual/concepts:shared state cache>`
  881. (sstate) tasks.
  882. This saves one file per task and lists the SHA-256 checksums for
  883. each file staged (i.e. the output of the task).
  884. By default, the :ref:`ref-classes-buildhistory` class enables the
  885. following features::
  886. BUILDHISTORY_FEATURES ?= "image package sdk"
  887. :term:`BUILDHISTORY_IMAGE_FILES`
  888. When inheriting the :ref:`ref-classes-buildhistory`
  889. class, this variable specifies a list of paths to files copied from
  890. the image contents into the build history directory under an
  891. "image-files" directory in the directory for the image, so that you
  892. can track the contents of each file. The default is to copy
  893. ``/etc/passwd`` and ``/etc/group``, which allows you to monitor for
  894. changes in user and group entries. You can modify the list to include
  895. any file. Specifying an invalid path does not produce an error.
  896. Consequently, you can include files that might not always be present.
  897. By default, the :ref:`ref-classes-buildhistory` class provides paths to
  898. the following files::
  899. BUILDHISTORY_IMAGE_FILES ?= "/etc/passwd /etc/group"
  900. :term:`BUILDHISTORY_PATH_PREFIX_STRIP`
  901. When inheriting the :ref:`ref-classes-buildhistory`
  902. class, this variable specifies a common path prefix that should be
  903. stripped off the beginning of paths in the task signature list when the
  904. ``task`` feature is active in :term:`BUILDHISTORY_FEATURES`. This can be
  905. useful when build history is populated from multiple sources that may not
  906. all use the same top level directory.
  907. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  908. as follows::
  909. BUILDHISTORY_PATH_PREFIX_STRIP ?= ""
  910. In this case, no prefixes will be stripped.
  911. :term:`BUILDHISTORY_PUSH_REPO`
  912. When inheriting the :ref:`ref-classes-buildhistory` class, this variable
  913. optionally specifies a remote repository to which build history pushes
  914. Git changes. In order for :term:`BUILDHISTORY_PUSH_REPO` to work,
  915. :term:`BUILDHISTORY_COMMIT` must be set to "1".
  916. The repository should correspond to a remote address that specifies a
  917. repository as understood by Git, or alternatively to a remote name
  918. that you have set up manually using ``git remote`` within the local
  919. repository.
  920. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  921. as follows::
  922. BUILDHISTORY_PUSH_REPO ?= ""
  923. :term:`BUILDNAME`
  924. See :term:`bitbake:BUILDNAME` in the BitBake manual.
  925. :term:`BUILDSDK_CFLAGS`
  926. Specifies the flags to pass to the C compiler when building for the
  927. SDK. When building in the ``nativesdk-`` context,
  928. :term:`CFLAGS` is set to the value of this variable by
  929. default.
  930. :term:`BUILDSDK_CPPFLAGS`
  931. Specifies the flags to pass to the C pre-processor (i.e. to both the
  932. C and the C++ compilers) when building for the SDK. When building in
  933. the ``nativesdk-`` context, :term:`CPPFLAGS` is set
  934. to the value of this variable by default.
  935. :term:`BUILDSDK_CXXFLAGS`
  936. Specifies the flags to pass to the C++ compiler when building for the
  937. SDK. When building in the ``nativesdk-`` context,
  938. :term:`CXXFLAGS` is set to the value of this variable
  939. by default.
  940. :term:`BUILDSDK_LDFLAGS`
  941. Specifies the flags to pass to the linker when building for the SDK.
  942. When building in the ``nativesdk-`` context,
  943. :term:`LDFLAGS` is set to the value of this variable
  944. by default.
  945. :term:`BUILDSTATS_BASE`
  946. Points to the location of the directory that holds build statistics
  947. when you use and enable the :ref:`ref-classes-buildstats` class. The
  948. :term:`BUILDSTATS_BASE` directory defaults to
  949. ``${``\ :term:`TMPDIR`\ ``}/buildstats/``.
  950. :term:`BUSYBOX_SPLIT_SUID`
  951. For the BusyBox recipe, specifies whether to split the output
  952. executable file into two parts: one for features that require
  953. ``setuid root``, and one for the remaining features (i.e. those that
  954. do not require ``setuid root``).
  955. The :term:`BUSYBOX_SPLIT_SUID` variable defaults to "1", which results in
  956. splitting the output executable file. Set the variable to "0" to get
  957. a single output executable file.
  958. :term:`BZRDIR`
  959. See :term:`bitbake:BZRDIR` in the BitBake manual.
  960. :term:`CACHE`
  961. Specifies the directory BitBake uses to store a cache of the
  962. :term:`Metadata` so it does not need to be parsed every time
  963. BitBake is started.
  964. :term:`CARGO_INSTALL_LIBRARIES`
  965. When inheriting the :ref:`ref-classes-cargo` class, the variable
  966. :term:`CARGO_INSTALL_LIBRARIES` can be set to a non-empty value by
  967. individual recipes to enable the installation of the libraries the
  968. recipe has built in ``${B}/target/${CARGO_TARGET_SUBDIR}`` (files ending
  969. with ``.so`` or ``.rlib``). By default this variable is not defined and
  970. libraries are not installed, to replicate the behavior of the ``cargo
  971. install`` command.
  972. :term:`CC`
  973. The minimal command and arguments used to run the C compiler.
  974. :term:`CFLAGS`
  975. Specifies the flags to pass to the C compiler. This variable is
  976. exported to an environment variable and thus made visible to the
  977. software being built during the compilation step.
  978. Default initialization for :term:`CFLAGS` varies depending on what is
  979. being built:
  980. - :term:`TARGET_CFLAGS` when building for the
  981. target
  982. - :term:`BUILD_CFLAGS` when building for the
  983. build host (i.e. ``-native``)
  984. - :term:`BUILDSDK_CFLAGS` when building for
  985. an SDK (i.e. ``nativesdk-``)
  986. :term:`CHECKLAYER_REQUIRED_TESTS`
  987. The :term:`CHECKLAYER_REQUIRED_TESTS` variable lists the QA tests that are
  988. required to be enabled to pass the Yocto Project Compatible status for a
  989. layer. It is meant to be a read-only variable and any change to the
  990. variable may be done with the approval of the :oe_wiki:`Technical Steering
  991. Committee (TSC) </TSC>`.
  992. For more information on the Yocto Project Compatible status, see
  993. the :ref:`dev-manual/layers:Making Sure Your Layer is Compatible With
  994. Yocto Project` section of the Yocto Project Development Manual.
  995. :term:`CLASSOVERRIDE`
  996. An internal variable specifying the special class override that
  997. should currently apply (e.g. "class-target", "class-native", and so
  998. forth). The classes that use this variable (e.g.
  999. :ref:`ref-classes-native`, :ref:`ref-classes-nativesdk`, and so forth)
  1000. set the variable to appropriate values.
  1001. .. note::
  1002. :term:`CLASSOVERRIDE` gets its default "class-target" value from the
  1003. ``bitbake.conf`` file.
  1004. As an example, the following override allows you to install extra
  1005. files, but only when building for the target::
  1006. do_install:append:class-target() {
  1007. install my-extra-file ${D}${sysconfdir}
  1008. }
  1009. Here is an example where ``FOO`` is set to
  1010. "native" when building for the build host, and to "other" when not
  1011. building for the build host::
  1012. FOO:class-native = "native"
  1013. FOO = "other"
  1014. The underlying mechanism behind :term:`CLASSOVERRIDE` is simply
  1015. that it is included in the default value of
  1016. :term:`OVERRIDES`.
  1017. :term:`CLEANBROKEN`
  1018. If set to "1" within a recipe, :term:`CLEANBROKEN` specifies that the
  1019. ``make clean`` command does not work for the software being built.
  1020. Consequently, the OpenEmbedded build system will not try to run
  1021. ``make clean`` during the :ref:`ref-tasks-configure`
  1022. task, which is the default behavior.
  1023. :term:`COMBINED_FEATURES`
  1024. Provides a list of hardware features that are enabled in both
  1025. :term:`MACHINE_FEATURES` and
  1026. :term:`DISTRO_FEATURES`. This select list of
  1027. features contains features that make sense to be controlled both at
  1028. the machine and distribution configuration level. For example, the
  1029. "bluetooth" feature requires hardware support but should also be
  1030. optional at the distribution level, in case the hardware supports
  1031. Bluetooth but you do not ever intend to use it.
  1032. :term:`COMMERCIAL_AUDIO_PLUGINS`
  1033. This variable is specific to the :yocto_git:`GStreamer recipes
  1034. </poky/tree/meta/recipes-multimedia/gstreamer/gstreamer1.0-meta-base.bb>`.
  1035. It allows to build the GStreamer `"ugly"
  1036. <https://github.com/GStreamer/gst-plugins-ugly>`__ and
  1037. `"bad" <https://github.com/GStreamer/gst-plugins-bad>`__ audio plugins.
  1038. See the :ref:`dev-manual/licenses:other variables related to commercial licenses`
  1039. section for usage details.
  1040. :term:`COMMERCIAL_VIDEO_PLUGINS`
  1041. This variable is specific to the :yocto_git:`GStreamer recipes
  1042. </poky/tree/meta/recipes-multimedia/gstreamer/gstreamer1.0-meta-base.bb>`.
  1043. It allows to build the GStreamer `"ugly"
  1044. <https://github.com/GStreamer/gst-plugins-ugly>`__ and
  1045. `"bad" <https://github.com/GStreamer/gst-plugins-bad>`__ video plugins.
  1046. See the :ref:`dev-manual/licenses:other variables related to commercial licenses`
  1047. section for usage details.
  1048. :term:`COMMON_LICENSE_DIR`
  1049. Points to ``meta/files/common-licenses`` in the
  1050. :term:`Source Directory`, which is where generic license
  1051. files reside.
  1052. :term:`COMPATIBLE_HOST`
  1053. A regular expression that resolves to one or more hosts (when the
  1054. recipe is native) or one or more targets (when the recipe is
  1055. non-native) with which a recipe is compatible. The regular expression
  1056. is matched against :term:`HOST_SYS`. You can use the
  1057. variable to stop recipes from being built for classes of systems with
  1058. which the recipes are not compatible. Stopping these builds is
  1059. particularly useful with kernels. The variable also helps to increase
  1060. parsing speed since the build system skips parsing recipes not
  1061. compatible with the current system.
  1062. :term:`COMPATIBLE_MACHINE`
  1063. A regular expression that resolves to one or more target machines
  1064. with which a recipe is compatible. The regular expression is matched
  1065. against :term:`MACHINEOVERRIDES`. You can use
  1066. the variable to stop recipes from being built for machines with which
  1067. the recipes are not compatible. Stopping these builds is particularly
  1068. useful with kernels. The variable also helps to increase parsing
  1069. speed since the build system skips parsing recipes not compatible
  1070. with the current machine.
  1071. If one wants to have a recipe only available for some architectures
  1072. (here ``aarch64`` and ``mips64``), the following can be used::
  1073. COMPATIBLE_MACHINE = "^$"
  1074. COMPATIBLE_MACHINE:arch64 = "^(aarch64)$"
  1075. COMPATIBLE_MACHINE:mips64 = "^(mips64)$"
  1076. The first line means "match all machines whose :term:`MACHINEOVERRIDES`
  1077. contains the empty string", which will always be none.
  1078. The second is for matching all machines whose :term:`MACHINEOVERRIDES`
  1079. contains one override which is exactly ``aarch64``.
  1080. The third is for matching all machines whose :term:`MACHINEOVERRIDES`
  1081. contains one override which is exactly ``mips64``.
  1082. The same could be achieved with::
  1083. COMPATIBLE_MACHINE = "^(aarch64|mips64)$"
  1084. .. note::
  1085. When :term:`COMPATIBLE_MACHINE` is set in a recipe inherits from
  1086. native, the recipe is always skipped. All native recipes must be
  1087. entirely target independent and should not rely on :term:`MACHINE`.
  1088. :term:`COMPLEMENTARY_GLOB`
  1089. Defines wildcards to match when installing a list of complementary
  1090. packages for all the packages explicitly (or implicitly) installed in
  1091. an image.
  1092. The :term:`COMPLEMENTARY_GLOB` variable uses Unix filename pattern matching
  1093. (`fnmatch <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__),
  1094. which is similar to the Unix style pathname pattern expansion
  1095. (`glob <https://docs.python.org/3/library/glob.html>`__).
  1096. The resulting list of complementary packages is associated with an
  1097. item that can be added to
  1098. :term:`IMAGE_FEATURES`. An example usage of
  1099. this is the "dev-pkgs" item that when added to :term:`IMAGE_FEATURES`
  1100. will install -dev packages (containing headers and other development
  1101. files) for every package in the image.
  1102. To add a new feature item pointing to a wildcard, use a variable flag
  1103. to specify the feature item name and use the value to specify the
  1104. wildcard. Here is an example::
  1105. COMPLEMENTARY_GLOB[dev-pkgs] = '*-dev'
  1106. .. note::
  1107. When installing complementary packages, recommends relationships
  1108. (set via :term:`RRECOMMENDS`) are always ignored.
  1109. :term:`COMPONENTS_DIR`
  1110. Stores sysroot components for each recipe. The OpenEmbedded build
  1111. system uses :term:`COMPONENTS_DIR` when constructing recipe-specific
  1112. sysroots for other recipes.
  1113. The default is
  1114. "``${``\ :term:`STAGING_DIR`\ ``}-components``."
  1115. (i.e.
  1116. "``${``\ :term:`TMPDIR`\ ``}/sysroots-components``").
  1117. :term:`CONF_VERSION`
  1118. Tracks the version of the local configuration file (i.e.
  1119. ``local.conf``). The value for :term:`CONF_VERSION` increments each time
  1120. ``build/conf/`` compatibility changes.
  1121. :term:`CONFFILES`
  1122. Identifies editable or configurable files that are part of a package.
  1123. If the Package Management System (PMS) is being used to update
  1124. packages on the target system, it is possible that configuration
  1125. files you have changed after the original installation and that you
  1126. now want to remain unchanged are overwritten. In other words,
  1127. editable files might exist in the package that you do not want reset
  1128. as part of the package update process. You can use the :term:`CONFFILES`
  1129. variable to list the files in the package that you wish to prevent
  1130. the PMS from overwriting during this update process.
  1131. To use the :term:`CONFFILES` variable, provide a package name override
  1132. that identifies the resulting package. Then, provide a
  1133. space-separated list of files. Here is an example::
  1134. CONFFILES:${PN} += "${sysconfdir}/file1 \
  1135. ${sysconfdir}/file2 ${sysconfdir}/file3"
  1136. There is a relationship between the :term:`CONFFILES` and :term:`FILES`
  1137. variables. The files listed within :term:`CONFFILES` must be a subset of
  1138. the files listed within :term:`FILES`. Because the configuration files
  1139. you provide with :term:`CONFFILES` are simply being identified so that
  1140. the PMS will not overwrite them, it makes sense that the files must
  1141. already be included as part of the package through the :term:`FILES`
  1142. variable.
  1143. .. note::
  1144. When specifying paths as part of the :term:`CONFFILES` variable, it is
  1145. good practice to use appropriate path variables.
  1146. For example, ``${sysconfdir}`` rather than ``/etc`` or ``${bindir}``
  1147. rather than ``/usr/bin``. You can find a list of these variables at
  1148. the top of the ``meta/conf/bitbake.conf`` file in the
  1149. :term:`Source Directory`.
  1150. :term:`CONFIG_INITRAMFS_SOURCE`
  1151. Identifies the initial RAM filesystem (:term:`Initramfs`) source files. The
  1152. OpenEmbedded build system receives and uses this kernel Kconfig
  1153. variable as an environment variable. By default, the variable is set
  1154. to null ("").
  1155. The :term:`CONFIG_INITRAMFS_SOURCE` can be either a single cpio archive
  1156. with a ``.cpio`` suffix or a space-separated list of directories and
  1157. files for building the :term:`Initramfs` image. A cpio archive should contain
  1158. a filesystem archive to be used as an :term:`Initramfs` image. Directories
  1159. should contain a filesystem layout to be included in the :term:`Initramfs`
  1160. image. Files should contain entries according to the format described
  1161. by the ``usr/gen_init_cpio`` program in the kernel tree.
  1162. If you specify multiple directories and files, the :term:`Initramfs` image
  1163. will be the aggregate of all of them.
  1164. For information on creating an :term:`Initramfs`, see the
  1165. ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  1166. in the Yocto Project Development Tasks Manual.
  1167. :term:`CONFIG_SITE`
  1168. A list of files that contains ``autoconf`` test results relevant to
  1169. the current build. This variable is used by the Autotools utilities
  1170. when running ``configure``.
  1171. :term:`CONFIGURE_FLAGS`
  1172. The minimal arguments for GNU configure.
  1173. :term:`CONFLICT_DISTRO_FEATURES`
  1174. When inheriting the :ref:`ref-classes-features_check`
  1175. class, this variable identifies distribution features that would be
  1176. in conflict should the recipe be built. In other words, if the
  1177. :term:`CONFLICT_DISTRO_FEATURES` variable lists a feature that also
  1178. appears in :term:`DISTRO_FEATURES` within the current configuration, then
  1179. the recipe will be skipped, and if the build system attempts to build
  1180. the recipe then an error will be triggered.
  1181. :term:`CONVERSION_CMD`
  1182. This variable is used for storing image conversion commands.
  1183. Image conversion can convert an image into different objects like:
  1184. - Compressed version of the image
  1185. - Checksums for the image
  1186. An example of :term:`CONVERSION_CMD` from :ref:`ref-classes-image_types`
  1187. class is::
  1188. CONVERSION_CMD:lzo = "lzop -9 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
  1189. :term:`COPY_LIC_DIRS`
  1190. If set to "1" along with the
  1191. :term:`COPY_LIC_MANIFEST` variable, the
  1192. OpenEmbedded build system copies into the image the license files,
  1193. which are located in ``/usr/share/common-licenses``, for each
  1194. package. The license files are placed in directories within the image
  1195. itself during build time.
  1196. .. note::
  1197. The :term:`COPY_LIC_DIRS` does not offer a path for adding licenses for
  1198. newly installed packages to an image, which might be most suitable for
  1199. read-only filesystems that cannot be upgraded. See the
  1200. :term:`LICENSE_CREATE_PACKAGE` variable for additional information.
  1201. You can also reference the ":ref:`dev-manual/licenses:providing license text`"
  1202. section in the Yocto Project Development Tasks Manual for
  1203. information on providing license text.
  1204. :term:`COPY_LIC_MANIFEST`
  1205. If set to "1", the OpenEmbedded build system copies the license
  1206. manifest for the image to
  1207. ``/usr/share/common-licenses/license.manifest`` within the image
  1208. itself during build time.
  1209. .. note::
  1210. The :term:`COPY_LIC_MANIFEST` does not offer a path for adding licenses for
  1211. newly installed packages to an image, which might be most suitable for
  1212. read-only filesystems that cannot be upgraded. See the
  1213. :term:`LICENSE_CREATE_PACKAGE` variable for additional information.
  1214. You can also reference the ":ref:`dev-manual/licenses:providing license text`"
  1215. section in the Yocto Project Development Tasks Manual for
  1216. information on providing license text.
  1217. :term:`COPYLEFT_LICENSE_EXCLUDE`
  1218. A space-separated list of licenses to exclude from the source archived by
  1219. the :ref:`ref-classes-archiver` class. In other words, if a license in a
  1220. recipe's :term:`LICENSE` value is in the value of
  1221. :term:`COPYLEFT_LICENSE_EXCLUDE`, then its source is not archived by the
  1222. class.
  1223. .. note::
  1224. The :term:`COPYLEFT_LICENSE_EXCLUDE` variable takes precedence over the
  1225. :term:`COPYLEFT_LICENSE_INCLUDE` variable.
  1226. The default value, which is "CLOSED Proprietary", for
  1227. :term:`COPYLEFT_LICENSE_EXCLUDE` is set by the
  1228. :ref:`ref-classes-copyleft_filter` class, which
  1229. is inherited by the :ref:`ref-classes-archiver` class.
  1230. :term:`COPYLEFT_LICENSE_INCLUDE`
  1231. A space-separated list of licenses to include in the source archived
  1232. by the :ref:`ref-classes-archiver` class. In other
  1233. words, if a license in a recipe's :term:`LICENSE`
  1234. value is in the value of :term:`COPYLEFT_LICENSE_INCLUDE`, then its
  1235. source is archived by the class.
  1236. The default value is set by the :ref:`ref-classes-copyleft_filter` class,
  1237. which is inherited by the :ref:`ref-classes-archiver` class. The default
  1238. value includes "GPL*", "LGPL*", and "AGPL*".
  1239. :term:`COPYLEFT_PN_EXCLUDE`
  1240. A list of recipes to exclude in the source archived by the
  1241. :ref:`ref-classes-archiver` class. The :term:`COPYLEFT_PN_EXCLUDE`
  1242. variable overrides the license inclusion and exclusion caused through the
  1243. :term:`COPYLEFT_LICENSE_INCLUDE` and :term:`COPYLEFT_LICENSE_EXCLUDE`
  1244. variables, respectively.
  1245. The default value, which is "" indicating to not explicitly exclude
  1246. any recipes by name, for :term:`COPYLEFT_PN_EXCLUDE` is set by the
  1247. :ref:`ref-classes-copyleft_filter` class, which is inherited by the
  1248. :ref:`ref-classes-archiver` class.
  1249. :term:`COPYLEFT_PN_INCLUDE`
  1250. A list of recipes to include in the source archived by the
  1251. :ref:`ref-classes-archiver` class. The :term:`COPYLEFT_PN_INCLUDE`
  1252. variable overrides the license inclusion and exclusion caused through the
  1253. :term:`COPYLEFT_LICENSE_INCLUDE` and :term:`COPYLEFT_LICENSE_EXCLUDE`
  1254. variables, respectively.
  1255. The default value, which is "" indicating to not explicitly include
  1256. any recipes by name, for :term:`COPYLEFT_PN_INCLUDE` is set by the
  1257. :ref:`ref-classes-copyleft_filter` class, which is inherited by the
  1258. :ref:`ref-classes-archiver` class.
  1259. :term:`COPYLEFT_RECIPE_TYPES`
  1260. A space-separated list of recipe types to include in the source
  1261. archived by the :ref:`archiver <ref-classes-archiver>` class.
  1262. Recipe types are ``target``, :ref:`ref-classes-native`,
  1263. :ref:`ref-classes-nativesdk`, :ref:`ref-classes-cross`,
  1264. :ref:`ref-classes-crosssdk`, and :ref:`ref-classes-cross-canadian`.
  1265. The default value, which is "target*", for :term:`COPYLEFT_RECIPE_TYPES`
  1266. is set by the :ref:`ref-classes-copyleft_filter` class, which is
  1267. inherited by the :ref:`ref-classes-archiver` class.
  1268. :term:`CORE_IMAGE_EXTRA_INSTALL`
  1269. Specifies the list of packages to be added to the image. You should
  1270. only set this variable in the ``local.conf`` configuration file found
  1271. in the :term:`Build Directory`.
  1272. This variable replaces ``POKY_EXTRA_INSTALL``, which is no longer
  1273. supported.
  1274. :term:`COREBASE`
  1275. Specifies the parent directory of the OpenEmbedded-Core Metadata
  1276. layer (i.e. ``meta``).
  1277. It is an important distinction that :term:`COREBASE` points to the parent
  1278. of this layer and not the layer itself. Consider an example where you
  1279. have cloned the Poky Git repository and retained the ``poky`` name
  1280. for your local copy of the repository. In this case, :term:`COREBASE`
  1281. points to the ``poky`` folder because it is the parent directory of
  1282. the ``poky/meta`` layer.
  1283. :term:`COREBASE_FILES`
  1284. Lists files from the :term:`COREBASE` directory that
  1285. should be copied other than the layers listed in the
  1286. ``bblayers.conf`` file. The :term:`COREBASE_FILES` variable allows
  1287. to copy metadata from the OpenEmbedded build system
  1288. into the extensible SDK.
  1289. Explicitly listing files in :term:`COREBASE` is needed because it
  1290. typically contains build directories and other files that should not
  1291. normally be copied into the extensible SDK. Consequently, the value
  1292. of :term:`COREBASE_FILES` is used in order to only copy the files that
  1293. are actually needed.
  1294. :term:`CPP`
  1295. The minimal command and arguments used to run the C preprocessor.
  1296. :term:`CPPFLAGS`
  1297. Specifies the flags to pass to the C pre-processor (i.e. to both the
  1298. C and the C++ compilers). This variable is exported to an environment
  1299. variable and thus made visible to the software being built during the
  1300. compilation step.
  1301. Default initialization for :term:`CPPFLAGS` varies depending on what is
  1302. being built:
  1303. - :term:`TARGET_CPPFLAGS` when building for
  1304. the target
  1305. - :term:`BUILD_CPPFLAGS` when building for the
  1306. build host (i.e. ``-native``)
  1307. - :term:`BUILDSDK_CPPFLAGS` when building
  1308. for an SDK (i.e. ``nativesdk-``)
  1309. :term:`CROSS_COMPILE`
  1310. The toolchain binary prefix for the target tools. The
  1311. :term:`CROSS_COMPILE` variable is the same as the
  1312. :term:`TARGET_PREFIX` variable.
  1313. .. note::
  1314. The OpenEmbedded build system sets the :term:`CROSS_COMPILE`
  1315. variable only in certain contexts (e.g. when building for kernel
  1316. and kernel module recipes).
  1317. :term:`CVE_CHECK_CREATE_MANIFEST`
  1318. Specifies whether to create a CVE manifest to place in the deploy
  1319. directory. The default is "1".
  1320. :term:`CVE_CHECK_IGNORE`
  1321. This variable is deprecated and should be replaced by :term:`CVE_STATUS`.
  1322. :term:`CVE_CHECK_MANIFEST_JSON`
  1323. Specifies the path to the CVE manifest in JSON format. See
  1324. :term:`CVE_CHECK_CREATE_MANIFEST`.
  1325. :term:`CVE_CHECK_MANIFEST_JSON_SUFFIX`
  1326. Allows to modify the JSON manifest suffix. See
  1327. :term:`CVE_CHECK_MANIFEST_JSON`.
  1328. :term:`CVE_CHECK_REPORT_PATCHED`
  1329. Specifies whether or not the :ref:`ref-classes-cve-check`
  1330. class should report patched or ignored CVEs. The default is "1", but you
  1331. may wish to set it to "0" if you do not need patched or ignored CVEs in
  1332. the logs.
  1333. :term:`CVE_CHECK_SHOW_WARNINGS`
  1334. Specifies whether or not the :ref:`ref-classes-cve-check`
  1335. class should generate warning messages on the console when unpatched
  1336. CVEs are found. The default is "1", but you may wish to set it to "0" if
  1337. you are already examining/processing the logs after the build has
  1338. completed and thus do not need the warning messages.
  1339. :term:`CVE_CHECK_SKIP_RECIPE`
  1340. The list of package names (:term:`PN`) for which
  1341. CVEs (Common Vulnerabilities and Exposures) are ignored.
  1342. :term:`CVE_DB_INCR_UPDATE_AGE_THRES`
  1343. Specifies the maximum age of the CVE database in seconds for an
  1344. incremental update (instead of a full-download). Use "0" to force a
  1345. full-download.
  1346. :term:`CVE_DB_UPDATE_INTERVAL`
  1347. Specifies the CVE database update interval in seconds, as used by
  1348. ``cve-update-db-native``. The default value is "86400" i.e. once a day
  1349. (24*60*60). If the value is set to "0" then the update will be forced
  1350. every time. Alternatively, a negative value e.g. "-1" will disable
  1351. updates entirely.
  1352. :term:`CVE_PRODUCT`
  1353. In a recipe, defines the name used to match the recipe name
  1354. against the name in the upstream `NIST CVE database <https://nvd.nist.gov/>`__.
  1355. The default is ${:term:`BPN`} (except for recipes that inherit the
  1356. :ref:`ref-classes-pypi` class where it is set based upon
  1357. :term:`PYPI_PACKAGE`). If it does not match the name in the NIST CVE
  1358. database or matches with multiple entries in the database, the default
  1359. value needs to be changed.
  1360. Here is an example from the :oe_layerindex:`Berkeley DB recipe </layerindex/recipe/544>`::
  1361. CVE_PRODUCT = "oracle_berkeley_db berkeley_db"
  1362. Sometimes the product name is not specific enough, for example
  1363. "tar" has been matching CVEs for the GNU ``tar`` package and also
  1364. the ``node-tar`` node.js extension. To avoid this problem, use the
  1365. vendor name as a prefix. The syntax for this is::
  1366. CVE_PRODUCT = "vendor:package"
  1367. :term:`CVE_STATUS`
  1368. The CVE ID which is patched or should be ignored. Here is
  1369. an example from the :oe_layerindex:`Python3 recipe</layerindex/recipe/23823>`::
  1370. CVE_STATUS[CVE-2020-15523] = "not-applicable-platform: Issue only applies on Windows"
  1371. It has the format "reason: description" and the description is optional.
  1372. The Reason is mapped to the final CVE state by mapping via
  1373. :term:`CVE_CHECK_STATUSMAP`. See :ref:`dev-manual/vulnerabilities:fixing vulnerabilities in recipes`
  1374. for details.
  1375. :term:`CVE_STATUS_GROUPS`
  1376. If there are many CVEs with the same status and reason, they can by simplified by using this
  1377. variable instead of many similar lines with :term:`CVE_STATUS`::
  1378. CVE_STATUS_GROUPS = "CVE_STATUS_WIN CVE_STATUS_PATCHED"
  1379. CVE_STATUS_WIN = "CVE-1234-0001 CVE-1234-0002"
  1380. CVE_STATUS_WIN[status] = "not-applicable-platform: Issue only applies on Windows"
  1381. CVE_STATUS_PATCHED = "CVE-1234-0003 CVE-1234-0004"
  1382. CVE_STATUS_PATCHED[status] = "fixed-version: Fixed externally"
  1383. :term:`CVE_CHECK_STATUSMAP`
  1384. Mapping variable for all possible reasons of :term:`CVE_STATUS`:
  1385. ``Patched``, ``Unpatched`` and ``Ignored``.
  1386. See :ref:`ref-classes-cve-check` or ``meta/conf/cve-check-map.conf`` for more details::
  1387. CVE_CHECK_STATUSMAP[cpe-incorrect] = "Ignored"
  1388. :term:`CVE_VERSION`
  1389. In a recipe, defines the version used to match the recipe version
  1390. against the version in the `NIST CVE database <https://nvd.nist.gov/>`__
  1391. when usign :ref:`ref-classes-cve-check`.
  1392. The default is ${:term:`PV`} but if recipes use custom version numbers
  1393. which do not map to upstream software component release versions and the versions
  1394. used in the CVE database, then this variable can be used to set the
  1395. version number for :ref:`ref-classes-cve-check`. Example::
  1396. CVE_VERSION = "2.39"
  1397. :term:`CVSDIR`
  1398. The directory in which files checked out under the CVS system are
  1399. stored.
  1400. :term:`CXX`
  1401. The minimal command and arguments used to run the C++ compiler.
  1402. :term:`CXXFLAGS`
  1403. Specifies the flags to pass to the C++ compiler. This variable is
  1404. exported to an environment variable and thus made visible to the
  1405. software being built during the compilation step.
  1406. Default initialization for :term:`CXXFLAGS` varies depending on what is
  1407. being built:
  1408. - :term:`TARGET_CXXFLAGS` when building for
  1409. the target
  1410. - :term:`BUILD_CXXFLAGS` when building for the
  1411. build host (i.e. ``-native``)
  1412. - :term:`BUILDSDK_CXXFLAGS` when building
  1413. for an SDK (i.e. ``nativesdk-``)
  1414. :term:`D`
  1415. The destination directory. The location in the :term:`Build Directory`
  1416. where components are installed by the
  1417. :ref:`ref-tasks-install` task. This location defaults
  1418. to::
  1419. ${WORKDIR}/image
  1420. .. note::
  1421. Tasks that read from or write to this directory should run under
  1422. :ref:`fakeroot <overview-manual/concepts:fakeroot and pseudo>`.
  1423. :term:`DATE`
  1424. The date the build was started. Dates appear using the year, month,
  1425. and day (YMD) format (e.g. "20150209" for February 9th, 2015).
  1426. :term:`DATETIME`
  1427. The date and time on which the current build started. The format is
  1428. suitable for timestamps.
  1429. :term:`DEBIAN_NOAUTONAME`
  1430. When the :ref:`ref-classes-debian` class is inherited,
  1431. which is the default behavior, :term:`DEBIAN_NOAUTONAME` specifies a
  1432. particular package should not be renamed according to Debian library
  1433. package naming. You must use the package name as an override when you
  1434. set this variable. Here is an example from the ``fontconfig`` recipe::
  1435. DEBIAN_NOAUTONAME:fontconfig-utils = "1"
  1436. :term:`DEBIANNAME`
  1437. When the :ref:`ref-classes-debian` class is inherited,
  1438. which is the default behavior, :term:`DEBIANNAME` allows you to override
  1439. the library name for an individual package. Overriding the library
  1440. name in these cases is rare. You must use the package name as an
  1441. override when you set this variable. Here is an example from the
  1442. ``dbus`` recipe::
  1443. DEBIANNAME:${PN} = "dbus-1"
  1444. :term:`DEBUG_BUILD`
  1445. Specifies to build packages with debugging information. This
  1446. influences the value of the :term:`SELECTED_OPTIMIZATION` variable.
  1447. :term:`DEBUG_OPTIMIZATION`
  1448. The options to pass in :term:`TARGET_CFLAGS` and :term:`CFLAGS` when
  1449. compiling a system for debugging. This variable defaults to "-O
  1450. -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe".
  1451. :term:`DEBUG_PREFIX_MAP`
  1452. Allows to set C compiler options, such as ``-fdebug-prefix-map``,
  1453. ``-fmacro-prefix-map``, and ``-ffile-prefix-map``, which allow to
  1454. replace build-time paths by install-time ones in the debugging sections
  1455. of binaries. This makes compiler output files location independent,
  1456. at the cost of having to pass an extra command to tell the debugger
  1457. where source files are.
  1458. This is used by the Yocto Project to guarantee
  1459. :doc:`/test-manual/reproducible-builds` even when the source code of
  1460. a package uses the ``__FILE__`` or ``assert()`` macros. See the
  1461. `reproducible-builds.org <https://reproducible-builds.org/docs/build-path/>`__
  1462. website for details.
  1463. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  1464. not intended to be user-configurable.
  1465. :term:`DEFAULT_PREFERENCE`
  1466. Specifies a weak bias for recipe selection priority.
  1467. The most common usage of this is variable is to set it to "-1" within
  1468. a recipe for a development version of a piece of software. Using the
  1469. variable in this way causes the stable version of the recipe to build
  1470. by default in the absence of :term:`PREFERRED_VERSION` being used to
  1471. build the development version.
  1472. .. note::
  1473. The bias provided by :term:`DEFAULT_PREFERENCE` is weak and is overridden
  1474. by :term:`BBFILE_PRIORITY` if that variable is different between two
  1475. layers that contain different versions of the same recipe.
  1476. :term:`DEFAULT_TIMEZONE`
  1477. Specifies the time zone set in the image.
  1478. This variable causes the ``tzdata`` package to configure
  1479. ``${sysconfdir}/localtime`` accordingly. Valid values are all files
  1480. found in ``/usr/share/zoneinfo`` like ``CET`` or ``Asia/Baku``.
  1481. :term:`DEFAULTTUNE`
  1482. The default CPU and Application Binary Interface (ABI) tunings (i.e.
  1483. the "tune") used by the OpenEmbedded build system. The
  1484. :term:`DEFAULTTUNE` helps define
  1485. :term:`TUNE_FEATURES`.
  1486. The default tune is either implicitly or explicitly set by the
  1487. machine (:term:`MACHINE`). However, you can override
  1488. the setting using available tunes as defined with
  1489. :term:`AVAILTUNES`.
  1490. :term:`DEPENDS`
  1491. Lists a recipe's build-time dependencies. These are dependencies on
  1492. other recipes whose contents (e.g. headers and shared libraries) are
  1493. needed by the recipe at build time.
  1494. As an example, consider a recipe ``foo`` that contains the following
  1495. assignment::
  1496. DEPENDS = "bar"
  1497. The practical effect of the previous assignment is that all files
  1498. installed by bar will be available in the appropriate staging sysroot,
  1499. given by the :term:`STAGING_DIR* <STAGING_DIR>` variables, by the time
  1500. the :ref:`ref-tasks-configure` task for ``foo`` runs. This mechanism is
  1501. implemented by having :ref:`ref-tasks-configure` depend on the
  1502. :ref:`ref-tasks-populate_sysroot` task of each recipe listed in
  1503. :term:`DEPENDS`, through a
  1504. ``[``\ :ref:`deptask <bitbake-user-manual/bitbake-user-manual-metadata:variable flags>`\ ``]``
  1505. declaration in the :ref:`ref-classes-base` class.
  1506. .. note::
  1507. It seldom is necessary to reference, for example, :term:`STAGING_DIR_HOST`
  1508. explicitly. The standard classes and build-related variables are
  1509. configured to automatically use the appropriate staging sysroots.
  1510. As another example, :term:`DEPENDS` can also be used to add utilities
  1511. that run on the build machine during the build. For example, a recipe
  1512. that makes use of a code generator built by the recipe ``codegen``
  1513. might have the following::
  1514. DEPENDS = "codegen-native"
  1515. For more
  1516. information, see the :ref:`ref-classes-native` class and
  1517. the :term:`EXTRANATIVEPATH` variable.
  1518. .. note::
  1519. - :term:`DEPENDS` is a list of recipe names. Or, to be more precise,
  1520. it is a list of :term:`PROVIDES` names, which
  1521. usually match recipe names. Putting a package name such as
  1522. "foo-dev" in :term:`DEPENDS` does not make sense. Use "foo"
  1523. instead, as this will put files from all the packages that make
  1524. up ``foo``, which includes those from ``foo-dev``, into the
  1525. sysroot.
  1526. - One recipe having another recipe in :term:`DEPENDS` does not by
  1527. itself add any runtime dependencies between the packages
  1528. produced by the two recipes. However, as explained in the
  1529. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  1530. section in the Yocto Project Overview and Concepts Manual,
  1531. runtime dependencies will often be added automatically, meaning
  1532. :term:`DEPENDS` alone is sufficient for most recipes.
  1533. - Counterintuitively, :term:`DEPENDS` is often necessary even for
  1534. recipes that install precompiled components. For example, if
  1535. ``libfoo`` is a precompiled library that links against
  1536. ``libbar``, then linking against ``libfoo`` requires both
  1537. ``libfoo`` and ``libbar`` to be available in the sysroot.
  1538. Without a :term:`DEPENDS` from the recipe that installs ``libfoo``
  1539. to the recipe that installs ``libbar``, other recipes might
  1540. fail to link against ``libfoo``.
  1541. For information on runtime dependencies, see the :term:`RDEPENDS`
  1542. variable. You can also see the
  1543. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:tasks`" and
  1544. ":ref:`bitbake-user-manual/bitbake-user-manual-execution:dependencies`"
  1545. sections in the BitBake User Manual for additional information on tasks
  1546. and dependencies.
  1547. :term:`DEPLOY_DIR`
  1548. Points to the general area that the OpenEmbedded build system uses to
  1549. place images, packages, SDKs, and other output files that are ready
  1550. to be used outside of the build system. By default, this directory
  1551. resides within the :term:`Build Directory` as ``${TMPDIR}/deploy``.
  1552. For more information on the structure of the Build Directory, see
  1553. ":ref:`ref-manual/structure:the build directory --- \`\`build/\`\``" section.
  1554. For more detail on the contents of the ``deploy`` directory, see the
  1555. ":ref:`overview-manual/concepts:images`",
  1556. ":ref:`overview-manual/concepts:package feeds`", and
  1557. ":ref:`overview-manual/concepts:application development sdk`" sections all in the
  1558. Yocto Project Overview and Concepts Manual.
  1559. :term:`DEPLOY_DIR_DEB`
  1560. Points to the area that the OpenEmbedded build system uses to place
  1561. Debian packages that are ready to be used outside of the build
  1562. system. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1563. ":ref:`ref-classes-package_deb`".
  1564. The BitBake configuration file initially defines the
  1565. :term:`DEPLOY_DIR_DEB` variable as a sub-folder of
  1566. :term:`DEPLOY_DIR`::
  1567. DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb"
  1568. The :ref:`ref-classes-package_deb` class uses the
  1569. :term:`DEPLOY_DIR_DEB` variable to make sure the
  1570. :ref:`ref-tasks-package_write_deb` task
  1571. writes Debian packages into the appropriate folder. For more
  1572. information on how packaging works, see the
  1573. ":ref:`overview-manual/concepts:package feeds`" section
  1574. in the Yocto Project Overview and Concepts Manual.
  1575. :term:`DEPLOY_DIR_IMAGE`
  1576. Points to the area that the OpenEmbedded build system uses to place
  1577. images and other associated output files that are ready to be
  1578. deployed onto the target machine. The directory is machine-specific
  1579. as it contains the ``${MACHINE}`` name. By default, this directory
  1580. resides within the :term:`Build Directory` as
  1581. ``${DEPLOY_DIR}/images/${MACHINE}/``.
  1582. It must not be used directly in recipes when deploying files. Instead,
  1583. it's only useful when a recipe needs to "read" a file already deployed
  1584. by a dependency. So, it should be filled with the contents of
  1585. :term:`DEPLOYDIR` by the :ref:`ref-classes-deploy` class or with the
  1586. contents of :term:`IMGDEPLOYDIR` by the :ref:`ref-classes-image` class.
  1587. For more information on the structure of the :term:`Build Directory`, see
  1588. ":ref:`ref-manual/structure:the build directory --- \`\`build/\`\``" section.
  1589. For more detail on the contents of the ``deploy`` directory, see the
  1590. ":ref:`overview-manual/concepts:images`" and
  1591. ":ref:`overview-manual/concepts:application development sdk`" sections both in
  1592. the Yocto Project Overview and Concepts Manual.
  1593. :term:`DEPLOY_DIR_IPK`
  1594. Points to the area that the OpenEmbedded build system uses to place
  1595. IPK packages that are ready to be used outside of the build system.
  1596. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1597. ":ref:`ref-classes-package_ipk`".
  1598. The BitBake configuration file initially defines this variable as a
  1599. sub-folder of :term:`DEPLOY_DIR`::
  1600. DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk"
  1601. The :ref:`ref-classes-package_ipk` class uses the :term:`DEPLOY_DIR_IPK`
  1602. variable to make sure the :ref:`ref-tasks-package_write_ipk` task
  1603. writes IPK packages into the appropriate folder. For more information
  1604. on how packaging works, see the
  1605. ":ref:`overview-manual/concepts:package feeds`" section
  1606. in the Yocto Project Overview and Concepts Manual.
  1607. :term:`DEPLOY_DIR_RPM`
  1608. Points to the area that the OpenEmbedded build system uses to place
  1609. RPM packages that are ready to be used outside of the build system.
  1610. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1611. ":ref:`ref-classes-package_rpm`".
  1612. The BitBake configuration file initially defines this variable as a
  1613. sub-folder of :term:`DEPLOY_DIR`::
  1614. DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm"
  1615. The :ref:`ref-classes-package_rpm` class uses the
  1616. :term:`DEPLOY_DIR_RPM` variable to make sure the
  1617. :ref:`ref-tasks-package_write_rpm` task
  1618. writes RPM packages into the appropriate folder. For more information
  1619. on how packaging works, see the
  1620. ":ref:`overview-manual/concepts:package feeds`" section
  1621. in the Yocto Project Overview and Concepts Manual.
  1622. :term:`DEPLOYDIR`
  1623. When inheriting the :ref:`ref-classes-deploy` class, the
  1624. :term:`DEPLOYDIR` points to a temporary work area for deployed files that
  1625. is set in the :ref:`ref-classes-deploy` class as follows::
  1626. DEPLOYDIR = "${WORKDIR}/deploy-${PN}"
  1627. Recipes inheriting the :ref:`ref-classes-deploy` class should copy files to be
  1628. deployed into :term:`DEPLOYDIR`, and the class will take care of copying
  1629. them into :term:`DEPLOY_DIR_IMAGE`
  1630. afterwards.
  1631. :term:`DESCRIPTION`
  1632. The package description used by package managers. If not set,
  1633. :term:`DESCRIPTION` takes the value of the :term:`SUMMARY`
  1634. variable.
  1635. :term:`DEV_PKG_DEPENDENCY`
  1636. Provides an easy way for recipes to disable or adjust the runtime recommendation
  1637. (:term:`RRECOMMENDS`) of the ``${PN}-dev`` package on the main
  1638. (``${PN}``) package.
  1639. :term:`DISABLE_STATIC`
  1640. Used in order to disable static linking by default (in order to save
  1641. space, since static libraries are often unused in embedded systems.)
  1642. The default value is " --disable-static", however it can be set to ""
  1643. in order to enable static linking if desired. Certain recipes do this
  1644. individually, and also there is a
  1645. ``meta/conf/distro/include/no-static-libs.inc`` include file that
  1646. disables static linking for a number of recipes. Some software
  1647. packages or build tools (such as CMake) have explicit support for
  1648. enabling / disabling static linking, and in those cases
  1649. :term:`DISABLE_STATIC` is not used.
  1650. :term:`DISTRO`
  1651. The short name of the distribution. For information on the long name
  1652. of the distribution, see the :term:`DISTRO_NAME`
  1653. variable.
  1654. The :term:`DISTRO` variable corresponds to a distribution configuration
  1655. file whose root name is the same as the variable's argument and whose
  1656. filename extension is ``.conf``. For example, the distribution
  1657. configuration file for the Poky distribution is named ``poky.conf``
  1658. and resides in the ``meta-poky/conf/distro`` directory of the
  1659. :term:`Source Directory`.
  1660. Within that ``poky.conf`` file, the :term:`DISTRO` variable is set as
  1661. follows::
  1662. DISTRO = "poky"
  1663. Distribution configuration files are located in a ``conf/distro``
  1664. directory within the :term:`Metadata` that contains the
  1665. distribution configuration. The value for :term:`DISTRO` must not contain
  1666. spaces, and is typically all lower-case.
  1667. .. note::
  1668. If the :term:`DISTRO` variable is blank, a set of default configurations
  1669. are used, which are specified within
  1670. ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.
  1671. :term:`DISTRO_CODENAME`
  1672. Specifies a codename for the distribution being built.
  1673. :term:`DISTRO_EXTRA_RDEPENDS`
  1674. Specifies a list of distro-specific packages to add to all images.
  1675. This variable takes effect through ``packagegroup-base`` so the
  1676. variable only really applies to the more full-featured images that
  1677. include ``packagegroup-base``. You can use this variable to keep
  1678. distro policy out of generic images. As with all other distro
  1679. variables, you set this variable in the distro ``.conf`` file.
  1680. :term:`DISTRO_EXTRA_RRECOMMENDS`
  1681. Specifies a list of distro-specific packages to add to all images if
  1682. the packages exist. The packages might not exist or be empty (e.g.
  1683. kernel modules). The list of packages are automatically installed but
  1684. you can remove them.
  1685. :term:`DISTRO_FEATURES`
  1686. The software support you want in your distribution for various
  1687. features. You define your distribution features in the distribution
  1688. configuration file.
  1689. In most cases, the presence or absence of a feature in
  1690. :term:`DISTRO_FEATURES` is translated to the appropriate option supplied
  1691. to the configure script during the
  1692. :ref:`ref-tasks-configure` task for recipes that
  1693. optionally support the feature. For example, specifying "x11" in
  1694. :term:`DISTRO_FEATURES`, causes every piece of software built for the
  1695. target that can optionally support X11 to have its X11 support
  1696. enabled.
  1697. .. note::
  1698. Just enabling :term:`DISTRO_FEATURES` alone doesn't
  1699. enable feature support for packages. Mechanisms such as making
  1700. :term:`PACKAGECONFIG` track :term:`DISTRO_FEATURES` are used
  1701. to enable/disable package features.
  1702. Two more examples are Bluetooth and NFS support. For a more complete
  1703. list of features that ships with the Yocto Project and that you can
  1704. provide with this variable, see the ":ref:`ref-features-distro`" section.
  1705. :term:`DISTRO_FEATURES_BACKFILL`
  1706. A space-separated list of features to be added to :term:`DISTRO_FEATURES`
  1707. if not also present in :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`.
  1708. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  1709. not intended to be user-configurable. It is best to just reference
  1710. the variable to see which distro features are being
  1711. :ref:`backfilled <ref-features-backfill>` for all distro configurations.
  1712. :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`
  1713. A space-separated list of features from :term:`DISTRO_FEATURES_BACKFILL`
  1714. that should not be :ref:`backfilled <ref-features-backfill>` (i.e. added
  1715. to :term:`DISTRO_FEATURES`) during the build.
  1716. This corresponds to an opt-out mechanism. When new default distro
  1717. features are introduced, distribution maintainers can review (`consider`)
  1718. them and decide to exclude them from the
  1719. :ref:`backfilled <ref-features-backfill>` features. Therefore, the
  1720. combination of :term:`DISTRO_FEATURES_BACKFILL` and
  1721. :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED` makes it possible to
  1722. add new default features without breaking existing distributions.
  1723. :term:`DISTRO_FEATURES_DEFAULT`
  1724. A convenience variable that gives you the default list of distro
  1725. features with the exception of any features specific to the C library
  1726. (``libc``).
  1727. When creating a custom distribution, you might find it useful to be
  1728. able to reuse the default
  1729. :term:`DISTRO_FEATURES` options without the
  1730. need to write out the full set. Here is an example that uses
  1731. :term:`DISTRO_FEATURES_DEFAULT` from a custom distro configuration file::
  1732. DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} myfeature"
  1733. :term:`DISTRO_FEATURES_FILTER_NATIVE`
  1734. Specifies a list of features that if present in the target
  1735. :term:`DISTRO_FEATURES` value should be
  1736. included in :term:`DISTRO_FEATURES` when building native recipes. This
  1737. variable is used in addition to the features filtered using the
  1738. :term:`DISTRO_FEATURES_NATIVE`
  1739. variable.
  1740. :term:`DISTRO_FEATURES_FILTER_NATIVESDK`
  1741. Specifies a list of features that if present in the target
  1742. :term:`DISTRO_FEATURES` value should be included in
  1743. :term:`DISTRO_FEATURES` when building :ref:`ref-classes-nativesdk`
  1744. recipes. This variable is used in addition to the features filtered using
  1745. the :term:`DISTRO_FEATURES_NATIVESDK` variable.
  1746. :term:`DISTRO_FEATURES_NATIVE`
  1747. Specifies a list of features that should be included in
  1748. :term:`DISTRO_FEATURES` when building native
  1749. recipes. This variable is used in addition to the features filtered
  1750. using the
  1751. :term:`DISTRO_FEATURES_FILTER_NATIVE`
  1752. variable.
  1753. :term:`DISTRO_FEATURES_NATIVESDK`
  1754. Specifies a list of features that should be included in
  1755. :term:`DISTRO_FEATURES` when building
  1756. :ref:`ref-classes-nativesdk` recipes. This variable is used
  1757. in addition to the features filtered using the
  1758. :term:`DISTRO_FEATURES_FILTER_NATIVESDK` variable.
  1759. :term:`DISTRO_NAME`
  1760. The long name of the distribution. For information on the short name
  1761. of the distribution, see the :term:`DISTRO` variable.
  1762. The :term:`DISTRO_NAME` variable corresponds to a distribution
  1763. configuration file whose root name is the same as the variable's
  1764. argument and whose filename extension is ``.conf``. For example, the
  1765. distribution configuration file for the Poky distribution is named
  1766. ``poky.conf`` and resides in the ``meta-poky/conf/distro`` directory
  1767. of the :term:`Source Directory`.
  1768. Within that ``poky.conf`` file, the :term:`DISTRO_NAME` variable is set
  1769. as follows::
  1770. DISTRO_NAME = "Poky (Yocto Project Reference Distro)"
  1771. Distribution configuration files are located in a ``conf/distro``
  1772. directory within the :term:`Metadata` that contains the
  1773. distribution configuration.
  1774. .. note::
  1775. If the :term:`DISTRO_NAME` variable is blank, a set of default
  1776. configurations are used, which are specified within
  1777. ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.
  1778. :term:`DISTRO_VERSION`
  1779. The version of the distribution.
  1780. :term:`DISTROOVERRIDES`
  1781. A colon-separated list of overrides specific to the current
  1782. distribution. By default, this list includes the value of
  1783. :term:`DISTRO`.
  1784. You can extend :term:`DISTROOVERRIDES` to add extra overrides that should
  1785. apply to the distribution.
  1786. The underlying mechanism behind :term:`DISTROOVERRIDES` is simply that it
  1787. is included in the default value of
  1788. :term:`OVERRIDES`.
  1789. Here is an example from :yocto_git:`meta-poky/conf/distro/poky-tiny.conf
  1790. </poky/tree/meta-poky/conf/distro/poky-tiny.conf>`::
  1791. DISTROOVERRIDES = "poky:poky-tiny"
  1792. :term:`DL_DIR`
  1793. The central download directory used by the build process to store
  1794. downloads. By default, :term:`DL_DIR` gets files suitable for mirroring
  1795. for everything except Git repositories. If you want tarballs of Git
  1796. repositories, use the
  1797. :term:`BB_GENERATE_MIRROR_TARBALLS`
  1798. variable.
  1799. You can set this directory by defining the :term:`DL_DIR` variable in the
  1800. ``conf/local.conf`` file. This directory is self-maintaining and you
  1801. should not have to touch it. By default, the directory is
  1802. ``downloads`` in the :term:`Build Directory`::
  1803. #DL_DIR ?= "${TOPDIR}/downloads"
  1804. To specify a different download directory,
  1805. simply remove the comment from the line and provide your directory.
  1806. During a first build, the system downloads many different source code
  1807. tarballs from various upstream projects. Downloading can take a
  1808. while, particularly if your network connection is slow. Tarballs are
  1809. all stored in the directory defined by :term:`DL_DIR` and the build
  1810. system looks there first to find source tarballs.
  1811. .. note::
  1812. When wiping and rebuilding, you can preserve this directory to
  1813. speed up this part of subsequent builds.
  1814. You can safely share this directory between multiple builds on the
  1815. same development machine. For additional information on how the build
  1816. process gets source files when working behind a firewall or proxy
  1817. server, see this specific question in the ":doc:`faq`"
  1818. chapter. You can also refer to the
  1819. ":yocto_wiki:`Working Behind a Network Proxy </Working_Behind_a_Network_Proxy>`"
  1820. Wiki page.
  1821. :term:`DOC_COMPRESS`
  1822. When inheriting the :ref:`ref-classes-compress_doc`
  1823. class, this variable sets the compression policy used when the
  1824. OpenEmbedded build system compresses manual and info pages. By
  1825. default, the compression method used is gz (gzip). Other policies
  1826. available are xz and bz2.
  1827. For information on policies and on how to use this variable, see the
  1828. comments in the ``meta/classes-recipe/compress_doc.bbclass`` file.
  1829. :term:`DT_FILES`
  1830. Space-separated list of device tree source files to compile using
  1831. a recipe that inherits the :ref:`ref-classes-devicetree` class. These
  1832. are relative to the :term:`DT_FILES_PATH`.
  1833. For convenience, both ``.dts`` and ``.dtb`` extensions can be used.
  1834. Use an empty string (default) to build all device tree sources within
  1835. the :term:`DT_FILES_PATH` directory.
  1836. :term:`DT_FILES_PATH`
  1837. When compiling out-of-tree device tree sources using a recipe that
  1838. inherits the :ref:`ref-classes-devicetree` class, this variable specifies
  1839. the path to the directory containing dts files to build.
  1840. Defaults to the :term:`S` directory.
  1841. :term:`DT_PADDING_SIZE`
  1842. When inheriting the :ref:`ref-classes-devicetree` class, this variable
  1843. specifies the size of padding appended to the device tree blob, used as
  1844. extra space typically for additional properties during boot.
  1845. :term:`EFI_ARCH`
  1846. The CPU architecture name within EFI standard. Set in
  1847. :oe_git:`meta/conf/image-uefi.conf
  1848. <openembedded-core/tree/meta/conf/image-uefi.conf>`.
  1849. :term:`EFI_PROVIDER`
  1850. When building bootable images (i.e. where ``hddimg``, ``iso``, or
  1851. ``wic.vmdk`` is in :term:`IMAGE_FSTYPES`), the
  1852. :term:`EFI_PROVIDER` variable specifies the EFI bootloader to use. The
  1853. default is "grub-efi", but "systemd-boot" can be used instead.
  1854. See the :ref:`ref-classes-systemd-boot` and :ref:`ref-classes-image-live`
  1855. classes for more information.
  1856. :term:`EFI_UKI_DIR`
  1857. The primary place for the UKI image inside the EFI System Partition.
  1858. :term:`EFI_UKI_PATH`
  1859. The path for the UKI image inside the root filesystem.
  1860. :term:`ENABLE_BINARY_LOCALE_GENERATION`
  1861. Variable that controls which locales for ``glibc`` are generated
  1862. during the build (useful if the target device has 64Mbytes of RAM or
  1863. less).
  1864. :term:`ERR_REPORT_DIR`
  1865. When used with the :ref:`ref-classes-report-error` class, specifies the
  1866. path used for storing the debug files created by the :ref:`error reporting
  1867. tool <dev-manual/error-reporting-tool:using the error reporting tool>`,
  1868. which allows you to submit build errors you encounter to a central
  1869. database. By default, the value of this variable is
  1870. ``${``\ :term:`LOG_DIR`\ ``}/error-report``.
  1871. You can set :term:`ERR_REPORT_DIR` to the path you want the error
  1872. reporting tool to store the debug files as follows in your
  1873. ``local.conf`` file::
  1874. ERR_REPORT_DIR = "path"
  1875. :term:`ERROR_QA`
  1876. Specifies the quality assurance checks whose failures are reported as
  1877. errors by the OpenEmbedded build system. You set this variable in
  1878. your distribution configuration file. For a list of the checks you
  1879. can control with this variable, see the
  1880. ":ref:`ref-classes-insane`" section.
  1881. :term:`ESDK_CLASS_INHERIT_DISABLE`
  1882. A list of classes to remove from the :term:`INHERIT`
  1883. value globally within the extensible SDK configuration. The
  1884. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class sets the
  1885. default value::
  1886. ESDK_CLASS_INHERIT_DISABLE ?= "buildhistory icecc"
  1887. Some classes are not generally applicable within the extensible SDK
  1888. context. You can use this variable to disable those classes.
  1889. For additional information on how to customize the extensible SDK's
  1890. configuration, see the
  1891. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  1892. section in the Yocto Project Application Development and the
  1893. Extensible Software Development Kit (eSDK) manual.
  1894. :term:`ESDK_LOCALCONF_ALLOW`
  1895. A list of variables allowed through from the OpenEmbedded build
  1896. system configuration into the extensible SDK configuration. By
  1897. default, the list of variables is empty and is set in the
  1898. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class.
  1899. This list overrides the variables specified using the
  1900. :term:`ESDK_LOCALCONF_REMOVE` variable as well as
  1901. other variables automatically added due to the "/" character
  1902. being found at the start of the
  1903. value, which is usually indicative of being a path and thus might not
  1904. be valid on the system where the SDK is installed.
  1905. For additional information on how to customize the extensible SDK's
  1906. configuration, see the
  1907. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  1908. section in the Yocto Project Application Development and the
  1909. Extensible Software Development Kit (eSDK) manual.
  1910. :term:`ESDK_LOCALCONF_REMOVE`
  1911. A list of variables not allowed through from the OpenEmbedded build
  1912. system configuration into the extensible SDK configuration. Usually,
  1913. these are variables that are specific to the machine on which the
  1914. build system is running and thus would be potentially problematic
  1915. within the extensible SDK.
  1916. By default, :term:`ESDK_LOCALCONF_REMOVE` is set in the
  1917. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class and
  1918. excludes the following variables:
  1919. - :term:`CONF_VERSION`
  1920. - :term:`BB_NUMBER_THREADS`
  1921. - :term:`BB_NUMBER_PARSE_THREADS`
  1922. - :term:`PARALLEL_MAKE`
  1923. - :term:`PRSERV_HOST`
  1924. - :term:`SSTATE_MIRRORS` :term:`DL_DIR`
  1925. - :term:`SSTATE_DIR` :term:`TMPDIR`
  1926. - :term:`BB_SERVER_TIMEOUT`
  1927. For additional information on how to customize the extensible SDK's
  1928. configuration, see the
  1929. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  1930. section in the Yocto Project Application Development and the
  1931. Extensible Software Development Kit (eSDK) manual.
  1932. :term:`EXCLUDE_FROM_SHLIBS`
  1933. Triggers the OpenEmbedded build system's shared libraries resolver to
  1934. exclude an entire package when scanning for shared libraries.
  1935. .. note::
  1936. The shared libraries resolver's functionality results in part from
  1937. the internal function ``package_do_shlibs``, which is part of the
  1938. :ref:`ref-tasks-package` task. You should be aware that the shared
  1939. libraries resolver might implicitly define some dependencies between
  1940. packages.
  1941. The :term:`EXCLUDE_FROM_SHLIBS` variable is similar to the
  1942. :term:`PRIVATE_LIBS` variable, which excludes a
  1943. package's particular libraries only and not the whole package.
  1944. Use the :term:`EXCLUDE_FROM_SHLIBS` variable by setting it to "1" for a
  1945. particular package::
  1946. EXCLUDE_FROM_SHLIBS = "1"
  1947. :term:`EXCLUDE_FROM_WORLD`
  1948. Directs BitBake to exclude a recipe from world builds (i.e.
  1949. ``bitbake world``). During world builds, BitBake locates, parses and
  1950. builds all recipes found in every layer exposed in the
  1951. ``bblayers.conf`` configuration file.
  1952. To exclude a recipe from a world build using this variable, set the
  1953. variable to "1" in the recipe.
  1954. .. note::
  1955. Recipes added to :term:`EXCLUDE_FROM_WORLD` may still be built during a
  1956. world build in order to satisfy dependencies of other recipes. Adding
  1957. a recipe to :term:`EXCLUDE_FROM_WORLD` only ensures that the recipe is not
  1958. explicitly added to the list of build targets in a world build.
  1959. :term:`EXTENDPE`
  1960. Used with file and pathnames to create a prefix for a recipe's
  1961. version based on the recipe's :term:`PE` value. If :term:`PE`
  1962. is set and greater than zero for a recipe, :term:`EXTENDPE` becomes that
  1963. value (e.g if :term:`PE` is equal to "1" then :term:`EXTENDPE` becomes "1").
  1964. If a recipe's :term:`PE` is not set (the default) or is equal to zero,
  1965. :term:`EXTENDPE` becomes "".
  1966. See the :term:`STAMP` variable for an example.
  1967. :term:`EXTENDPKGV`
  1968. The full package version specification as it appears on the final
  1969. packages produced by a recipe. The variable's value is normally used
  1970. to fix a runtime dependency to the exact same version of another
  1971. package in the same recipe::
  1972. RDEPENDS:${PN}-additional-module = "${PN} (= ${EXTENDPKGV})"
  1973. The dependency relationships are intended to force the package
  1974. manager to upgrade these types of packages in lock-step.
  1975. :term:`EXTERNAL_KERNEL_TOOLS`
  1976. When set, the :term:`EXTERNAL_KERNEL_TOOLS` variable indicates that these
  1977. tools are not in the source tree.
  1978. When kernel tools are available in the tree, they are preferred over
  1979. any externally installed tools. Setting the :term:`EXTERNAL_KERNEL_TOOLS`
  1980. variable tells the OpenEmbedded build system to prefer the installed
  1981. external tools. See the :ref:`ref-classes-kernel-yocto` class in
  1982. ``meta/classes-recipe`` to see how the variable is used.
  1983. :term:`EXTERNAL_KERNEL_DEVICETREE`
  1984. When inheriting :ref:`ref-classes-kernel-fitimage` and a
  1985. :term:`PREFERRED_PROVIDER` for ``virtual/dtb`` set to ``devicetree``, the
  1986. variable :term:`EXTERNAL_KERNEL_DEVICETREE` can be used to specify a
  1987. directory containing one or more compiled device tree or device tree
  1988. overlays to use.
  1989. :term:`KERNEL_LOCALVERSION`
  1990. This variable allows to append a string to the version
  1991. of the kernel image. This corresponds to the ``CONFIG_LOCALVERSION``
  1992. kernel configuration parameter.
  1993. Using this variable is only useful when you are using a kernel recipe
  1994. inheriting the :ref:`ref-classes-kernel` class, and which doesn't
  1995. already set a local version. Therefore, setting this variable has no
  1996. impact on ``linux-yocto`` kernels.
  1997. :term:`EXTERNAL_TOOLCHAIN`
  1998. When you intend to use an
  1999. :ref:`external toolchain <dev-manual/external-toolchain:optionally using an external toolchain>`,
  2000. this variable allows to specify the directory where this toolchain was
  2001. installed.
  2002. :term:`EXTERNALSRC`
  2003. When inheriting the :ref:`ref-classes-externalsrc`
  2004. class, this variable points to the source tree, which is outside of
  2005. the OpenEmbedded build system. When set, this variable sets the
  2006. :term:`S` variable, which is what the OpenEmbedded build
  2007. system uses to locate unpacked recipe source code.
  2008. See the ":ref:`ref-classes-externalsrc`" section for details. You
  2009. can also find information on how to use this variable in the
  2010. ":ref:`dev-manual/building:building software from an external source`"
  2011. section in the Yocto Project Development Tasks Manual.
  2012. :term:`EXTERNALSRC_BUILD`
  2013. When inheriting the :ref:`ref-classes-externalsrc`
  2014. class, this variable points to the directory in which the recipe's
  2015. source code is built, which is outside of the OpenEmbedded build
  2016. system. When set, this variable sets the :term:`B` variable,
  2017. which is what the OpenEmbedded build system uses to locate the
  2018. :term:`Build Directory`.
  2019. See the ":ref:`ref-classes-externalsrc`" section for details. You
  2020. can also find information on how to use this variable in the
  2021. ":ref:`dev-manual/building:building software from an external source`"
  2022. section in the Yocto Project Development Tasks Manual.
  2023. :term:`EXTRA_AUTORECONF`
  2024. For recipes inheriting the :ref:`ref-classes-autotools`
  2025. class, you can use :term:`EXTRA_AUTORECONF` to specify extra options to
  2026. pass to the ``autoreconf`` command that is executed during the
  2027. :ref:`ref-tasks-configure` task.
  2028. The default value is "--exclude=autopoint".
  2029. :term:`EXTRA_IMAGE_FEATURES`
  2030. A list of additional features to include in an image. When listing
  2031. more than one feature, separate them with a space.
  2032. Typically, you configure this variable in your ``local.conf`` file,
  2033. which is found in the :term:`Build Directory`. Although you can use this
  2034. variable from within a recipe, best practices dictate that you do not.
  2035. .. note::
  2036. To enable primary features from within the image recipe, use the
  2037. :term:`IMAGE_FEATURES` variable.
  2038. Here are some examples of features you can add:
  2039. - "dbg-pkgs" --- adds -dbg packages for all installed packages including
  2040. symbol information for debugging and profiling.
  2041. - "empty-root-password" --- This feature can be used if you want to
  2042. allow root login with an empty password.
  2043. - "allow-empty-password" --- Allows Dropbear and OpenSSH to accept
  2044. logins from accounts having an empty password string.
  2045. - "allow-root-login" --- Allows Dropbear and OpenSSH to accept root logins.
  2046. - "post-install-logging" --- Enables logging postinstall script runs to
  2047. the ``/var/log/postinstall.log`` file on first boot of the image on
  2048. the target system.
  2049. - "dev-pkgs" --- adds -dev packages for all installed packages. This is
  2050. useful if you want to develop against the libraries in the image.
  2051. - "read-only-rootfs" --- creates an image whose root filesystem is
  2052. read-only. See the
  2053. ":ref:`dev-manual/read-only-rootfs:creating a read-only root filesystem`"
  2054. section in the Yocto Project Development Tasks Manual for more
  2055. information
  2056. - "tools-debug" --- adds debugging tools such as gdb and strace.
  2057. - "tools-sdk" --- adds development tools such as gcc, make,
  2058. pkgconfig and so forth.
  2059. - "tools-testapps" --- adds useful testing tools
  2060. such as ts_print, aplay, arecord and so forth.
  2061. For a complete list of image features that ships with the Yocto
  2062. Project, see the ":ref:`ref-features-image`" section.
  2063. For an example that shows how to customize your image by using this
  2064. variable, see the ":ref:`dev-manual/customizing-images:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  2065. section in the Yocto Project Development Tasks Manual.
  2066. :term:`EXTRA_IMAGECMD`
  2067. Specifies additional options for the image creation command that has
  2068. been specified in :term:`IMAGE_CMD`. When setting
  2069. this variable, use an override for the associated image type. Here is
  2070. an example::
  2071. EXTRA_IMAGECMD:ext3 ?= "-i 4096"
  2072. :term:`EXTRA_IMAGEDEPENDS`
  2073. A list of recipes to build that do not provide packages for
  2074. installing into the root filesystem.
  2075. Sometimes a recipe is required to build the final image but is not
  2076. needed in the root filesystem. You can use the :term:`EXTRA_IMAGEDEPENDS`
  2077. variable to list these recipes and thus specify the dependencies. A
  2078. typical example is a required bootloader in a machine configuration.
  2079. .. note::
  2080. To add packages to the root filesystem, see the various
  2081. :term:`RDEPENDS` and :term:`RRECOMMENDS` variables.
  2082. :term:`EXTRA_OECMAKE`
  2083. Additional `CMake <https://cmake.org/overview/>`__ options. See the
  2084. :ref:`ref-classes-cmake` class for additional information.
  2085. :term:`EXTRA_OECONF`
  2086. Additional ``configure`` script options. See
  2087. :term:`PACKAGECONFIG_CONFARGS` for
  2088. additional information on passing configure script options.
  2089. :term:`EXTRA_OEMAKE`
  2090. Additional GNU ``make`` options.
  2091. Because the :term:`EXTRA_OEMAKE` defaults to "", you need to set the
  2092. variable to specify any required GNU options.
  2093. :term:`PARALLEL_MAKE` and
  2094. :term:`PARALLEL_MAKEINST` also make use of
  2095. :term:`EXTRA_OEMAKE` to pass the required flags.
  2096. :term:`EXTRA_OESCONS`
  2097. When inheriting the :ref:`ref-classes-scons` class, this
  2098. variable specifies additional configuration options you want to pass
  2099. to the ``scons`` command line.
  2100. :term:`EXTRA_OEMESON`
  2101. Additional `Meson <https://mesonbuild.com/>`__ options. See the
  2102. :ref:`ref-classes-meson` class for additional information.
  2103. In addition to standard Meson options, such options correspond to
  2104. `Meson build options <https://mesonbuild.com/Build-options.html>`__
  2105. defined in the ``meson_options.txt`` file in the sources to build.
  2106. Here is an example::
  2107. EXTRA_OEMESON = "-Dpython=disabled -Dvalgrind=disabled"
  2108. Note that any custom value for the Meson ``--buildtype`` option
  2109. should be set through the :term:`MESON_BUILDTYPE` variable.
  2110. :term:`EXTRA_USERS_PARAMS`
  2111. When inheriting the :ref:`ref-classes-extrausers`
  2112. class, this variable provides image level user and group operations.
  2113. This is a more global method of providing user and group
  2114. configuration as compared to using the
  2115. :ref:`ref-classes-useradd` class, which ties user and
  2116. group configurations to a specific recipe.
  2117. The set list of commands you can configure using the
  2118. :term:`EXTRA_USERS_PARAMS` is shown in the
  2119. :ref:`ref-classes-extrausers` class. These commands map to the normal
  2120. Unix commands of the same names::
  2121. # EXTRA_USERS_PARAMS = "\
  2122. # useradd -p '' tester; \
  2123. # groupadd developers; \
  2124. # userdel nobody; \
  2125. # groupdel -g video; \
  2126. # groupmod -g 1020 developers; \
  2127. # usermod -s /bin/sh tester; \
  2128. # "
  2129. Hardcoded passwords are supported via the ``-p`` parameters for
  2130. ``useradd`` or ``usermod``, but only hashed.
  2131. Here is an example that adds two users named "tester-jim" and "tester-sue" and assigns
  2132. passwords. First on host, create the (escaped) password hash::
  2133. printf "%q" $(mkpasswd -m sha256crypt tester01)
  2134. The resulting hash is set to a variable and used in ``useradd`` command parameters::
  2135. inherit extrausers
  2136. PASSWD = "\$X\$ABC123\$A-Long-Hash"
  2137. EXTRA_USERS_PARAMS = "\
  2138. useradd -p '${PASSWD}' tester-jim; \
  2139. useradd -p '${PASSWD}' tester-sue; \
  2140. "
  2141. Finally, here is an example that sets the root password::
  2142. inherit extrausers
  2143. EXTRA_USERS_PARAMS = "\
  2144. usermod -p '${PASSWD}' root; \
  2145. "
  2146. .. note::
  2147. From a security perspective, hardcoding a default password is not
  2148. generally a good idea or even legal in some jurisdictions. It is
  2149. recommended that you do not do this if you are building a production
  2150. image.
  2151. Additionally there is a special ``passwd-expire`` command that will
  2152. cause the password for a user to be expired and thus force changing it
  2153. on first login, for example::
  2154. EXTRA_USERS_PARAMS += " useradd myuser; passwd-expire myuser;"
  2155. .. note::
  2156. At present, ``passwd-expire`` may only work for remote logins when
  2157. using OpenSSH and not dropbear as an SSH server.
  2158. :term:`EXTRANATIVEPATH`
  2159. A list of subdirectories of
  2160. ``${``\ :term:`STAGING_BINDIR_NATIVE`\ ``}``
  2161. added to the beginning of the environment variable ``PATH``. As an
  2162. example, the following prepends
  2163. "${STAGING_BINDIR_NATIVE}/foo:${STAGING_BINDIR_NATIVE}/bar:" to
  2164. ``PATH``::
  2165. EXTRANATIVEPATH = "foo bar"
  2166. :term:`FAKEROOT`
  2167. See :term:`bitbake:FAKEROOT` in the BitBake manual.
  2168. :term:`FAKEROOTBASEENV`
  2169. See :term:`bitbake:FAKEROOTBASEENV` in the BitBake manual.
  2170. :term:`FAKEROOTCMD`
  2171. See :term:`bitbake:FAKEROOTCMD` in the BitBake manual.
  2172. :term:`FAKEROOTDIRS`
  2173. See :term:`bitbake:FAKEROOTDIRS` in the BitBake manual.
  2174. :term:`FAKEROOTENV`
  2175. See :term:`bitbake:FAKEROOTENV` in the BitBake manual.
  2176. :term:`FAKEROOTNOENV`
  2177. See :term:`bitbake:FAKEROOTNOENV` in the BitBake manual.
  2178. :term:`FEATURE_PACKAGES`
  2179. Defines one or more packages to include in an image when a specific
  2180. item is included in :term:`IMAGE_FEATURES`.
  2181. When setting the value, :term:`FEATURE_PACKAGES` should have the name of
  2182. the feature item as an override. Here is an example::
  2183. FEATURE_PACKAGES_widget = "package1 package2"
  2184. In this example, if "widget" were added to :term:`IMAGE_FEATURES`,
  2185. package1 and package2 would be included in the image.
  2186. .. note::
  2187. Packages installed by features defined through :term:`FEATURE_PACKAGES`
  2188. are often package groups. While similarly named, you should not
  2189. confuse the :term:`FEATURE_PACKAGES` variable with package groups, which
  2190. are discussed elsewhere in the documentation.
  2191. :term:`FEED_DEPLOYDIR_BASE_URI`
  2192. Points to the base URL of the server and location within the
  2193. document-root that provides the metadata and packages required by
  2194. OPKG to support runtime package management of IPK packages. You set
  2195. this variable in your ``local.conf`` file.
  2196. Consider the following example::
  2197. FEED_DEPLOYDIR_BASE_URI = "http://192.168.7.1/BOARD-dir"
  2198. This example assumes you are serving
  2199. your packages over HTTP and your databases are located in a directory
  2200. named ``BOARD-dir``, which is underneath your HTTP server's
  2201. document-root. In this case, the OpenEmbedded build system generates
  2202. a set of configuration files for you in your target that work with
  2203. the feed.
  2204. :term:`FETCHCMD`
  2205. See :term:`bitbake:FETCHCMD` in the BitBake manual.
  2206. :term:`FILE`
  2207. See :term:`bitbake:FILE` in the BitBake manual.
  2208. :term:`FILES`
  2209. The list of files and directories that are placed in a package. The
  2210. :term:`PACKAGES` variable lists the packages
  2211. generated by a recipe.
  2212. To use the :term:`FILES` variable, provide a package name override that
  2213. identifies the resulting package. Then, provide a space-separated
  2214. list of files or paths that identify the files you want included as
  2215. part of the resulting package. Here is an example::
  2216. FILES:${PN} += "${bindir}/mydir1 ${bindir}/mydir2/myfile"
  2217. .. note::
  2218. - When specifying files or paths, you can pattern match using
  2219. Python's
  2220. `glob <https://docs.python.org/3/library/glob.html>`__
  2221. syntax. For details on the syntax, see the documentation by
  2222. following the previous link.
  2223. - When specifying paths as part of the :term:`FILES` variable, it is
  2224. good practice to use appropriate path variables. For example,
  2225. use ``${sysconfdir}`` rather than ``/etc``, or ``${bindir}``
  2226. rather than ``/usr/bin``. You can find a list of these
  2227. variables at the top of the ``meta/conf/bitbake.conf`` file in
  2228. the :term:`Source Directory`. You will also
  2229. find the default values of the various ``FILES:*`` variables in
  2230. this file.
  2231. If some of the files you provide with the :term:`FILES` variable are
  2232. editable and you know they should not be overwritten during the
  2233. package update process by the Package Management System (PMS), you
  2234. can identify these files so that the PMS will not overwrite them. See
  2235. the :term:`CONFFILES` variable for information on
  2236. how to identify these files to the PMS.
  2237. :term:`FILES_SOLIBSDEV`
  2238. Defines the file specification to match
  2239. :term:`SOLIBSDEV`. In other words,
  2240. :term:`FILES_SOLIBSDEV` defines the full path name of the development
  2241. symbolic link (symlink) for shared libraries on the target platform.
  2242. The following statement from the ``bitbake.conf`` shows how it is
  2243. set::
  2244. FILES_SOLIBSDEV ?= "${base_libdir}/lib*${SOLIBSDEV} ${libdir}/lib*${SOLIBSDEV}"
  2245. :term:`FILESEXTRAPATHS`
  2246. A colon-separated list to extend the search path the OpenEmbedded build
  2247. system uses when looking for files and patches as it processes recipes
  2248. and append files. The default directories BitBake uses when it processes
  2249. recipes are initially defined by the :term:`FILESPATH` variable. You can
  2250. extend :term:`FILESPATH` variable by using :term:`FILESEXTRAPATHS`.
  2251. Best practices dictate that you accomplish this by using
  2252. :term:`FILESEXTRAPATHS` from within a ``.bbappend`` file and that you
  2253. prepend paths as follows::
  2254. FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
  2255. In the above example, the build system first
  2256. looks for files in a directory that has the same name as the
  2257. corresponding append file.
  2258. .. note::
  2259. When extending :term:`FILESEXTRAPATHS`, be sure to use the immediate
  2260. expansion (``:=``) operator. Immediate expansion makes sure that
  2261. BitBake evaluates :term:`THISDIR` at the time the
  2262. directive is encountered rather than at some later time when
  2263. expansion might result in a directory that does not contain the
  2264. files you need.
  2265. Also, include the trailing separating colon character if you are
  2266. prepending. The trailing colon character is necessary because you
  2267. are directing BitBake to extend the path by prepending directories
  2268. to the search path.
  2269. Here is another common use::
  2270. FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  2271. In this example, the build system extends the
  2272. :term:`FILESPATH` variable to include a directory named ``files`` that is
  2273. in the same directory as the corresponding append file.
  2274. This next example specifically adds three paths::
  2275. FILESEXTRAPATHS:prepend := "path_1:path_2:path_3:"
  2276. A final example shows how you can extend the search path and include
  2277. a :term:`MACHINE`-specific override, which is useful
  2278. in a BSP layer::
  2279. FILESEXTRAPATHS:prepend:intel-x86-common := "${THISDIR}/${PN}:"
  2280. The previous statement appears in the
  2281. ``linux-yocto-dev.bbappend`` file, which is found in the
  2282. :ref:`overview-manual/development-environment:yocto project source repositories` in
  2283. ``meta-intel/common/recipes-kernel/linux``. Here, the machine
  2284. override is a special :term:`PACKAGE_ARCH`
  2285. definition for multiple ``meta-intel`` machines.
  2286. .. note::
  2287. For a layer that supports a single BSP, the override could just be
  2288. the value of :term:`MACHINE`.
  2289. By prepending paths in ``.bbappend`` files, you allow multiple append
  2290. files that reside in different layers but are used for the same
  2291. recipe to correctly extend the path.
  2292. :term:`FILESOVERRIDES`
  2293. A colon-separated list to specify a subset of :term:`OVERRIDES` used by
  2294. the OpenEmbedded build system for creating :term:`FILESPATH`. The
  2295. :term:`FILESOVERRIDES` variable uses overrides to automatically extend
  2296. the :term:`FILESPATH` variable. For an example of how that works, see the
  2297. :term:`FILESPATH` variable description. Additionally, you find more
  2298. information on how overrides are handled in the
  2299. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  2300. section of the BitBake User Manual.
  2301. By default, the :term:`FILESOVERRIDES` variable is defined as::
  2302. FILESOVERRIDES = "${TRANSLATED_TARGET_ARCH}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}"
  2303. .. note::
  2304. Do not hand-edit the :term:`FILESOVERRIDES` variable. The values match up
  2305. with expected overrides and are used in an expected manner by the
  2306. build system.
  2307. :term:`FILESPATH`
  2308. A colon-separated list specifying the default set of directories the
  2309. OpenEmbedded build system uses when searching for patches and files.
  2310. During the build process, BitBake searches each directory in
  2311. :term:`FILESPATH` in the specified order when looking for files and
  2312. patches specified by each ``file://`` URI in a recipe's
  2313. :term:`SRC_URI` statements.
  2314. The default value for the :term:`FILESPATH` variable is defined in the
  2315. :ref:`ref-classes-base` class found in ``meta/classes-global`` in the
  2316. :term:`Source Directory`::
  2317. FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}", \
  2318. "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
  2319. The
  2320. :term:`FILESPATH` variable is automatically extended using the overrides
  2321. from the :term:`FILESOVERRIDES` variable.
  2322. .. note::
  2323. - Do not hand-edit the :term:`FILESPATH` variable. If you want the
  2324. build system to look in directories other than the defaults,
  2325. extend the :term:`FILESPATH` variable by using the
  2326. :term:`FILESEXTRAPATHS` variable.
  2327. - Be aware that the default :term:`FILESPATH` directories do not map
  2328. to directories in custom layers where append files
  2329. (``.bbappend``) are used. If you want the build system to find
  2330. patches or files that reside with your append files, you need
  2331. to extend the :term:`FILESPATH` variable by using the
  2332. :term:`FILESEXTRAPATHS` variable.
  2333. You can take advantage of this searching behavior in useful ways. For
  2334. example, consider a case where there is the following directory structure
  2335. for general and machine-specific configurations::
  2336. files/defconfig
  2337. files/MACHINEA/defconfig
  2338. files/MACHINEB/defconfig
  2339. Also in the example, the :term:`SRC_URI` statement contains
  2340. "file://defconfig". Given this scenario, you can set
  2341. :term:`MACHINE` to "MACHINEA" and cause the build
  2342. system to use files from ``files/MACHINEA``. Set :term:`MACHINE` to
  2343. "MACHINEB" and the build system uses files from ``files/MACHINEB``.
  2344. Finally, for any machine other than "MACHINEA" and "MACHINEB", the
  2345. build system uses files from ``files/defconfig``.
  2346. You can find out more about the patching process in the
  2347. ":ref:`overview-manual/concepts:patching`" section
  2348. in the Yocto Project Overview and Concepts Manual and the
  2349. ":ref:`dev-manual/new-recipe:patching code`" section in
  2350. the Yocto Project Development Tasks Manual. See the
  2351. :ref:`ref-tasks-patch` task as well.
  2352. :term:`FILESYSTEM_PERMS_TABLES`
  2353. Allows you to define your own file permissions settings tables as part
  2354. of your configuration for the packaging process. For example, suppose
  2355. you need a consistent set of custom permissions for a set of groups
  2356. and users across an entire work project. It is best to do this in the
  2357. packages themselves but this is not always possible.
  2358. By default, the OpenEmbedded build system uses the ``fs-perms.txt``,
  2359. ``fs-perms-volatile-log.txt`` and ``fs-perms-volatile-tmp.txt`` which are
  2360. located in the ``meta/files`` folder in the :term:`Source Directory`. If
  2361. you create your own permission setting table files, you should place
  2362. those in your layer.
  2363. You can override the value of :term:`FILESYSTEM_PERMS_TABLES` variable
  2364. in your distribution configuration file to point to your custom
  2365. permission table files. You can specify one or more file permissions
  2366. setting tables. The paths that you specify to these files must be defined
  2367. within the :term:`BBPATH` variable.
  2368. In order to disable the volatile log, which is enabled by default, one
  2369. can remove the ``files/fs-perms-volatile-log.txt`` value from
  2370. ``FILESYSTEM_PERMS_TABLES``. Similarly, in order to disable the volatile
  2371. tmp, one can remove the ``files/fs-perms-volatile-tmp.txt`` value.
  2372. For guidance on how to define your own file permissions settings
  2373. tables, examine the existing ``fs-perms.txt``,
  2374. ``fs-perms-volatile-log.txt`` and ``fs-perms-volatile-tmp.txt`` files.
  2375. :term:`FIRMWARE_COMPRESSION`
  2376. The :term:`FIRMWARE_COMPRESSION` allows compressing the firmware provided
  2377. by the ``linux-firmware`` recipe. The default value of this variable is an
  2378. empty string (no compression), and the possible values it can take are
  2379. ``xz`` and ``zst``. This can allow significant disk space savings.
  2380. For this to work, the Linux Kernel requires the
  2381. ``CONFIG_FW_LOADER_COMPRESS_XZ`` or ``CONFIG_FW_LOADER_COMPRESS_ZSTD``
  2382. configuration options to be set.
  2383. :term:`FIT_ADDRESS_CELLS`
  2384. Specifies the value of the ``#address-cells`` value for the
  2385. description of the FIT image.
  2386. The default value is set to "1" by the :ref:`ref-classes-kernel-fitimage`
  2387. class, which corresponds to 32 bit addresses.
  2388. For platforms that need to set 64 bit addresses, for example in
  2389. :term:`UBOOT_LOADADDRESS` and :term:`UBOOT_ENTRYPOINT`, you need to
  2390. set this value to "2", as two 32 bit values (cells) will be needed
  2391. to represent such addresses.
  2392. Here is an example setting "0x400000000" as a load address::
  2393. FIT_ADDRESS_CELLS = "2"
  2394. UBOOT_LOADADDRESS= "0x04 0x00000000"
  2395. See `more details about #address-cells <https://elinux.org/Device_Tree_Usage#How_Addressing_Works>`__.
  2396. :term:`FIT_CONF_DEFAULT_DTB`
  2397. Specifies the default device tree binary (dtb) file for a FIT image
  2398. when multiple ones are provided.
  2399. This variable is used in the :ref:`ref-classes-kernel-fitimage` class.
  2400. :term:`FIT_DESC`
  2401. Specifies the description string encoded into a FIT image. The
  2402. default value is set by the :ref:`ref-classes-kernel-fitimage` class as
  2403. follows::
  2404. FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
  2405. :term:`FIT_GENERATE_KEYS`
  2406. Decides whether to generate the keys for signing the FIT image if
  2407. they don't already exist. The keys are created in
  2408. :term:`UBOOT_SIGN_KEYDIR`. The default value is set to "0"
  2409. by the :ref:`ref-classes-kernel-fitimage` class.
  2410. :term:`FIT_HASH_ALG`
  2411. Specifies the hash algorithm used in creating the FIT Image.
  2412. This variable is set by default to "sha256" by the
  2413. :ref:`ref-classes-kernel-fitimage` class.
  2414. :term:`FIT_KERNEL_COMP_ALG`
  2415. The compression algorithm to use for the kernel image inside the FIT Image.
  2416. At present, the only supported values are "gzip" (default), "lzo" or "none".
  2417. If you set this variable to anything other than "none" you may also need
  2418. to set :term:`FIT_KERNEL_COMP_ALG_EXTENSION`.
  2419. This variable is used in the :ref:`ref-classes-kernel-uboot` class.
  2420. :term:`FIT_KERNEL_COMP_ALG_EXTENSION`
  2421. File extension corresponding to :term:`FIT_KERNEL_COMP_ALG`. The default
  2422. value is set ".gz" by the :ref:`ref-classes-kernel-uboot` class. If you
  2423. set :term:`FIT_KERNEL_COMP_ALG` to "lzo", you may want to set this
  2424. variable to ".lzo".
  2425. :term:`FIT_KEY_GENRSA_ARGS`
  2426. Arguments to ``openssl genrsa`` for generating a RSA private key for
  2427. signing the FIT image. The default value is set to "-F4" by the
  2428. :ref:`ref-classes-kernel-fitimage` class.
  2429. :term:`FIT_KEY_REQ_ARGS`
  2430. Arguments to ``openssl req`` for generating a certificate for signing
  2431. the FIT image. The default value is "-batch -new" by the
  2432. :ref:`ref-classes-kernel-fitimage` class, "batch" for
  2433. non interactive mode and "new" for generating new keys.
  2434. :term:`FIT_KEY_SIGN_PKCS`
  2435. Format for the public key certificate used for signing the FIT image.
  2436. The default value is set to "x509" by the
  2437. :ref:`ref-classes-kernel-fitimage` class.
  2438. :term:`FIT_SIGN_ALG`
  2439. Specifies the signature algorithm used in creating the FIT Image.
  2440. This variable is set by default to "rsa2048" by the
  2441. :ref:`ref-classes-kernel-fitimage` class.
  2442. :term:`FIT_PAD_ALG`
  2443. Specifies the padding algorithm used in creating the FIT Image.
  2444. The default value is set to "pkcs-1.5" by the
  2445. :ref:`ref-classes-kernel-fitimage` class.
  2446. :term:`FIT_SIGN_INDIVIDUAL`
  2447. If set to "1", then the :ref:`ref-classes-kernel-fitimage`
  2448. class will sign the kernel, dtb and ramdisk images individually in addition
  2449. to signing the FIT image itself. This could be useful if you are
  2450. intending to verify signatures in another context than booting via
  2451. U-Boot.
  2452. This variable is set to "0" by default.
  2453. :term:`FIT_SIGN_NUMBITS`
  2454. Size of the private key used in the FIT image, in number of bits.
  2455. The default value for this variable is set to "2048"
  2456. by the :ref:`ref-classes-kernel-fitimage` class.
  2457. :term:`FONT_EXTRA_RDEPENDS`
  2458. When inheriting the :ref:`ref-classes-fontcache` class,
  2459. this variable specifies the runtime dependencies for font packages.
  2460. By default, the :term:`FONT_EXTRA_RDEPENDS` is set to "fontconfig-utils".
  2461. :term:`FONT_PACKAGES`
  2462. When inheriting the :ref:`ref-classes-fontcache` class, this variable
  2463. identifies packages containing font files that need to be cached by
  2464. Fontconfig. By default, the :ref:`ref-classes-fontcache` class assumes
  2465. that fonts are in the recipe's main package (i.e.
  2466. ``${``\ :term:`PN`\ ``}``). Use this variable if fonts you
  2467. need are in a package other than that main package.
  2468. :term:`FORCE_RO_REMOVE`
  2469. Forces the removal of the packages listed in ``ROOTFS_RO_UNNEEDED``
  2470. during the generation of the root filesystem.
  2471. Set the variable to "1" to force the removal of these packages.
  2472. :term:`FULL_OPTIMIZATION`
  2473. The options to pass in :term:`TARGET_CFLAGS` and :term:`CFLAGS` when
  2474. compiling an optimized system. This variable defaults to "-O2 -pipe
  2475. ${DEBUG_FLAGS}".
  2476. :term:`GCCPIE`
  2477. Enables Position Independent Executables (PIE) within the GNU C
  2478. Compiler (GCC). Enabling PIE in the GCC makes Return Oriented
  2479. Programming (ROP) attacks much more difficult to execute.
  2480. By default the ``security_flags.inc`` file enables PIE by setting the
  2481. variable as follows::
  2482. GCCPIE ?= "--enable-default-pie"
  2483. :term:`GCCVERSION`
  2484. Specifies the default version of the GNU C Compiler (GCC) used for
  2485. compilation. By default, :term:`GCCVERSION` is set to "8.x" in the
  2486. ``meta/conf/distro/include/tcmode-default.inc`` include file::
  2487. GCCVERSION ?= "8.%"
  2488. You can override this value by setting it in a
  2489. configuration file such as the ``local.conf``.
  2490. :term:`GDB`
  2491. The minimal command and arguments to run the GNU Debugger.
  2492. :term:`GIR_EXTRA_LIBS_PATH`
  2493. Allows to specify an extra search path for ``.so`` files
  2494. in GLib related recipes using GObject introspection,
  2495. and which do not compile without this setting.
  2496. See the ":ref:`dev-manual/gobject-introspection:enabling gobject introspection support`"
  2497. section for details.
  2498. :term:`GITDIR`
  2499. The directory in which a local copy of a Git repository is stored
  2500. when it is cloned.
  2501. :term:`GITHUB_BASE_URI`
  2502. When inheriting the :ref:`ref-classes-github-releases`
  2503. class, specifies the base URL for fetching releases for the github
  2504. project you wish to fetch sources from. The default value is as follows::
  2505. GITHUB_BASE_URI ?= "https://github.com/${BPN}/${BPN}/releases/"
  2506. :term:`GLIBC_GENERATE_LOCALES`
  2507. Specifies the list of GLIBC locales to generate should you not wish
  2508. to generate all LIBC locals, which can be time consuming.
  2509. .. note::
  2510. If you specifically remove the locale ``en_US.UTF-8``, you must set
  2511. :term:`IMAGE_LINGUAS` appropriately.
  2512. You can set :term:`GLIBC_GENERATE_LOCALES` in your ``local.conf`` file.
  2513. By default, all locales are generated::
  2514. GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 en_US.UTF-8"
  2515. :term:`GO_IMPORT`
  2516. When inheriting the :ref:`ref-classes-go` class, this mandatory variable
  2517. sets the import path for the Go package that will be created for the code
  2518. to build. If you have a ``go.mod`` file in the source directory, this
  2519. typically matches the path in the ``module`` line in this file.
  2520. Other Go programs importing this package will use this path.
  2521. Here is an example setting from the
  2522. :yocto_git:`go-helloworld_0.1.bb </poky/tree/meta/recipes-extended/go-examples/go-helloworld_0.1.bb>`
  2523. recipe::
  2524. GO_IMPORT = "golang.org/x/example"
  2525. :term:`GO_INSTALL`
  2526. When inheriting the :ref:`ref-classes-go` class, this optional variable
  2527. specifies which packages in the sources should be compiled and
  2528. installed in the Go build space by the
  2529. `go install <https://go.dev/ref/mod#go-install>`__ command.
  2530. Here is an example setting from the
  2531. :oe_git:`crucible </meta-openembedded/tree/meta-oe/recipes-support/crucible/>`
  2532. recipe::
  2533. GO_INSTALL = "\
  2534. ${GO_IMPORT}/cmd/crucible \
  2535. ${GO_IMPORT}/cmd/habtool \
  2536. "
  2537. By default, :term:`GO_INSTALL` is defined as::
  2538. GO_INSTALL ?= "${GO_IMPORT}/..."
  2539. The ``...`` wildcard means that it will catch all
  2540. packages found in the sources.
  2541. See the :term:`GO_INSTALL_FILTEROUT` variable for
  2542. filtering out unwanted packages from the ones
  2543. found from the :term:`GO_INSTALL` value.
  2544. :term:`GO_INSTALL_FILTEROUT`
  2545. When using the Go "vendor" mechanism to bring in dependencies for a Go
  2546. package, the default :term:`GO_INSTALL` setting, which uses the ``...``
  2547. wildcard, will include the vendored packages in the build, which produces
  2548. incorrect results.
  2549. There are also some Go packages that are structured poorly, so that the
  2550. ``...`` wildcard results in building example or test code that should not
  2551. be included in the build, or could fail to build.
  2552. This optional variable allows for filtering out a subset of the sources.
  2553. It defaults to excluding everything under the ``vendor`` subdirectory
  2554. under package's main directory. This is the normal location for vendored
  2555. packages, but it can be overridden by a recipe to filter out other
  2556. subdirectories if needed.
  2557. :term:`GO_WORKDIR`
  2558. When using Go Modules, the current working directory must be the directory
  2559. containing the ``go.mod`` file, or one of its subdirectories. When the
  2560. ``go`` tool is used, it will automatically look for the ``go.mod`` file
  2561. in the Go working directory or in any parent directory, but not in
  2562. subdirectories.
  2563. When using the :ref:`ref-classes-go-mod` class to use Go modules,
  2564. the optional :term:`GO_WORKDIR` variable, defaulting to the value
  2565. of :term:`GO_IMPORT`, allows to specify a different Go working directory.
  2566. :term:`GROUPADD_PARAM`
  2567. When inheriting the :ref:`ref-classes-useradd` class,
  2568. this variable specifies for a package what parameters should be
  2569. passed to the ``groupadd`` command if you wish to add a group to the
  2570. system when the package is installed.
  2571. Here is an example from the ``dbus`` recipe::
  2572. GROUPADD_PARAM:${PN} = "-r netdev"
  2573. More than one group can be added by separating each set of different
  2574. groups' parameters with a semicolon.
  2575. Here is an example adding multiple groups from the ``useradd-example.bb``
  2576. file in the ``meta-skeleton`` layer::
  2577. GROUPADD_PARAM:${PN} = "-g 880 group1; -g 890 group2"
  2578. For information on the standard Linux shell command
  2579. ``groupadd``, see https://linux.die.net/man/8/groupadd.
  2580. :term:`GROUPMEMS_PARAM`
  2581. When inheriting the :ref:`ref-classes-useradd` class,
  2582. this variable specifies for a package what parameters should be
  2583. passed to the ``groupmems`` command if you wish to modify the members
  2584. of a group when the package is installed.
  2585. For information on the standard Linux shell command ``groupmems``,
  2586. see https://linux.die.net/man/8/groupmems.
  2587. :term:`GRUB_GFXSERIAL`
  2588. Configures the GNU GRand Unified Bootloader (GRUB) to have graphics
  2589. and serial in the boot menu. Set this variable to "1" in your
  2590. ``local.conf`` or distribution configuration file to enable graphics
  2591. and serial in the menu.
  2592. See the :ref:`ref-classes-grub-efi` class for more
  2593. information on how this variable is used.
  2594. :term:`GRUB_OPTS`
  2595. Additional options to add to the GNU GRand Unified Bootloader (GRUB)
  2596. configuration. Use a semi-colon character (``;``) to separate
  2597. multiple options.
  2598. The :term:`GRUB_OPTS` variable is optional. See the
  2599. :ref:`ref-classes-grub-efi` class for more information
  2600. on how this variable is used.
  2601. :term:`GRUB_TIMEOUT`
  2602. Specifies the timeout before executing the default ``LABEL`` in the
  2603. GNU GRand Unified Bootloader (GRUB).
  2604. The :term:`GRUB_TIMEOUT` variable is optional. See the
  2605. :ref:`ref-classes-grub-efi` class for more information
  2606. on how this variable is used.
  2607. :term:`GTKIMMODULES_PACKAGES`
  2608. When inheriting the :ref:`ref-classes-gtk-immodules-cache` class,
  2609. this variable specifies the packages that contain the GTK+ input
  2610. method modules being installed when the modules are in packages other
  2611. than the main package.
  2612. :term:`HGDIR`
  2613. See :term:`bitbake:HGDIR` in the BitBake manual.
  2614. :term:`HOMEPAGE`
  2615. Website where more information about the software the recipe is
  2616. building can be found.
  2617. :term:`HOST_ARCH`
  2618. The name of the target architecture, which is normally the same as
  2619. :term:`TARGET_ARCH`. The OpenEmbedded build system
  2620. supports many architectures. Here is an example list of architectures
  2621. supported. This list is by no means complete as the architecture is
  2622. configurable:
  2623. - arm
  2624. - i586
  2625. - x86_64
  2626. - powerpc
  2627. - powerpc64
  2628. - mips
  2629. - mipsel
  2630. :term:`HOST_CC_ARCH`
  2631. Specifies architecture-specific compiler flags that are passed to the
  2632. C compiler.
  2633. Default initialization for :term:`HOST_CC_ARCH` varies depending on what
  2634. is being built:
  2635. - :term:`TARGET_CC_ARCH` when building for the
  2636. target
  2637. - :term:`BUILD_CC_ARCH` when building for the build host (i.e.
  2638. ``-native``)
  2639. - ``BUILDSDK_CC_ARCH`` when building for an SDK (i.e.
  2640. ``nativesdk-``)
  2641. :term:`HOST_OS`
  2642. Specifies the name of the target operating system, which is normally
  2643. the same as the :term:`TARGET_OS`. The variable can
  2644. be set to "linux" for ``glibc``-based systems and to "linux-musl" for
  2645. ``musl``. For ARM/EABI targets, there are also "linux-gnueabi" and
  2646. "linux-musleabi" values possible.
  2647. :term:`HOST_PREFIX`
  2648. Specifies the prefix for the cross-compile toolchain. :term:`HOST_PREFIX`
  2649. is normally the same as :term:`TARGET_PREFIX`.
  2650. :term:`HOST_SYS`
  2651. Specifies the system, including the architecture and the operating
  2652. system, for which the build is occurring in the context of the
  2653. current recipe.
  2654. The OpenEmbedded build system automatically sets this variable based
  2655. on :term:`HOST_ARCH`,
  2656. :term:`HOST_VENDOR`, and
  2657. :term:`HOST_OS` variables.
  2658. .. note::
  2659. You do not need to set the variable yourself.
  2660. Consider these two examples:
  2661. - Given a native recipe on a 32-bit x86 machine running Linux, the
  2662. value is "i686-linux".
  2663. - Given a recipe being built for a little-endian MIPS target running
  2664. Linux, the value might be "mipsel-linux".
  2665. :term:`HOST_VENDOR`
  2666. Specifies the name of the vendor. :term:`HOST_VENDOR` is normally the
  2667. same as :term:`TARGET_VENDOR`.
  2668. :term:`HOSTTOOLS`
  2669. A space-separated list (filter) of tools on the build host that
  2670. should be allowed to be called from within build tasks. Using this
  2671. filter helps reduce the possibility of host contamination. If a tool
  2672. specified in the value of :term:`HOSTTOOLS` is not found on the build
  2673. host, the OpenEmbedded build system produces an error and the build
  2674. is not started.
  2675. For additional information, see
  2676. :term:`HOSTTOOLS_NONFATAL`.
  2677. :term:`HOSTTOOLS_NONFATAL`
  2678. A space-separated list (filter) of tools on the build host that
  2679. should be allowed to be called from within build tasks. Using this
  2680. filter helps reduce the possibility of host contamination. Unlike
  2681. :term:`HOSTTOOLS`, the OpenEmbedded build system
  2682. does not produce an error if a tool specified in the value of
  2683. :term:`HOSTTOOLS_NONFATAL` is not found on the build host. Thus, you can
  2684. use :term:`HOSTTOOLS_NONFATAL` to filter optional host tools.
  2685. :term:`ICECC_CLASS_DISABLE`
  2686. Identifies user classes that you do not want the Icecream distributed
  2687. compile support to consider. This variable is used by the
  2688. :ref:`ref-classes-icecc` class. You set this variable in
  2689. your ``local.conf`` file.
  2690. When you list classes using this variable, the recipes inheriting
  2691. those classes will not benefit from distributed compilation across
  2692. remote hosts. Instead they will be built locally.
  2693. :term:`ICECC_DISABLED`
  2694. Disables or enables the ``icecc`` (Icecream) function. For more
  2695. information on this function and best practices for using this
  2696. variable, see the ":ref:`ref-classes-icecc`"
  2697. section.
  2698. Setting this variable to "1" in your ``local.conf`` disables the
  2699. function::
  2700. ICECC_DISABLED ??= "1"
  2701. To enable the function, set the variable as follows::
  2702. ICECC_DISABLED = ""
  2703. :term:`ICECC_ENV_EXEC`
  2704. Points to the ``icecc-create-env`` script that you provide. This
  2705. variable is used by the :ref:`ref-classes-icecc` class. You
  2706. set this variable in your ``local.conf`` file.
  2707. If you do not point to a script that you provide, the OpenEmbedded
  2708. build system uses the default script provided by the
  2709. :oe_git:`icecc-create-env_0.1.bb
  2710. </openembedded-core/tree/meta/recipes-devtools/icecc-create-env/icecc-create-env_0.1.bb>`
  2711. recipe, which is a modified version and not the one that comes with
  2712. ``icecream``.
  2713. :term:`ICECC_PARALLEL_MAKE`
  2714. Extra options passed to the ``make`` command during the
  2715. :ref:`ref-tasks-compile` task that specify parallel
  2716. compilation. This variable usually takes the form of "-j x", where x
  2717. represents the maximum number of parallel threads ``make`` can run.
  2718. .. note::
  2719. The options passed affect builds on all enabled machines on the
  2720. network, which are machines running the ``iceccd`` daemon.
  2721. If your enabled machines support multiple cores, coming up with the
  2722. maximum number of parallel threads that gives you the best
  2723. performance could take some experimentation since machine speed,
  2724. network lag, available memory, and existing machine loads can all
  2725. affect build time. Consequently, unlike the
  2726. :term:`PARALLEL_MAKE` variable, there is no
  2727. rule-of-thumb for setting :term:`ICECC_PARALLEL_MAKE` to achieve optimal
  2728. performance.
  2729. If you do not set :term:`ICECC_PARALLEL_MAKE`, the build system does not
  2730. use it (i.e. the system does not detect and assign the number of
  2731. cores as is done with :term:`PARALLEL_MAKE`).
  2732. :term:`ICECC_PATH`
  2733. The location of the ``icecc`` binary. You can set this variable in
  2734. your ``local.conf`` file. If your ``local.conf`` file does not define
  2735. this variable, the :ref:`ref-classes-icecc` class attempts
  2736. to define it by locating ``icecc`` using ``which``.
  2737. :term:`ICECC_RECIPE_DISABLE`
  2738. Identifies user recipes that you do not want the Icecream distributed
  2739. compile support to consider. This variable is used by the
  2740. :ref:`ref-classes-icecc` class. You set this variable in
  2741. your ``local.conf`` file.
  2742. When you list recipes using this variable, you are excluding them
  2743. from distributed compilation across remote hosts. Instead they will
  2744. be built locally.
  2745. :term:`ICECC_RECIPE_ENABLE`
  2746. Identifies user recipes that use an empty
  2747. :term:`PARALLEL_MAKE` variable that you want to
  2748. force remote distributed compilation on using the Icecream
  2749. distributed compile support. This variable is used by the
  2750. :ref:`ref-classes-icecc` class. You set this variable in
  2751. your ``local.conf`` file.
  2752. :term:`IMAGE_BASENAME`
  2753. The base name of image output files. This variable defaults to the
  2754. recipe name (``${``\ :term:`PN`\ ``}``).
  2755. :term:`IMAGE_BOOT_FILES`
  2756. A space-separated list of files installed into the boot partition
  2757. when preparing an image using the Wic tool with the
  2758. ``bootimg-partition`` source plugin. By default,
  2759. the files are
  2760. installed under the same name as the source files. To change the
  2761. installed name, separate it from the original name with a semi-colon
  2762. (;). Source files need to be located in
  2763. :term:`DEPLOY_DIR_IMAGE`. Here are two
  2764. examples::
  2765. IMAGE_BOOT_FILES = "u-boot.img uImage;kernel"
  2766. IMAGE_BOOT_FILES = "u-boot.${UBOOT_SUFFIX} ${KERNEL_IMAGETYPE}"
  2767. Alternatively, source files can be picked up using a glob pattern. In
  2768. this case, the destination file must have the same name as the base
  2769. name of the source file path. To install files into a directory
  2770. within the target location, pass its name after a semi-colon (;).
  2771. Here are two examples::
  2772. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*"
  2773. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*;boot/"
  2774. The first example
  2775. installs all files from ``${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles``
  2776. into the root of the target partition. The second example installs
  2777. the same files into a ``boot`` directory within the target partition.
  2778. You can find information on how to use the Wic tool in the
  2779. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  2780. section of the Yocto Project Development Tasks Manual. Reference
  2781. material for Wic is located in the
  2782. ":doc:`/ref-manual/kickstart`" chapter.
  2783. :term:`IMAGE_BUILDINFO_FILE`
  2784. When using the :ref:`ref-classes-image-buildinfo` class,
  2785. specifies the file in the image to write the build information into. The
  2786. default value is "``${sysconfdir}/buildinfo``".
  2787. :term:`IMAGE_BUILDINFO_VARS`
  2788. When using the :ref:`ref-classes-image-buildinfo` class,
  2789. specifies the list of variables to include in the `Build Configuration`
  2790. section of the output file (as a space-separated list). Defaults to
  2791. ":term:`DISTRO` :term:`DISTRO_VERSION`".
  2792. :term:`IMAGE_CLASSES`
  2793. A list of classes that all images should inherit. This is typically used
  2794. to enable functionality across all image recipes.
  2795. Classes specified in :term:`IMAGE_CLASSES` must be located in the
  2796. ``classes-recipe/`` or ``classes/`` subdirectories.
  2797. :term:`IMAGE_CMD`
  2798. Specifies the command to create the image file for a specific image
  2799. type, which corresponds to the value set in
  2800. :term:`IMAGE_FSTYPES`, (e.g. ``ext3``,
  2801. ``btrfs``, and so forth). When setting this variable, you should use
  2802. an override for the associated type. Here is an example::
  2803. IMAGE_CMD:jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime \
  2804. --output=${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.jffs2 \
  2805. ${EXTRA_IMAGECMD}"
  2806. You typically do not need to set this variable unless you are adding
  2807. support for a new image type. For more examples on how to set this
  2808. variable, see the :ref:`ref-classes-image_types`
  2809. class file, which is ``meta/classes-recipe/image_types.bbclass``.
  2810. :term:`IMAGE_DEVICE_TABLES`
  2811. Specifies one or more files that contain custom device tables that
  2812. are passed to the ``makedevs`` command as part of creating an image.
  2813. These files list basic device nodes that should be created under
  2814. ``/dev`` within the image. If :term:`IMAGE_DEVICE_TABLES` is not set,
  2815. ``files/device_table-minimal.txt`` is used, which is located by
  2816. :term:`BBPATH`. For details on how you should write
  2817. device table files, see ``meta/files/device_table-minimal.txt`` as an
  2818. example.
  2819. :term:`IMAGE_EFI_BOOT_FILES`
  2820. A space-separated list of files installed into the boot partition
  2821. when preparing an image using the Wic tool with the
  2822. ``bootimg-efi`` source plugin. By default,
  2823. the files are
  2824. installed under the same name as the source files. To change the
  2825. installed name, separate it from the original name with a semi-colon
  2826. (;). Source files need to be located in
  2827. :term:`DEPLOY_DIR_IMAGE`. Here are two
  2828. examples::
  2829. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE};bz2"
  2830. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE} microcode.cpio"
  2831. Alternatively, source files can be picked up using a glob pattern. In
  2832. this case, the destination file must have the same name as the base
  2833. name of the source file path. To install files into a directory
  2834. within the target location, pass its name after a semi-colon (;).
  2835. Here are two examples::
  2836. IMAGE_EFI_BOOT_FILES = "boot/loader/*"
  2837. IMAGE_EFI_BOOT_FILES = "boot/loader/*;boot/"
  2838. The first example
  2839. installs all files from ``${DEPLOY_DIR_IMAGE}/boot/loader/``
  2840. into the root of the target partition. The second example installs
  2841. the same files into a ``boot`` directory within the target partition.
  2842. You can find information on how to use the Wic tool in the
  2843. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  2844. section of the Yocto Project Development Tasks Manual. Reference
  2845. material for Wic is located in the
  2846. ":doc:`/ref-manual/kickstart`" chapter.
  2847. :term:`IMAGE_FEATURES`
  2848. The primary list of features to include in an image. Typically, you
  2849. configure this variable in an image recipe. Although you can use this
  2850. variable from your ``local.conf`` file, which is found in the
  2851. :term:`Build Directory`, best practices dictate that you do
  2852. not.
  2853. .. note::
  2854. To enable extra features from outside the image recipe, use the
  2855. :term:`EXTRA_IMAGE_FEATURES` variable.
  2856. For a list of image features that ships with the Yocto Project, see
  2857. the ":ref:`ref-features-image`" section.
  2858. For an example that shows how to customize your image by using this
  2859. variable, see the ":ref:`dev-manual/customizing-images:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  2860. section in the Yocto Project Development Tasks Manual.
  2861. :term:`IMAGE_FSTYPES`
  2862. Specifies the formats the OpenEmbedded build system uses during the
  2863. build when creating the root filesystem. For example, setting
  2864. :term:`IMAGE_FSTYPES` as follows causes the build system to create root
  2865. filesystems using two formats: ``.ext3`` and ``.tar.bz2``::
  2866. IMAGE_FSTYPES = "ext3 tar.bz2"
  2867. For the complete list of supported image formats from which you can
  2868. choose, see :term:`IMAGE_TYPES`.
  2869. .. note::
  2870. - If an image recipe uses the "inherit image" line and you are
  2871. setting :term:`IMAGE_FSTYPES` inside the recipe, you must set
  2872. :term:`IMAGE_FSTYPES` prior to using the "inherit image" line.
  2873. - Due to the way the OpenEmbedded build system processes this
  2874. variable, you cannot update its contents by using ``:append``
  2875. or ``:prepend``. You must use the ``+=`` operator to add one or
  2876. more options to the :term:`IMAGE_FSTYPES` variable.
  2877. :term:`IMAGE_INSTALL`
  2878. Used by recipes to specify the packages to install into an image
  2879. through the :ref:`ref-classes-image` class. Use the
  2880. :term:`IMAGE_INSTALL` variable with care to avoid ordering issues.
  2881. Image recipes set :term:`IMAGE_INSTALL` to specify the packages to
  2882. install into an image through :ref:`ref-classes-image`. Additionally,
  2883. there are "helper" classes such as the :ref:`ref-classes-core-image`
  2884. class which can take lists used with :term:`IMAGE_FEATURES` and turn
  2885. them into auto-generated entries in :term:`IMAGE_INSTALL` in addition
  2886. to its default contents.
  2887. When you use this variable, it is best to use it as follows::
  2888. IMAGE_INSTALL:append = " package-name"
  2889. Be sure to include the space
  2890. between the quotation character and the start of the package name or
  2891. names.
  2892. .. note::
  2893. - When working with a
  2894. :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  2895. image, do not use the :term:`IMAGE_INSTALL` variable to specify
  2896. packages for installation. Instead, use the
  2897. :term:`PACKAGE_INSTALL` variable, which
  2898. allows the initial RAM filesystem (:term:`Initramfs`) recipe to use a
  2899. fixed set of packages and not be affected by :term:`IMAGE_INSTALL`.
  2900. For information on creating an :term:`Initramfs`, see the
  2901. ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`"
  2902. section in the Yocto Project Development Tasks Manual.
  2903. - Using :term:`IMAGE_INSTALL` with the
  2904. :ref:`+= <bitbake-user-manual/bitbake-user-manual-metadata:appending (+=) and prepending (=+) with spaces>`
  2905. BitBake operator within the ``/conf/local.conf`` file or from
  2906. within an image recipe is not recommended. Use of this operator in
  2907. these ways can cause ordering issues. Since
  2908. :ref:`ref-classes-core-image` sets :term:`IMAGE_INSTALL` to a
  2909. default value using the
  2910. :ref:`?= <bitbake-user-manual/bitbake-user-manual-metadata:setting a default value (?=)>`
  2911. operator, using a ``+=`` operation against :term:`IMAGE_INSTALL`
  2912. results in unexpected behavior when used within
  2913. ``conf/local.conf``. Furthermore, the same operation from within an
  2914. image recipe may or may not succeed depending on the specific
  2915. situation. In both these cases, the behavior is contrary to how
  2916. most users expect the ``+=`` operator to work.
  2917. :term:`IMAGE_LINGUAS`
  2918. Specifies the list of locales to install into the image during the
  2919. root filesystem construction process. The OpenEmbedded build system
  2920. automatically splits locale files, which are used for localization,
  2921. into separate packages. Setting the :term:`IMAGE_LINGUAS` variable
  2922. ensures that any locale packages that correspond to packages already
  2923. selected for installation into the image are also installed. Here is
  2924. an example::
  2925. IMAGE_LINGUAS = "pt-br de-de"
  2926. In this example, the build system ensures any Brazilian Portuguese
  2927. and German locale files that correspond to packages in the image are
  2928. installed (i.e. ``*-locale-pt-br`` and ``*-locale-de-de`` as well as
  2929. ``*-locale-pt`` and ``*-locale-de``, since some software packages
  2930. only provide locale files by language and not by country-specific
  2931. language).
  2932. See the :term:`GLIBC_GENERATE_LOCALES`
  2933. variable for information on generating GLIBC locales.
  2934. :term:`IMAGE_LINK_NAME`
  2935. The name of the output image symlink (which does not include
  2936. the version part as :term:`IMAGE_NAME` does). The default value
  2937. is derived using the :term:`IMAGE_BASENAME` and
  2938. :term:`IMAGE_MACHINE_SUFFIX` variables::
  2939. IMAGE_LINK_NAME ?= "${IMAGE_BASENAME}${IMAGE_MACHINE_SUFFIX}"
  2940. .. note::
  2941. It is possible to set this to "" to disable symlink creation,
  2942. however, you also need to set :term:`IMAGE_NAME` to still have
  2943. a reasonable value e.g.::
  2944. IMAGE_LINK_NAME = ""
  2945. IMAGE_NAME = "${IMAGE_BASENAME}${IMAGE_MACHINE_SUFFIX}${IMAGE_VERSION_SUFFIX}"
  2946. :term:`IMAGE_MACHINE_SUFFIX`
  2947. Specifies the by default machine-specific suffix for image file names
  2948. (before the extension). The default value is set as follows::
  2949. IMAGE_MACHINE_SUFFIX ??= "-${MACHINE}"
  2950. The default :term:`DEPLOY_DIR_IMAGE` already has a :term:`MACHINE`
  2951. subdirectory, so you may find it unnecessary to also include this suffix
  2952. in the name of every image file. If you prefer to remove the suffix you
  2953. can set this variable to an empty string::
  2954. IMAGE_MACHINE_SUFFIX = ""
  2955. (Not to be confused with :term:`IMAGE_NAME_SUFFIX`.)
  2956. :term:`IMAGE_MANIFEST`
  2957. The manifest file for the image. This file lists all the installed
  2958. packages that make up the image. The file contains package
  2959. information on a line-per-package basis as follows::
  2960. packagename packagearch version
  2961. The :ref:`rootfs-postcommands <ref-classes-rootfs*>` class defines the manifest
  2962. file as follows::
  2963. IMAGE_MANIFEST ="${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.manifest"
  2964. The location is
  2965. derived using the :term:`IMGDEPLOYDIR`
  2966. and :term:`IMAGE_NAME` variables. You can find
  2967. information on how the image is created in the ":ref:`overview-manual/concepts:image generation`"
  2968. section in the Yocto Project Overview and Concepts Manual.
  2969. :term:`IMAGE_NAME`
  2970. The name of the output image files minus the extension. By default
  2971. this variable is set using the :term:`IMAGE_LINK_NAME`, and
  2972. :term:`IMAGE_VERSION_SUFFIX` variables::
  2973. IMAGE_NAME ?= "${IMAGE_LINK_NAME}${IMAGE_VERSION_SUFFIX}"
  2974. :term:`IMAGE_NAME_SUFFIX`
  2975. Suffix used for the image output filename --- defaults to ``".rootfs"``
  2976. to distinguish the image file from other files created during image
  2977. building; however if this suffix is redundant or not desired you can
  2978. clear the value of this variable (set the value to ""). For example,
  2979. this is typically cleared in :term:`Initramfs` image recipes.
  2980. :term:`IMAGE_OUTPUT_MANIFEST`
  2981. When inheriting the :ref:`ref-classes-image` class directly or through the
  2982. :ref:`ref-classes-core-image` class, the :term:`IMAGE_OUTPUT_MANIFEST`
  2983. points to a manifest ``json`` file that lists what images were created by
  2984. various image creation tasks (as defined by the :term:`IMAGE_FSTYPES`
  2985. variable). It is set in the :ref:`ref-classes-image` class as follows::
  2986. IMAGE_OUTPUT_MANIFEST = "${IMAGE_OUTPUT_MANIFEST_DIR}/manifest.json"
  2987. :term:`IMAGE_OUTPUT_MANIFEST_DIR`
  2988. When inheriting the :ref:`ref-classes-image` class directly or through the
  2989. :ref:`ref-classes-core-image` class, the :term:`IMAGE_OUTPUT_MANIFEST_DIR` points to
  2990. a directory that stores a manifest ``json`` file that lists what
  2991. images were created by various image creation tasks (as defined by the
  2992. :term:`IMAGE_FSTYPES` variable). It is set in the :ref:`ref-classes-image`
  2993. class as follows::
  2994. IMAGE_OUTPUT_MANIFEST_DIR = "${WORKDIR}/deploy-image-output-manifest"
  2995. :term:`IMAGE_OVERHEAD_FACTOR`
  2996. Defines a multiplier that the build system applies to the initial
  2997. image size for cases when the multiplier times the returned disk
  2998. usage value for the image is greater than the sum of
  2999. :term:`IMAGE_ROOTFS_SIZE` and :term:`IMAGE_ROOTFS_EXTRA_SPACE`. The result of
  3000. the multiplier applied to the initial image size creates free disk
  3001. space in the image as overhead. By default, the build process uses a
  3002. multiplier of 1.3 for this variable. This default value results in
  3003. 30% free disk space added to the image when this method is used to
  3004. determine the final generated image size. You should be aware that
  3005. post install scripts and the package management system uses disk
  3006. space inside this overhead area. Consequently, the multiplier does
  3007. not produce an image with all the theoretical free disk space. See
  3008. :term:`IMAGE_ROOTFS_SIZE` for information on how the build system
  3009. determines the overall image size.
  3010. The default 30% free disk space typically gives the image enough room
  3011. to boot and allows for basic post installs while still leaving a
  3012. small amount of free disk space. If 30% free space is inadequate, you
  3013. can increase the default value. For example, the following setting
  3014. gives you 50% free space added to the image::
  3015. IMAGE_OVERHEAD_FACTOR = "1.5"
  3016. Alternatively, you can ensure a specific amount of free disk space is
  3017. added to the image by using the :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  3018. variable.
  3019. :term:`IMAGE_PKGTYPE`
  3020. Defines the package type (i.e. DEB, RPM, IPK, or TAR) used by the
  3021. OpenEmbedded build system. The variable is defined appropriately by
  3022. the :ref:`ref-classes-package_deb`, :ref:`ref-classes-package_rpm`,
  3023. or :ref:`ref-classes-package_ipk` class.
  3024. The :ref:`ref-classes-populate-sdk-*` and :ref:`ref-classes-image`
  3025. classes use the :term:`IMAGE_PKGTYPE` for packaging up images and SDKs.
  3026. You should not set the :term:`IMAGE_PKGTYPE` manually. Rather, the
  3027. variable is set indirectly through the appropriate
  3028. :ref:`package_* <ref-classes-package>` class using the
  3029. :term:`PACKAGE_CLASSES` variable. The
  3030. OpenEmbedded build system uses the first package type (e.g. DEB, RPM,
  3031. or IPK) that appears with the variable
  3032. .. note::
  3033. Files using the ``.tar`` format are never used as a substitute
  3034. packaging format for DEB, RPM, and IPK formatted files for your image
  3035. or SDK.
  3036. :term:`IMAGE_POSTPROCESS_COMMAND`
  3037. Specifies a list of functions to call once the OpenEmbedded build
  3038. system creates the final image output files. You can specify
  3039. functions separated by spaces::
  3040. IMAGE_POSTPROCESS_COMMAND += "function"
  3041. If you need to pass the root filesystem path to a command within the
  3042. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  3043. directory that becomes the root filesystem image. See the
  3044. :term:`IMAGE_ROOTFS` variable for more
  3045. information.
  3046. :term:`IMAGE_PREPROCESS_COMMAND`
  3047. Specifies a list of functions to call before the OpenEmbedded build
  3048. system creates the final image output files. You can specify
  3049. functions separated by spaces::
  3050. IMAGE_PREPROCESS_COMMAND += "function"
  3051. If you need to pass the root filesystem path to a command within the
  3052. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  3053. directory that becomes the root filesystem image. See the
  3054. :term:`IMAGE_ROOTFS` variable for more
  3055. information.
  3056. :term:`IMAGE_ROOTFS`
  3057. The location of the root filesystem while it is under construction
  3058. (i.e. during the :ref:`ref-tasks-rootfs` task). This
  3059. variable is not configurable. Do not change it.
  3060. :term:`IMAGE_ROOTFS_ALIGNMENT`
  3061. Specifies the alignment for the output image file in Kbytes. If the
  3062. size of the image is not a multiple of this value, then the size is
  3063. rounded up to the nearest multiple of the value. The default value is
  3064. "1". See :term:`IMAGE_ROOTFS_SIZE` for
  3065. additional information.
  3066. :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  3067. Defines additional free disk space created in the image in Kbytes. By
  3068. default, this variable is set to "0". This free disk space is added
  3069. to the image after the build system determines the image size as
  3070. described in :term:`IMAGE_ROOTFS_SIZE`.
  3071. This variable is particularly useful when you want to ensure that a
  3072. specific amount of free disk space is available on a device after an
  3073. image is installed and running. For example, to be sure 5 Gbytes of
  3074. free disk space is available, set the variable as follows::
  3075. IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
  3076. For example, the Yocto Project Build Appliance specifically requests
  3077. 40 Gbytes of extra space with the line::
  3078. IMAGE_ROOTFS_EXTRA_SPACE = "41943040"
  3079. :term:`IMAGE_ROOTFS_SIZE`
  3080. Defines the size in Kbytes for the generated image. The OpenEmbedded
  3081. build system determines the final size for the generated image using
  3082. an algorithm that takes into account the initial disk space used for
  3083. the generated image, a requested size for the image, and requested
  3084. additional free disk space to be added to the image. Programatically,
  3085. the build system determines the final size of the generated image as
  3086. follows::
  3087. if (image-du * overhead) < rootfs-size:
  3088. internal-rootfs-size = rootfs-size + xspace
  3089. else:
  3090. internal-rootfs-size = (image-du * overhead) + xspace
  3091. where:
  3092. image-du = Returned value of the du command on the image.
  3093. overhead = IMAGE_OVERHEAD_FACTOR
  3094. rootfs-size = IMAGE_ROOTFS_SIZE
  3095. internal-rootfs-size = Initial root filesystem size before any modifications.
  3096. xspace = IMAGE_ROOTFS_EXTRA_SPACE
  3097. See the :term:`IMAGE_OVERHEAD_FACTOR`
  3098. and :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  3099. variables for related information.
  3100. :term:`IMAGE_TYPEDEP`
  3101. Specifies a dependency from one image type on another. Here is an
  3102. example from the :ref:`ref-classes-image-live` class::
  3103. IMAGE_TYPEDEP:live = "ext3"
  3104. In the previous example, the variable ensures that when "live" is
  3105. listed with the :term:`IMAGE_FSTYPES` variable,
  3106. the OpenEmbedded build system produces an ``ext3`` image first since
  3107. one of the components of the live image is an ``ext3`` formatted
  3108. partition containing the root filesystem.
  3109. :term:`IMAGE_TYPES`
  3110. Specifies the complete list of supported image types by default:
  3111. - btrfs
  3112. - container
  3113. - cpio
  3114. - cpio.gz
  3115. - cpio.lz4
  3116. - cpio.lzma
  3117. - cpio.xz
  3118. - cramfs
  3119. - erofs
  3120. - erofs-lz4
  3121. - erofs-lz4hc
  3122. - ext2
  3123. - ext2.bz2
  3124. - ext2.gz
  3125. - ext2.lzma
  3126. - ext3
  3127. - ext3.gz
  3128. - ext4
  3129. - ext4.gz
  3130. - f2fs
  3131. - hddimg
  3132. - iso
  3133. - jffs2
  3134. - jffs2.sum
  3135. - multiubi
  3136. - squashfs
  3137. - squashfs-lz4
  3138. - squashfs-lzo
  3139. - squashfs-xz
  3140. - tar
  3141. - tar.bz2
  3142. - tar.gz
  3143. - tar.lz4
  3144. - tar.xz
  3145. - tar.zst
  3146. - ubi
  3147. - ubifs
  3148. - wic
  3149. - wic.bz2
  3150. - wic.gz
  3151. - wic.lzma
  3152. - wic.zst
  3153. For more information about these types of images, see
  3154. ``meta/classes-recipe/image_types*.bbclass`` in the :term:`Source Directory`.
  3155. :term:`IMAGE_VERSION_SUFFIX`
  3156. Version suffix that is part of the default :term:`IMAGE_NAME` and
  3157. :term:`KERNEL_ARTIFACT_NAME` values.
  3158. Defaults to ``"-${DATETIME}"``, however you could set this to a
  3159. version string that comes from your external build environment if
  3160. desired, and this suffix would then be used consistently across
  3161. the build artifacts.
  3162. :term:`IMGDEPLOYDIR`
  3163. When inheriting the :ref:`ref-classes-image` class directly or
  3164. through the :ref:`ref-classes-core-image` class, the
  3165. :term:`IMGDEPLOYDIR` points to a temporary work area for deployed files
  3166. that is set in the ``image`` class as follows::
  3167. IMGDEPLOYDIR = "${WORKDIR}/deploy-${PN}-image-complete"
  3168. Recipes inheriting the :ref:`ref-classes-image` class should copy
  3169. files to be deployed into :term:`IMGDEPLOYDIR`, and the class will take
  3170. care of copying them into :term:`DEPLOY_DIR_IMAGE` afterwards.
  3171. :term:`IMGMANIFESTDIR`
  3172. When inheriting the :ref:`ref-classes-image` class directly or through the
  3173. :ref:`ref-classes-core-image` class, the :term:`IMGMANIFESTDIR` setting
  3174. points to a temporary area that stores manifest ``json`` files, that list
  3175. what images were created by various images creation tasks (as defined by
  3176. the :term:`IMAGE_FSTYPES` variable). It is set in the
  3177. :ref:`ref-classes-image` class as follows::
  3178. IMGMANIFESTDIR = "${WORKDIR}/image-task-manifest"
  3179. :term:`INCOMPATIBLE_LICENSE`
  3180. Specifies a space-separated list of license names (as they would
  3181. appear in :term:`LICENSE`) that should be excluded
  3182. from the build (if set globally), or from an image (if set locally
  3183. in an image recipe).
  3184. When the variable is set globally, recipes that provide no alternatives to listed
  3185. incompatible licenses are not built. Packages that are individually
  3186. licensed with the specified incompatible licenses will be deleted.
  3187. Most of the time this does not allow a feasible build (because it becomes impossible
  3188. to satisfy build time dependencies), so the recommended way to
  3189. implement license restrictions is to set the variable in specific
  3190. image recipes where the restrictions must apply. That way there
  3191. are no build time restrictions, but the license check is still
  3192. performed when the image's filesystem is assembled from packages.
  3193. There is some support for wildcards in this variable's value,
  3194. however it is restricted to specific licenses. Currently only
  3195. these wildcards are allowed and expand as follows:
  3196. - ``AGPL-3.0*"``: ``AGPL-3.0-only``, ``AGPL-3.0-or-later``
  3197. - ``GPL-3.0*``: ``GPL-3.0-only``, ``GPL-3.0-or-later``
  3198. - ``LGPL-3.0*``: ``LGPL-3.0-only``, ``LGPL-3.0-or-later``
  3199. .. note::
  3200. This functionality is only regularly tested using the following
  3201. setting::
  3202. INCOMPATIBLE_LICENSE = "GPL-3.0* LGPL-3.0* AGPL-3.0*"
  3203. Although you can use other settings, you might be required to
  3204. remove dependencies on (or provide alternatives to) components that
  3205. are required to produce a functional system image.
  3206. :term:`INCOMPATIBLE_LICENSE_EXCEPTIONS`
  3207. Specifies a space-separated list of package and license pairs that
  3208. are allowed to be used even if the license is specified in
  3209. :term:`INCOMPATIBLE_LICENSE`. The package and license pairs are
  3210. separated using a colon. Example::
  3211. INCOMPATIBLE_LICENSE_EXCEPTIONS = "gdbserver:GPL-3.0-only gdbserver:LGPL-3.0-only"
  3212. :term:`INHERIT`
  3213. Causes the named class or classes to be inherited globally. Anonymous
  3214. functions in the class or classes are not executed for the base
  3215. configuration and in each individual recipe. The OpenEmbedded build
  3216. system ignores changes to :term:`INHERIT` in individual recipes.
  3217. Classes inherited using :term:`INHERIT` must be located in the
  3218. ``classes-global/`` or ``classes/`` subdirectories.
  3219. For more information on :term:`INHERIT`, see the
  3220. :ref:`bitbake-user-manual/bitbake-user-manual-metadata:\`\`inherit\`\` configuration directive`"
  3221. section in the BitBake User Manual.
  3222. :term:`INHERIT_DISTRO`
  3223. Lists classes that will be inherited at the distribution level. It is
  3224. unlikely that you want to edit this variable.
  3225. Classes specified in :term:`INHERIT_DISTRO` must be located in the
  3226. ``classes-global/`` or ``classes/`` subdirectories.
  3227. The default value of the variable is set as follows in the
  3228. ``meta/conf/distro/defaultsetup.conf`` file::
  3229. INHERIT_DISTRO ?= "debian devshell sstate license remove-libtool create-spdx"
  3230. :term:`INHIBIT_DEFAULT_DEPS`
  3231. Prevents the default dependencies, namely the C compiler and standard
  3232. C library (libc), from being added to :term:`DEPENDS`.
  3233. This variable is usually used within recipes that do not require any
  3234. compilation using the C compiler.
  3235. Set the variable to "1" to prevent the default dependencies from
  3236. being added.
  3237. :term:`INHIBIT_PACKAGE_DEBUG_SPLIT`
  3238. Prevents the OpenEmbedded build system from splitting out debug
  3239. information during packaging. By default, the build system splits out
  3240. debugging information during the
  3241. :ref:`ref-tasks-package` task. For more information on
  3242. how debug information is split out, see the
  3243. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  3244. variable.
  3245. To prevent the build system from splitting out debug information
  3246. during packaging, set the :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` variable as
  3247. follows::
  3248. INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
  3249. :term:`INHIBIT_PACKAGE_STRIP`
  3250. If set to "1", causes the build to not strip binaries in resulting
  3251. packages and prevents the ``-dbg`` package from containing the source
  3252. files.
  3253. By default, the OpenEmbedded build system strips binaries and puts
  3254. the debugging symbols into ``${``\ :term:`PN`\ ``}-dbg``.
  3255. Consequently, you should not set :term:`INHIBIT_PACKAGE_STRIP` when you
  3256. plan to debug in general.
  3257. :term:`INHIBIT_SYSROOT_STRIP`
  3258. If set to "1", causes the build to not strip binaries in the
  3259. resulting sysroot.
  3260. By default, the OpenEmbedded build system strips binaries in the
  3261. resulting sysroot. When you specifically set the
  3262. :term:`INHIBIT_SYSROOT_STRIP` variable to "1" in your recipe, you inhibit
  3263. this stripping.
  3264. If you want to use this variable, include the :ref:`ref-classes-staging`
  3265. class. This class uses a ``sys_strip()`` function to test for the variable
  3266. and acts accordingly.
  3267. .. note::
  3268. Use of the :term:`INHIBIT_SYSROOT_STRIP` variable occurs in rare and
  3269. special circumstances. For example, suppose you are building
  3270. bare-metal firmware by using an external GCC toolchain. Furthermore,
  3271. even if the toolchain's binaries are strippable, there are other files
  3272. needed for the build that are not strippable.
  3273. :term:`INIT_MANAGER`
  3274. Specifies the system init manager to use. Available options are:
  3275. - ``sysvinit``
  3276. - ``systemd``
  3277. - ``mdev-busybox``
  3278. With ``sysvinit``, the init manager is set to
  3279. :wikipedia:`SysVinit <Init#SysV-style>`, the traditional UNIX init
  3280. system. This is the default choice in the Poky distribution, together with
  3281. the Udev device manager (see the ":ref:`device-manager`" section).
  3282. With ``systemd``, the init manager becomes :wikipedia:`systemd <Systemd>`,
  3283. which comes with the :wikipedia:`udev <Udev>` device manager.
  3284. With ``mdev-busybox``, the init manager becomes the much simpler BusyBox
  3285. init, together with the BusyBox mdev device manager. This is the simplest
  3286. and lightest solution, and probably the best choice for low-end systems
  3287. with a rather slow CPU and a limited amount of RAM.
  3288. More concretely, this is used to include
  3289. ``conf/distro/include/init-manager-${INIT_MANAGER}.inc`` into the global
  3290. configuration. You can have a look at the
  3291. :yocto_git:`meta/conf/distro/include/init-manager-*.inc </poky/tree/meta/conf/distro/include>`
  3292. files for more information, and also the ":ref:`init-manager`"
  3293. section in the Yocto Project Development Tasks Manual.
  3294. :term:`INITRAMFS_DEPLOY_DIR_IMAGE`
  3295. Indicates the deploy directory used by :ref:`ref-tasks-bundle_initramfs`
  3296. where the :term:`INITRAMFS_IMAGE` will be fetched from. This variable is
  3297. set by default to ``${DEPLOY_DIR_IMAGE}`` in the
  3298. :ref:`ref-classes-kernel` class and it's only meant to be changed when
  3299. building an :term:`Initramfs` image from a separate multiconfig via
  3300. :term:`INITRAMFS_MULTICONFIG`.
  3301. :term:`INITRAMFS_FSTYPES`
  3302. Defines the format for the output image of an initial RAM filesystem
  3303. (:term:`Initramfs`), which is used during boot. Supported formats are the
  3304. same as those supported by the
  3305. :term:`IMAGE_FSTYPES` variable.
  3306. The default value of this variable, which is set in the
  3307. ``meta/conf/bitbake.conf`` configuration file in the
  3308. :term:`Source Directory`, is "cpio.gz". The Linux kernel's
  3309. :term:`Initramfs` mechanism, as opposed to the initial RAM filesystem
  3310. :wikipedia:`initrd <Initrd>` mechanism, expects
  3311. an optionally compressed cpio archive.
  3312. :term:`INITRAMFS_IMAGE`
  3313. Specifies the :term:`PROVIDES` name of an image
  3314. recipe that is used to build an initial RAM filesystem (:term:`Initramfs`)
  3315. image. In other words, the :term:`INITRAMFS_IMAGE` variable causes an
  3316. additional recipe to be built as a dependency to whatever root
  3317. filesystem recipe you might be using (e.g. ``core-image-sato``). The
  3318. :term:`Initramfs` image recipe you provide should set
  3319. :term:`IMAGE_FSTYPES` to
  3320. :term:`INITRAMFS_FSTYPES`.
  3321. An :term:`Initramfs` image provides a temporary root filesystem used for
  3322. early system initialization (e.g. loading of modules needed to locate
  3323. and mount the "real" root filesystem).
  3324. .. note::
  3325. See the ``meta/recipes-core/images/core-image-minimal-initramfs.bb``
  3326. recipe in the :term:`Source Directory`
  3327. for an example :term:`Initramfs` recipe. To select this sample recipe as
  3328. the one built to provide the :term:`Initramfs` image, set :term:`INITRAMFS_IMAGE`
  3329. to "core-image-minimal-initramfs".
  3330. You can also find more information by referencing the
  3331. ``meta-poky/conf/templates/default/local.conf.sample.extended``
  3332. configuration file in the Source Directory, the :ref:`ref-classes-image`
  3333. class, and the :ref:`ref-classes-kernel` class to see how to use the
  3334. :term:`INITRAMFS_IMAGE` variable.
  3335. If :term:`INITRAMFS_IMAGE` is empty, which is the default, then no
  3336. :term:`Initramfs` image is built.
  3337. For more information, you can also see the
  3338. :term:`INITRAMFS_IMAGE_BUNDLE`
  3339. variable, which allows the generated image to be bundled inside the
  3340. kernel image. Additionally, for information on creating an :term:`Initramfs`
  3341. image, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  3342. in the Yocto Project Development Tasks Manual.
  3343. :term:`INITRAMFS_IMAGE_BUNDLE`
  3344. Controls whether or not the image recipe specified by
  3345. :term:`INITRAMFS_IMAGE` is run through an
  3346. extra pass
  3347. (:ref:`ref-tasks-bundle_initramfs`) during
  3348. kernel compilation in order to build a single binary that contains
  3349. both the kernel image and the initial RAM filesystem (:term:`Initramfs`)
  3350. image. This makes use of the
  3351. :term:`CONFIG_INITRAMFS_SOURCE` kernel
  3352. feature.
  3353. .. note::
  3354. Bundling the :term:`Initramfs` with the kernel conflates the code in the
  3355. :term:`Initramfs` with the GPLv2 licensed Linux kernel binary. Thus only GPLv2
  3356. compatible software may be part of a bundled :term:`Initramfs`.
  3357. .. note::
  3358. Using an extra compilation pass to bundle the :term:`Initramfs` avoids a
  3359. circular dependency between the kernel recipe and the :term:`Initramfs`
  3360. recipe should the :term:`Initramfs` include kernel modules. Should that be
  3361. the case, the :term:`Initramfs` recipe depends on the kernel for the
  3362. kernel modules, and the kernel depends on the :term:`Initramfs` recipe
  3363. since the :term:`Initramfs` is bundled inside the kernel image.
  3364. The combined binary is deposited into the ``tmp/deploy`` directory,
  3365. which is part of the :term:`Build Directory`.
  3366. Setting the variable to "1" in a configuration file causes the
  3367. OpenEmbedded build system to generate a kernel image with the
  3368. :term:`Initramfs` specified in :term:`INITRAMFS_IMAGE` bundled within::
  3369. INITRAMFS_IMAGE_BUNDLE = "1"
  3370. By default, the :ref:`ref-classes-kernel` class sets this variable to a
  3371. null string as follows::
  3372. INITRAMFS_IMAGE_BUNDLE ?= ""
  3373. .. note::
  3374. You must set the :term:`INITRAMFS_IMAGE_BUNDLE` variable in a
  3375. configuration file. You cannot set the variable in a recipe file.
  3376. See the
  3377. :yocto_git:`local.conf.sample.extended </poky/tree/meta-poky/conf/templates/default/local.conf.sample.extended>`
  3378. file for additional information. Also, for information on creating an
  3379. :term:`Initramfs`, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  3380. in the Yocto Project Development Tasks Manual.
  3381. :term:`INITRAMFS_IMAGE_NAME`
  3382. This value needs to stay in sync with :term:`IMAGE_LINK_NAME`, but with
  3383. :term:`INITRAMFS_IMAGE` instead of :term:`IMAGE_BASENAME`. The default value
  3384. is set as follows:
  3385. INITRAMFS_IMAGE_NAME ?= "${@['${INITRAMFS_IMAGE}${IMAGE_MACHINE_SUFFIX}', ''][d.getVar('INITRAMFS_IMAGE') == '']}"
  3386. That is, if :term:`INITRAMFS_IMAGE` is set, the value of
  3387. :term:`INITRAMFS_IMAGE_NAME` will be set based upon
  3388. :term:`INITRAMFS_IMAGE` and :term:`IMAGE_MACHINE_SUFFIX`.
  3389. :term:`INITRAMFS_LINK_NAME`
  3390. The link name of the initial RAM filesystem image. This variable is
  3391. set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3392. follows::
  3393. INITRAMFS_LINK_NAME ?= "initramfs-${KERNEL_ARTIFACT_LINK_NAME}"
  3394. The value of the
  3395. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3396. file, has the following value::
  3397. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3398. See the :term:`MACHINE` variable for additional
  3399. information.
  3400. :term:`INITRAMFS_MULTICONFIG`
  3401. Defines the multiconfig to create a multiconfig dependency to be used by
  3402. the :ref:`ref-classes-kernel` class.
  3403. This allows the kernel to bundle an :term:`INITRAMFS_IMAGE` coming from
  3404. a separate multiconfig, this is meant to be used in addition to :term:`INITRAMFS_DEPLOY_DIR_IMAGE`.
  3405. For more information on how to bundle an :term:`Initramfs` image from a separate
  3406. multiconfig see the ":ref:`dev-manual/building:Bundling an Initramfs Image From a Separate Multiconfig`"
  3407. section in the Yocto Project Development Tasks Manual.
  3408. :term:`INITRAMFS_NAME`
  3409. The base name of the initial RAM filesystem image. This variable is
  3410. set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3411. follows::
  3412. INITRAMFS_NAME ?= "initramfs-${KERNEL_ARTIFACT_NAME}"
  3413. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3414. :term:`INITRD`
  3415. Indicates list of filesystem images to concatenate and use as an
  3416. initial RAM disk (``initrd``).
  3417. The :term:`INITRD` variable is an optional variable used with the
  3418. :ref:`ref-classes-image-live` class.
  3419. :term:`INITRD_IMAGE`
  3420. When building a "live" bootable image (i.e. when
  3421. :term:`IMAGE_FSTYPES` contains "live"),
  3422. :term:`INITRD_IMAGE` specifies the image recipe that should be built to
  3423. provide the initial RAM disk image. The default value is
  3424. "core-image-minimal-initramfs".
  3425. See the :ref:`ref-classes-image-live` class for more information.
  3426. :term:`INITSCRIPT_NAME`
  3427. The filename of the initialization script as installed to
  3428. ``${sysconfdir}/init.d``.
  3429. This variable is used in recipes when using :ref:`ref-classes-update-rc.d`.
  3430. The variable is mandatory.
  3431. :term:`INITSCRIPT_PACKAGES`
  3432. A list of the packages that contain initscripts. If multiple packages
  3433. are specified, you need to append the package name to the other
  3434. ``INITSCRIPT_*`` as an override.
  3435. This variable is used in recipes when using :ref:`ref-classes-update-rc.d`.
  3436. The variable is optional and defaults to the :term:`PN`
  3437. variable.
  3438. :term:`INITSCRIPT_PARAMS`
  3439. Specifies the options to pass to ``update-rc.d``. Here is an example::
  3440. INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."
  3441. In this example, the script has a runlevel of 99, starts the script
  3442. in initlevels 2 and 5, and stops the script in levels 0, 1 and 6.
  3443. The variable's default value is "defaults", which is set in the
  3444. :ref:`ref-classes-update-rc.d` class.
  3445. The value in :term:`INITSCRIPT_PARAMS` is passed through to the
  3446. ``update-rc.d`` command. For more information on valid parameters,
  3447. please see the ``update-rc.d`` manual page at
  3448. https://manpages.debian.org/buster/init-system-helpers/update-rc.d.8.en.html
  3449. :term:`INSANE_SKIP`
  3450. Specifies the QA checks to skip for a specific package within a
  3451. recipe. For example, to skip the check for symbolic link ``.so``
  3452. files in the main package of a recipe, add the following to the
  3453. recipe. The package name override must be used, which in this example
  3454. is ``${PN}``::
  3455. INSANE_SKIP:${PN} += "dev-so"
  3456. See the ":ref:`ref-classes-insane`" section for a
  3457. list of the valid QA checks you can specify using this variable.
  3458. :term:`INSTALL_TIMEZONE_FILE`
  3459. By default, the ``tzdata`` recipe packages an ``/etc/timezone`` file.
  3460. Set the :term:`INSTALL_TIMEZONE_FILE` variable to "0" at the
  3461. configuration level to disable this behavior.
  3462. :term:`IPK_FEED_URIS`
  3463. When the IPK backend is in use and package management is enabled on
  3464. the target, you can use this variable to set up ``opkg`` in the
  3465. target image to point to package feeds on a nominated server. Once
  3466. the feed is established, you can perform installations or upgrades
  3467. using the package manager at runtime.
  3468. :term:`KARCH`
  3469. Defines the kernel architecture used when assembling the
  3470. configuration. Architectures supported for this release are:
  3471. - powerpc
  3472. - i386
  3473. - x86_64
  3474. - arm
  3475. - qemu
  3476. - mips
  3477. You define the :term:`KARCH` variable in the :ref:`kernel-dev/advanced:bsp descriptions`.
  3478. :term:`KBRANCH`
  3479. A regular expression used by the build process to explicitly identify
  3480. the kernel branch that is validated, patched, and configured during a
  3481. build. You must set this variable to ensure the exact kernel branch
  3482. you want is being used by the build process.
  3483. Values for this variable are set in the kernel's recipe file and the
  3484. kernel's append file. For example, if you are using the
  3485. ``linux-yocto_4.12`` kernel, the kernel recipe file is the
  3486. ``meta/recipes-kernel/linux/linux-yocto_4.12.bb`` file. :term:`KBRANCH`
  3487. is set as follows in that kernel recipe file::
  3488. KBRANCH ?= "standard/base"
  3489. This variable is also used from the kernel's append file to identify
  3490. the kernel branch specific to a particular machine or target
  3491. hardware. Continuing with the previous kernel example, the kernel's
  3492. append file is located in the
  3493. BSP layer for a given machine. For example, the append file for the
  3494. Beaglebone and generic versions of both 32 and 64-bit IA
  3495. machines (``meta-yocto-bsp``) is named
  3496. ``meta-yocto-bsp/recipes-kernel/linux/linux-yocto_6.1.bbappend``.
  3497. Here are the related statements from that append file::
  3498. KBRANCH:genericx86 = "v6.1/standard/base"
  3499. KBRANCH:genericx86-64 = "v6.1/standard/base"
  3500. KBRANCH:beaglebone-yocto = "v6.1/standard/beaglebone"
  3501. The :term:`KBRANCH` statements
  3502. identify the kernel branch to use when building for each supported
  3503. BSP.
  3504. :term:`KBUILD_DEFCONFIG`
  3505. When used with the :ref:`ref-classes-kernel-yocto`
  3506. class, specifies an "in-tree" kernel configuration file for use
  3507. during a kernel build.
  3508. Typically, when using a ``defconfig`` to configure a kernel during a
  3509. build, you place the file in your layer in the same manner as you
  3510. would place patch files and configuration fragment files (i.e.
  3511. "out-of-tree"). However, if you want to use a ``defconfig`` file that
  3512. is part of the kernel tree (i.e. "in-tree"), you can use the
  3513. :term:`KBUILD_DEFCONFIG` variable and append the
  3514. :term:`KMACHINE` variable to point to the
  3515. ``defconfig`` file.
  3516. To use the variable, set it in the append file for your kernel recipe
  3517. using the following form::
  3518. KBUILD_DEFCONFIG:<machine> ?= "defconfig_file"
  3519. Here is an example from a "raspberrypi2" :term:`MACHINE` build that uses
  3520. a ``defconfig`` file named "bcm2709_defconfig"::
  3521. KBUILD_DEFCONFIG:raspberrypi2 = "bcm2709_defconfig"
  3522. As an alternative, you can use the following within your append file::
  3523. KBUILD_DEFCONFIG:pn-linux-yocto ?= "defconfig_file"
  3524. For more
  3525. information on how to use the :term:`KBUILD_DEFCONFIG` variable, see the
  3526. ":ref:`kernel-dev/common:using an "in-tree" \`\`defconfig\`\` file`"
  3527. section in the Yocto Project Linux Kernel Development Manual.
  3528. :term:`KCONFIG_MODE`
  3529. When used with the :ref:`ref-classes-kernel-yocto`
  3530. class, specifies the kernel configuration values to use for options
  3531. not specified in the provided ``defconfig`` file. Valid options are::
  3532. KCONFIG_MODE = "alldefconfig"
  3533. KCONFIG_MODE = "allnoconfig"
  3534. In ``alldefconfig`` mode the options not explicitly specified will be
  3535. assigned their Kconfig default value. In ``allnoconfig`` mode the
  3536. options not explicitly specified will be disabled in the kernel
  3537. config.
  3538. In case :term:`KCONFIG_MODE` is not set the behaviour will depend on where
  3539. the ``defconfig`` file is coming from. An "in-tree" ``defconfig`` file
  3540. will be handled in ``alldefconfig`` mode, a ``defconfig`` file placed
  3541. in ``${WORKDIR}`` through a meta-layer will be handled in
  3542. ``allnoconfig`` mode.
  3543. An "in-tree" ``defconfig`` file can be selected via the
  3544. :term:`KBUILD_DEFCONFIG` variable. :term:`KCONFIG_MODE` does not need to
  3545. be explicitly set.
  3546. A ``defconfig`` file compatible with ``allnoconfig`` mode can be
  3547. generated by copying the ``.config`` file from a working Linux kernel
  3548. build, renaming it to ``defconfig`` and placing it into the Linux
  3549. kernel ``${WORKDIR}`` through your meta-layer. :term:`KCONFIG_MODE` does
  3550. not need to be explicitly set.
  3551. A ``defconfig`` file compatible with ``alldefconfig`` mode can be
  3552. generated using the
  3553. :ref:`ref-tasks-savedefconfig`
  3554. task and placed into the Linux kernel ``${WORKDIR}`` through your
  3555. meta-layer. Explicitely set :term:`KCONFIG_MODE`::
  3556. KCONFIG_MODE = "alldefconfig"
  3557. :term:`KERNEL_ALT_IMAGETYPE`
  3558. Specifies an alternate kernel image type for creation in addition to
  3559. the kernel image type specified using the :term:`KERNEL_IMAGETYPE` and
  3560. :term:`KERNEL_IMAGETYPES` variables.
  3561. :term:`KERNEL_ARTIFACT_NAME`
  3562. Specifies the name of all of the build artifacts. You can change the
  3563. name of the artifacts by changing the :term:`KERNEL_ARTIFACT_NAME`
  3564. variable.
  3565. The value of :term:`KERNEL_ARTIFACT_NAME`, which is set in the
  3566. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file, has the
  3567. following default value::
  3568. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}${IMAGE_MACHINE_SUFFIX}${IMAGE_VERSION_SUFFIX}"
  3569. See the :term:`PKGE`, :term:`PKGV`, :term:`PKGR`, :term:`IMAGE_MACHINE_SUFFIX`
  3570. and :term:`IMAGE_VERSION_SUFFIX` variables for additional information.
  3571. :term:`KERNEL_CLASSES`
  3572. A list of classes defining kernel image types that the
  3573. :ref:`ref-classes-kernel` class should inherit. You typically
  3574. append this variable to enable extended image types. An example is
  3575. ":ref:`ref-classes-kernel-fitimage`", which enables
  3576. FIT image support and resides in ``meta/classes-recipe/kernel-fitimage.bbclass``.
  3577. You can register custom kernel image types with the
  3578. :ref:`ref-classes-kernel` class using this variable.
  3579. :term:`KERNEL_CONSOLE`
  3580. The :term:`KERNEL_CONSOLE` variable holds the value of the ``console``
  3581. parameter of the kernel command line and can be used in places such as a
  3582. ``wks`` description file for :ref:`Wic images <dev-manual/wic:creating
  3583. partitioned images using wic>`.
  3584. The default value of this variable is extracted from the first console
  3585. device and setting in :term:`SERIAL_CONSOLES`. If nothing is found in
  3586. :term:`SERIAL_CONSOLES`, the default value is set to ``ttyS0,115200``.
  3587. For more information, see the `Kernel command-line documentation
  3588. <https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html>`__.
  3589. :term:`KERNEL_DANGLING_FEATURES_WARN_ONLY`
  3590. When kernel configuration fragments are missing for some
  3591. :term:`KERNEL_FEATURES` specified by layers or BSPs,
  3592. building and configuring the kernel stops with an error.
  3593. You can turn these errors into warnings by setting the
  3594. following in ``conf/local.conf``::
  3595. KERNEL_DANGLING_FEATURES_WARN_ONLY = "1"
  3596. You will still be warned that runtime issues may occur,
  3597. but at least the kernel configuration and build process will
  3598. be allowed to continue.
  3599. :term:`KERNEL_DEBUG_TIMESTAMPS`
  3600. If set to "1", enables timestamping functionality during building
  3601. the kernel. The default is "0" to disable this for reproducibility
  3602. reasons.
  3603. :term:`KERNEL_DEPLOY_DEPEND`
  3604. Provides a means of controlling the dependency of an image recipe
  3605. on the kernel. The default value is "virtual/kernel:do_deploy",
  3606. however for a small initramfs image or other images that do not
  3607. need the kernel, this can be set to "" in the image recipe.
  3608. :term:`KERNEL_DEVICETREE`
  3609. Specifies the name of the generated Linux kernel device tree (i.e.
  3610. the ``.dtb``) file.
  3611. .. note::
  3612. There is legacy support for specifying the full path to the device
  3613. tree. However, providing just the ``.dtb`` file is preferred.
  3614. In order to use this variable, the :ref:`ref-classes-kernel-devicetree`
  3615. class must be inherited.
  3616. :term:`KERNEL_DEVICETREE_BUNDLE`
  3617. When set to "1", this variable allows to bundle the Linux kernel
  3618. and the Device Tree Binary together in a single file.
  3619. This feature is currently only supported on the "arm" (32 bit)
  3620. architecture.
  3621. This variable is set to "0" by default by the
  3622. :ref:`ref-classes-kernel-devicetree` class.
  3623. :term:`KERNEL_DTB_LINK_NAME`
  3624. The link name of the kernel device tree binary (DTB). This variable
  3625. is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3626. follows::
  3627. KERNEL_DTB_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3628. The
  3629. value of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in
  3630. the same file, has the following value::
  3631. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3632. See the :term:`MACHINE` variable for additional
  3633. information.
  3634. :term:`KERNEL_DTB_NAME`
  3635. The base name of the kernel device tree binary (DTB). This variable
  3636. is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3637. follows::
  3638. KERNEL_DTB_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3639. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3640. :term:`KERNEL_DTBDEST`
  3641. This variable, used by the :ref:`ref-classes-kernel-devicetree`
  3642. class, allows to change the installation directory of the DTB
  3643. (Device Tree Binary) files.
  3644. It is set by default to "${KERNEL_IMAGEDEST}" by the
  3645. :ref:`ref-classes-kernel` class.
  3646. :term:`KERNEL_DTBVENDORED`
  3647. This variable, used by the :ref:`ref-classes-kernel-devicetree`,
  3648. allows to ignore vendor subdirectories when installing DTB
  3649. (Device Tree Binary) files, when it is set to "false".
  3650. To keep vendor subdirectories, set this variable to "true".
  3651. It is set by default to "false" by the :ref:`ref-classes-kernel` class.
  3652. :term:`KERNEL_DTC_FLAGS`
  3653. Specifies the ``dtc`` flags that are passed to the Linux kernel build
  3654. system when generating the device trees (via ``DTC_FLAGS`` environment
  3655. variable).
  3656. In order to use this variable, the :ref:`ref-classes-kernel-devicetree`
  3657. class must be inherited.
  3658. :term:`KERNEL_EXTRA_ARGS`
  3659. Specifies additional ``make`` command-line arguments the OpenEmbedded
  3660. build system passes on when compiling the kernel.
  3661. :term:`KERNEL_FEATURES`
  3662. Includes additional kernel metadata. In the OpenEmbedded build
  3663. system, the default Board Support Packages (BSPs)
  3664. :term:`Metadata` is provided through the
  3665. :term:`KMACHINE` and :term:`KBRANCH`
  3666. variables. You can use the :term:`KERNEL_FEATURES` variable from within
  3667. the kernel recipe or kernel append file to further add metadata for
  3668. all BSPs or specific BSPs.
  3669. The metadata you add through this variable includes config fragments
  3670. and features descriptions, which usually includes patches as well as
  3671. config fragments. You typically override the :term:`KERNEL_FEATURES`
  3672. variable for a specific machine. In this way, you can provide
  3673. validated, but optional, sets of kernel configurations and features.
  3674. For example, the following example from the ``linux-yocto-rt_4.12``
  3675. kernel recipe adds "netfilter" and "taskstats" features to all BSPs
  3676. as well as "virtio" configurations to all QEMU machines. The last two
  3677. statements add specific configurations to targeted machine types::
  3678. KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc"
  3679. KERNEL_FEATURES:append = " ${KERNEL_EXTRA_FEATURES}"
  3680. KERNEL_FEATURES:append:qemuall = " cfg/virtio.scc"
  3681. KERNEL_FEATURES:append:qemux86 = " cfg/sound.scc cfg/paravirt_kvm.scc"
  3682. KERNEL_FEATURES:append:qemux86-64 = " cfg/sound.scc"
  3683. :term:`KERNEL_FIT_LINK_NAME`
  3684. The link name of the kernel flattened image tree (FIT) image. This
  3685. variable is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass``
  3686. file as follows::
  3687. KERNEL_FIT_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3688. The value of the
  3689. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3690. file, has the following value::
  3691. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3692. See the :term:`MACHINE` variable for additional
  3693. information.
  3694. :term:`KERNEL_FIT_NAME`
  3695. The base name of the kernel flattened image tree (FIT) image. This
  3696. variable is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass``
  3697. file as follows::
  3698. KERNEL_FIT_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3699. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3700. :term:`KERNEL_IMAGE_LINK_NAME`
  3701. The link name for the kernel image. This variable is set in the
  3702. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  3703. KERNEL_IMAGE_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3704. The value of
  3705. the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3706. file, has the following value::
  3707. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3708. See the :term:`MACHINE` variable for additional
  3709. information.
  3710. :term:`KERNEL_IMAGE_MAXSIZE`
  3711. Specifies the maximum size of the kernel image file in kilobytes. If
  3712. :term:`KERNEL_IMAGE_MAXSIZE` is set, the size of the kernel image file is
  3713. checked against the set value during the
  3714. :ref:`ref-tasks-sizecheck` task. The task fails if
  3715. the kernel image file is larger than the setting.
  3716. :term:`KERNEL_IMAGE_MAXSIZE` is useful for target devices that have a
  3717. limited amount of space in which the kernel image must be stored.
  3718. By default, this variable is not set, which means the size of the
  3719. kernel image is not checked.
  3720. :term:`KERNEL_IMAGE_NAME`
  3721. The base name of the kernel image. This variable is set in the
  3722. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  3723. KERNEL_IMAGE_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3724. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3725. :term:`KERNEL_IMAGETYPE`
  3726. The type of kernel to build for a device, usually set by the machine
  3727. configuration files and defaults to "zImage". This variable is used
  3728. when building the kernel and is passed to ``make`` as the target to
  3729. build.
  3730. To build additional kernel image types, use :term:`KERNEL_IMAGETYPES`.
  3731. :term:`KERNEL_IMAGETYPES`
  3732. Lists additional types of kernel images to build for a device in addition
  3733. to image type specified in :term:`KERNEL_IMAGETYPE`. Usually set by the
  3734. machine configuration files.
  3735. :term:`KERNEL_MODULE_AUTOLOAD`
  3736. Lists kernel modules that need to be auto-loaded during boot.
  3737. .. note::
  3738. This variable replaces the deprecated :term:`module_autoload`
  3739. variable.
  3740. You can use the :term:`KERNEL_MODULE_AUTOLOAD` variable anywhere that it
  3741. can be recognized by the kernel recipe or by an out-of-tree kernel
  3742. module recipe (e.g. a machine configuration file, a distribution
  3743. configuration file, an append file for the recipe, or the recipe
  3744. itself).
  3745. Specify it as follows::
  3746. KERNEL_MODULE_AUTOLOAD += "module_name1 module_name2 module_name3"
  3747. Including :term:`KERNEL_MODULE_AUTOLOAD` causes the OpenEmbedded build
  3748. system to populate the ``/etc/modules-load.d/modname.conf`` file with
  3749. the list of modules to be auto-loaded on boot. The modules appear
  3750. one-per-line in the file. Here is an example of the most common use
  3751. case::
  3752. KERNEL_MODULE_AUTOLOAD += "module_name"
  3753. For information on how to populate the ``modname.conf`` file with
  3754. ``modprobe.d`` syntax lines, see the :term:`KERNEL_MODULE_PROBECONF` variable.
  3755. :term:`KERNEL_MODULE_PROBECONF`
  3756. Provides a list of modules for which the OpenEmbedded build system
  3757. expects to find ``module_conf_``\ modname values that specify
  3758. configuration for each of the modules. For information on how to
  3759. provide those module configurations, see the
  3760. :term:`module_conf_* <module_conf>` variable.
  3761. :term:`KERNEL_PACKAGE_NAME`
  3762. Specifies the base name of the kernel packages, such as "kernel"
  3763. in the kernel packages such as "kernel-modules", "kernel-image" and
  3764. "kernel-dbg".
  3765. The default value for this variable is set to "kernel" by the
  3766. :ref:`ref-classes-kernel` class.
  3767. :term:`KERNEL_PATH`
  3768. The location of the kernel sources. This variable is set to the value
  3769. of the :term:`STAGING_KERNEL_DIR` within the :ref:`ref-classes-module`
  3770. class. For information on how this variable is used, see the
  3771. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  3772. section in the Yocto Project Linux Kernel Development Manual.
  3773. To help maximize compatibility with out-of-tree drivers used to build
  3774. modules, the OpenEmbedded build system also recognizes and uses the
  3775. :term:`KERNEL_SRC` variable, which is identical to
  3776. the :term:`KERNEL_PATH` variable. Both variables are common variables
  3777. used by external Makefiles to point to the kernel source directory.
  3778. :term:`KERNEL_SRC`
  3779. The location of the kernel sources. This variable is set to the value
  3780. of the :term:`STAGING_KERNEL_DIR` within the :ref:`ref-classes-module`
  3781. class. For information on how this variable is used, see the
  3782. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  3783. section in the Yocto Project Linux Kernel Development Manual.
  3784. To help maximize compatibility with out-of-tree drivers used to build
  3785. modules, the OpenEmbedded build system also recognizes and uses the
  3786. :term:`KERNEL_PATH` variable, which is identical
  3787. to the :term:`KERNEL_SRC` variable. Both variables are common variables
  3788. used by external Makefiles to point to the kernel source directory.
  3789. :term:`KERNEL_STRIP`
  3790. Allows to specific which ``strip`` command to use to strip the kernel
  3791. binary, typically either GNU binutils ``strip`` or ``llvm-strip``.
  3792. :term:`KERNEL_VERSION`
  3793. Specifies the version of the kernel as extracted from ``version.h``
  3794. or ``utsrelease.h`` within the kernel sources. Effects of setting
  3795. this variable do not take effect until the kernel has been
  3796. configured. Consequently, attempting to refer to this variable in
  3797. contexts prior to configuration will not work.
  3798. :term:`KERNELDEPMODDEPEND`
  3799. Specifies whether the data referenced through
  3800. :term:`PKGDATA_DIR` is needed or not.
  3801. :term:`KERNELDEPMODDEPEND` does not control whether or not that data
  3802. exists, but simply whether or not it is used. If you do not need to
  3803. use the data, set the :term:`KERNELDEPMODDEPEND` variable in your
  3804. :term:`Initramfs` recipe. Setting the variable there when the data is not
  3805. needed avoids a potential dependency loop.
  3806. :term:`KFEATURE_DESCRIPTION`
  3807. Provides a short description of a configuration fragment. You use
  3808. this variable in the ``.scc`` file that describes a configuration
  3809. fragment file. Here is the variable used in a file named ``smp.scc``
  3810. to describe SMP being enabled::
  3811. define KFEATURE_DESCRIPTION "Enable SMP"
  3812. :term:`KMACHINE`
  3813. The machine as known by the kernel. Sometimes the machine name used
  3814. by the kernel does not match the machine name used by the
  3815. OpenEmbedded build system. For example, the machine name that the
  3816. OpenEmbedded build system understands as ``core2-32-intel-common``
  3817. goes by a different name in the Linux Yocto kernel. The kernel
  3818. understands that machine as ``intel-core2-32``. For cases like these,
  3819. the :term:`KMACHINE` variable maps the kernel machine name to the
  3820. OpenEmbedded build system machine name.
  3821. These mappings between different names occur in the Yocto Linux
  3822. Kernel's ``meta`` branch. As an example take a look in the
  3823. ``common/recipes-kernel/linux/linux-yocto_3.19.bbappend`` file::
  3824. LINUX_VERSION:core2-32-intel-common = "3.19.0"
  3825. COMPATIBLE_MACHINE:core2-32-intel-common = "${MACHINE}"
  3826. SRCREV_meta:core2-32-intel-common = "8897ef68b30e7426bc1d39895e71fb155d694974"
  3827. SRCREV_machine:core2-32-intel-common = "43b9eced9ba8a57add36af07736344dcc383f711"
  3828. KMACHINE:core2-32-intel-common = "intel-core2-32"
  3829. KBRANCH:core2-32-intel-common = "standard/base"
  3830. KERNEL_FEATURES:append:core2-32-intel-common = " ${KERNEL_FEATURES_INTEL_COMMON}"
  3831. The :term:`KMACHINE` statement says
  3832. that the kernel understands the machine name as "intel-core2-32".
  3833. However, the OpenEmbedded build system understands the machine as
  3834. "core2-32-intel-common".
  3835. :term:`KTYPE`
  3836. Defines the kernel type to be used in assembling the configuration.
  3837. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  3838. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  3839. section in the
  3840. Yocto Project Linux Kernel Development Manual for more information on
  3841. kernel types.
  3842. You define the :term:`KTYPE` variable in the
  3843. :ref:`kernel-dev/advanced:bsp descriptions`. The
  3844. value you use must match the value used for the
  3845. :term:`LINUX_KERNEL_TYPE` value used by the
  3846. kernel recipe.
  3847. :term:`LABELS`
  3848. Provides a list of targets for automatic configuration.
  3849. See the :ref:`ref-classes-grub-efi` class for more
  3850. information on how this variable is used.
  3851. :term:`LAYERDEPENDS`
  3852. Lists the layers, separated by spaces, on which this recipe depends.
  3853. Optionally, you can specify a specific layer version for a dependency
  3854. by adding it to the end of the layer name. Here is an example::
  3855. LAYERDEPENDS_mylayer = "anotherlayer (=3)"
  3856. In this previous example,
  3857. version 3 of "anotherlayer" is compared against
  3858. :term:`LAYERVERSION`\ ``_anotherlayer``.
  3859. An error is produced if any dependency is missing or the version
  3860. numbers (if specified) do not match exactly. This variable is used in
  3861. the ``conf/layer.conf`` file and must be suffixed with the name of
  3862. the specific layer (e.g. ``LAYERDEPENDS_mylayer``).
  3863. :term:`LAYERDIR`
  3864. When used inside the ``layer.conf`` configuration file, this variable
  3865. provides the path of the current layer. This variable is not
  3866. available outside of ``layer.conf`` and references are expanded
  3867. immediately when parsing of the file completes.
  3868. :term:`LAYERDIR_RE`
  3869. See :term:`bitbake:LAYERDIR_RE` in the BitBake manual.
  3870. :term:`LAYERRECOMMENDS`
  3871. Lists the layers, separated by spaces, recommended for use with this
  3872. layer.
  3873. Optionally, you can specify a specific layer version for a
  3874. recommendation by adding the version to the end of the layer name.
  3875. Here is an example::
  3876. LAYERRECOMMENDS_mylayer = "anotherlayer (=3)"
  3877. In this previous example, version 3 of "anotherlayer" is compared
  3878. against ``LAYERVERSION_anotherlayer``.
  3879. This variable is used in the ``conf/layer.conf`` file and must be
  3880. suffixed with the name of the specific layer (e.g.
  3881. ``LAYERRECOMMENDS_mylayer``).
  3882. :term:`LAYERSERIES_COMPAT`
  3883. See :term:`bitbake:LAYERSERIES_COMPAT` in the BitBake manual.
  3884. :term:`LAYERVERSION`
  3885. Optionally specifies the version of a layer as a single number. You
  3886. can use this within :term:`LAYERDEPENDS` for
  3887. another layer in order to depend on a specific version of the layer.
  3888. This variable is used in the ``conf/layer.conf`` file and must be
  3889. suffixed with the name of the specific layer (e.g.
  3890. ``LAYERVERSION_mylayer``).
  3891. :term:`LD`
  3892. The minimal command and arguments used to run the linker.
  3893. :term:`LDFLAGS`
  3894. Specifies the flags to pass to the linker. This variable is exported
  3895. to an environment variable and thus made visible to the software
  3896. being built during the compilation step.
  3897. Default initialization for :term:`LDFLAGS` varies depending on what is
  3898. being built:
  3899. - :term:`TARGET_LDFLAGS` when building for the
  3900. target
  3901. - :term:`BUILD_LDFLAGS` when building for the
  3902. build host (i.e. ``-native``)
  3903. - :term:`BUILDSDK_LDFLAGS` when building for
  3904. an SDK (i.e. ``nativesdk-``)
  3905. :term:`LEAD_SONAME`
  3906. Specifies the lead (or primary) compiled library file (i.e. ``.so``)
  3907. that the :ref:`ref-classes-debian` class applies its
  3908. naming policy to given a recipe that packages multiple libraries.
  3909. This variable works in conjunction with the :ref:`ref-classes-debian`
  3910. class.
  3911. :term:`LIC_FILES_CHKSUM`
  3912. Checksums of the license text in the recipe source code.
  3913. This variable tracks changes in license text of the source code
  3914. files. If the license text is changed, it will trigger a build
  3915. failure, which gives the developer an opportunity to review any
  3916. license change.
  3917. This variable must be defined for all recipes (unless
  3918. :term:`LICENSE` is set to "CLOSED").
  3919. For more information, see the ":ref:`dev-manual/licenses:tracking license changes`"
  3920. section in the Yocto Project Development Tasks Manual.
  3921. :term:`LICENSE`
  3922. The list of source licenses for the recipe. Follow these rules:
  3923. - Do not use spaces within individual license names.
  3924. - Separate license names using \| (pipe) when there is a choice
  3925. between licenses.
  3926. - Separate license names using & (ampersand) when there are
  3927. multiple licenses for different parts of the source.
  3928. - You can use spaces between license names.
  3929. - For standard licenses, use the names of the files in
  3930. ``meta/files/common-licenses/`` or the
  3931. :term:`SPDXLICENSEMAP` flag names defined in
  3932. ``meta/conf/licenses.conf``.
  3933. Here are some examples::
  3934. LICENSE = "LGPL-2.1-only | GPL-3.0-only"
  3935. LICENSE = "MPL-1.0 & LGPL-2.1-only"
  3936. LICENSE = "GPL-2.0-or-later"
  3937. The first example is from the
  3938. recipes for Qt, which the user may choose to distribute under either
  3939. the LGPL version 2.1 or GPL version 3. The second example is from
  3940. Cairo where two licenses cover different parts of the source code.
  3941. The final example is from ``sysstat``, which presents a single
  3942. license.
  3943. You can also specify licenses on a per-package basis to handle
  3944. situations where components of the output have different licenses.
  3945. For example, a piece of software whose code is licensed under GPLv2
  3946. but has accompanying documentation licensed under the GNU Free
  3947. Documentation License 1.2 could be specified as follows::
  3948. LICENSE = "GFDL-1.2 & GPL-2.0-only"
  3949. LICENSE:${PN} = "GPL-2.0.only"
  3950. LICENSE:${PN}-doc = "GFDL-1.2"
  3951. :term:`LICENSE_CREATE_PACKAGE`
  3952. Setting :term:`LICENSE_CREATE_PACKAGE` to "1" causes the OpenEmbedded
  3953. build system to create an extra package (i.e.
  3954. ``${``\ :term:`PN`\ ``}-lic``) for each recipe and to add
  3955. those packages to the
  3956. :term:`RRECOMMENDS`\ ``:${PN}``.
  3957. The ``${PN}-lic`` package installs a directory in
  3958. ``/usr/share/licenses`` named ``${PN}``, which is the recipe's base
  3959. name, and installs files in that directory that contain license and
  3960. copyright information (i.e. copies of the appropriate license files
  3961. from ``meta/common-licenses`` that match the licenses specified in
  3962. the :term:`LICENSE` variable of the recipe metadata
  3963. and copies of files marked in
  3964. :term:`LIC_FILES_CHKSUM` as containing
  3965. license text).
  3966. For related information on providing license text, see the
  3967. :term:`COPY_LIC_DIRS` variable, the
  3968. :term:`COPY_LIC_MANIFEST` variable, and the
  3969. ":ref:`dev-manual/licenses:providing license text`"
  3970. section in the Yocto Project Development Tasks Manual.
  3971. :term:`LICENSE_FLAGS`
  3972. Specifies additional flags for a recipe you must allow through
  3973. :term:`LICENSE_FLAGS_ACCEPTED` in
  3974. order for the recipe to be built. When providing multiple flags,
  3975. separate them with spaces.
  3976. This value is independent of :term:`LICENSE` and is
  3977. typically used to mark recipes that might require additional licenses
  3978. in order to be used in a commercial product. For more information,
  3979. see the
  3980. ":ref:`dev-manual/licenses:enabling commercially licensed recipes`"
  3981. section in the Yocto Project Development Tasks Manual.
  3982. :term:`LICENSE_FLAGS_ACCEPTED`
  3983. Lists license flags that when specified in
  3984. :term:`LICENSE_FLAGS` within a recipe should not
  3985. prevent that recipe from being built. For more information, see the
  3986. ":ref:`dev-manual/licenses:enabling commercially licensed recipes`"
  3987. section in the Yocto Project Development Tasks Manual.
  3988. :term:`LICENSE_FLAGS_DETAILS`
  3989. Adds details about a flag in :term:`LICENSE_FLAGS`. This way,
  3990. if such a flag is not accepted through :term:`LICENSE_FLAGS_ACCEPTED`,
  3991. the error message will be more informative, containing the specified
  3992. extra details.
  3993. For example, a recipe with an EULA may set::
  3994. LICENSE_FLAGS = "FooBar-EULA"
  3995. LICENSE_FLAGS_DETAILS[FooBar-EULA] = "For further details, see https://example.com/eula."
  3996. If ``Foobar-EULA`` isn't in :term:`LICENSE_FLAGS_ACCEPTED`, the
  3997. error message is more useful::
  3998. Has a restricted license 'FooBar-EULA' which is not listed in your LICENSE_FLAGS_ACCEPTED.
  3999. For further details, see https://example.com/eula.
  4000. :term:`LICENSE_PATH`
  4001. Path to additional licenses used during the build. By default, the
  4002. OpenEmbedded build system uses :term:`COMMON_LICENSE_DIR` to define the
  4003. directory that holds common license text used during the build. The
  4004. :term:`LICENSE_PATH` variable allows you to extend that location to other
  4005. areas that have additional licenses::
  4006. LICENSE_PATH += "path-to-additional-common-licenses"
  4007. :term:`LINUX_KERNEL_TYPE`
  4008. Defines the kernel type to be used in assembling the configuration.
  4009. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  4010. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  4011. section in the
  4012. Yocto Project Linux Kernel Development Manual for more information on
  4013. kernel types.
  4014. If you do not specify a :term:`LINUX_KERNEL_TYPE`, it defaults to
  4015. "standard". Together with :term:`KMACHINE`, the
  4016. :term:`LINUX_KERNEL_TYPE` variable defines the search arguments used by
  4017. the kernel tools to find the appropriate description within the
  4018. kernel :term:`Metadata` with which to build out the sources
  4019. and configuration.
  4020. :term:`LINUX_VERSION`
  4021. The Linux version from ``kernel.org`` on which the Linux kernel image
  4022. being built using the OpenEmbedded build system is based. You define
  4023. this variable in the kernel recipe. For example, the
  4024. ``linux-yocto-3.4.bb`` kernel recipe found in
  4025. ``meta/recipes-kernel/linux`` defines the variables as follows::
  4026. LINUX_VERSION ?= "3.4.24"
  4027. The :term:`LINUX_VERSION` variable is used to define :term:`PV`
  4028. for the recipe::
  4029. PV = "${LINUX_VERSION}+git"
  4030. :term:`LINUX_VERSION_EXTENSION`
  4031. A string extension compiled into the version string of the Linux
  4032. kernel built with the OpenEmbedded build system. You define this
  4033. variable in the kernel recipe. For example, the linux-yocto kernel
  4034. recipes all define the variable as follows::
  4035. LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}"
  4036. Defining this variable essentially sets the Linux kernel
  4037. configuration item ``CONFIG_LOCALVERSION``, which is visible through
  4038. the ``uname`` command. Here is an example that shows the extension
  4039. assuming it was set as previously shown::
  4040. $ uname -r
  4041. 3.7.0-rc8-custom
  4042. :term:`LOG_DIR`
  4043. Specifies the directory to which the OpenEmbedded build system writes
  4044. overall log files. The default directory is ``${TMPDIR}/log``.
  4045. For the directory containing logs specific to each task, see the
  4046. :term:`T` variable.
  4047. :term:`MACHINE`
  4048. Specifies the target device for which the image is built. You define
  4049. :term:`MACHINE` in the ``local.conf`` file found in the
  4050. :term:`Build Directory`. By default, :term:`MACHINE` is set to
  4051. "qemux86", which is an x86-based architecture machine to be emulated
  4052. using QEMU::
  4053. MACHINE ?= "qemux86"
  4054. The variable corresponds to a machine configuration file of the same
  4055. name, through which machine-specific configurations are set. Thus,
  4056. when :term:`MACHINE` is set to "qemux86", the corresponding
  4057. ``qemux86.conf`` machine configuration file can be found in
  4058. the :term:`Source Directory` in
  4059. ``meta/conf/machine``.
  4060. The list of machines supported by the Yocto Project as shipped
  4061. include the following::
  4062. MACHINE ?= "qemuarm"
  4063. MACHINE ?= "qemuarm64"
  4064. MACHINE ?= "qemumips"
  4065. MACHINE ?= "qemumips64"
  4066. MACHINE ?= "qemuppc"
  4067. MACHINE ?= "qemux86"
  4068. MACHINE ?= "qemux86-64"
  4069. MACHINE ?= "genericx86"
  4070. MACHINE ?= "genericx86-64"
  4071. MACHINE ?= "beaglebone"
  4072. The last five are Yocto Project reference hardware
  4073. boards, which are provided in the ``meta-yocto-bsp`` layer.
  4074. .. note::
  4075. Adding additional Board Support Package (BSP) layers to your
  4076. configuration adds new possible settings for :term:`MACHINE`.
  4077. :term:`MACHINE_ARCH`
  4078. Specifies the name of the machine-specific architecture. This
  4079. variable is set automatically from :term:`MACHINE` or
  4080. :term:`TUNE_PKGARCH`. You should not hand-edit
  4081. the :term:`MACHINE_ARCH` variable.
  4082. :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  4083. A list of required machine-specific packages to install as part of
  4084. the image being built. The build process depends on these packages
  4085. being present. Furthermore, because this is a "machine-essential"
  4086. variable, the list of packages are essential for the machine to boot.
  4087. The impact of this variable affects images based on
  4088. ``packagegroup-core-boot``, including the ``core-image-minimal``
  4089. image.
  4090. This variable is similar to the
  4091. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS` variable with the exception
  4092. that the image being built has a build dependency on the variable's
  4093. list of packages. In other words, the image will not build if a file
  4094. in this list is not found.
  4095. As an example, suppose the machine for which you are building
  4096. requires ``example-init`` to be run during boot to initialize the
  4097. hardware. In this case, you would use the following in the machine's
  4098. ``.conf`` configuration file::
  4099. MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "example-init"
  4100. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS`
  4101. A list of recommended machine-specific packages to install as part of
  4102. the image being built. The build process does not depend on these
  4103. packages being present. However, because this is a
  4104. "machine-essential" variable, the list of packages are essential for
  4105. the machine to boot. The impact of this variable affects images based
  4106. on ``packagegroup-core-boot``, including the ``core-image-minimal``
  4107. image.
  4108. This variable is similar to the :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  4109. variable with the exception that the image being built does not have
  4110. a build dependency on the variable's list of packages. In other
  4111. words, the image will still build if a package in this list is not
  4112. found. Typically, this variable is used to handle essential kernel
  4113. modules, whose functionality may be selected to be built into the
  4114. kernel rather than as a module, in which case a package will not be
  4115. produced.
  4116. Consider an example where you have a custom kernel where a specific
  4117. touchscreen driver is required for the machine to be usable. However,
  4118. the driver can be built as a module or into the kernel depending on
  4119. the kernel configuration. If the driver is built as a module, you
  4120. want it to be installed. But, when the driver is built into the
  4121. kernel, you still want the build to succeed. This variable sets up a
  4122. "recommends" relationship so that in the latter case, the build will
  4123. not fail due to the missing package. To accomplish this, assuming the
  4124. package for the module was called ``kernel-module-ab123``, you would
  4125. use the following in the machine's ``.conf`` configuration file::
  4126. MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "kernel-module-ab123"
  4127. .. note::
  4128. In this example, the ``kernel-module-ab123`` recipe needs to
  4129. explicitly set its :term:`PACKAGES` variable to ensure that BitBake
  4130. does not use the kernel recipe's :term:`PACKAGES_DYNAMIC` variable to
  4131. satisfy the dependency.
  4132. Some examples of these machine essentials are flash, screen,
  4133. keyboard, mouse, or touchscreen drivers (depending on the machine).
  4134. :term:`MACHINE_EXTRA_RDEPENDS`
  4135. A list of machine-specific packages to install as part of the image
  4136. being built that are not essential for the machine to boot. However,
  4137. the build process for more fully-featured images depends on the
  4138. packages being present.
  4139. This variable affects all images based on ``packagegroup-base``,
  4140. which does not include the ``core-image-minimal`` or
  4141. ``core-image-full-cmdline`` images.
  4142. The variable is similar to the :term:`MACHINE_EXTRA_RRECOMMENDS` variable
  4143. with the exception that the image being built has a build dependency
  4144. on the variable's list of packages. In other words, the image will
  4145. not build if a file in this list is not found.
  4146. An example is a machine that has WiFi capability but is not essential
  4147. for the machine to boot the image. However, if you are building a
  4148. more fully-featured image, you want to enable the WiFi. The package
  4149. containing the firmware for the WiFi hardware is always expected to
  4150. exist, so it is acceptable for the build process to depend upon
  4151. finding the package. In this case, assuming the package for the
  4152. firmware was called ``wifidriver-firmware``, you would use the
  4153. following in the ``.conf`` file for the machine::
  4154. MACHINE_EXTRA_RDEPENDS += "wifidriver-firmware"
  4155. :term:`MACHINE_EXTRA_RRECOMMENDS`
  4156. A list of machine-specific packages to install as part of the image
  4157. being built that are not essential for booting the machine. The image
  4158. being built has no build dependency on this list of packages.
  4159. This variable affects only images based on ``packagegroup-base``,
  4160. which does not include the ``core-image-minimal`` or
  4161. ``core-image-full-cmdline`` images.
  4162. This variable is similar to the :term:`MACHINE_EXTRA_RDEPENDS` variable
  4163. with the exception that the image being built does not have a build
  4164. dependency on the variable's list of packages. In other words, the
  4165. image will build if a file in this list is not found.
  4166. An example is a machine that has WiFi capability but is not essential
  4167. For the machine to boot the image. However, if you are building a
  4168. more fully-featured image, you want to enable WiFi. In this case, the
  4169. package containing the WiFi kernel module will not be produced if the
  4170. WiFi driver is built into the kernel, in which case you still want
  4171. the build to succeed instead of failing as a result of the package
  4172. not being found. To accomplish this, assuming the package for the
  4173. module was called ``kernel-module-examplewifi``, you would use the
  4174. following in the ``.conf`` file for the machine::
  4175. MACHINE_EXTRA_RRECOMMENDS += "kernel-module-examplewifi"
  4176. :term:`MACHINE_FEATURES`
  4177. Specifies the list of hardware features the
  4178. :term:`MACHINE` is capable of supporting. For related
  4179. information on enabling features, see the
  4180. :term:`DISTRO_FEATURES`,
  4181. :term:`COMBINED_FEATURES`, and
  4182. :term:`IMAGE_FEATURES` variables.
  4183. For a list of hardware features supported by the Yocto Project as
  4184. shipped, see the ":ref:`ref-features-machine`" section.
  4185. :term:`MACHINE_FEATURES_BACKFILL`
  4186. A list of space-separated features to be added to
  4187. :term:`MACHINE_FEATURES` if not also present in
  4188. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`.
  4189. This variable is set in the ``meta/conf/bitbake.conf`` file. It is not
  4190. intended to be user-configurable. It is best to just reference the
  4191. variable to see which machine features are being
  4192. :ref:`backfilled <ref-features-backfill>` for all machine configurations.
  4193. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`
  4194. A list of space-separated features from :term:`MACHINE_FEATURES_BACKFILL`
  4195. that should not be :ref:`backfilled <ref-features-backfill>` (i.e. added
  4196. to :term:`MACHINE_FEATURES`) during the build.
  4197. This corresponds to an opt-out mechanism. When new default machine
  4198. features are introduced, machine definition maintainers can review
  4199. (`consider`) them and decide to exclude them from the
  4200. :ref:`backfilled <ref-features-backfill>` features. Therefore, the
  4201. combination of :term:`MACHINE_FEATURES_BACKFILL` and
  4202. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED` makes it possible to
  4203. add new default features without breaking existing machine definitions.
  4204. :term:`MACHINEOVERRIDES`
  4205. A colon-separated list of overrides that apply to the current
  4206. machine. By default, this list includes the value of
  4207. :term:`MACHINE`.
  4208. You can extend :term:`MACHINEOVERRIDES` to add extra overrides that
  4209. should apply to a machine. For example, all machines emulated in QEMU
  4210. (e.g. ``qemuarm``, ``qemux86``, and so forth) include a file named
  4211. ``meta/conf/machine/include/qemu.inc`` that prepends the following
  4212. override to :term:`MACHINEOVERRIDES`::
  4213. MACHINEOVERRIDES =. "qemuall:"
  4214. This
  4215. override allows variables to be overridden for all machines emulated
  4216. in QEMU, like in the following example from the ``connman-conf``
  4217. recipe::
  4218. SRC_URI:append:qemuall = " file://wired.config \
  4219. file://wired-setup \
  4220. "
  4221. The underlying mechanism behind
  4222. :term:`MACHINEOVERRIDES` is simply that it is included in the default
  4223. value of :term:`OVERRIDES`.
  4224. :term:`MAINTAINER`
  4225. The email address of the distribution maintainer.
  4226. :term:`MESON_BUILDTYPE`
  4227. Value of the Meson ``--buildtype`` argument used by the
  4228. :ref:`ref-classes-meson` class. It defaults to ``debug`` if
  4229. :term:`DEBUG_BUILD` is set to "1", and ``plain`` otherwise.
  4230. See `Meson build options <https://mesonbuild.com/Builtin-options.html>`__
  4231. for the values you could set in a recipe. Values such as ``plain``,
  4232. ``debug``, ``debugoptimized``, ``release`` and ``minsize`` allow
  4233. you to specify the inclusion of debugging symbols and the compiler
  4234. optimizations (none, performance or size).
  4235. :term:`MESON_TARGET`
  4236. A variable for the :ref:`ref-classes-meson` class, allowing to choose
  4237. a Meson target to build in :ref:`ref-tasks-compile`. Otherwise, the
  4238. default targets are built.
  4239. :term:`METADATA_BRANCH`
  4240. The branch currently checked out for the OpenEmbedded-Core layer (path
  4241. determined by :term:`COREBASE`).
  4242. :term:`METADATA_REVISION`
  4243. The revision currently checked out for the OpenEmbedded-Core layer (path
  4244. determined by :term:`COREBASE`).
  4245. :term:`MIME_XDG_PACKAGES`
  4246. The current implementation of the :ref:`ref-classes-mime-xdg`
  4247. class cannot detect ``.desktop`` files installed through absolute
  4248. symbolic links. Use this setting to make the class create post-install
  4249. and post-remove scripts for these packages anyway, to invoke the
  4250. ``update-destop-database`` command.
  4251. :term:`MIRRORS`
  4252. Specifies additional paths from which the OpenEmbedded build system
  4253. gets source code. When the build system searches for source code, it
  4254. first tries the local download directory. If that location fails, the
  4255. build system tries locations defined by
  4256. :term:`PREMIRRORS`, the upstream source, and then
  4257. locations specified by :term:`MIRRORS` in that order.
  4258. The default value for :term:`MIRRORS` is defined in the
  4259. ``meta/classes-global/mirrors.bbclass`` file in the core metadata layer.
  4260. :term:`MLPREFIX`
  4261. Specifies a prefix has been added to :term:`PN` to create a
  4262. special version of a recipe or package (i.e. a Multilib version). The
  4263. variable is used in places where the prefix needs to be added to or
  4264. removed from a name (e.g. the :term:`BPN` variable).
  4265. :term:`MLPREFIX` gets set when a prefix has been added to :term:`PN`.
  4266. .. note::
  4267. The "ML" in :term:`MLPREFIX` stands for "MultiLib". This representation
  4268. is historical and comes from a time when ":ref:`ref-classes-nativesdk`"
  4269. was a suffix rather than a prefix on the recipe name. When
  4270. ":ref:`ref-classes-nativesdk`" was turned into a prefix, it made sense
  4271. to set :term:`MLPREFIX` for it as well.
  4272. To help understand when :term:`MLPREFIX` might be needed, consider when
  4273. :term:`BBCLASSEXTEND` is used to provide a :ref:`ref-classes-nativesdk`
  4274. version of a recipe in addition to the target version. If that recipe
  4275. declares build-time dependencies on tasks in other recipes by using
  4276. :term:`DEPENDS`, then a dependency on "foo" will automatically get
  4277. rewritten to a dependency on "nativesdk-foo". However, dependencies like
  4278. the following will not get rewritten automatically::
  4279. do_foo[depends] += "recipe:do_foo"
  4280. If you want such a dependency to also get transformed, you can do the
  4281. following::
  4282. do_foo[depends] += "${MLPREFIX}recipe:do_foo"
  4283. :term:`module_autoload`
  4284. This variable has been replaced by the :term:`KERNEL_MODULE_AUTOLOAD`
  4285. variable. You should replace all occurrences of :term:`module_autoload`
  4286. with additions to :term:`KERNEL_MODULE_AUTOLOAD`, for example::
  4287. module_autoload_rfcomm = "rfcomm"
  4288. should now be replaced with::
  4289. KERNEL_MODULE_AUTOLOAD += "rfcomm"
  4290. See the :term:`KERNEL_MODULE_AUTOLOAD` variable for more information.
  4291. :term:`module_conf`
  4292. Specifies `modprobe.d <https://linux.die.net/man/5/modprobe.d>`__
  4293. syntax lines for inclusion in the ``/etc/modprobe.d/modname.conf``
  4294. file.
  4295. You can use this variable anywhere that it can be recognized by the
  4296. kernel recipe or out-of-tree kernel module recipe (e.g. a machine
  4297. configuration file, a distribution configuration file, an append file
  4298. for the recipe, or the recipe itself). If you use this variable, you
  4299. must also be sure to list the module name in the
  4300. :term:`KERNEL_MODULE_PROBECONF`
  4301. variable.
  4302. Here is the general syntax::
  4303. module_conf_module_name = "modprobe.d-syntax"
  4304. You must use the kernel module name override.
  4305. Run ``man modprobe.d`` in the shell to find out more information on
  4306. the exact syntax you want to provide with :term:`module_conf`.
  4307. Including :term:`module_conf` causes the OpenEmbedded build system to
  4308. populate the ``/etc/modprobe.d/modname.conf`` file with
  4309. ``modprobe.d`` syntax lines. Here is an example that adds the options
  4310. ``arg1`` and ``arg2`` to a module named ``mymodule``::
  4311. module_conf_mymodule = "options mymodule arg1=val1 arg2=val2"
  4312. For information on how to specify kernel modules to auto-load on
  4313. boot, see the :term:`KERNEL_MODULE_AUTOLOAD` variable.
  4314. :term:`MODULE_TARBALL_DEPLOY`
  4315. Controls creation of the ``modules-*.tgz`` file. Set this variable to
  4316. "0" to disable creation of this file, which contains all of the
  4317. kernel modules resulting from a kernel build.
  4318. :term:`MODULE_TARBALL_LINK_NAME`
  4319. The link name of the kernel module tarball. This variable is set in
  4320. the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  4321. MODULE_TARBALL_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  4322. The value
  4323. of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the
  4324. same file, has the following value::
  4325. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  4326. See the :term:`MACHINE` variable for additional information.
  4327. :term:`MODULE_TARBALL_NAME`
  4328. The base name of the kernel module tarball. This variable is set in
  4329. the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  4330. MODULE_TARBALL_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  4331. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  4332. :term:`MOUNT_BASE`
  4333. On non-systemd systems (where ``udev-extraconf`` is being used),
  4334. specifies the base directory for auto-mounting filesystems. The
  4335. default value is "/run/media".
  4336. :term:`MULTIMACH_TARGET_SYS`
  4337. Uniquely identifies the type of the target system for which packages
  4338. are being built. This variable allows output for different types of
  4339. target systems to be put into different subdirectories of the same
  4340. output directory.
  4341. The default value of this variable is::
  4342. ${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}
  4343. Some classes (e.g. :ref:`ref-classes-cross-canadian`) modify the
  4344. :term:`MULTIMACH_TARGET_SYS` value.
  4345. See the :term:`STAMP` variable for an example. See the
  4346. :term:`STAGING_DIR_TARGET` variable for more information.
  4347. :term:`NATIVELSBSTRING`
  4348. A string identifying the host distribution. Strings consist of the
  4349. host distributor ID followed by the release, as reported by the
  4350. ``lsb_release`` tool or as read from ``/etc/lsb-release``. For
  4351. example, when running a build on Ubuntu 12.10, the value is
  4352. "Ubuntu-12.10". If this information is unable to be determined, the
  4353. value resolves to "Unknown".
  4354. This variable is used by default to isolate native shared state
  4355. packages for different distributions (e.g. to avoid problems with
  4356. ``glibc`` version incompatibilities). Additionally, the variable is
  4357. checked against
  4358. :term:`SANITY_TESTED_DISTROS` if that
  4359. variable is set.
  4360. :term:`NM`
  4361. The minimal command and arguments to run ``nm``.
  4362. :term:`NO_GENERIC_LICENSE`
  4363. Avoids QA errors when you use a non-common, non-CLOSED license in a
  4364. recipe. There are packages, such as the linux-firmware package, with many
  4365. licenses that are not in any way common. Also, new licenses are added
  4366. occasionally to avoid introducing a lot of common license files,
  4367. which are only applicable to a specific package.
  4368. :term:`NO_GENERIC_LICENSE` is used to allow copying a license that does
  4369. not exist in common licenses.
  4370. The following example shows how to add :term:`NO_GENERIC_LICENSE` to a
  4371. recipe::
  4372. NO_GENERIC_LICENSE[license_name] = "license_file_in_fetched_source"
  4373. Here is an example that
  4374. uses the ``LICENSE.Abilis.txt`` file as the license from the fetched
  4375. source::
  4376. NO_GENERIC_LICENSE[Firmware-Abilis] = "LICENSE.Abilis.txt"
  4377. :term:`NO_RECOMMENDATIONS`
  4378. Prevents installation of all "recommended-only" packages.
  4379. Recommended-only packages are packages installed only through the
  4380. :term:`RRECOMMENDS` variable). Setting the
  4381. :term:`NO_RECOMMENDATIONS` variable to "1" turns this feature on::
  4382. NO_RECOMMENDATIONS = "1"
  4383. You can set this variable globally in your ``local.conf`` file or you
  4384. can attach it to a specific image recipe by using the recipe name
  4385. override::
  4386. NO_RECOMMENDATIONS:pn-target_image = "1"
  4387. It is important to realize that if you choose to not install packages
  4388. using this variable and some other packages are dependent on them
  4389. (i.e. listed in a recipe's :term:`RDEPENDS`
  4390. variable), the OpenEmbedded build system ignores your request and
  4391. will install the packages to avoid dependency errors.
  4392. .. note::
  4393. Some recommended packages might be required for certain system
  4394. functionality, such as kernel modules. It is up to you to add
  4395. packages with the :term:`IMAGE_INSTALL` variable.
  4396. This variable is only supported when using the IPK and RPM
  4397. packaging backends. DEB is not supported.
  4398. See the :term:`BAD_RECOMMENDATIONS` and
  4399. the :term:`PACKAGE_EXCLUDE` variables for
  4400. related information.
  4401. :term:`NOAUTOPACKAGEDEBUG`
  4402. Disables auto package from splitting ``.debug`` files. If a recipe
  4403. requires ``FILES:${PN}-dbg`` to be set manually, the
  4404. :term:`NOAUTOPACKAGEDEBUG` can be defined allowing you to define the
  4405. content of the debug package. For example::
  4406. NOAUTOPACKAGEDEBUG = "1"
  4407. FILES:${PN}-dev = "${includedir}/${QT_DIR_NAME}/Qt/*"
  4408. FILES:${PN}-dbg = "/usr/src/debug/"
  4409. FILES:${QT_BASE_NAME}-demos-doc = "${docdir}/${QT_DIR_NAME}/qch/qt.qch"
  4410. :term:`NON_MULTILIB_RECIPES`
  4411. A list of recipes that should not be built for multilib. OE-Core's
  4412. ``multilib.conf`` file defines a reasonable starting point for this
  4413. list with::
  4414. NON_MULTILIB_RECIPES = "grub grub-efi make-mod-scripts ovmf u-boot"
  4415. :term:`NVDCVE_API_KEY`
  4416. The NVD API key used to retrieve data from the CVE database when
  4417. using :ref:`ref-classes-cve-check`.
  4418. By default, no API key is used, which results in larger delays between API
  4419. requests and limits the number of queries to the public rate limits posted
  4420. at the `NVD developer's page <https://nvd.nist.gov/developers/start-here>`__.
  4421. NVD API keys can be requested through the
  4422. `Request an API Key <https://nvd.nist.gov/developers/request-an-api-key>`__
  4423. page. You can set this variable to the NVD API key in your ``local.conf`` file.
  4424. Example::
  4425. NVDCVE_API_KEY = "fe753&7a2-1427-347d-23ff-b2e2b7ca5f3"
  4426. :term:`OBJCOPY`
  4427. The minimal command and arguments to run ``objcopy``.
  4428. :term:`OBJDUMP`
  4429. The minimal command and arguments to run ``objdump``.
  4430. :term:`OE_BINCONFIG_EXTRA_MANGLE`
  4431. When inheriting the :ref:`ref-classes-binconfig` class,
  4432. this variable specifies additional arguments passed to the "sed"
  4433. command. The sed command alters any paths in configuration scripts
  4434. that have been set up during compilation. Inheriting this class
  4435. results in all paths in these scripts being changed to point into the
  4436. ``sysroots/`` directory so that all builds that use the script will
  4437. use the correct directories for the cross compiling layout.
  4438. See the ``meta/classes-recipe/binconfig.bbclass`` in the
  4439. :term:`Source Directory` for details on how this class
  4440. applies these additional sed command arguments.
  4441. :term:`OECMAKE_GENERATOR`
  4442. A variable for the :ref:`ref-classes-cmake` class, allowing to choose
  4443. which back-end will be generated by CMake to build an application.
  4444. By default, this variable is set to ``Ninja``, which is faster than GNU
  4445. make, but if building is broken with Ninja, a recipe can use this
  4446. variable to use GNU make instead::
  4447. OECMAKE_GENERATOR = "Unix Makefiles"
  4448. :term:`OE_IMPORTS`
  4449. An internal variable used to tell the OpenEmbedded build system what
  4450. Python modules to import for every Python function run by the system.
  4451. .. note::
  4452. Do not set this variable. It is for internal use only.
  4453. :term:`OE_INIT_ENV_SCRIPT`
  4454. The name of the build environment setup script for the purposes of
  4455. setting up the environment within the extensible SDK. The default
  4456. value is "oe-init-build-env".
  4457. If you use a custom script to set up your build environment, set the
  4458. :term:`OE_INIT_ENV_SCRIPT` variable to its name.
  4459. :term:`OE_TERMINAL`
  4460. Controls how the OpenEmbedded build system spawns interactive
  4461. terminals on the host development system (e.g. using the BitBake
  4462. command with the ``-c devshell`` command-line option). For more
  4463. information, see the ":ref:`dev-manual/development-shell:using a development shell`" section in
  4464. the Yocto Project Development Tasks Manual.
  4465. You can use the following values for the :term:`OE_TERMINAL` variable:
  4466. - auto
  4467. - gnome
  4468. - xfce
  4469. - rxvt
  4470. - screen
  4471. - konsole
  4472. - none
  4473. :term:`OEROOT`
  4474. The directory from which the top-level build environment setup script
  4475. is sourced. The Yocto Project provides a top-level build environment
  4476. setup script: :ref:`structure-core-script`. When you run this
  4477. script, the :term:`OEROOT` variable resolves to the directory that
  4478. contains the script.
  4479. For additional information on how this variable is used, see the
  4480. initialization script.
  4481. :term:`OEQA_REPRODUCIBLE_TEST_PACKAGE`
  4482. Set the package manager(s) for build reproducibility testing.
  4483. See :yocto_git:`reproducible.py </poky/tree/meta/lib/oeqa/selftest/cases/reproducible.py>`
  4484. and :doc:`/test-manual/reproducible-builds`.
  4485. :term:`OEQA_REPRODUCIBLE_TEST_TARGET`
  4486. Set build target for build reproducibility testing. By default
  4487. all available recipes are compiled with "bitbake world", see also :term:`EXCLUDE_FROM_WORLD`
  4488. and :doc:`/test-manual/reproducible-builds`.
  4489. :term:`OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS`
  4490. Set build targets which can be rebuilt using :ref:`shared state <overview-manual/concepts:shared state cache>`
  4491. when running build reproducibility tests. See :doc:`/test-manual/reproducible-builds`.
  4492. :term:`OLDEST_KERNEL`
  4493. Declares the oldest version of the Linux kernel that the produced
  4494. binaries must support. This variable is passed into the build of the
  4495. Embedded GNU C Library (``glibc``).
  4496. The default for this variable comes from the
  4497. ``meta/conf/bitbake.conf`` configuration file. You can override this
  4498. default by setting the variable in a custom distribution
  4499. configuration file.
  4500. :term:`OPKG_MAKE_INDEX_EXTRA_PARAMS`
  4501. Specifies extra parameters for the ``opkg-make-index`` command.
  4502. :term:`OPKGBUILDCMD`
  4503. The variable :term:`OPKGBUILDCMD` specifies the command used to build opkg
  4504. packages when using the :ref:`ref-classes-package_ipk` class. It is
  4505. defined in :ref:`ref-classes-package_ipk` as::
  4506. OPKGBUILDCMD ??= 'opkg-build -Z zstd -a "${ZSTD_DEFAULTS}"'
  4507. :term:`OVERLAYFS_ETC_DEVICE`
  4508. When the :ref:`ref-classes-overlayfs-etc` class is
  4509. inherited, specifies the device to be mounted for the read/write
  4510. layer of ``/etc``. There is no default, so you must set this if you
  4511. wish to enable :ref:`ref-classes-overlayfs-etc`, for
  4512. example, assuming ``/dev/mmcblk0p2`` was the desired device::
  4513. OVERLAYFS_ETC_DEVICE = "/dev/mmcblk0p2"
  4514. :term:`OVERLAYFS_ETC_EXPOSE_LOWER`
  4515. When the :ref:`ref-classes-overlayfs-etc` class is
  4516. inherited, if set to "1" then a read-only access to the original
  4517. ``/etc`` content will be provided as a ``lower/`` subdirectory of
  4518. :term:`OVERLAYFS_ETC_MOUNT_POINT`. The default value is "0".
  4519. :term:`OVERLAYFS_ETC_FSTYPE`
  4520. When the :ref:`ref-classes-overlayfs-etc` class is
  4521. inherited, specifies the file system type for the read/write
  4522. layer of ``/etc``. There is no default, so you must set this if you
  4523. wish to enable :ref:`ref-classes-overlayfs-etc`,
  4524. for example, assuming the file system is ext4::
  4525. OVERLAYFS_ETC_FSTYPE = "ext4"
  4526. :term:`OVERLAYFS_ETC_MOUNT_OPTIONS`
  4527. When the :ref:`ref-classes-overlayfs-etc` class is
  4528. inherited, specifies the mount options for the read-write layer.
  4529. The default value is "defaults".
  4530. :term:`OVERLAYFS_ETC_MOUNT_POINT`
  4531. When the :ref:`ref-classes-overlayfs-etc` class is
  4532. inherited, specifies the parent mount path for the filesystem layers.
  4533. There is no default, so you must set this if you wish to enable
  4534. :ref:`ref-classes-overlayfs-etc`, for example if the desired path is
  4535. "/data"::
  4536. OVERLAYFS_ETC_MOUNT_POINT = "/data"
  4537. :term:`OVERLAYFS_ETC_USE_ORIG_INIT_NAME`
  4538. When the :ref:`ref-classes-overlayfs-etc` class is inherited, controls
  4539. how the generated init will be named. For more information, see the
  4540. :ref:`ref-classes-overlayfs-etc` class documentation. The default value
  4541. is "1".
  4542. :term:`OVERLAYFS_MOUNT_POINT`
  4543. When inheriting the :ref:`ref-classes-overlayfs` class,
  4544. specifies mount point(s) to be used. For example::
  4545. OVERLAYFS_MOUNT_POINT[data] = "/data"
  4546. The assumes you have a ``data.mount`` systemd unit defined elsewhere in
  4547. your BSP (e.g. in ``systemd-machine-units`` recipe) and it is installed
  4548. into the image. For more information see :ref:`ref-classes-overlayfs`.
  4549. .. note::
  4550. Although the :ref:`ref-classes-overlayfs` class is
  4551. inherited by individual recipes, :term:`OVERLAYFS_MOUNT_POINT`
  4552. should be set in your machine configuration.
  4553. :term:`OVERLAYFS_QA_SKIP`
  4554. When inheriting the :ref:`ref-classes-overlayfs` class,
  4555. provides the ability to disable QA checks for particular overlayfs
  4556. mounts. For example::
  4557. OVERLAYFS_QA_SKIP[data] = "mount-configured"
  4558. .. note::
  4559. Although the :ref:`ref-classes-overlayfs` class is
  4560. inherited by individual recipes, :term:`OVERLAYFS_QA_SKIP`
  4561. should be set in your machine configuration.
  4562. :term:`OVERLAYFS_WRITABLE_PATHS`
  4563. When inheriting the :ref:`ref-classes-overlayfs` class,
  4564. specifies writable paths used at runtime for the recipe. For
  4565. example::
  4566. OVERLAYFS_WRITABLE_PATHS[data] = "/usr/share/my-custom-application"
  4567. :term:`OVERRIDES`
  4568. A colon-separated list of overrides that currently apply. Overrides
  4569. are a BitBake mechanism that allows variables to be selectively
  4570. overridden at the end of parsing. The set of overrides in
  4571. :term:`OVERRIDES` represents the "state" during building, which includes
  4572. the current recipe being built, the machine for which it is being
  4573. built, and so forth.
  4574. As an example, if the string "an-override" appears as an element in
  4575. the colon-separated list in :term:`OVERRIDES`, then the following
  4576. assignment will override ``FOO`` with the value "overridden" at the
  4577. end of parsing::
  4578. FOO:an-override = "overridden"
  4579. See the
  4580. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  4581. section in the BitBake User Manual for more information on the
  4582. overrides mechanism.
  4583. The default value of :term:`OVERRIDES` includes the values of the
  4584. :term:`CLASSOVERRIDE`,
  4585. :term:`MACHINEOVERRIDES`, and
  4586. :term:`DISTROOVERRIDES` variables. Another
  4587. important override included by default is ``pn-${PN}``. This override
  4588. allows variables to be set for a single recipe within configuration
  4589. (``.conf``) files. Here is an example::
  4590. FOO:pn-myrecipe = "myrecipe-specific value"
  4591. .. note::
  4592. An easy way to see what overrides apply is to search for :term:`OVERRIDES`
  4593. in the output of the ``bitbake -e`` command. See the
  4594. ":ref:`dev-manual/debugging:viewing variable values`" section in the Yocto
  4595. Project Development Tasks Manual for more information.
  4596. :term:`P`
  4597. The recipe name and version. :term:`P` is comprised of the following::
  4598. ${PN}-${PV}
  4599. :term:`P4DIR`
  4600. See :term:`bitbake:P4DIR` in the BitBake manual.
  4601. :term:`PACKAGE_ADD_METADATA`
  4602. This variable defines additional metadata to add to packages.
  4603. You may find you need to inject additional metadata into packages.
  4604. This variable allows you to do that by setting the injected data as
  4605. the value. Multiple fields can be added by splitting the content with
  4606. the literal separator "\n".
  4607. The suffixes '_IPK', '_DEB', or '_RPM' can be applied to the variable
  4608. to do package type specific settings. It can also be made package
  4609. specific by using the package name as a suffix.
  4610. You can find out more about applying this variable in the
  4611. ":ref:`dev-manual/packages:adding custom metadata to packages`"
  4612. section in the Yocto Project Development Tasks Manual.
  4613. :term:`PACKAGE_ARCH`
  4614. The architecture of the resulting package or packages.
  4615. By default, the value of this variable is set to
  4616. :term:`TUNE_PKGARCH` when building for the
  4617. target, :term:`BUILD_ARCH` when building for the
  4618. build host, and "${SDK_ARCH}-${SDKPKGSUFFIX}" when building for the
  4619. SDK.
  4620. .. note::
  4621. See :term:`SDK_ARCH` for more information.
  4622. However, if your recipe's output packages are built specific to the
  4623. target machine rather than generally for the architecture of the
  4624. machine, you should set :term:`PACKAGE_ARCH` to the value of
  4625. :term:`MACHINE_ARCH` in the recipe as follows::
  4626. PACKAGE_ARCH = "${MACHINE_ARCH}"
  4627. :term:`PACKAGE_ARCHS`
  4628. Specifies a list of architectures compatible with the target machine.
  4629. This variable is set automatically and should not normally be
  4630. hand-edited. Entries are separated using spaces and listed in order
  4631. of priority. The default value for :term:`PACKAGE_ARCHS` is "all any
  4632. noarch ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}".
  4633. :term:`PACKAGE_BEFORE_PN`
  4634. Enables easily adding packages to :term:`PACKAGES` before ``${PN}`` so
  4635. that those added packages can pick up files that would normally be
  4636. included in the default package.
  4637. :term:`PACKAGE_CLASSES`
  4638. This variable, which is set in the ``local.conf`` configuration file
  4639. found in the ``conf`` folder of the
  4640. :term:`Build Directory`, specifies the package manager the
  4641. OpenEmbedded build system uses when packaging data.
  4642. You can provide one or more of the following arguments for the
  4643. variable::
  4644. PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk"
  4645. The build system uses only the first argument in the list as the
  4646. package manager when creating your image or SDK. However, packages
  4647. will be created using any additional packaging classes you specify.
  4648. For example, if you use the following in your ``local.conf`` file::
  4649. PACKAGE_CLASSES ?= "package_ipk"
  4650. The OpenEmbedded build system uses
  4651. the IPK package manager to create your image or SDK.
  4652. For information on packaging and build performance effects as a
  4653. result of the package manager in use, see the
  4654. ":ref:`ref-classes-package`" section.
  4655. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  4656. Determines how to split up and package debug and source information
  4657. when creating debugging packages to be used with the GNU Project
  4658. Debugger (GDB). In general, based on the value of this variable,
  4659. you can combine the source and debug info in a single package,
  4660. you can break out the source into a separate package that can be
  4661. installed independently, or you can choose to not have the source
  4662. packaged at all.
  4663. The possible values of :term:`PACKAGE_DEBUG_SPLIT_STYLE` variable:
  4664. - "``.debug``": All debugging and source info is placed in a single
  4665. ``*-dbg`` package; debug symbol files are placed next to the
  4666. binary in a ``.debug`` directory so that, if a binary is installed
  4667. into ``/bin``, the corresponding debug symbol file is installed
  4668. in ``/bin/.debug``. Source files are installed in the same ``*-dbg``
  4669. package under ``/usr/src/debug``.
  4670. - "``debug-file-directory``": As above, all debugging and source info
  4671. is placed in a single ``*-dbg`` package; debug symbol files are
  4672. placed entirely under the directory ``/usr/lib/debug`` and separated
  4673. by the path from where the binary is installed, so that if a binary
  4674. is installed in ``/bin``, the corresponding debug symbols are installed
  4675. in ``/usr/lib/debug/bin``, and so on. As above, source is installed
  4676. in the same package under ``/usr/src/debug``.
  4677. - "``debug-with-srcpkg``": Debugging info is placed in the standard
  4678. ``*-dbg`` package as with the ``.debug`` value, while source is
  4679. placed in a separate ``*-src`` package, which can be installed
  4680. independently. This is the default setting for this variable,
  4681. as defined in Poky's ``bitbake.conf`` file.
  4682. - "``debug-without-src``": The same behavior as with the ``.debug``
  4683. setting, but no source is packaged at all.
  4684. .. note::
  4685. Much of the above package splitting can be overridden via
  4686. use of the :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` variable.
  4687. You can find out more about debugging using GDB by reading the
  4688. ":ref:`dev-manual/debugging:debugging with the gnu project debugger (gdb) remotely`" section
  4689. in the Yocto Project Development Tasks Manual.
  4690. :term:`PACKAGE_EXCLUDE`
  4691. Lists packages that should not be installed into an image. For
  4692. example::
  4693. PACKAGE_EXCLUDE = "package_name package_name package_name ..."
  4694. You can set this variable globally in your ``local.conf`` file or you
  4695. can attach it to a specific image recipe by using the recipe name
  4696. override::
  4697. PACKAGE_EXCLUDE:pn-target_image = "package_name"
  4698. If you choose to not install a package using this variable and some
  4699. other package is dependent on it (i.e. listed in a recipe's
  4700. :term:`RDEPENDS` variable), the OpenEmbedded build
  4701. system generates a fatal installation error. Because the build system
  4702. halts the process with a fatal error, you can use the variable with
  4703. an iterative development process to remove specific components from a
  4704. system.
  4705. This variable is supported only when using the IPK and RPM
  4706. packaging backends. DEB is not supported.
  4707. See the :term:`NO_RECOMMENDATIONS` and the
  4708. :term:`BAD_RECOMMENDATIONS` variables for
  4709. related information.
  4710. :term:`PACKAGE_EXCLUDE_COMPLEMENTARY`
  4711. Prevents specific packages from being installed when you are
  4712. installing complementary packages.
  4713. You might find that you want to prevent installing certain packages
  4714. when you are installing complementary packages. For example, if you
  4715. are using :term:`IMAGE_FEATURES` to install
  4716. ``dev-pkgs``, you might not want to install all packages from a
  4717. particular multilib. If you find yourself in this situation, you can
  4718. use the :term:`PACKAGE_EXCLUDE_COMPLEMENTARY` variable to specify regular
  4719. expressions to match the packages you want to exclude.
  4720. :term:`PACKAGE_EXTRA_ARCHS`
  4721. Specifies the list of architectures compatible with the device CPU.
  4722. This variable is useful when you build for several different devices
  4723. that use miscellaneous processors such as XScale and ARM926-EJS.
  4724. :term:`PACKAGE_FEED_ARCHS`
  4725. Optionally specifies the package architectures used as part of the
  4726. package feed URIs during the build. When used, the
  4727. :term:`PACKAGE_FEED_ARCHS` variable is appended to the final package feed
  4728. URI, which is constructed using the
  4729. :term:`PACKAGE_FEED_URIS` and
  4730. :term:`PACKAGE_FEED_BASE_PATHS`
  4731. variables.
  4732. .. note::
  4733. You can use the :term:`PACKAGE_FEED_ARCHS`
  4734. variable to allow specific package architectures. If you do
  4735. not need to allow specific architectures, which is a common
  4736. case, you can omit this variable. Omitting the variable results in
  4737. all available architectures for the current machine being included
  4738. into remote package feeds.
  4739. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4740. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4741. defined in your ``local.conf`` file::
  4742. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4743. https://example.com/packagerepos/updates"
  4744. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4745. PACKAGE_FEED_ARCHS = "all core2-64"
  4746. Given these settings, the resulting package feeds are as follows:
  4747. .. code-block:: none
  4748. https://example.com/packagerepos/release/rpm/all
  4749. https://example.com/packagerepos/release/rpm/core2-64
  4750. https://example.com/packagerepos/release/rpm-dev/all
  4751. https://example.com/packagerepos/release/rpm-dev/core2-64
  4752. https://example.com/packagerepos/updates/rpm/all
  4753. https://example.com/packagerepos/updates/rpm/core2-64
  4754. https://example.com/packagerepos/updates/rpm-dev/all
  4755. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4756. :term:`PACKAGE_FEED_BASE_PATHS`
  4757. Specifies the base path used when constructing package feed URIs. The
  4758. :term:`PACKAGE_FEED_BASE_PATHS` variable makes up the middle portion of a
  4759. package feed URI used by the OpenEmbedded build system. The base path
  4760. lies between the :term:`PACKAGE_FEED_URIS`
  4761. and :term:`PACKAGE_FEED_ARCHS` variables.
  4762. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4763. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4764. defined in your ``local.conf`` file::
  4765. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4766. https://example.com/packagerepos/updates"
  4767. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4768. PACKAGE_FEED_ARCHS = "all core2-64"
  4769. Given these settings, the resulting package feeds are as follows:
  4770. .. code-block:: none
  4771. https://example.com/packagerepos/release/rpm/all
  4772. https://example.com/packagerepos/release/rpm/core2-64
  4773. https://example.com/packagerepos/release/rpm-dev/all
  4774. https://example.com/packagerepos/release/rpm-dev/core2-64
  4775. https://example.com/packagerepos/updates/rpm/all
  4776. https://example.com/packagerepos/updates/rpm/core2-64
  4777. https://example.com/packagerepos/updates/rpm-dev/all
  4778. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4779. :term:`PACKAGE_FEED_URIS`
  4780. Specifies the front portion of the package feed URI used by the
  4781. OpenEmbedded build system. Each final package feed URI is comprised
  4782. of :term:`PACKAGE_FEED_URIS`,
  4783. :term:`PACKAGE_FEED_BASE_PATHS`, and
  4784. :term:`PACKAGE_FEED_ARCHS` variables.
  4785. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4786. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4787. defined in your ``local.conf`` file::
  4788. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4789. https://example.com/packagerepos/updates"
  4790. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4791. PACKAGE_FEED_ARCHS = "all core2-64"
  4792. Given these settings, the resulting package feeds are as follows:
  4793. .. code-block:: none
  4794. https://example.com/packagerepos/release/rpm/all
  4795. https://example.com/packagerepos/release/rpm/core2-64
  4796. https://example.com/packagerepos/release/rpm-dev/all
  4797. https://example.com/packagerepos/release/rpm-dev/core2-64
  4798. https://example.com/packagerepos/updates/rpm/all
  4799. https://example.com/packagerepos/updates/rpm/core2-64
  4800. https://example.com/packagerepos/updates/rpm-dev/all
  4801. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4802. :term:`PACKAGE_INSTALL`
  4803. The final list of packages passed to the package manager for
  4804. installation into the image.
  4805. Because the package manager controls actual installation of all
  4806. packages, the list of packages passed using :term:`PACKAGE_INSTALL` is
  4807. not the final list of packages that are actually installed. This
  4808. variable is internal to the image construction code. Consequently, in
  4809. general, you should use the
  4810. :term:`IMAGE_INSTALL` variable to specify
  4811. packages for installation. The exception to this is when working with
  4812. the :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  4813. image. When working with an initial RAM filesystem (:term:`Initramfs`) image,
  4814. use the :term:`PACKAGE_INSTALL` variable. For information on creating an
  4815. :term:`Initramfs`, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  4816. in the Yocto Project Development Tasks Manual.
  4817. :term:`PACKAGE_INSTALL_ATTEMPTONLY`
  4818. Specifies a list of packages the OpenEmbedded build system attempts
  4819. to install when creating an image. If a listed package fails to
  4820. install, the build system does not generate an error. This variable
  4821. is generally not user-defined.
  4822. :term:`PACKAGE_PREPROCESS_FUNCS`
  4823. Specifies a list of functions run to pre-process the
  4824. :term:`PKGD` directory prior to splitting the files out
  4825. to individual packages.
  4826. :term:`PACKAGE_WRITE_DEPS`
  4827. Specifies a list of dependencies for post-installation and
  4828. pre-installation scripts on native/cross tools. If your
  4829. post-installation or pre-installation script can execute at root filesystem
  4830. creation time rather than on the target but depends on a native tool
  4831. in order to execute, you need to list the tools in
  4832. :term:`PACKAGE_WRITE_DEPS`.
  4833. For information on running post-installation scripts, see the
  4834. ":ref:`dev-manual/new-recipe:post-installation scripts`"
  4835. section in the Yocto Project Development Tasks Manual.
  4836. :term:`PACKAGECONFIG`
  4837. This variable provides a means of enabling or disabling features of a
  4838. recipe on a per-recipe basis. :term:`PACKAGECONFIG` blocks are defined in
  4839. recipes when you specify features and then arguments that define
  4840. feature behaviors. Here is the basic block structure (broken over
  4841. multiple lines for readability)::
  4842. PACKAGECONFIG ??= "f1 f2 f3 ..."
  4843. PACKAGECONFIG[f1] = "\
  4844. --with-f1, \
  4845. --without-f1, \
  4846. build-deps-for-f1, \
  4847. runtime-deps-for-f1, \
  4848. runtime-recommends-for-f1, \
  4849. packageconfig-conflicts-for-f1"
  4850. PACKAGECONFIG[f2] = "\
  4851. ... and so on and so on ...
  4852. The :term:`PACKAGECONFIG` variable itself specifies a space-separated
  4853. list of the features to enable. Following the features, you can
  4854. determine the behavior of each feature by providing up to six
  4855. order-dependent arguments, which are separated by commas. You can
  4856. omit any argument you like but must retain the separating commas. The
  4857. order is important and specifies the following:
  4858. #. Extra arguments that should be added to :term:`PACKAGECONFIG_CONFARGS`
  4859. if the feature is enabled.
  4860. #. Extra arguments that should be added to :term:`PACKAGECONFIG_CONFARGS`
  4861. if the feature is disabled.
  4862. #. Additional build dependencies (:term:`DEPENDS`)
  4863. that should be added if the feature is enabled.
  4864. #. Additional runtime dependencies (:term:`RDEPENDS`)
  4865. that should be added if the feature is enabled.
  4866. #. Additional runtime recommendations
  4867. (:term:`RRECOMMENDS`) that should be added if
  4868. the feature is enabled.
  4869. #. Any conflicting (that is, mutually exclusive) :term:`PACKAGECONFIG`
  4870. settings for this feature.
  4871. Consider the following :term:`PACKAGECONFIG` block taken from the
  4872. ``librsvg`` recipe. In this example the feature is ``gtk``, which has
  4873. three arguments that determine the feature's behavior::
  4874. PACKAGECONFIG[gtk] = "--with-gtk3,--without-gtk3,gtk+3"
  4875. The
  4876. ``--with-gtk3`` and ``gtk+3`` arguments apply only if the feature is
  4877. enabled. In this case, ``--with-gtk3`` is added to the configure
  4878. script argument list and ``gtk+3`` is added to :term:`DEPENDS`. On the
  4879. other hand, if the feature is disabled say through a ``.bbappend``
  4880. file in another layer, then the second argument ``--without-gtk3`` is
  4881. added to the configure script instead.
  4882. The basic :term:`PACKAGECONFIG` structure previously described holds true
  4883. regardless of whether you are creating a block or changing a block.
  4884. When creating a block, use the structure inside your recipe.
  4885. If you want to change an existing :term:`PACKAGECONFIG` block, you can do
  4886. so one of two ways:
  4887. - *Append file:* Create an append file named
  4888. ``recipename.bbappend`` in your layer and override the value of
  4889. :term:`PACKAGECONFIG`. You can either completely override the
  4890. variable::
  4891. PACKAGECONFIG = "f4 f5"
  4892. Or, you can just append the variable::
  4893. PACKAGECONFIG:append = " f4"
  4894. - *Configuration file:* This method is identical to changing the
  4895. block through an append file except you edit your ``local.conf``
  4896. or ``mydistro.conf`` file. As with append files previously
  4897. described, you can either completely override the variable::
  4898. PACKAGECONFIG:pn-recipename = "f4 f5"
  4899. Or, you can just amend the variable::
  4900. PACKAGECONFIG:append:pn-recipename = " f4"
  4901. Consider the following example of a :ref:`ref-classes-cmake` recipe with a systemd service
  4902. in which :term:`PACKAGECONFIG` is used to transform the systemd service
  4903. into a feature that can be easily enabled or disabled via :term:`PACKAGECONFIG`::
  4904. example.c
  4905. example.service
  4906. CMakeLists.txt
  4907. The ``CMakeLists.txt`` file contains::
  4908. if(WITH_SYSTEMD)
  4909. install(FILES ${PROJECT_SOURCE_DIR}/example.service DESTINATION /etc/systemd/systemd)
  4910. endif(WITH_SYSTEMD)
  4911. In order to enable the installation of ``example.service`` we need to
  4912. ensure that ``-DWITH_SYSTEMD=ON`` is passed to the ``cmake`` command
  4913. execution. Recipes that have ``CMakeLists.txt`` generally inherit the
  4914. :ref:`ref-classes-cmake` class, that runs ``cmake`` with
  4915. :term:`EXTRA_OECMAKE`, which :term:`PACKAGECONFIG_CONFARGS` will be
  4916. appended to. Now, knowing that :term:`PACKAGECONFIG_CONFARGS` is
  4917. automatically filled with either the first or second element of
  4918. :term:`PACKAGECONFIG` flag value, the recipe would be like::
  4919. inherit cmake
  4920. PACKAGECONFIG = "systemd"
  4921. PACKAGECONFIG[systemd] = "-DWITH_SYSTEMD=ON,-DWITH_SYSTEMD=OFF"
  4922. A side note to this recipe is to check if ``systemd`` is in fact the used :term:`INIT_MANAGER`
  4923. or not::
  4924. PACKAGECONFIG = "${@'systemd' if d.getVar('INIT_MANAGER') == 'systemd' else ''}"
  4925. :term:`PACKAGECONFIG_CONFARGS`
  4926. A space-separated list of configuration options generated from the
  4927. :term:`PACKAGECONFIG` setting.
  4928. Classes such as :ref:`ref-classes-autotools` and :ref:`ref-classes-cmake`
  4929. use :term:`PACKAGECONFIG_CONFARGS` to pass :term:`PACKAGECONFIG` options
  4930. to ``configure`` and ``cmake``, respectively. If you are using
  4931. :term:`PACKAGECONFIG` but not a class that handles the
  4932. :ref:`ref-tasks-configure` task, then you need to use
  4933. :term:`PACKAGECONFIG_CONFARGS` appropriately.
  4934. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY`
  4935. For recipes inheriting the :ref:`ref-classes-packagegroup` class, setting
  4936. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY` to "1" specifies that the
  4937. normal complementary packages (i.e. ``-dev``, ``-dbg``, and so forth)
  4938. should not be automatically created by the ``packagegroup`` recipe,
  4939. which is the default behavior.
  4940. :term:`PACKAGES`
  4941. The list of packages the recipe creates. The default value is the
  4942. following::
  4943. ${PN}-src ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}
  4944. During packaging, the :ref:`ref-tasks-package` task
  4945. goes through :term:`PACKAGES` and uses the :term:`FILES`
  4946. variable corresponding to each package to assign files to the
  4947. package. If a file matches the :term:`FILES` variable for more than one
  4948. package in :term:`PACKAGES`, it will be assigned to the earliest
  4949. (leftmost) package.
  4950. Packages in the variable's list that are empty (i.e. where none of
  4951. the patterns in ``FILES:``\ pkg match any files installed by the
  4952. :ref:`ref-tasks-install` task) are not generated,
  4953. unless generation is forced through the
  4954. :term:`ALLOW_EMPTY` variable.
  4955. :term:`PACKAGES_DYNAMIC`
  4956. A promise that your recipe satisfies runtime dependencies for
  4957. optional modules that are found in other recipes.
  4958. :term:`PACKAGES_DYNAMIC` does not actually satisfy the dependencies, it
  4959. only states that they should be satisfied. For example, if a hard,
  4960. runtime dependency (:term:`RDEPENDS`) of another
  4961. package is satisfied at build time through the :term:`PACKAGES_DYNAMIC`
  4962. variable, but a package with the module name is never actually
  4963. produced, then the other package will be broken. Thus, if you attempt
  4964. to include that package in an image, you will get a dependency
  4965. failure from the packaging system during the
  4966. :ref:`ref-tasks-rootfs` task.
  4967. Typically, if there is a chance that such a situation can occur and
  4968. the package that is not created is valid without the dependency being
  4969. satisfied, then you should use :term:`RRECOMMENDS`
  4970. (a soft runtime dependency) instead of :term:`RDEPENDS`.
  4971. For an example of how to use the :term:`PACKAGES_DYNAMIC` variable when
  4972. you are splitting packages, see the
  4973. ":ref:`dev-manual/packages:handling optional module packaging`"
  4974. section in the Yocto Project Development Tasks Manual.
  4975. :term:`PACKAGESPLITFUNCS`
  4976. Specifies a list of functions run to perform additional splitting of
  4977. files into individual packages. Recipes can either prepend to this
  4978. variable or prepend to the ``populate_packages`` function in order to
  4979. perform additional package splitting. In either case, the function
  4980. should set :term:`PACKAGES`,
  4981. :term:`FILES`, :term:`RDEPENDS` and
  4982. other packaging variables appropriately in order to perform the
  4983. desired splitting.
  4984. :term:`PARALLEL_MAKE`
  4985. Extra options passed to the build tool command (``make``,
  4986. ``ninja`` or more specific build engines, like the Go language one)
  4987. during the :ref:`ref-tasks-compile` task, to specify parallel compilation
  4988. on the local build host. This variable is usually in the form "-j x",
  4989. where x represents the maximum number of parallel threads such engines
  4990. can run.
  4991. .. note::
  4992. For software compiled by ``make``, in order for :term:`PARALLEL_MAKE`
  4993. to be effective, ``make`` must be called with
  4994. ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy
  4995. way to ensure this is to use the ``oe_runmake`` function.
  4996. By default, the OpenEmbedded build system automatically sets this
  4997. variable to be equal to the number of cores the build system uses.
  4998. .. note::
  4999. If the software being built experiences dependency issues during
  5000. the :ref:`ref-tasks-compile` task that result in race conditions, you can clear
  5001. the :term:`PARALLEL_MAKE` variable within the recipe as a workaround. For
  5002. information on addressing race conditions, see the
  5003. ":ref:`dev-manual/debugging:debugging parallel make races`"
  5004. section in the Yocto Project Development Tasks Manual.
  5005. For single socket systems (i.e. one CPU), you should not have to
  5006. override this variable to gain optimal parallelism during builds.
  5007. However, if you have very large systems that employ multiple physical
  5008. CPUs, you might want to make sure the :term:`PARALLEL_MAKE` variable is
  5009. not set higher than "-j 20".
  5010. For more information on speeding up builds, see the
  5011. ":ref:`dev-manual/speeding-up-build:speeding up a build`"
  5012. section in the Yocto Project Development Tasks Manual.
  5013. :term:`PARALLEL_MAKEINST`
  5014. Extra options passed to the build tool install command
  5015. (``make install``, ``ninja install`` or more specific ones)
  5016. during the :ref:`ref-tasks-install` task in order to specify
  5017. parallel installation. This variable defaults to the value of
  5018. :term:`PARALLEL_MAKE`.
  5019. .. note::
  5020. For software compiled by ``make``, in order for :term:`PARALLEL_MAKEINST`
  5021. to be effective, ``make`` must be called with
  5022. ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy
  5023. way to ensure this is to use the ``oe_runmake`` function.
  5024. If the software being built experiences dependency issues during
  5025. the :ref:`ref-tasks-install` task that result in race conditions, you can
  5026. clear the :term:`PARALLEL_MAKEINST` variable within the recipe as a
  5027. workaround. For information on addressing race conditions, see the
  5028. ":ref:`dev-manual/debugging:debugging parallel make races`"
  5029. section in the Yocto Project Development Tasks Manual.
  5030. :term:`PATCHRESOLVE`
  5031. Determines the action to take when a patch fails. You can set this
  5032. variable to one of two values: "noop" and "user".
  5033. The default value of "noop" causes the build to simply fail when the
  5034. OpenEmbedded build system cannot successfully apply a patch. Setting
  5035. the value to "user" causes the build system to launch a shell and
  5036. places you in the right location so that you can manually resolve the
  5037. conflicts.
  5038. Set this variable in your ``local.conf`` file.
  5039. :term:`PATCHTOOL`
  5040. Specifies the utility used to apply patches for a recipe during the
  5041. :ref:`ref-tasks-patch` task. You can specify one of
  5042. three utilities: "patch", "quilt", or "git". The default utility used
  5043. is "quilt" except for the quilt-native recipe itself. Because the
  5044. quilt tool is not available at the time quilt-native is being
  5045. patched, it uses "patch".
  5046. If you wish to use an alternative patching tool, set the variable in
  5047. the recipe using one of the following::
  5048. PATCHTOOL = "patch"
  5049. PATCHTOOL = "quilt"
  5050. PATCHTOOL = "git"
  5051. :term:`PE`
  5052. The epoch of the recipe. By default, this variable is unset. The
  5053. variable is used to make upgrades possible when the versioning scheme
  5054. changes in some backwards incompatible way.
  5055. :term:`PE` is the default value of the :term:`PKGE` variable.
  5056. :term:`PEP517_WHEEL_PATH`
  5057. When used by recipes that inherit the :ref:`ref-classes-python_pep517`
  5058. class, denotes the path to ``dist/`` (short for distribution) where the
  5059. binary archive ``wheel`` is built.
  5060. :term:`PERSISTENT_DIR`
  5061. See :term:`bitbake:PERSISTENT_DIR` in the BitBake manual.
  5062. :term:`PF`
  5063. Specifies the recipe or package name and includes all version and
  5064. revision numbers (i.e. ``glibc-2.13-r20+svnr15508/`` and
  5065. ``bash-4.2-r1/``). This variable is comprised of the following:
  5066. ${:term:`PN`}-${:term:`EXTENDPE`}${:term:`PV`}-${:term:`PR`}
  5067. :term:`PIXBUF_PACKAGES`
  5068. When inheriting the :ref:`ref-classes-pixbufcache`
  5069. class, this variable identifies packages that contain the pixbuf
  5070. loaders used with ``gdk-pixbuf``. By default, the
  5071. :ref:`ref-classes-pixbufcache` class assumes that
  5072. the loaders are in the recipe's main package (i.e.
  5073. ``${``\ :term:`PN`\ ``}``). Use this variable if the
  5074. loaders you need are in a package other than that main package.
  5075. :term:`PKG`
  5076. The name of the resulting package created by the OpenEmbedded build
  5077. system.
  5078. .. note::
  5079. When using the :term:`PKG` variable, you must use a package name override.
  5080. For example, when the :ref:`ref-classes-debian` class renames the output
  5081. package, it does so by setting ``PKG:packagename``.
  5082. :term:`PKG_CONFIG_PATH`
  5083. The path to ``pkg-config`` files for the current build context.
  5084. ``pkg-config`` reads this variable from the environment.
  5085. :term:`PKGD`
  5086. Points to the destination directory for files to be packaged before
  5087. they are split into individual packages. This directory defaults to
  5088. the following::
  5089. ${WORKDIR}/package
  5090. Do not change this default.
  5091. :term:`PKGDATA_DIR`
  5092. Points to a shared, global-state directory that holds data generated
  5093. during the packaging process. During the packaging process, the
  5094. :ref:`ref-tasks-packagedata` task packages data
  5095. for each recipe and installs it into this temporary, shared area.
  5096. This directory defaults to the following, which you should not
  5097. change::
  5098. ${STAGING_DIR_HOST}/pkgdata
  5099. For examples of how this data is used, see the
  5100. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5101. section in the Yocto Project Overview and Concepts Manual and the
  5102. ":ref:`dev-manual/debugging:viewing package information with \`\`oe-pkgdata-util\`\``"
  5103. section in the Yocto Project Development Tasks Manual. For more
  5104. information on the shared, global-state directory, see
  5105. :term:`STAGING_DIR_HOST`.
  5106. :term:`PKGDEST`
  5107. Points to the parent directory for files to be packaged after they
  5108. have been split into individual packages. This directory defaults to
  5109. the following::
  5110. ${WORKDIR}/packages-split
  5111. Under this directory, the build system creates directories for each
  5112. package specified in :term:`PACKAGES`. Do not change
  5113. this default.
  5114. :term:`PKGDESTWORK`
  5115. Points to a temporary work area where the
  5116. :ref:`ref-tasks-package` task saves package metadata.
  5117. The :term:`PKGDESTWORK` location defaults to the following::
  5118. ${WORKDIR}/pkgdata
  5119. Do not change this default.
  5120. The :ref:`ref-tasks-packagedata` task copies the
  5121. package metadata from :term:`PKGDESTWORK` to
  5122. :term:`PKGDATA_DIR` to make it available globally.
  5123. :term:`PKGE`
  5124. The epoch of the package(s) built by the recipe. By default, :term:`PKGE`
  5125. is set to :term:`PE`.
  5126. :term:`PKGR`
  5127. The revision of the package(s) built by the recipe. By default,
  5128. :term:`PKGR` is set to :term:`PR`.
  5129. :term:`PKGV`
  5130. The version of the package(s) built by the recipe. By default,
  5131. :term:`PKGV` is set to :term:`PV`.
  5132. :term:`PN`
  5133. This variable can have two separate functions depending on the
  5134. context: a recipe name or a resulting package name.
  5135. :term:`PN` refers to a recipe name in the context of a file used by the
  5136. OpenEmbedded build system as input to create a package. The name is
  5137. normally extracted from the recipe file name. For example, if the
  5138. recipe is named ``expat_2.0.1.bb``, then the default value of :term:`PN`
  5139. will be "expat".
  5140. The variable refers to a package name in the context of a file
  5141. created or produced by the OpenEmbedded build system.
  5142. If applicable, the :term:`PN` variable also contains any special suffix
  5143. or prefix. For example, using ``bash`` to build packages for the
  5144. native machine, :term:`PN` is ``bash-native``. Using ``bash`` to build
  5145. packages for the target and for Multilib, :term:`PN` would be ``bash``
  5146. and ``lib64-bash``, respectively.
  5147. :term:`POPULATE_SDK_POST_HOST_COMMAND`
  5148. Specifies a list of functions to call once the OpenEmbedded build
  5149. system has created the host part of the SDK. You can specify
  5150. functions separated by spaces::
  5151. POPULATE_SDK_POST_HOST_COMMAND += "function"
  5152. If you need to pass the SDK path to a command within a function, you
  5153. can use ``${SDK_DIR}``, which points to the parent directory used by
  5154. the OpenEmbedded build system when creating SDK output. See the
  5155. :term:`SDK_DIR` variable for more information.
  5156. :term:`POPULATE_SDK_POST_TARGET_COMMAND`
  5157. Specifies a list of functions to call once the OpenEmbedded build
  5158. system has created the target part of the SDK. You can specify
  5159. functions separated by spaces::
  5160. POPULATE_SDK_POST_TARGET_COMMAND += "function"
  5161. If you need to pass the SDK path to a command within a function, you
  5162. can use ``${SDK_DIR}``, which points to the parent directory used by
  5163. the OpenEmbedded build system when creating SDK output. See the
  5164. :term:`SDK_DIR` variable for more information.
  5165. :term:`PR`
  5166. The revision of the recipe. The default value for this variable is
  5167. "r0". Subsequent revisions of the recipe conventionally have the
  5168. values "r1", "r2", and so forth. When :term:`PV` increases,
  5169. :term:`PR` is conventionally reset to "r0".
  5170. .. note::
  5171. The OpenEmbedded build system does not need the aid of :term:`PR`
  5172. to know when to rebuild a recipe. The build system uses the task
  5173. :ref:`input checksums <overview-manual/concepts:checksums (signatures)>` along with the
  5174. :ref:`stamp <structure-build-tmp-stamps>` and
  5175. :ref:`overview-manual/concepts:shared state cache`
  5176. mechanisms.
  5177. The :term:`PR` variable primarily becomes significant when a package
  5178. manager dynamically installs packages on an already built image. In
  5179. this case, :term:`PR`, which is the default value of
  5180. :term:`PKGR`, helps the package manager distinguish which
  5181. package is the most recent one in cases where many packages have the
  5182. same :term:`PV` (i.e. :term:`PKGV`). A component having many packages with
  5183. the same :term:`PV` usually means that the packages all install the same
  5184. upstream version, but with later (:term:`PR`) version packages including
  5185. packaging fixes.
  5186. .. note::
  5187. :term:`PR` does not need to be increased for changes that do not change the
  5188. package contents or metadata.
  5189. Because manually managing :term:`PR` can be cumbersome and error-prone,
  5190. an automated solution exists. See the
  5191. ":ref:`dev-manual/packages:working with a pr service`" section
  5192. in the Yocto Project Development Tasks Manual for more information.
  5193. :term:`PREFERRED_PROVIDER`
  5194. If multiple recipes provide the same item, this variable determines
  5195. which recipe is preferred and thus provides the item (i.e. the
  5196. preferred provider). You should always suffix this variable with the
  5197. name of the provided item. And, you should define the variable using
  5198. the preferred recipe's name (:term:`PN`). Here is a common
  5199. example::
  5200. PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
  5201. In the previous example, multiple recipes are providing "virtual/kernel".
  5202. The :term:`PREFERRED_PROVIDER` variable is set with the name (:term:`PN`) of
  5203. the recipe you prefer to provide "virtual/kernel".
  5204. Here are more examples::
  5205. PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86"
  5206. PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
  5207. For more
  5208. information, see the ":ref:`dev-manual/new-recipe:using virtual providers`"
  5209. section in the Yocto Project Development Tasks Manual.
  5210. .. note::
  5211. If you use a ``virtual/\*`` item with :term:`PREFERRED_PROVIDER`, then any
  5212. recipe that :term:`PROVIDES` that item but is not selected (defined)
  5213. by :term:`PREFERRED_PROVIDER` is prevented from building, which is usually
  5214. desirable since this mechanism is designed to select between mutually
  5215. exclusive alternative providers.
  5216. :term:`PREFERRED_PROVIDERS`
  5217. See :term:`bitbake:PREFERRED_PROVIDERS` in the BitBake manual.
  5218. :term:`PREFERRED_RPROVIDER`
  5219. The :term:`PREFERRED_RPROVIDER` variable works like the
  5220. :term:`PREFERRED_PROVIDER` variable, but it denotes packages that provide a
  5221. *runtime* component. Runtime providers are declared in recipes that set
  5222. the :term:`RPROVIDES` variable for a specific package.
  5223. For example::
  5224. PREFERRED_RPROVIDER_virtual-x-terminal-emulator = "rxvt-unicode"
  5225. This statement sets the runtime provider for the X terminal emulator to
  5226. ``rxvt-unicode``. The ``rxvt-unicode`` package is a runtime provider of
  5227. this component because the ``rxvt-unicode`` recipe set the following
  5228. :term:`RPROVIDES` definition for the ``rxvt-unicode`` (``${PN}``)
  5229. package::
  5230. RPROVIDES:${PN} = "virtual-x-terminal-emulator"
  5231. For more information on virtual providers, see the
  5232. ":ref:`dev-manual/new-recipe:using virtual providers`" section in the
  5233. Yocto Project Development Tasks Manual.
  5234. :term:`PREFERRED_VERSION`
  5235. If there are multiple versions of a recipe available, this variable
  5236. determines which version should be given preference. You must always
  5237. suffix the variable with the :term:`PN` you want to select (`python` in
  5238. the first example below), and you should specify the :term:`PV`
  5239. accordingly (`3.4.0` in the example).
  5240. The :term:`PREFERRED_VERSION` variable supports limited wildcard use
  5241. through the "``%``" character. You can use the character to match any
  5242. number of characters, which can be useful when specifying versions
  5243. that contain long revision numbers that potentially change. Here are
  5244. two examples::
  5245. PREFERRED_VERSION_python = "3.4.0"
  5246. PREFERRED_VERSION_linux-yocto = "5.0%"
  5247. .. note::
  5248. The use of the "%" character is limited in that it only works at the end of the
  5249. string. You cannot use the wildcard character in any other
  5250. location of the string.
  5251. The specified version is matched against :term:`PV`, which does not
  5252. necessarily match the version part of the recipe's filename.
  5253. If you want to select a recipe named ``foo_git.bb`` which has :term:`PV`
  5254. set to ``1.2.3+git``, you can do so by setting ```PREFERRED_VERSION_foo``
  5255. to ``1.2.3%`` (i.e. simply setting ``PREFERRED_VERSION_foo`` to ``git``
  5256. will not work as the name of the recipe isn't used, but rather its
  5257. :term:`PV` definition).
  5258. Sometimes the :term:`PREFERRED_VERSION` variable can be set by
  5259. configuration files in a way that is hard to change. You can use
  5260. :term:`OVERRIDES` to set a machine-specific
  5261. override. Here is an example::
  5262. PREFERRED_VERSION_linux-yocto:qemux86 = "5.0%"
  5263. Although not recommended, worst case, you can also use the
  5264. "forcevariable" override, which is the strongest override possible.
  5265. Here is an example::
  5266. PREFERRED_VERSION_linux-yocto:forcevariable = "5.0%"
  5267. .. note::
  5268. The ``:forcevariable`` override is not handled specially. This override
  5269. only works because the default value of :term:`OVERRIDES` includes "forcevariable".
  5270. If a recipe with the specified version is not available, a warning
  5271. message will be shown. See :term:`REQUIRED_VERSION` if you want this
  5272. to be an error instead.
  5273. :term:`PREMIRRORS`
  5274. Specifies additional paths from which the OpenEmbedded build system
  5275. gets source code. When the build system searches for source code, it
  5276. first tries the local download directory. If that location fails, the
  5277. build system tries locations defined by :term:`PREMIRRORS`, the upstream
  5278. source, and then locations specified by
  5279. :term:`MIRRORS` in that order.
  5280. The default value for :term:`PREMIRRORS` is defined in the
  5281. ``meta/classes-global/mirrors.bbclass`` file in the core metadata layer.
  5282. Typically, you could add a specific server for the build system to
  5283. attempt before any others by adding something like the following to
  5284. the ``local.conf`` configuration file in the
  5285. :term:`Build Directory`::
  5286. PREMIRRORS:prepend = "\
  5287. git://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5288. ftp://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5289. http://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5290. https://.*/.* &YOCTO_DL_URL;/mirror/sources/"
  5291. These changes cause the
  5292. build system to intercept Git, FTP, HTTP, and HTTPS requests and
  5293. direct them to the ``http://`` sources mirror. You can use
  5294. ``file://`` URLs to point to local directories or network shares as
  5295. well.
  5296. :term:`PRIORITY`
  5297. Indicates the importance of a package.
  5298. :term:`PRIORITY` is considered to be part of the distribution policy
  5299. because the importance of any given recipe depends on the purpose for
  5300. which the distribution is being produced. Thus, :term:`PRIORITY` is not
  5301. normally set within recipes.
  5302. You can set :term:`PRIORITY` to "required", "standard", "extra", and
  5303. "optional", which is the default.
  5304. :term:`PRIVATE_LIBS`
  5305. Specifies libraries installed within a recipe that should be ignored
  5306. by the OpenEmbedded build system's shared library resolver. This
  5307. variable is typically used when software being built by a recipe has
  5308. its own private versions of a library normally provided by another
  5309. recipe. In this case, you would not want the package containing the
  5310. private libraries to be set as a dependency on other unrelated
  5311. packages that should instead depend on the package providing the
  5312. standard version of the library.
  5313. Libraries specified in this variable should be specified by their
  5314. file name. For example, from the Firefox recipe in meta-browser::
  5315. PRIVATE_LIBS = "libmozjs.so \
  5316. libxpcom.so \
  5317. libnspr4.so \
  5318. libxul.so \
  5319. libmozalloc.so \
  5320. libplc4.so \
  5321. libplds4.so"
  5322. For more information, see the
  5323. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5324. section in the Yocto Project Overview and Concepts Manual.
  5325. :term:`PROVIDES`
  5326. A list of aliases by which a particular recipe can be known. By
  5327. default, a recipe's own :term:`PN` is implicitly already in its
  5328. :term:`PROVIDES` list and therefore does not need to mention that it
  5329. provides itself. If a recipe uses :term:`PROVIDES`, the additional
  5330. aliases are synonyms for the recipe and can be useful for satisfying
  5331. dependencies of other recipes during the build as specified by
  5332. :term:`DEPENDS`.
  5333. Consider the following example :term:`PROVIDES` statement from the recipe
  5334. file ``eudev_3.2.9.bb``::
  5335. PROVIDES += "udev"
  5336. The :term:`PROVIDES` statement
  5337. results in the "eudev" recipe also being available as simply "udev".
  5338. .. note::
  5339. A recipe's own recipe name (:term:`PN`) is always implicitly prepended
  5340. to :term:`PROVIDES`, so while using "+=" in the above example may not be
  5341. strictly necessary it is recommended to avoid confusion.
  5342. In addition to providing recipes under alternate names, the
  5343. :term:`PROVIDES` mechanism is also used to implement virtual targets. A
  5344. virtual target is a name that corresponds to some particular
  5345. functionality (e.g. a Linux kernel). Recipes that provide the
  5346. functionality in question list the virtual target in :term:`PROVIDES`.
  5347. Recipes that depend on the functionality in question can include the
  5348. virtual target in :term:`DEPENDS` to leave the choice of provider open.
  5349. Conventionally, virtual targets have names on the form
  5350. "virtual/function" (e.g. "virtual/kernel"). The slash is simply part
  5351. of the name and has no syntactical significance.
  5352. The :term:`PREFERRED_PROVIDER` variable is
  5353. used to select which particular recipe provides a virtual target.
  5354. .. note::
  5355. A corresponding mechanism for virtual runtime dependencies (packages)
  5356. exists. However, the mechanism does not depend on any special
  5357. functionality beyond ordinary variable assignments. For example,
  5358. :term:`VIRTUAL-RUNTIME_dev_manager <VIRTUAL-RUNTIME>` refers to the
  5359. package of the component that manages the ``/dev`` directory.
  5360. Setting the "preferred provider" for runtime dependencies is as
  5361. simple as using the following assignment in a configuration file::
  5362. VIRTUAL-RUNTIME_dev_manager = "udev"
  5363. :term:`PRSERV_HOST`
  5364. The network based :term:`PR` service host and port.
  5365. The ``conf/templates/default/local.conf.sample.extended`` configuration
  5366. file in the :term:`Source Directory` shows how the :term:`PRSERV_HOST`
  5367. variable is set::
  5368. PRSERV_HOST = "localhost:0"
  5369. You must
  5370. set the variable if you want to automatically start a local :ref:`PR
  5371. service <dev-manual/packages:working with a pr service>`. You can
  5372. set :term:`PRSERV_HOST` to other values to use a remote PR service.
  5373. :term:`PRSERV_UPSTREAM`
  5374. This variable can be used to specify an upstream PR server for the local
  5375. PR server to connect to, in the form of ``host:port``.
  5376. This makes it possible to implement local fixes to an upstream package.
  5377. :term:`PSEUDO_IGNORE_PATHS`
  5378. A comma-separated (without spaces) list of path prefixes that should be ignored
  5379. by pseudo when monitoring and recording file operations, in order to avoid
  5380. problems with files being written to outside of the pseudo context and
  5381. reduce pseudo's overhead. A path is ignored if it matches any prefix in the list
  5382. and can include partial directory (or file) names.
  5383. :term:`PTEST_ENABLED`
  5384. Specifies whether or not :ref:`Package
  5385. Test <test-manual/ptest:testing packages with ptest>` (ptest)
  5386. functionality is enabled when building a recipe. You should not set
  5387. this variable directly. Enabling and disabling building Package Tests
  5388. at build time should be done by adding "ptest" to (or removing it
  5389. from) :term:`DISTRO_FEATURES`.
  5390. :term:`PV`
  5391. The version of the recipe. The version is normally extracted from the
  5392. recipe filename. For example, if the recipe is named
  5393. ``expat_2.0.1.bb``, then the default value of :term:`PV` will be "2.0.1".
  5394. :term:`PV` is generally not overridden within a recipe unless it is
  5395. building an unstable (i.e. development) version from a source code
  5396. repository (e.g. Git or Subversion).
  5397. :term:`PV` is the default value of the :term:`PKGV` variable.
  5398. :term:`PYPI_PACKAGE`
  5399. When inheriting the :ref:`ref-classes-pypi` class, specifies the
  5400. `PyPI <https://pypi.org/>`__ package name to be built. The default value
  5401. is set based upon :term:`BPN` (stripping any "python-" or "python3-"
  5402. prefix off if present), however for some packages it will need to be set
  5403. explicitly if that will not match the package name (e.g. where the
  5404. package name has a prefix, underscores, uppercase letters etc.)
  5405. :term:`PYPI_PACKAGE_EXT`
  5406. When inheriting the :ref:`ref-classes-pypi` class, specifies the
  5407. file extension to use when fetching a package from `PyPI
  5408. <https://pypi.org/>`__. Default is ``tar.gz``.
  5409. :term:`PYPI_SRC_URI`
  5410. When inheriting the :ref:`ref-classes-pypi` class, specifies the
  5411. full `pythonhosted <https://files.pythonhosted.org/>`__ URI for
  5412. fetching the package to be built. The default value is constructed
  5413. based upon :term:`PYPI_PACKAGE`, :term:`PYPI_PACKAGE_EXT`, and
  5414. :term:`PV`. Most recipes will not need to set this variable unless
  5415. they are building an unstable (i.e. development) version.
  5416. :term:`PYTHON_ABI`
  5417. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  5418. class, denotes the Application Binary Interface (ABI) currently in use
  5419. for Python. By default, the ABI is "m". You do not have to set this
  5420. variable as the OpenEmbedded build system sets it for you.
  5421. The OpenEmbedded build system uses the ABI to construct directory
  5422. names used when installing the Python headers and libraries in
  5423. sysroot (e.g. ``.../python3.3m/...``).
  5424. :term:`QA_EMPTY_DIRS`
  5425. Specifies a list of directories that are expected to be empty when
  5426. packaging; if ``empty-dirs`` appears in :term:`ERROR_QA` or
  5427. :term:`WARN_QA` these will be checked and an error or warning
  5428. (respectively) will be produced.
  5429. The default :term:`QA_EMPTY_DIRS` value is set in
  5430. :ref:`insane.bbclass <ref-classes-insane>`.
  5431. :term:`QA_EMPTY_DIRS_RECOMMENDATION`
  5432. Specifies a recommendation for why a directory must be empty,
  5433. which will be included in the error message if a specific directory
  5434. is found to contain files. Must be overridden with the directory
  5435. path to match on.
  5436. If no recommendation is specified for a directory, then the default
  5437. "but it is expected to be empty" will be used.
  5438. An example message shows if files were present in '/dev'::
  5439. QA_EMPTY_DIRS_RECOMMENDATION:/dev = "but all devices must be created at runtime"
  5440. :term:`RANLIB`
  5441. The minimal command and arguments to run ``ranlib``.
  5442. :term:`RCONFLICTS`
  5443. The list of packages that conflict with packages. Note that packages
  5444. will not be installed if conflicting packages are not first removed.
  5445. Like all package-controlling variables, you must always use them in
  5446. conjunction with a package name override. Here is an example::
  5447. RCONFLICTS:${PN} = "another_conflicting_package_name"
  5448. BitBake, which the OpenEmbedded build system uses, supports
  5449. specifying versioned dependencies. Although the syntax varies
  5450. depending on the packaging format, BitBake hides these differences
  5451. from you. Here is the general syntax to specify versions with the
  5452. :term:`RCONFLICTS` variable::
  5453. RCONFLICTS:${PN} = "package (operator version)"
  5454. For ``operator``, you can specify the following:
  5455. - =
  5456. - <
  5457. - >
  5458. - <=
  5459. - >=
  5460. For example, the following sets up a dependency on version 1.2 or
  5461. greater of the package ``foo``::
  5462. RCONFLICTS:${PN} = "foo (>= 1.2)"
  5463. :term:`RDEPENDS`
  5464. Lists runtime dependencies of a package. These dependencies are other
  5465. packages that must be installed in order for the package to function
  5466. correctly. As an example, the following assignment declares that the
  5467. package ``foo`` needs the packages ``bar`` and ``baz`` to be
  5468. installed::
  5469. RDEPENDS:foo = "bar baz"
  5470. The most common types of package
  5471. runtime dependencies are automatically detected and added. Therefore,
  5472. most recipes do not need to set :term:`RDEPENDS`. For more information,
  5473. see the
  5474. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5475. section in the Yocto Project Overview and Concepts Manual.
  5476. The practical effect of the above :term:`RDEPENDS` assignment is that
  5477. ``bar`` and ``baz`` will be declared as dependencies inside the
  5478. package ``foo`` when it is written out by one of the
  5479. :ref:`do_package_write_* <ref-tasks-package_write_deb>` tasks.
  5480. Exactly how this is done depends on which package format is used,
  5481. which is determined by
  5482. :term:`PACKAGE_CLASSES`. When the
  5483. corresponding package manager installs the package, it will know to
  5484. also install the packages on which it depends.
  5485. To ensure that the packages ``bar`` and ``baz`` get built, the
  5486. previous :term:`RDEPENDS` assignment also causes a task dependency to be
  5487. added. This dependency is from the recipe's
  5488. :ref:`ref-tasks-build` (not to be confused with
  5489. :ref:`ref-tasks-compile`) task to the
  5490. :ref:`do_package_write_* <ref-tasks-package_write_deb>` task of the recipes that build ``bar`` and
  5491. ``baz``.
  5492. The names of the packages you list within :term:`RDEPENDS` must be the
  5493. names of other packages --- they cannot be recipe names. Although
  5494. package names and recipe names usually match, the important point
  5495. here is that you are providing package names within the :term:`RDEPENDS`
  5496. variable. For an example of the default list of packages created from
  5497. a recipe, see the :term:`PACKAGES` variable.
  5498. Because the :term:`RDEPENDS` variable applies to packages being built,
  5499. you should always use the variable in a form with an attached package
  5500. name (remember that a single recipe can build multiple packages). For
  5501. example, suppose you are building a development package that depends
  5502. on the ``perl`` package. In this case, you would use the following
  5503. :term:`RDEPENDS` statement::
  5504. RDEPENDS:${PN}-dev += "perl"
  5505. In the example,
  5506. the development package depends on the ``perl`` package. Thus, the
  5507. :term:`RDEPENDS` variable has the ``${PN}-dev`` package name as part of
  5508. the variable.
  5509. .. note::
  5510. ``RDEPENDS:${PN}-dev`` includes ``${``\ :term:`PN`\ ``}``
  5511. by default. This default is set in the BitBake configuration file
  5512. (``meta/conf/bitbake.conf``). Be careful not to accidentally remove
  5513. ``${PN}`` when modifying ``RDEPENDS:${PN}-dev``. Use the "+=" operator
  5514. rather than the "=" operator.
  5515. The package names you use with :term:`RDEPENDS` must appear as they would
  5516. in the :term:`PACKAGES` variable. The :term:`PKG` variable
  5517. allows a different name to be used for the final package (e.g. the
  5518. :ref:`ref-classes-debian` class uses this to rename
  5519. packages), but this final package name cannot be used with
  5520. :term:`RDEPENDS`, which makes sense as :term:`RDEPENDS` is meant to be
  5521. independent of the package format used.
  5522. BitBake, which the OpenEmbedded build system uses, supports
  5523. specifying versioned dependencies. Although the syntax varies
  5524. depending on the packaging format, BitBake hides these differences
  5525. from you. Here is the general syntax to specify versions with the
  5526. :term:`RDEPENDS` variable::
  5527. RDEPENDS:${PN} = "package (operator version)"
  5528. For ``operator``, you can specify the following:
  5529. - =
  5530. - <
  5531. - >
  5532. - <=
  5533. - >=
  5534. For version, provide the version number.
  5535. .. note::
  5536. You can use :term:`EXTENDPKGV` to provide a full package version
  5537. specification.
  5538. For example, the following sets up a dependency on version 1.2 or
  5539. greater of the package ``foo``::
  5540. RDEPENDS:${PN} = "foo (>= 1.2)"
  5541. For information on build-time dependencies, see the :term:`DEPENDS`
  5542. variable. You can also see the
  5543. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:tasks`" and
  5544. ":ref:`bitbake-user-manual/bitbake-user-manual-execution:dependencies`" sections in the
  5545. BitBake User Manual for additional information on tasks and dependencies.
  5546. :term:`RECIPE_MAINTAINER`
  5547. This variable defines the name and e-mail address of the maintainer of a
  5548. recipe. Such information can be used by human users submitted changes,
  5549. and by automated tools to send notifications, for example about
  5550. vulnerabilities or source updates.
  5551. The variable can be defined in a global distribution :oe_git:`maintainers.inc
  5552. </openembedded-core/tree/meta/conf/distro/include/maintainers.inc>` file::
  5553. meta/conf/distro/include/maintainers.inc:RECIPE_MAINTAINER:pn-sysvinit = "Ross Burton <ross.burton@arm.com>"
  5554. It can also be directly defined in a recipe,
  5555. for example in the ``libgpiod`` one::
  5556. RECIPE_MAINTAINER = "Bartosz Golaszewski <brgl@bgdev.pl>"
  5557. :term:`RECIPE_NO_UPDATE_REASON`
  5558. If a recipe should not be replaced by a more recent upstream version,
  5559. putting the reason why in this variable in a recipe allows
  5560. ``devtool check-upgrade-status`` command to display it, as explained
  5561. in the ":ref:`ref-manual/devtool-reference:checking on the upgrade status of a recipe`"
  5562. section.
  5563. :term:`RECIPE_SYSROOT`
  5564. This variable points to the directory that holds all files populated from
  5565. recipes specified in :term:`DEPENDS`. As the name indicates,
  5566. think of this variable as a custom root (``/``) for the recipe that will be
  5567. used by the compiler in order to find headers and other files needed to complete
  5568. its job.
  5569. This variable is related to :term:`STAGING_DIR_HOST` or :term:`STAGING_DIR_TARGET`
  5570. according to the type of the recipe and the build target.
  5571. To better understand this variable, consider the following examples:
  5572. - For ``#include <header.h>``, ``header.h`` should be in ``"${RECIPE_SYSROOT}/usr/include"``
  5573. - For ``-lexample``, ``libexample.so`` should be in ``"${RECIPE_SYSROOT}/lib"``
  5574. or other library sysroot directories.
  5575. The default value is ``"${WORKDIR}/recipe-sysroot"``.
  5576. Do not modify it.
  5577. :term:`RECIPE_SYSROOT_NATIVE`
  5578. This is similar to :term:`RECIPE_SYSROOT` but the populated files are from
  5579. ``-native`` recipes. This allows a recipe built for the target machine to
  5580. use ``native`` tools.
  5581. This variable is related to :term:`STAGING_DIR_NATIVE`.
  5582. The default value is ``"${WORKDIR}/recipe-sysroot-native"``.
  5583. Do not modify it.
  5584. :term:`RECIPE_UPGRADE_EXTRA_TASKS`
  5585. When upgrading a recipe with ``devtool upgrade``, the variable
  5586. :term:`RECIPE_UPGRADE_EXTRA_TASKS` specifies a space-delimited list of
  5587. tasks to run after the new sources have been unpacked.
  5588. For some recipes, after the new source has been unpacked, additional tasks
  5589. may need to be run during an upgrade. A good example of this is recipes
  5590. which inherit :ref:`ref-classes-cargo-update-recipe-crates`, where the
  5591. `do_update_crates` task needs to be run whenever Cargo.toml/Cargo.lock have
  5592. changed in the source.
  5593. :term:`REPODIR`
  5594. See :term:`bitbake:REPODIR` in the BitBake manual.
  5595. :term:`REQUIRED_DISTRO_FEATURES`
  5596. When inheriting the :ref:`ref-classes-features_check`
  5597. class, this variable identifies distribution features that must exist
  5598. in the current configuration in order for the OpenEmbedded build
  5599. system to build the recipe. In other words, if the
  5600. :term:`REQUIRED_DISTRO_FEATURES` variable lists a feature that does not
  5601. appear in :term:`DISTRO_FEATURES` within the current configuration, then
  5602. the recipe will be skipped, and if the build system attempts to build
  5603. the recipe then an error will be triggered.
  5604. :term:`REQUIRED_VERSION`
  5605. If there are multiple versions of a recipe available, this variable
  5606. determines which version should be given preference.
  5607. :term:`REQUIRED_VERSION` works in exactly the same manner as
  5608. :term:`PREFERRED_VERSION`, except that if the specified version is not
  5609. available then an error message is shown and the build fails
  5610. immediately.
  5611. If both :term:`REQUIRED_VERSION` and :term:`PREFERRED_VERSION` are set
  5612. for the same recipe, the :term:`REQUIRED_VERSION` value applies.
  5613. :term:`RETAIN_DIRS_ALWAYS`
  5614. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  5615. space-separated recipe-specific directories to always save in a tarball
  5616. whether the recipe build has failed or not.
  5617. :term:`RETAIN_DIRS_FAILURE`
  5618. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  5619. space-separated recipe-specific directories to save in a tarball on
  5620. failure of the recipe's build.
  5621. :term:`RETAIN_DIRS_GLOBAL_ALWAYS`
  5622. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  5623. space-separated directories that are not specific to a recipe to save in a
  5624. tarball whether the build has failed or not.
  5625. :term:`RETAIN_DIRS_GLOBAL_FAILURE`
  5626. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  5627. space-separated directories that are not specific to a recipe to save in a
  5628. tarball on build failure.
  5629. :term:`RETAIN_ENABLED`
  5630. Disables the creation of a tarball of the work directory done by the
  5631. :ref:`ref-classes-retain` class. Can be set to specific recipes to disable
  5632. the class when the class was inherited globally with :term:`INHERIT`.
  5633. :term:`RETAIN_OUTDIR`
  5634. When inheriting the :ref:`ref-classes-retain` class, this variable
  5635. specifies the directory where to save the tarball of the work directory.
  5636. The default directory is ``${TMPDIR}/retain``.
  5637. :term:`RETAIN_TARBALL_SUFFIX`
  5638. When inheriting the :ref:`ref-classes-retain` class, this variable
  5639. specifies the suffix of the tarball of the work directory. The default
  5640. suffix is ``${DATETIME}.tar.gz``.
  5641. :term:`RM_WORK_EXCLUDE`
  5642. With :ref:`ref-classes-rm-work` enabled, this variable
  5643. specifies a list of recipes whose work directories should not be removed.
  5644. See the ":ref:`ref-classes-rm-work`" section for more details.
  5645. :term:`ROOT_HOME`
  5646. Defines the root home directory. By default, this directory is set as
  5647. follows in the BitBake configuration file::
  5648. ROOT_HOME ??= "/home/root"
  5649. .. note::
  5650. This default value is likely used because some embedded solutions
  5651. prefer to have a read-only root filesystem and prefer to keep
  5652. writeable data in one place.
  5653. You can override the default by setting the variable in any layer or
  5654. in the ``local.conf`` file. Because the default is set using a "weak"
  5655. assignment (i.e. "??="), you can use either of the following forms to
  5656. define your override::
  5657. ROOT_HOME = "/root"
  5658. ROOT_HOME ?= "/root"
  5659. These
  5660. override examples use ``/root``, which is probably the most commonly
  5661. used override.
  5662. :term:`ROOTFS`
  5663. Indicates a filesystem image to include as the root filesystem.
  5664. The :term:`ROOTFS` variable is an optional variable used with the
  5665. :ref:`ref-classes-image-live` class.
  5666. :term:`ROOTFS_POSTINSTALL_COMMAND`
  5667. Specifies a list of functions to call after the OpenEmbedded build
  5668. system has installed packages. You can specify functions separated by
  5669. spaces::
  5670. ROOTFS_POSTINSTALL_COMMAND += "function"
  5671. If you need to pass the root filesystem path to a command within a
  5672. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5673. directory that becomes the root filesystem image. See the
  5674. :term:`IMAGE_ROOTFS` variable for more
  5675. information.
  5676. :term:`ROOTFS_POSTPROCESS_COMMAND`
  5677. Specifies a list of functions to call once the OpenEmbedded build
  5678. system has created the root filesystem. You can specify functions
  5679. separated by spaces::
  5680. ROOTFS_POSTPROCESS_COMMAND += "function"
  5681. If you need to pass the root filesystem path to a command within a
  5682. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5683. directory that becomes the root filesystem image. See the
  5684. :term:`IMAGE_ROOTFS` variable for more
  5685. information.
  5686. :term:`ROOTFS_POSTUNINSTALL_COMMAND`
  5687. Specifies a list of functions to call after the OpenEmbedded build
  5688. system has removed unnecessary packages. When runtime package
  5689. management is disabled in the image, several packages are removed
  5690. including ``base-passwd``, ``shadow``, and ``update-alternatives``.
  5691. You can specify functions separated by spaces::
  5692. ROOTFS_POSTUNINSTALL_COMMAND += "function"
  5693. If you need to pass the root filesystem path to a command within a
  5694. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5695. directory that becomes the root filesystem image. See the
  5696. :term:`IMAGE_ROOTFS` variable for more
  5697. information.
  5698. :term:`ROOTFS_PREPROCESS_COMMAND`
  5699. Specifies a list of functions to call before the OpenEmbedded build
  5700. system has created the root filesystem. You can specify functions
  5701. separated by spaces::
  5702. ROOTFS_PREPROCESS_COMMAND += "function"
  5703. If you need to pass the root filesystem path to a command within a
  5704. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5705. directory that becomes the root filesystem image. See the
  5706. :term:`IMAGE_ROOTFS` variable for more
  5707. information.
  5708. :term:`RPMBUILD_EXTRA_PARAMS`
  5709. Specifies extra user-defined parameters for the ``rpmbuild`` command.
  5710. :term:`RPROVIDES`
  5711. A list of package name aliases that a package also provides. These
  5712. aliases are useful for satisfying runtime dependencies of other
  5713. packages both during the build and on the target (as specified by
  5714. :term:`RDEPENDS`).
  5715. .. note::
  5716. A package's own name is implicitly already in its :term:`RPROVIDES` list.
  5717. As with all package-controlling variables, you must always use the
  5718. variable in conjunction with a package name override. Here is an
  5719. example::
  5720. RPROVIDES:${PN} = "widget-abi-2"
  5721. :term:`RRECOMMENDS`
  5722. A list of packages that extends the usability of a package being
  5723. built. The package being built does not depend on this list of
  5724. packages in order to successfully build, but rather uses them for
  5725. extended usability. To specify runtime dependencies for packages, see
  5726. the :term:`RDEPENDS` variable.
  5727. The package manager will automatically install the :term:`RRECOMMENDS`
  5728. list of packages when installing the built package. However, you can
  5729. prevent listed packages from being installed by using the
  5730. :term:`BAD_RECOMMENDATIONS`,
  5731. :term:`NO_RECOMMENDATIONS`, and
  5732. :term:`PACKAGE_EXCLUDE` variables.
  5733. Packages specified in :term:`RRECOMMENDS` need not actually be produced.
  5734. However, there must be a recipe providing each package, either
  5735. through the :term:`PACKAGES` or
  5736. :term:`PACKAGES_DYNAMIC` variables or the
  5737. :term:`RPROVIDES` variable, or an error will occur
  5738. during the build. If such a recipe does exist and the package is not
  5739. produced, the build continues without error.
  5740. Because the :term:`RRECOMMENDS` variable applies to packages being built,
  5741. you should always attach an override to the variable to specify the
  5742. particular package whose usability is being extended. For example,
  5743. suppose you are building a development package that is extended to
  5744. support wireless functionality. In this case, you would use the
  5745. following::
  5746. RRECOMMENDS:${PN}-dev += "wireless_package_name"
  5747. In the
  5748. example, the package name (``${PN}-dev``) must appear as it would in
  5749. the :term:`PACKAGES` namespace before any renaming of the output package
  5750. by classes such as :ref:`ref-classes-debian`.
  5751. BitBake, which the OpenEmbedded build system uses, supports
  5752. specifying versioned recommends. Although the syntax varies depending
  5753. on the packaging format, BitBake hides these differences from you.
  5754. Here is the general syntax to specify versions with the
  5755. :term:`RRECOMMENDS` variable::
  5756. RRECOMMENDS:${PN} = "package (operator version)"
  5757. For ``operator``, you can specify the following:
  5758. - =
  5759. - <
  5760. - >
  5761. - <=
  5762. - >=
  5763. For example, the following sets up a recommend on version 1.2 or
  5764. greater of the package ``foo``::
  5765. RRECOMMENDS:${PN} = "foo (>= 1.2)"
  5766. :term:`RREPLACES`
  5767. A list of packages replaced by a package. The package manager uses
  5768. this variable to determine which package should be installed to
  5769. replace other package(s) during an upgrade. In order to also have the
  5770. other package(s) removed at the same time, you must add the name of
  5771. the other package to the :term:`RCONFLICTS` variable.
  5772. As with all package-controlling variables, you must use this variable
  5773. in conjunction with a package name override. Here is an example::
  5774. RREPLACES:${PN} = "other_package_being_replaced"
  5775. BitBake, which the OpenEmbedded build system uses, supports
  5776. specifying versioned replacements. Although the syntax varies
  5777. depending on the packaging format, BitBake hides these differences
  5778. from you. Here is the general syntax to specify versions with the
  5779. :term:`RREPLACES` variable::
  5780. RREPLACES:${PN} = "package (operator version)"
  5781. For ``operator``, you can specify the following:
  5782. - =
  5783. - <
  5784. - >
  5785. - <=
  5786. - >=
  5787. For example, the following sets up a replacement using version 1.2
  5788. or greater of the package ``foo``::
  5789. RREPLACES:${PN} = "foo (>= 1.2)"
  5790. :term:`RSUGGESTS`
  5791. A list of additional packages that you can suggest for installation
  5792. by the package manager at the time a package is installed. Not all
  5793. package managers support this functionality.
  5794. As with all package-controlling variables, you must always use this
  5795. variable in conjunction with a package name override. Here is an
  5796. example::
  5797. RSUGGESTS:${PN} = "useful_package another_package"
  5798. :term:`RUST_CHANNEL`
  5799. Specifies which version of Rust to build - "stable", "beta" or "nightly".
  5800. The default value is "stable". Set this at your own risk, as values other
  5801. than "stable" are not guaranteed to work at a given time.
  5802. :term:`S`
  5803. The location in the :term:`Build Directory` where
  5804. unpacked recipe source code resides. By default, this directory is
  5805. ``${``\ :term:`WORKDIR`\ ``}/${``\ :term:`BPN`\ ``}-${``\ :term:`PV`\ ``}``,
  5806. where ``${BPN}`` is the base recipe name and ``${PV}`` is the recipe
  5807. version. If the source tarball extracts the code to a directory named
  5808. anything other than ``${BPN}-${PV}``, or if the source code is
  5809. fetched from an SCM such as Git or Subversion, then you must set
  5810. :term:`S` in the recipe so that the OpenEmbedded build system knows where
  5811. to find the unpacked source.
  5812. As an example, assume a :term:`Source Directory`
  5813. top-level folder named ``poky`` and a default :term:`Build Directory` at
  5814. ``poky/build``. In this case, the work directory the build system
  5815. uses to keep the unpacked recipe for ``db`` is the following::
  5816. poky/build/tmp/work/qemux86-poky-linux/db/5.1.19-r3/db-5.1.19
  5817. The unpacked source code resides in the ``db-5.1.19`` folder.
  5818. This next example assumes a Git repository. By default, Git
  5819. repositories are cloned to ``${WORKDIR}/git`` during
  5820. :ref:`ref-tasks-fetch`. Since this path is different
  5821. from the default value of :term:`S`, you must set it specifically so the
  5822. source can be located::
  5823. SRC_URI = "git://path/to/repo.git;branch=main"
  5824. S = "${WORKDIR}/git"
  5825. :term:`SANITY_REQUIRED_UTILITIES`
  5826. Specifies a list of command-line utilities that should be checked for
  5827. during the initial sanity checking process when running BitBake. If
  5828. any of the utilities are not installed on the build host, then
  5829. BitBake immediately exits with an error.
  5830. :term:`SANITY_TESTED_DISTROS`
  5831. A list of the host distribution identifiers that the build system has
  5832. been tested against. Identifiers consist of the host distributor ID
  5833. followed by the release, as reported by the ``lsb_release`` tool or
  5834. as read from ``/etc/lsb-release``. Separate the list items with
  5835. explicit newline characters (``\n``). If :term:`SANITY_TESTED_DISTROS` is
  5836. not empty and the current value of
  5837. :term:`NATIVELSBSTRING` does not appear in the
  5838. list, then the build system reports a warning that indicates the
  5839. current host distribution has not been tested as a build host.
  5840. :term:`SDK_ARCH`
  5841. The target architecture for the SDK. Typically, you do not directly
  5842. set this variable. Instead, use :term:`SDKMACHINE`.
  5843. :term:`SDK_ARCHIVE_TYPE`
  5844. Specifies the type of archive to create for the SDK. Valid values:
  5845. - ``tar.xz`` (default)
  5846. - ``tar.zst``
  5847. - ``7zip``
  5848. - ``zip``
  5849. Only one archive type can be specified.
  5850. :term:`SDK_BUILDINFO_FILE`
  5851. When using the :ref:`ref-classes-image-buildinfo` class,
  5852. specifies the file in the SDK to write the build information into. The
  5853. default value is "``/buildinfo``".
  5854. :term:`SDK_CUSTOM_TEMPLATECONF`
  5855. When building the extensible SDK, if :term:`SDK_CUSTOM_TEMPLATECONF` is set to
  5856. "1" and a ``conf/templateconf.cfg`` file exists in the :term:`Build Directory`
  5857. (:term:`TOPDIR`) then this will be copied into the SDK.
  5858. :term:`SDK_DEPLOY`
  5859. The directory set up and used by the
  5860. :ref:`populate_sdk_base <ref-classes-populate-sdk>` class to which the
  5861. SDK is deployed. The :ref:`populate_sdk_base <ref-classes-populate-sdk>`
  5862. class defines :term:`SDK_DEPLOY` as follows::
  5863. SDK_DEPLOY = "${TMPDIR}/deploy/sdk"
  5864. :term:`SDK_DIR`
  5865. The parent directory used by the OpenEmbedded build system when
  5866. creating SDK output. The
  5867. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class defines
  5868. the variable as follows::
  5869. SDK_DIR = "${WORKDIR}/sdk"
  5870. .. note::
  5871. The :term:`SDK_DIR` directory is a temporary directory as it is part of
  5872. :term:`WORKDIR`. The final output directory is :term:`SDK_DEPLOY`.
  5873. :term:`SDK_EXT_TYPE`
  5874. Controls whether or not shared state artifacts are copied into the
  5875. extensible SDK. The default value of "full" copies all of the
  5876. required shared state artifacts into the extensible SDK. The value
  5877. "minimal" leaves these artifacts out of the SDK.
  5878. .. note::
  5879. If you set the variable to "minimal", you need to ensure
  5880. :term:`SSTATE_MIRRORS` is set in the SDK's configuration to enable the
  5881. artifacts to be fetched as needed.
  5882. :term:`SDK_HOST_MANIFEST`
  5883. The manifest file for the host part of the SDK. This file lists all
  5884. the installed packages that make up the host part of the SDK. The
  5885. file contains package information on a line-per-package basis as
  5886. follows::
  5887. packagename packagearch version
  5888. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  5889. defines the manifest file as follows::
  5890. SDK_HOST_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.host.manifest"
  5891. The location is derived using the :term:`SDK_DEPLOY` and
  5892. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  5893. :term:`SDK_INCLUDE_PKGDATA`
  5894. When set to "1", specifies to include the packagedata for all recipes
  5895. in the "world" target in the extensible SDK. Including this data
  5896. allows the ``devtool search`` command to find these recipes in search
  5897. results, as well as allows the ``devtool add`` command to map
  5898. dependencies more effectively.
  5899. .. note::
  5900. Enabling the :term:`SDK_INCLUDE_PKGDATA`
  5901. variable significantly increases build time because all of world
  5902. needs to be built. Enabling the variable also slightly increases
  5903. the size of the extensible SDK.
  5904. :term:`SDK_INCLUDE_TOOLCHAIN`
  5905. When set to "1", specifies to include the toolchain in the extensible
  5906. SDK. Including the toolchain is useful particularly when
  5907. :term:`SDK_EXT_TYPE` is set to "minimal" to keep
  5908. the SDK reasonably small but you still want to provide a usable
  5909. toolchain. For example, suppose you want to use the toolchain from an
  5910. IDE or from other tools and you do not want to perform additional
  5911. steps to install the toolchain.
  5912. The :term:`SDK_INCLUDE_TOOLCHAIN` variable defaults to "0" if
  5913. :term:`SDK_EXT_TYPE` is set to "minimal", and defaults to "1" if
  5914. :term:`SDK_EXT_TYPE` is set to "full".
  5915. :term:`SDK_NAME`
  5916. The base name for SDK output files. The default value (as set in
  5917. ``meta-poky/conf/distro/poky.conf``) is derived from the
  5918. :term:`DISTRO`,
  5919. :term:`TCLIBC`,
  5920. :term:`SDKMACHINE`,
  5921. :term:`IMAGE_BASENAME`,
  5922. :term:`TUNE_PKGARCH`, and
  5923. :term:`MACHINE` variables::
  5924. SDK_NAME = "${DISTRO}-${TCLIBC}-${SDKMACHINE}-${IMAGE_BASENAME}-${TUNE_PKGARCH}-${MACHINE}"
  5925. :term:`SDK_OS`
  5926. Specifies the operating system for which the SDK will be built. The
  5927. default value is the value of :term:`BUILD_OS`.
  5928. :term:`SDK_OUTPUT`
  5929. The location used by the OpenEmbedded build system when creating SDK
  5930. output. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>`
  5931. class defines the variable as follows::
  5932. SDK_DIR = "${WORKDIR}/sdk"
  5933. SDK_OUTPUT = "${SDK_DIR}/image"
  5934. SDK_DEPLOY = "${DEPLOY_DIR}/sdk"
  5935. .. note::
  5936. The :term:`SDK_OUTPUT` directory is a temporary directory as it is part of
  5937. :term:`WORKDIR` by way of :term:`SDK_DIR`. The final output directory is
  5938. :term:`SDK_DEPLOY`.
  5939. :term:`SDK_PACKAGE_ARCHS`
  5940. Specifies a list of architectures compatible with the SDK machine.
  5941. This variable is set automatically and should not normally be
  5942. hand-edited. Entries are separated using spaces and listed in order
  5943. of priority. The default value for :term:`SDK_PACKAGE_ARCHS` is "all any
  5944. noarch ${SDK_ARCH}-${SDKPKGSUFFIX}".
  5945. :term:`SDK_POSTPROCESS_COMMAND`
  5946. Specifies a list of functions to call once the OpenEmbedded build
  5947. system creates the SDK. You can specify functions separated by
  5948. spaces:
  5949. SDK_POSTPROCESS_COMMAND += "function"
  5950. If you need to pass an SDK path to a command within a function, you
  5951. can use ``${SDK_DIR}``, which points to the parent directory used by
  5952. the OpenEmbedded build system when creating SDK output. See the
  5953. :term:`SDK_DIR` variable for more information.
  5954. :term:`SDK_PREFIX`
  5955. The toolchain binary prefix used for
  5956. :ref:`ref-classes-nativesdk` recipes. The
  5957. OpenEmbedded build system uses the :term:`SDK_PREFIX` value to set the
  5958. :term:`TARGET_PREFIX` when building
  5959. ``nativesdk`` recipes. The default value is "${SDK_SYS}-".
  5960. :term:`SDK_RECRDEP_TASKS`
  5961. A list of shared state tasks added to the extensible SDK. By default,
  5962. the following tasks are added:
  5963. - :ref:`ref-tasks-populate_lic`
  5964. - :ref:`ref-tasks-package_qa`
  5965. - :ref:`ref-tasks-populate_sysroot`
  5966. - :ref:`ref-tasks-deploy`
  5967. Despite the default value of "" for the
  5968. :term:`SDK_RECRDEP_TASKS` variable, the above four tasks are always added
  5969. to the SDK. To specify tasks beyond these four, you need to use the
  5970. :term:`SDK_RECRDEP_TASKS` variable (e.g. you are defining additional
  5971. tasks that are needed in order to build
  5972. :term:`SDK_TARGETS`).
  5973. :term:`SDK_SYS`
  5974. Specifies the system, including the architecture and the operating
  5975. system, for which the SDK will be built.
  5976. The OpenEmbedded build system automatically sets this variable based
  5977. on :term:`SDK_ARCH`,
  5978. :term:`SDK_VENDOR`, and
  5979. :term:`SDK_OS`. You do not need to set the :term:`SDK_SYS`
  5980. variable yourself.
  5981. :term:`SDK_TARGET_MANIFEST`
  5982. The manifest file for the target part of the SDK. This file lists all
  5983. the installed packages that make up the target part of the SDK. The
  5984. file contains package information on a line-per-package basis as
  5985. follows::
  5986. packagename packagearch version
  5987. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  5988. defines the manifest file as follows::
  5989. SDK_TARGET_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.target.manifest"
  5990. The location is derived using the :term:`SDK_DEPLOY` and
  5991. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  5992. :term:`SDK_TARGETS`
  5993. A list of targets to install from shared state as part of the
  5994. standard or extensible SDK installation. The default value is "${PN}"
  5995. (i.e. the image from which the SDK is built).
  5996. The :term:`SDK_TARGETS` variable is an internal variable and typically
  5997. would not be changed.
  5998. :term:`SDK_TITLE`
  5999. The title to be printed when running the SDK installer. By default,
  6000. this title is based on the :term:`DISTRO_NAME` or
  6001. :term:`DISTRO` variable and is set in the
  6002. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  6003. follows::
  6004. SDK_TITLE ??= "${@d.getVar('DISTRO_NAME') or d.getVar('DISTRO')} SDK"
  6005. For the default distribution "poky",
  6006. :term:`SDK_TITLE` is set to "Poky (Yocto Project Reference Distro)".
  6007. For information on how to change this default title, see the
  6008. ":ref:`sdk-manual/appendix-customizing:changing the extensible sdk installer title`"
  6009. section in the Yocto Project Application Development and the
  6010. Extensible Software Development Kit (eSDK) manual.
  6011. :term:`SDK_TOOLCHAIN_LANGS`
  6012. Specifies programming languages to support in the SDK, as a
  6013. space-separated list. Currently supported items are ``rust`` and ``go``.
  6014. :term:`SDK_UPDATE_URL`
  6015. An optional URL for an update server for the extensible SDK. If set,
  6016. the value is used as the default update server when running
  6017. ``devtool sdk-update`` within the extensible SDK.
  6018. :term:`SDK_VENDOR`
  6019. Specifies the name of the SDK vendor.
  6020. :term:`SDK_VERSION`
  6021. Specifies the version of the SDK. The Poky distribution configuration file
  6022. (``/meta-poky/conf/distro/poky.conf``) sets the default
  6023. :term:`SDK_VERSION` as follows::
  6024. SDK_VERSION = "${@d.getVar('DISTRO_VERSION').replace('snapshot-${METADATA_REVISION}', 'snapshot')}"
  6025. For additional information, see the
  6026. :term:`DISTRO_VERSION` and
  6027. :term:`METADATA_REVISION` variables.
  6028. :term:`SDK_ZIP_OPTIONS`
  6029. Specifies extra options to pass to the ``zip`` command when zipping the SDK
  6030. (i.e. when :term:`SDK_ARCHIVE_TYPE` is set to "zip"). The default value is
  6031. "-y".
  6032. :term:`SDKEXTPATH`
  6033. The default installation directory for the Extensible SDK. By
  6034. default, this directory is based on the :term:`DISTRO`
  6035. variable and is set in the
  6036. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  6037. follows::
  6038. SDKEXTPATH ??= "~/${@d.getVar('DISTRO')}_sdk"
  6039. For the
  6040. default distribution "poky", the :term:`SDKEXTPATH` is set to "poky_sdk".
  6041. For information on how to change this default directory, see the
  6042. ":ref:`sdk-manual/appendix-customizing:changing the default sdk installation directory`"
  6043. section in the Yocto Project Application Development and the
  6044. Extensible Software Development Kit (eSDK) manual.
  6045. :term:`SDKIMAGE_FEATURES`
  6046. Equivalent to :term:`IMAGE_FEATURES`. However, this variable applies to
  6047. the SDK generated from an image using the following command::
  6048. $ bitbake -c populate_sdk imagename
  6049. :term:`SDKMACHINE`
  6050. The machine for which the SDK is built. In other words, the SDK is built
  6051. such that it runs on the target you specify with the :term:`SDKMACHINE`
  6052. value. The value points to a corresponding ``.conf`` file under
  6053. ``conf/machine-sdk/`` in the enabled layers, for example ``aarch64``,
  6054. ``i586``, ``i686``, ``ppc64``, ``ppc64le``, and ``x86_64`` are
  6055. :oe_git:`available in OpenEmbedded-Core </openembedded-core/tree/meta/conf/machine-sdk>`.
  6056. The variable defaults to :term:`BUILD_ARCH` so that SDKs are built for the
  6057. architecture of the build machine.
  6058. .. note::
  6059. You cannot set the :term:`SDKMACHINE`
  6060. variable in your distribution configuration file. If you do, the
  6061. configuration will not take effect.
  6062. :term:`SDKPATH`
  6063. Defines the path used to collect the SDK components and build the
  6064. installer.
  6065. :term:`SDKPATHINSTALL`
  6066. Defines the path offered to the user for installation of the SDK that
  6067. is generated by the OpenEmbedded build system. The path appears as
  6068. the default location for installing the SDK when you run the SDK's
  6069. installation script. You can override the offered path when you run
  6070. the script.
  6071. :term:`SDKTARGETSYSROOT`
  6072. The full path to the sysroot used for cross-compilation within an SDK
  6073. as it will be when installed into the default
  6074. :term:`SDKPATHINSTALL`.
  6075. :term:`SECTION`
  6076. The section in which packages should be categorized. Package
  6077. management utilities can make use of this variable.
  6078. :term:`SELECTED_OPTIMIZATION`
  6079. Specifies the optimization flags passed to the C compiler when
  6080. building for the target. The flags are passed through the default
  6081. value of the :term:`TARGET_CFLAGS` variable.
  6082. The :term:`SELECTED_OPTIMIZATION` variable takes the value of
  6083. :term:`FULL_OPTIMIZATION` unless :term:`DEBUG_BUILD` = "1", in which
  6084. case the value of :term:`DEBUG_OPTIMIZATION` is used.
  6085. :term:`SERIAL_CONSOLES`
  6086. Defines a serial console (TTY) to enable using
  6087. :wikipedia:`getty <Getty_(Unix)>`. Provide a value that specifies the
  6088. baud rate followed by the TTY device name separated by a semicolon.
  6089. Use spaces to separate multiple devices::
  6090. SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1"
  6091. :term:`SETUPTOOLS_BUILD_ARGS`
  6092. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  6093. class, this variable can be used to specify additional arguments to be
  6094. passed to ``setup.py build`` in the ``setuptools3_do_compile()`` task.
  6095. :term:`SETUPTOOLS_SETUP_PATH`
  6096. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  6097. class, this variable should be used to specify the directory in which
  6098. the ``setup.py`` file is located if it is not at the root of the source
  6099. tree (as specified by :term:`S`). For example, in a recipe where the
  6100. sources are fetched from a Git repository and ``setup.py`` is in a
  6101. ``python/pythonmodule`` subdirectory, you would have this::
  6102. S = "${WORKDIR}/git"
  6103. SETUPTOOLS_SETUP_PATH = "${S}/python/pythonmodule"
  6104. :term:`SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS`
  6105. A list of recipe dependencies that should not be used to determine
  6106. signatures of tasks from one recipe when they depend on tasks from
  6107. another recipe. For example::
  6108. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "intone->mplayer2"
  6109. In the previous example, ``intone`` depends on ``mplayer2``.
  6110. You can use the special token ``"*"`` on the left-hand side of the
  6111. dependency to match all recipes except the one on the right-hand
  6112. side. Here is an example::
  6113. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "*->quilt-native"
  6114. In the previous example, all recipes except ``quilt-native`` ignore
  6115. task signatures from the ``quilt-native`` recipe when determining
  6116. their task signatures.
  6117. Use of this variable is one mechanism to remove dependencies that
  6118. affect task signatures and thus force rebuilds when a recipe changes.
  6119. .. note::
  6120. If you add an inappropriate dependency for a recipe relationship,
  6121. the software might break during runtime if the interface of the
  6122. second recipe was changed after the first recipe had been built.
  6123. :term:`SIGGEN_EXCLUDERECIPES_ABISAFE`
  6124. A list of recipes that are completely stable and will never change.
  6125. The ABI for the recipes in the list are presented by output from the
  6126. tasks run to build the recipe. Use of this variable is one way to
  6127. remove dependencies from one recipe on another that affect task
  6128. signatures and thus force rebuilds when the recipe changes.
  6129. .. note::
  6130. If you add an inappropriate variable to this list, the software
  6131. might break at runtime if the interface of the recipe was changed
  6132. after the other had been built.
  6133. :term:`SIGGEN_LOCKEDSIGS`
  6134. The list of locked tasks, with the form::
  6135. SIGGEN_LOCKEDSIGS += "<package>:<task>:<signature>"
  6136. If ``<signature>`` exists for the specified ``<task>`` and ``<package>``
  6137. in the sstate cache, BitBake will use the cached output instead of
  6138. rebuilding the ``<task>``. If it does not exist, BitBake will build the
  6139. ``<task>`` and the sstate cache will be used next time.
  6140. Example::
  6141. SIGGEN_LOCKEDSIGS += "bc:do_compile:09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0"
  6142. You can obtain the signature of all the tasks for the recipe ``bc`` using::
  6143. bitbake -S none bc
  6144. Then you can look at files in ``build/tmp/stamps/<arch>/bc`` and look for
  6145. files like: ``<PV>.do_compile.sigdata.09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0``.
  6146. Alternatively, you can also use :doc:`bblock </dev-manual/bblock>` to
  6147. generate this line for you.
  6148. :term:`SIGGEN_LOCKEDSIGS_TASKSIG_CHECK`
  6149. Specifies the debug level of task signature check. 3 levels are supported:
  6150. * ``info``: displays a "Note" message to remind the user that a task is locked
  6151. and the current signature matches the locked one.
  6152. * ``warn``: displays a "Warning" message if a task is locked and the current
  6153. signature does not match the locked one.
  6154. * ``error``: same as warn but displays an "Error" message and aborts.
  6155. :term:`SIGGEN_LOCKEDSIGS_TYPES`
  6156. Allowed overrides for :term:`SIGGEN_LOCKEDSIGS`. This is mainly used
  6157. for architecture specific locks. A common value for
  6158. :term:`SIGGEN_LOCKEDSIGS_TYPES` is ``${PACKAGE_ARCHS}``::
  6159. SIGGEN_LOCKEDSIGS_TYPES += "${PACKAGE_ARCHS}"
  6160. SIGGEN_LOCKEDSIGS_core2-64 += "bc:do_compile:09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0"
  6161. SIGGEN_LOCKEDSIGS_cortexa57 += "bc:do_compile:12178eb6d55ef602a8fe638e49862fd247e07b228f0f08967697b655bfe4bb61"
  6162. Here, the ``do_compile`` task from ``bc`` will be locked only for
  6163. ``core2-64`` and ``cortexa57`` but not for other architectures such as
  6164. ``mips32r2``.
  6165. :term:`SITEINFO_BITS`
  6166. Specifies the number of bits for the target system CPU. The value
  6167. should be either "32" or "64".
  6168. :term:`SITEINFO_ENDIANNESS`
  6169. Specifies the endian byte order of the target system. The value
  6170. should be either "le" for little-endian or "be" for big-endian.
  6171. :term:`SKIP_FILEDEPS`
  6172. Enables removal of all files from the "Provides" section of an RPM
  6173. package. Removal of these files is required for packages containing
  6174. prebuilt binaries and libraries such as ``libstdc++`` and ``glibc``.
  6175. To enable file removal, set the variable to "1" in your
  6176. ``conf/local.conf`` configuration file in your:
  6177. :term:`Build Directory`::
  6178. SKIP_FILEDEPS = "1"
  6179. :term:`SKIP_RECIPE`
  6180. Used to prevent the OpenEmbedded build system from building a given
  6181. recipe. Specify the :term:`PN` value as a variable flag (``varflag``)
  6182. and provide a reason, which will be reported when attempting to
  6183. build the recipe.
  6184. To prevent a recipe from being built, use the :term:`SKIP_RECIPE`
  6185. variable in your ``local.conf`` file or distribution configuration.
  6186. Here is an example which prevents ``myrecipe`` from being built::
  6187. SKIP_RECIPE[myrecipe] = "Not supported by our organization."
  6188. :term:`SOC_FAMILY`
  6189. A colon-separated list grouping together machines based upon the same
  6190. family of SoC (System On Chip). You typically set this variable in a
  6191. common ``.inc`` file that you include in the configuration files of all
  6192. the machines.
  6193. .. note::
  6194. You must include ``conf/machine/include/soc-family.inc`` for this
  6195. variable to appear in :term:`MACHINEOVERRIDES`.
  6196. :term:`SOLIBS`
  6197. Defines the suffix for shared libraries used on the target platform.
  6198. By default, this suffix is ".so.*" for all Linux-based systems and is
  6199. defined in the ``meta/conf/bitbake.conf`` configuration file.
  6200. You will see this variable referenced in the default values of
  6201. ``FILES:${PN}``.
  6202. :term:`SOLIBSDEV`
  6203. Defines the suffix for the development symbolic link (symlink) for
  6204. shared libraries on the target platform. By default, this suffix is
  6205. ".so" for Linux-based systems and is defined in the
  6206. ``meta/conf/bitbake.conf`` configuration file.
  6207. You will see this variable referenced in the default values of
  6208. ``FILES:${PN}-dev``.
  6209. :term:`SOURCE_DATE_EPOCH`
  6210. This defines a date expressed in number of seconds since
  6211. the UNIX EPOCH (01 Jan 1970 00:00:00 UTC), which is used by
  6212. multiple build systems to force a timestamp in built binaries.
  6213. Many upstream projects already support this variable.
  6214. You will find more details in the `official specifications
  6215. <https://reproducible-builds.org/specs/source-date-epoch/>`__.
  6216. A value for each recipe is computed from the sources by
  6217. :oe_git:`meta/lib/oe/reproducible.py </openembedded-core/tree/meta/lib/oe/reproducible.py>`.
  6218. If a recipe wishes to override the default behavior, it should set its
  6219. own :term:`SOURCE_DATE_EPOCH` value::
  6220. SOURCE_DATE_EPOCH = "1613559011"
  6221. :term:`SOURCE_MIRROR_FETCH`
  6222. When you are fetching files to create a mirror of sources (i.e.
  6223. creating a source mirror), setting :term:`SOURCE_MIRROR_FETCH` to "1" in
  6224. your ``local.conf`` configuration file ensures the source for all
  6225. recipes are fetched regardless of whether or not a recipe is
  6226. compatible with the configuration. A recipe is considered
  6227. incompatible with the currently configured machine when either or
  6228. both the :term:`COMPATIBLE_MACHINE`
  6229. variable and :term:`COMPATIBLE_HOST` variables
  6230. specify compatibility with a machine other than that of the current
  6231. machine or host.
  6232. .. note::
  6233. Do not set the :term:`SOURCE_MIRROR_FETCH`
  6234. variable unless you are creating a source mirror. In other words,
  6235. do not set the variable during a normal build.
  6236. :term:`SOURCE_MIRROR_URL`
  6237. Defines your own :term:`PREMIRRORS` from which to
  6238. first fetch source before attempting to fetch from the upstream
  6239. specified in :term:`SRC_URI`.
  6240. To use this variable, you must globally inherit the
  6241. :ref:`ref-classes-own-mirrors` class and then provide
  6242. the URL to your mirrors. Here is the general syntax::
  6243. INHERIT += "own-mirrors"
  6244. SOURCE_MIRROR_URL = "http://example.com/my_source_mirror"
  6245. .. note::
  6246. You can specify only a single URL in :term:`SOURCE_MIRROR_URL`.
  6247. .. note::
  6248. If the mirror is protected behind a username and password, the
  6249. :term:`build host` needs to be configured so the :term:`build system
  6250. <OpenEmbedded Build System>` is able to fetch from the mirror.
  6251. The recommended way to do that is by setting the following parameters
  6252. in ``$HOME/.netrc`` (``$HOME`` being the :term:`build host` home
  6253. directory)::
  6254. machine example.com
  6255. login <user>
  6256. password <password>
  6257. This file requires permissions set to ``400`` or ``600`` to prevent
  6258. other users from reading the file::
  6259. chmod 600 "$HOME/.netrc"
  6260. Another method to configure the username and password is from the URL
  6261. in :term:`SOURCE_MIRROR_URL` directly, with the ``user`` and ``pswd``
  6262. parameters::
  6263. SOURCE_MIRROR_URL = "http://example.com/my_source_mirror;user=<user>;pswd=<password>"
  6264. :term:`SPDX_ARCHIVE_PACKAGED`
  6265. This option allows to add to :term:`SPDX` output compressed archives
  6266. of the files in the generated target packages.
  6267. Such archives are available in
  6268. ``tmp/deploy/spdx/MACHINE/packages/packagename.tar.zst``
  6269. under the :term:`Build Directory`.
  6270. Enable this option as follows::
  6271. SPDX_ARCHIVE_PACKAGED = "1"
  6272. According to our tests on release 4.1 "langdale", building
  6273. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling this
  6274. option multiplied the size of the ``tmp/deploy/spdx`` directory by a
  6275. factor of 13 (+1.6 GiB for this image), compared to just using the
  6276. :ref:`ref-classes-create-spdx` class with no option.
  6277. Note that this option doesn't increase the size of :term:`SPDX`
  6278. files in ``tmp/deploy/images/MACHINE``.
  6279. :term:`SPDX_ARCHIVE_SOURCES`
  6280. This option allows to add to :term:`SPDX` output compressed archives
  6281. of the sources for packages installed on the target. It currently
  6282. only works when :term:`SPDX_INCLUDE_SOURCES` is set.
  6283. This is one way of fulfilling "source code access" license
  6284. requirements.
  6285. Such source archives are available in
  6286. ``tmp/deploy/spdx/MACHINE/recipes/recipe-packagename.tar.zst``
  6287. under the :term:`Build Directory`.
  6288. Enable this option as follows::
  6289. SPDX_INCLUDE_SOURCES = "1"
  6290. SPDX_ARCHIVE_SOURCES = "1"
  6291. According to our tests on release 4.1 "langdale", building
  6292. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling
  6293. these options multiplied the size of the ``tmp/deploy/spdx``
  6294. directory by a factor of 11 (+1.4 GiB for this image),
  6295. compared to just using the :ref:`ref-classes-create-spdx`
  6296. class with no option.
  6297. Note that using this option only marginally increases the size
  6298. of the :term:`SPDX` output in ``tmp/deploy/images/MACHINE/``
  6299. (+ 0.07\% with the tested image), compared to just enabling
  6300. :term:`SPDX_INCLUDE_SOURCES`.
  6301. :term:`SPDX_CUSTOM_ANNOTATION_VARS`
  6302. This option allows to associate `SPDX annotations
  6303. <https://spdx.github.io/spdx-spec/v2.3/annotations/>`__ to a recipe,
  6304. using the values of variables in the recipe::
  6305. ANNOTATION1 = "First annotation for recipe"
  6306. ANNOTATION2 = "Second annotation for recipe"
  6307. SPDX_CUSTOM_ANNOTATION_VARS = "ANNOTATION1 ANNOTATION2"
  6308. This will add a new block to the recipe ``.sdpx.json`` output::
  6309. "annotations": [
  6310. {
  6311. "annotationDate": "2023-04-18T08:32:12Z",
  6312. "annotationType": "OTHER",
  6313. "annotator": "Tool: oe-spdx-creator - 1.0",
  6314. "comment": "ANNOTATION1=First annotation for recipe"
  6315. },
  6316. {
  6317. "annotationDate": "2023-04-18T08:32:12Z",
  6318. "annotationType": "OTHER",
  6319. "annotator": "Tool: oe-spdx-creator - 1.0",
  6320. "comment": "ANNOTATION2=Second annotation for recipe"
  6321. }
  6322. ],
  6323. :term:`SPDX_INCLUDE_SOURCES`
  6324. This option allows to add a description of the source files used to build
  6325. the host tools and the target packages, to the ``spdx.json`` files in
  6326. ``tmp/deploy/spdx/MACHINE/recipes/`` under the :term:`Build Directory`.
  6327. As a consequence, the ``spdx.json`` files under the ``by-namespace`` and
  6328. ``packages`` subdirectories in ``tmp/deploy/spdx/MACHINE`` are also
  6329. modified to include references to such source file descriptions.
  6330. Enable this option as follows::
  6331. SPDX_INCLUDE_SOURCES = "1"
  6332. According to our tests on release 4.1 "langdale", building
  6333. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling
  6334. this option multiplied the total size of the ``tmp/deploy/spdx``
  6335. directory by a factor of 3 (+291 MiB for this image),
  6336. and the size of the ``IMAGE-MACHINE.spdx.tar.zst`` in
  6337. ``tmp/deploy/images/MACHINE`` by a factor of 130 (+15 MiB for this
  6338. image), compared to just using the :ref:`ref-classes-create-spdx` class
  6339. with no option.
  6340. :term:`SPDX_NAMESPACE_PREFIX`
  6341. This option could be used in order to change the prefix of ``spdxDocument``
  6342. and the prefix of ``documentNamespace``. It is set by default to
  6343. ``http://spdx.org/spdxdoc``.
  6344. :term:`SPDX_PRETTY`
  6345. This option makes the SPDX output more human-readable, using
  6346. identation and newlines, instead of the default output in a
  6347. single line::
  6348. SPDX_PRETTY = "1"
  6349. The generated SPDX files are approximately 20% bigger, but
  6350. this option is recommended if you want to inspect the SPDX
  6351. output files with a text editor.
  6352. :term:`SPDXLICENSEMAP`
  6353. Maps commonly used license names to their SPDX counterparts found in
  6354. ``meta/files/common-licenses/``. For the default :term:`SPDXLICENSEMAP`
  6355. mappings, see the ``meta/conf/licenses.conf`` file.
  6356. For additional information, see the :term:`LICENSE`
  6357. variable.
  6358. :term:`SPECIAL_PKGSUFFIX`
  6359. A list of prefixes for :term:`PN` used by the OpenEmbedded
  6360. build system to create variants of recipes or packages. The list
  6361. specifies the prefixes to strip off during certain circumstances such
  6362. as the generation of the :term:`BPN` variable.
  6363. :term:`SPL_BINARY`
  6364. The file type for the Secondary Program Loader (SPL). Some devices
  6365. use an SPL from which to boot (e.g. the BeagleBone development
  6366. board). For such cases, you can declare the file type of the SPL
  6367. binary in the ``u-boot.inc`` include file, which is used in the
  6368. U-Boot recipe.
  6369. The SPL file type is set to "null" by default in the ``u-boot.inc``
  6370. file as follows::
  6371. # Some versions of u-boot build an SPL (Second Program Loader) image that
  6372. # should be packaged along with the u-boot binary as well as placed in the
  6373. # deploy directory. For those versions they can set the following variables
  6374. # to allow packaging the SPL.
  6375. SPL_BINARY ?= ""
  6376. SPL_BINARYNAME ?= "${@os.path.basename(d.getVar("SPL_BINARY"))}"
  6377. SPL_IMAGE ?= "${SPL_BINARYNAME}-${MACHINE}-${PV}-${PR}"
  6378. SPL_SYMLINK ?= "${SPL_BINARYNAME}-${MACHINE}"
  6379. The :term:`SPL_BINARY` variable helps form
  6380. various ``SPL_*`` variables used by the OpenEmbedded build system.
  6381. See the BeagleBone machine configuration example in the
  6382. ":ref:`dev-manual/layers:adding a layer using the \`\`bitbake-layers\`\` script`"
  6383. section in the Yocto Project Board Support Package Developer's Guide
  6384. for additional information.
  6385. :term:`SPL_MKIMAGE_DTCOPTS`
  6386. Options for the device tree compiler passed to ``mkimage -D`` feature
  6387. while creating a FIT image with the :ref:`ref-classes-uboot-sign`
  6388. class. If :term:`SPL_MKIMAGE_DTCOPTS` is not set then the
  6389. :ref:`ref-classes-uboot-sign` class will not pass the ``-D`` option
  6390. to ``mkimage``.
  6391. The default value is set to "" by the :ref:`ref-classes-uboot-config`
  6392. class.
  6393. :term:`SPL_SIGN_ENABLE`
  6394. Enable signing of the U-Boot FIT image. The default value is "0".
  6395. This variable is used by the :ref:`ref-classes-uboot-sign` class.
  6396. :term:`SPL_SIGN_KEYDIR`
  6397. Location of the directory containing the RSA key and certificate used for
  6398. signing the U-Boot FIT image, used by the :ref:`ref-classes-uboot-sign`
  6399. class.
  6400. :term:`SPL_SIGN_KEYNAME`
  6401. The name of keys used by the :ref:`ref-classes-kernel-fitimage` class
  6402. for signing U-Boot FIT image stored in the :term:`SPL_SIGN_KEYDIR`
  6403. directory. If we have for example a ``dev.key`` key and a ``dev.crt``
  6404. certificate stored in the :term:`SPL_SIGN_KEYDIR` directory, you will
  6405. have to set :term:`SPL_SIGN_KEYNAME` to ``dev``.
  6406. :term:`SPLASH`
  6407. This variable, used by the :ref:`ref-classes-image` class, allows
  6408. to choose splashscreen applications. Set it to the names of packages
  6409. for such applications to use. This variable is set by default to
  6410. ``psplash``.
  6411. :term:`SPLASH_IMAGES`
  6412. This variable, used by the ``psplash`` recipe, allows to customize
  6413. the default splashscreen image.
  6414. Specified images in PNG format are converted to ``.h`` files by the recipe,
  6415. and are included in the ``psplash`` binary, so you won't find them in
  6416. the root filesystem.
  6417. To make such a change, it is recommended to customize the
  6418. ``psplash`` recipe in a custom layer. Here is an example structure for
  6419. an ``ACME`` board::
  6420. meta-acme/recipes-core/psplash
  6421. ├── files
  6422. │   └── logo-acme.png
  6423. └── psplash_%.bbappend
  6424. And here are the contents of the ``psplash_%.bbappend`` file in
  6425. this example::
  6426. SPLASH_IMAGES = "file://logo-acme.png;outsuffix=default"
  6427. FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  6428. You could even add specific configuration options for ``psplash``,
  6429. for example::
  6430. EXTRA_OECONF += "--disable-startup-msg --enable-img-fullscreen"
  6431. For information on append files, see the
  6432. ":ref:`dev-manual/layers:appending other layers metadata with your layer`"
  6433. section.
  6434. :term:`SRCREV_FORMAT`
  6435. See :term:`bitbake:SRCREV_FORMAT` in the BitBake manual.
  6436. :term:`SRC_URI`
  6437. See the BitBake manual for the initial description for this variable:
  6438. :term:`bitbake:SRC_URI`.
  6439. The following features are added by OpenEmbedded and the Yocto Project.
  6440. There are standard and recipe-specific options. Here are standard ones:
  6441. - ``apply`` --- whether to apply the patch or not. The default
  6442. action is to apply the patch.
  6443. - ``striplevel`` --- which striplevel to use when applying the
  6444. patch. The default level is 1.
  6445. - ``patchdir`` --- specifies the directory in which the patch should
  6446. be applied. The default is ``${``\ :term:`S`\ ``}``.
  6447. Here are options specific to recipes building code from a revision
  6448. control system:
  6449. - ``mindate`` --- apply the patch only if
  6450. :term:`SRCDATE` is equal to or greater than
  6451. ``mindate``.
  6452. - ``maxdate`` --- apply the patch only if :term:`SRCDATE` is not later
  6453. than ``maxdate``.
  6454. - ``minrev`` --- apply the patch only if :term:`SRCREV` is equal to or
  6455. greater than ``minrev``.
  6456. - ``maxrev`` --- apply the patch only if :term:`SRCREV` is not later
  6457. than ``maxrev``.
  6458. - ``rev`` --- apply the patch only if :term:`SRCREV` is equal to
  6459. ``rev``.
  6460. - ``notrev`` --- apply the patch only if :term:`SRCREV` is not equal to
  6461. ``rev``.
  6462. .. note::
  6463. If you want the build system to pick up files specified through
  6464. a :term:`SRC_URI` statement from your append file, you need to be
  6465. sure to extend the :term:`FILESPATH` variable by also using the
  6466. :term:`FILESEXTRAPATHS` variable from within your append file.
  6467. :term:`SRC_URI_OVERRIDES_PACKAGE_ARCH`
  6468. By default, the OpenEmbedded build system automatically detects
  6469. whether :term:`SRC_URI` contains files that are machine-specific. If so,
  6470. the build system automatically changes :term:`PACKAGE_ARCH`. Setting this
  6471. variable to "0" disables this behavior.
  6472. :term:`SRCDATE`
  6473. The date of the source code used to build the package. This variable
  6474. applies only if the source was fetched from a Source Code Manager
  6475. (SCM).
  6476. :term:`SRCPV`
  6477. The variable :term:`SRCPV` is deprecated. It was previously used to
  6478. include source control information in :term:`PV` for :term:`bitbake` to
  6479. work correctly but this is no longer a requirement. Source control
  6480. information will be automatically included by :term:`bitbake` in the
  6481. variable :term:`PKGV` during packaging if the ``+`` sign is present in
  6482. :term:`PV`.
  6483. .. note::
  6484. The :term:`SRCPV` variable used to be defined in the
  6485. ``meta/conf/bitbake.conf`` configuration file in the :term:`Source
  6486. Directory` as follows::
  6487. SRCPV = "${@bb.fetch2.get_srcrev(d)}"
  6488. The ``get_srcrev`` function can still be used to include source control
  6489. information in variables manually.
  6490. :term:`SRCREV`
  6491. The revision of the source code used to build the package. This
  6492. variable applies to Subversion, Git, Mercurial, and Bazaar only. Note
  6493. that if you want to build a fixed revision and you want to avoid
  6494. performing a query on the remote repository every time BitBake parses
  6495. your recipe, you should specify a :term:`SRCREV` that is a full revision
  6496. identifier (e.g. the full SHA hash in git) and not just a tag.
  6497. .. note::
  6498. For information on limitations when inheriting the latest revision
  6499. of software using :term:`SRCREV`, see the :term:`AUTOREV` variable
  6500. description and the
  6501. ":ref:`dev-manual/packages:automatically incrementing a package version number`"
  6502. section, which is in the Yocto Project Development Tasks Manual.
  6503. :term:`SRCTREECOVEREDTASKS`
  6504. A list of tasks that are typically not relevant (and therefore skipped)
  6505. when building using the :ref:`ref-classes-externalsrc`
  6506. class. The default value as set in that class file is the set of tasks
  6507. that are rarely needed when using external source::
  6508. SRCTREECOVEREDTASKS ?= "do_patch do_unpack do_fetch"
  6509. The notable exception is when processing external kernel source as
  6510. defined in the :ref:`ref-classes-kernel-yocto` class file (formatted for
  6511. aesthetics)::
  6512. SRCTREECOVEREDTASKS += "\
  6513. do_validate_branches \
  6514. do_kernel_configcheck \
  6515. do_kernel_checkout \
  6516. do_fetch \
  6517. do_unpack \
  6518. do_patch \
  6519. "
  6520. See the associated :term:`EXTERNALSRC` and :term:`EXTERNALSRC_BUILD`
  6521. variables for more information.
  6522. :term:`SSTATE_DIR`
  6523. The directory for the shared state cache.
  6524. :term:`SSTATE_EXCLUDEDEPS_SYSROOT`
  6525. This variable allows to specify indirect dependencies to exclude
  6526. from sysroots, for example to avoid the situations when a dependency on
  6527. any ``-native`` recipe will pull in all dependencies of that recipe
  6528. in the recipe sysroot. This behaviour might not always be wanted,
  6529. for example when that ``-native`` recipe depends on build tools
  6530. that are not relevant for the current recipe.
  6531. This way, irrelevant dependencies are ignored, which could have
  6532. prevented the reuse of prebuilt artifacts stored in the Shared
  6533. State Cache.
  6534. :term:`SSTATE_EXCLUDEDEPS_SYSROOT` is evaluated as two regular
  6535. expressions of recipe and dependency to ignore. An example
  6536. is the rule in :oe_git:`meta/conf/layer.conf </openembedded-core/tree/meta/conf/layer.conf>`::
  6537. # Nothing needs to depend on libc-initial
  6538. # base-passwd/shadow-sysroot don't need their dependencies
  6539. SSTATE_EXCLUDEDEPS_SYSROOT += "\
  6540. .*->.*-initial.* \
  6541. .*(base-passwd|shadow-sysroot)->.* \
  6542. "
  6543. The ``->`` substring represents the dependency between
  6544. the two regular expressions.
  6545. :term:`SSTATE_MIRROR_ALLOW_NETWORK`
  6546. If set to "1", allows fetches from mirrors that are specified in
  6547. :term:`SSTATE_MIRRORS` to work even when
  6548. fetching from the network is disabled by setting :term:`BB_NO_NETWORK` to
  6549. "1". Using the :term:`SSTATE_MIRROR_ALLOW_NETWORK` variable is useful if
  6550. you have set :term:`SSTATE_MIRRORS` to point to an internal server for
  6551. your shared state cache, but you want to disable any other fetching
  6552. from the network.
  6553. :term:`SSTATE_MIRRORS`
  6554. Configures the OpenEmbedded build system to search other mirror
  6555. locations for prebuilt cache data objects before building out the
  6556. data. This variable works like fetcher :term:`MIRRORS`
  6557. and :term:`PREMIRRORS` and points to the cache
  6558. locations to check for the shared state (sstate) objects.
  6559. You can specify a filesystem directory or a remote URL such as HTTP
  6560. or FTP. The locations you specify need to contain the shared state
  6561. cache (sstate-cache) results from previous builds. The sstate-cache
  6562. you point to can also be from builds on other machines.
  6563. When pointing to sstate build artifacts on another machine that uses
  6564. a different GCC version for native builds, you must configure
  6565. :term:`SSTATE_MIRRORS` with a regular expression that maps local search
  6566. paths to server paths. The paths need to take into account
  6567. :term:`NATIVELSBSTRING` set by the :ref:`ref-classes-uninative` class.
  6568. For example, the following maps the local search path ``universal-4.9``
  6569. to the server-provided path server_url_sstate_path::
  6570. SSTATE_MIRRORS ?= "file://universal-4.9/(.*) https://server_url_sstate_path/universal-4.8/\1"
  6571. If a mirror uses the same structure as
  6572. :term:`SSTATE_DIR`, you need to add "PATH" at the
  6573. end as shown in the examples below. The build system substitutes the
  6574. correct path within the directory structure::
  6575. SSTATE_MIRRORS ?= "\
  6576. file://.* https://someserver.tld/share/sstate/PATH;downloadfilename=PATH \
  6577. file://.* file:///some-local-dir/sstate/PATH"
  6578. .. note::
  6579. If the mirror is protected behind a username and password, the
  6580. :term:`build host` needs to be configured so the :term:`build system
  6581. <OpenEmbedded Build System>` is able to download the sstate cache using
  6582. authentication.
  6583. The recommended way to do that is by setting the following parameters
  6584. in ``$HOME/.netrc`` (``$HOME`` being the :term:`build host` home
  6585. directory)::
  6586. machine someserver.tld
  6587. login <user>
  6588. password <password>
  6589. This file requires permissions set to ``400`` or ``600`` to prevent
  6590. other users from reading the file::
  6591. chmod 600 "$HOME/.netrc"
  6592. Another method to configure the username and password is from the
  6593. URL in :term:`SSTATE_MIRRORS` directly, with the ``user`` and ``pswd``
  6594. parameters::
  6595. SSTATE_MIRRORS ?= "\
  6596. file://.* https://someserver.tld/share/sstate/PATH;user=<user>;pswd=<password>;downloadfilename=PATH \
  6597. "
  6598. The Yocto Project actually shares the cache data objects built by its
  6599. autobuilder::
  6600. SSTATE_MIRRORS ?= "file://.* http://cdn.jsdelivr.net/yocto/sstate/all/PATH;downloadfilename=PATH"
  6601. As such binary artifacts are built for the generic QEMU machines
  6602. supported by the various Poky releases, they are less likely to be
  6603. reusable in real projects building binaries optimized for a specific
  6604. CPU family.
  6605. :term:`SSTATE_SCAN_FILES`
  6606. Controls the list of files the OpenEmbedded build system scans for
  6607. hardcoded installation paths. The variable uses a space-separated
  6608. list of filenames (not paths) with standard wildcard characters
  6609. allowed.
  6610. During a build, the OpenEmbedded build system creates a shared state
  6611. (sstate) object during the first stage of preparing the sysroots.
  6612. That object is scanned for hardcoded paths for original installation
  6613. locations. The list of files that are scanned for paths is controlled
  6614. by the :term:`SSTATE_SCAN_FILES` variable. Typically, recipes add files
  6615. they want to be scanned to the value of :term:`SSTATE_SCAN_FILES` rather
  6616. than the variable being comprehensively set. The
  6617. :ref:`ref-classes-sstate` class specifies the default list of files.
  6618. For details on the process, see the :ref:`ref-classes-staging` class.
  6619. :term:`STAGING_BASE_LIBDIR_NATIVE`
  6620. Specifies the path to the ``/lib`` subdirectory of the sysroot
  6621. directory for the build host.
  6622. :term:`STAGING_BASELIBDIR`
  6623. Specifies the path to the ``/lib`` subdirectory of the sysroot
  6624. directory for the target for which the current recipe is being built
  6625. (:term:`STAGING_DIR_HOST`).
  6626. :term:`STAGING_BINDIR`
  6627. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  6628. directory for the target for which the current recipe is being built
  6629. (:term:`STAGING_DIR_HOST`).
  6630. :term:`STAGING_BINDIR_CROSS`
  6631. Specifies the path to the directory containing binary configuration
  6632. scripts. These scripts provide configuration information for other
  6633. software that wants to make use of libraries or include files
  6634. provided by the software associated with the script.
  6635. .. note::
  6636. This style of build configuration has been largely replaced by
  6637. ``pkg-config``. Consequently, if ``pkg-config`` is supported by the
  6638. library to which you are linking, it is recommended you use
  6639. ``pkg-config`` instead of a provided configuration script.
  6640. :term:`STAGING_BINDIR_NATIVE`
  6641. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  6642. directory for the build host.
  6643. :term:`STAGING_DATADIR`
  6644. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  6645. directory for the target for which the current recipe is being built
  6646. (:term:`STAGING_DIR_HOST`).
  6647. :term:`STAGING_DATADIR_NATIVE`
  6648. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  6649. directory for the build host.
  6650. :term:`STAGING_DIR`
  6651. Helps construct the ``recipe-sysroots`` directory, which is used
  6652. during packaging.
  6653. For information on how staging for recipe-specific sysroots occurs,
  6654. see the :ref:`ref-tasks-populate_sysroot`
  6655. task, the ":ref:`dev-manual/devtool:sharing files between recipes`"
  6656. section in the Yocto Project Development Tasks Manual, the
  6657. ":ref:`overview-manual/concepts:configuration, compilation, and staging`"
  6658. section in the Yocto Project Overview and Concepts Manual, and the
  6659. :term:`SYSROOT_DIRS` variable.
  6660. .. note::
  6661. Recipes should never write files directly under the :term:`STAGING_DIR`
  6662. directory because the OpenEmbedded build system manages the
  6663. directory automatically. Instead, files should be installed to
  6664. ``${``\ :term:`D`\ ``}`` within your recipe's :ref:`ref-tasks-install`
  6665. task and then the OpenEmbedded build system will stage a subset of
  6666. those files into the sysroot.
  6667. :term:`STAGING_DIR_HOST`
  6668. Specifies the path to the sysroot directory for the system on which
  6669. the component is built to run (the system that hosts the component).
  6670. For most recipes, this sysroot is the one in which that recipe's
  6671. :ref:`ref-tasks-populate_sysroot` task copies
  6672. files. Exceptions include ``-native`` recipes, where the
  6673. :ref:`ref-tasks-populate_sysroot` task instead uses
  6674. :term:`STAGING_DIR_NATIVE`. Depending on
  6675. the type of recipe and the build target, :term:`STAGING_DIR_HOST` can
  6676. have the following values:
  6677. - For recipes building for the target machine, the value is
  6678. "${:term:`STAGING_DIR`}/${:term:`MACHINE`}".
  6679. - For native recipes building for the build host, the value is empty
  6680. given the assumption that when building for the build host, the
  6681. build host's own directories should be used.
  6682. .. note::
  6683. ``-native`` recipes are not installed into host paths like such
  6684. as ``/usr``. Rather, these recipes are installed into
  6685. :term:`STAGING_DIR_NATIVE`. When compiling ``-native`` recipes,
  6686. standard build environment variables such as
  6687. :term:`CPPFLAGS` and
  6688. :term:`CFLAGS` are set up so that both host paths
  6689. and :term:`STAGING_DIR_NATIVE` are searched for libraries and
  6690. headers using, for example, GCC's ``-isystem`` option.
  6691. Thus, the emphasis is that the ``STAGING_DIR*`` variables
  6692. should be viewed as input variables by tasks such as
  6693. :ref:`ref-tasks-configure`,
  6694. :ref:`ref-tasks-compile`, and
  6695. :ref:`ref-tasks-install`. Having the real system
  6696. root correspond to :term:`STAGING_DIR_HOST` makes conceptual sense
  6697. for ``-native`` recipes, as they make use of host headers and
  6698. libraries.
  6699. Check :term:`RECIPE_SYSROOT` and :term:`RECIPE_SYSROOT_NATIVE`.
  6700. :term:`STAGING_DIR_NATIVE`
  6701. Specifies the path to the sysroot directory used when building
  6702. components that run on the build host itself.
  6703. The default value is ``"${RECIPE_SYSROOT_NATIVE}"``,
  6704. check :term:`RECIPE_SYSROOT_NATIVE`.
  6705. :term:`STAGING_DIR_TARGET`
  6706. Specifies the path to the sysroot used for the system for which the
  6707. component generates code. For components that do not generate code,
  6708. which is the majority, :term:`STAGING_DIR_TARGET` is set to match
  6709. :term:`STAGING_DIR_HOST`.
  6710. Some recipes build binaries that can run on the target system but those
  6711. binaries in turn generate code for another different system (e.g.
  6712. :ref:`ref-classes-cross-canadian` recipes). Using terminology from GNU,
  6713. the primary system is referred to as the "HOST" and the secondary, or
  6714. different, system is referred to as the "TARGET". Thus, the binaries
  6715. run on the "HOST" system and generate binaries for the "TARGET"
  6716. system. The :term:`STAGING_DIR_HOST` variable points to the sysroot used
  6717. for the "HOST" system, while :term:`STAGING_DIR_TARGET` points to the
  6718. sysroot used for the "TARGET" system.
  6719. :term:`STAGING_ETCDIR_NATIVE`
  6720. Specifies the path to the ``/etc`` subdirectory of the sysroot
  6721. directory for the build host.
  6722. :term:`STAGING_EXECPREFIXDIR`
  6723. Specifies the path to the ``/usr`` subdirectory of the sysroot
  6724. directory for the target for which the current recipe is being built
  6725. (:term:`STAGING_DIR_HOST`).
  6726. :term:`STAGING_INCDIR`
  6727. Specifies the path to the ``/usr/include`` subdirectory of the
  6728. sysroot directory for the target for which the current recipe being
  6729. built (:term:`STAGING_DIR_HOST`).
  6730. :term:`STAGING_INCDIR_NATIVE`
  6731. Specifies the path to the ``/usr/include`` subdirectory of the
  6732. sysroot directory for the build host.
  6733. :term:`STAGING_KERNEL_BUILDDIR`
  6734. Points to the directory containing the kernel build artifacts.
  6735. Recipes building software that needs to access kernel build artifacts
  6736. (e.g. ``systemtap-uprobes``) can look in the directory specified with
  6737. the :term:`STAGING_KERNEL_BUILDDIR` variable to find these artifacts
  6738. after the kernel has been built.
  6739. :term:`STAGING_KERNEL_DIR`
  6740. The directory with kernel headers that are required to build
  6741. out-of-tree modules.
  6742. :term:`STAGING_LIBDIR`
  6743. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  6744. directory for the target for which the current recipe is being built
  6745. (:term:`STAGING_DIR_HOST`).
  6746. :term:`STAGING_LIBDIR_NATIVE`
  6747. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  6748. directory for the build host.
  6749. :term:`STAMP`
  6750. Specifies the base path used to create recipe stamp files. The path
  6751. to an actual stamp file is constructed by evaluating this string and
  6752. then appending additional information. Currently, the default
  6753. assignment for :term:`STAMP` as set in the ``meta/conf/bitbake.conf``
  6754. file is::
  6755. STAMP = "${STAMPS_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}"
  6756. For information on how BitBake uses stamp files to determine if a
  6757. task should be rerun, see the
  6758. ":ref:`overview-manual/concepts:stamp files and the rerunning of tasks`"
  6759. section in the Yocto Project Overview and Concepts Manual.
  6760. See :term:`STAMPS_DIR`,
  6761. :term:`MULTIMACH_TARGET_SYS`,
  6762. :term:`PN`, :term:`EXTENDPE`,
  6763. :term:`PV`, and :term:`PR` for related variable
  6764. information.
  6765. :term:`STAMPCLEAN`
  6766. See :term:`bitbake:STAMPCLEAN` in the BitBake manual.
  6767. :term:`STAMPS_DIR`
  6768. Specifies the base directory in which the OpenEmbedded build system
  6769. places stamps. The default directory is ``${TMPDIR}/stamps``.
  6770. :term:`STRIP`
  6771. The minimal command and arguments to run ``strip``, which is used to
  6772. strip symbols.
  6773. :term:`SUMMARY`
  6774. The short (72 characters or less) summary of the binary package for
  6775. packaging systems such as ``opkg``, ``rpm``, or ``dpkg``. By default,
  6776. :term:`SUMMARY` is used to define the
  6777. :term:`DESCRIPTION` variable if :term:`DESCRIPTION` is
  6778. not set in the recipe.
  6779. :term:`SVNDIR`
  6780. The directory in which files checked out of a Subversion system are
  6781. stored.
  6782. :term:`SYSLINUX_DEFAULT_CONSOLE`
  6783. Specifies the kernel boot default console. If you want to use a
  6784. console other than the default, set this variable in your recipe as
  6785. follows where "X" is the console number you want to use::
  6786. SYSLINUX_DEFAULT_CONSOLE = "console=ttyX"
  6787. The :ref:`ref-classes-syslinux` class initially sets
  6788. this variable to null but then checks for a value later.
  6789. :term:`SYSLINUX_OPTS`
  6790. Lists additional options to add to the syslinux file. You need to set
  6791. this variable in your recipe. If you want to list multiple options,
  6792. separate the options with a semicolon character (``;``).
  6793. The :ref:`ref-classes-syslinux` class uses this variable
  6794. to create a set of options.
  6795. :term:`SYSLINUX_SERIAL`
  6796. Specifies the alternate serial port or turns it off. To turn off
  6797. serial, set this variable to an empty string in your recipe. The
  6798. variable's default value is set in the
  6799. :ref:`ref-classes-syslinux` class as follows::
  6800. SYSLINUX_SERIAL ?= "0 115200"
  6801. The class checks for and uses the variable as needed.
  6802. :term:`SYSLINUX_SERIAL_TTY`
  6803. Specifies the alternate console=tty... kernel boot argument. The
  6804. variable's default value is set in the :ref:`ref-classes-syslinux`
  6805. class as follows::
  6806. SYSLINUX_SERIAL_TTY ?= "console=ttyS0,115200"
  6807. The class checks for and uses the variable as needed.
  6808. :term:`SYSLINUX_SPLASH`
  6809. An ``.LSS`` file used as the background for the VGA boot menu when
  6810. you use the boot menu. You need to set this variable in your recipe.
  6811. The :ref:`ref-classes-syslinux` class checks for this
  6812. variable and if found, the OpenEmbedded build system installs the
  6813. splash screen.
  6814. :term:`SYSROOT_DESTDIR`
  6815. Points to the temporary directory under the work directory (default
  6816. "``${``\ :term:`WORKDIR`\ ``}/sysroot-destdir``")
  6817. where the files populated into the sysroot are assembled during the
  6818. :ref:`ref-tasks-populate_sysroot` task.
  6819. :term:`SYSROOT_DIRS`
  6820. Directories that are staged into the sysroot by the
  6821. :ref:`ref-tasks-populate_sysroot` task. By
  6822. default, the following directories are staged::
  6823. SYSROOT_DIRS = " \
  6824. ${includedir} \
  6825. ${libdir} \
  6826. ${base_libdir} \
  6827. ${nonarch_base_libdir} \
  6828. ${datadir} \
  6829. /sysroot-only \
  6830. "
  6831. Consider the following example in which you need to manipulate this variable.
  6832. Assume you have a recipe ``A`` that provides a shared library ``.so.*`` that is
  6833. installed into a custom folder other than "``${libdir}``"
  6834. or "``${base_libdir}``", let's say "``/opt/lib``".
  6835. .. note::
  6836. This is not a recommended way to deal with shared libraries, but this
  6837. is just to show the usefulness of setting :term:`SYSROOT_DIRS`.
  6838. When a recipe ``B`` :term:`DEPENDS` on ``A``, it means what is in
  6839. :term:`SYSROOT_DIRS` will be copied from :term:`D` of the recipe ``A``
  6840. into ``B``'s :term:`SYSROOT_DESTDIR` that is "``${WORKDIR}/sysroot-destdir``".
  6841. Now, since ``/opt/lib`` is not in :term:`SYSROOT_DIRS`, it will never be copied to
  6842. ``A``'s :term:`RECIPE_SYSROOT`, which is "``${WORKDIR}/recipe-sysroot``". So,
  6843. the linking process will fail.
  6844. To fix this, you need to add ``/opt/lib`` to :term:`SYSROOT_DIRS`::
  6845. SYSROOT_DIRS:append = " /opt/lib"
  6846. .. note::
  6847. Even after setting ``/opt/lib`` to :term:`SYSROOT_DIRS`, the linking process will still fail
  6848. because the linker does not know that location, since :term:`TARGET_LDFLAGS`
  6849. doesn't contain it (if your recipe is for the target). Therefore, so you should add::
  6850. TARGET_LDFLAGS:append = " -L${RECIPE_SYSROOT}/opt/lib"
  6851. :term:`SYSROOT_DIRS_IGNORE`
  6852. Directories that are not staged into the sysroot by the
  6853. :ref:`ref-tasks-populate_sysroot` task. You
  6854. can use this variable to exclude certain subdirectories of
  6855. directories listed in :term:`SYSROOT_DIRS` from
  6856. staging. By default, the following directories are not staged::
  6857. SYSROOT_DIRS_IGNORE = " \
  6858. ${mandir} \
  6859. ${docdir} \
  6860. ${infodir} \
  6861. ${datadir}/X11/locale \
  6862. ${datadir}/applications \
  6863. ${datadir}/bash-completion \
  6864. ${datadir}/fonts \
  6865. ${datadir}/gtk-doc/html \
  6866. ${datadir}/installed-tests \
  6867. ${datadir}/locale \
  6868. ${datadir}/pixmaps \
  6869. ${datadir}/terminfo \
  6870. ${libdir}/${BPN}/ptest \
  6871. "
  6872. :term:`SYSROOT_DIRS_NATIVE`
  6873. Extra directories staged into the sysroot by the
  6874. :ref:`ref-tasks-populate_sysroot` task for
  6875. ``-native`` recipes, in addition to those specified in
  6876. :term:`SYSROOT_DIRS`. By default, the following
  6877. extra directories are staged::
  6878. SYSROOT_DIRS_NATIVE = " \
  6879. ${bindir} \
  6880. ${sbindir} \
  6881. ${base_bindir} \
  6882. ${base_sbindir} \
  6883. ${libexecdir} \
  6884. ${sysconfdir} \
  6885. ${localstatedir} \
  6886. "
  6887. .. note::
  6888. Programs built by ``-native`` recipes run directly from the sysroot
  6889. (:term:`STAGING_DIR_NATIVE`), which is why additional directories
  6890. containing program executables and supporting files need to be staged.
  6891. :term:`SYSROOT_PREPROCESS_FUNCS`
  6892. A list of functions to execute after files are staged into the
  6893. sysroot. These functions are usually used to apply additional
  6894. processing on the staged files, or to stage additional files.
  6895. :term:`SYSTEMD_AUTO_ENABLE`
  6896. When inheriting the :ref:`ref-classes-systemd` class,
  6897. this variable specifies whether the specified service in
  6898. :term:`SYSTEMD_SERVICE` should start
  6899. automatically or not. By default, the service is enabled to
  6900. automatically start at boot time. The default setting is in the
  6901. :ref:`ref-classes-systemd` class as follows::
  6902. SYSTEMD_AUTO_ENABLE ??= "enable"
  6903. You can disable the service by setting the variable to "disable".
  6904. :term:`SYSTEMD_BOOT_CFG`
  6905. When :term:`EFI_PROVIDER` is set to
  6906. "systemd-boot", the :term:`SYSTEMD_BOOT_CFG` variable specifies the
  6907. configuration file that should be used. By default, the
  6908. :ref:`ref-classes-systemd-boot` class sets the
  6909. :term:`SYSTEMD_BOOT_CFG` as follows::
  6910. SYSTEMD_BOOT_CFG ?= "${S}/loader.conf"
  6911. For information on Systemd-boot, see the `Systemd-boot
  6912. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6913. :term:`SYSTEMD_BOOT_ENTRIES`
  6914. When :term:`EFI_PROVIDER` is set to
  6915. "systemd-boot", the :term:`SYSTEMD_BOOT_ENTRIES` variable specifies a
  6916. list of entry files (``*.conf``) to install that contain one boot
  6917. entry per file. By default, the :ref:`ref-classes-systemd-boot` class
  6918. sets the :term:`SYSTEMD_BOOT_ENTRIES` as follows::
  6919. SYSTEMD_BOOT_ENTRIES ?= ""
  6920. For information on Systemd-boot, see the `Systemd-boot
  6921. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6922. :term:`SYSTEMD_BOOT_TIMEOUT`
  6923. When :term:`EFI_PROVIDER` is set to
  6924. "systemd-boot", the :term:`SYSTEMD_BOOT_TIMEOUT` variable specifies the
  6925. boot menu timeout in seconds. By default, the
  6926. :ref:`ref-classes-systemd-boot` class sets the
  6927. :term:`SYSTEMD_BOOT_TIMEOUT` as follows::
  6928. SYSTEMD_BOOT_TIMEOUT ?= "10"
  6929. For information on Systemd-boot, see the `Systemd-boot
  6930. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6931. :term:`SYSTEMD_DEFAULT_TARGET`
  6932. This variable allows to set the default unit that systemd starts at bootup.
  6933. Usually, this is either ``multi-user.target`` or ``graphical.target``.
  6934. This works by creating a ``default.target`` symbolic link to the chosen systemd
  6935. target file.
  6936. See `systemd's documentation
  6937. <https://www.freedesktop.org/software/systemd/man/systemd.special.html>`__
  6938. for details.
  6939. For example, this variable is used in the :oe_git:`core-image-minimal-xfce.bb
  6940. </meta-openembedded/tree/meta-xfce/recipes-core/images/core-image-minimal-xfce.bb>`
  6941. recipe::
  6942. SYSTEMD_DEFAULT_TARGET = "graphical.target"
  6943. :term:`SYSTEMD_PACKAGES`
  6944. When inheriting the :ref:`ref-classes-systemd` class,
  6945. this variable locates the systemd unit files when they are not found
  6946. in the main recipe's package. By default, the :term:`SYSTEMD_PACKAGES`
  6947. variable is set such that the systemd unit files are assumed to
  6948. reside in the recipes main package::
  6949. SYSTEMD_PACKAGES ?= "${PN}"
  6950. If these unit files are not in this recipe's main package, you need
  6951. to use :term:`SYSTEMD_PACKAGES` to list the package or packages in which
  6952. the build system can find the systemd unit files.
  6953. :term:`SYSTEMD_SERVICE`
  6954. When inheriting the :ref:`ref-classes-systemd` class,
  6955. this variable specifies the systemd service name for a package.
  6956. Multiple services can be specified, each one separated by a space.
  6957. When you specify this file in your recipe, use a package name
  6958. override to indicate the package to which the value applies. Here is
  6959. an example from the connman recipe::
  6960. SYSTEMD_SERVICE:${PN} = "connman.service"
  6961. The package overrides that can be specified are directly related to the value of
  6962. :term:`SYSTEMD_PACKAGES`. Overrides not included in :term:`SYSTEMD_PACKAGES`
  6963. will be silently ignored.
  6964. :term:`SYSVINIT_ENABLED_GETTYS`
  6965. When using :ref:`SysVinit <dev-manual/new-recipe:enabling system services>`,
  6966. specifies a space-separated list of the virtual terminals that should
  6967. run a :wikipedia:`getty <Getty_(Unix)>` (allowing login), assuming
  6968. :term:`USE_VT` is not set to "0".
  6969. The default value for :term:`SYSVINIT_ENABLED_GETTYS` is "1" (i.e. only
  6970. run a getty on the first virtual terminal).
  6971. :term:`T`
  6972. This variable points to a directory were BitBake places temporary
  6973. files, which consist mostly of task logs and scripts, when building a
  6974. particular recipe. The variable is typically set as follows::
  6975. T = "${WORKDIR}/temp"
  6976. The :term:`WORKDIR` is the directory into which
  6977. BitBake unpacks and builds the recipe. The default ``bitbake.conf``
  6978. file sets this variable.
  6979. The :term:`T` variable is not to be confused with the
  6980. :term:`TMPDIR` variable, which points to the root of
  6981. the directory tree where BitBake places the output of an entire
  6982. build.
  6983. :term:`TARGET_ARCH`
  6984. The target machine's architecture. The OpenEmbedded build system
  6985. supports many architectures. Here is an example list of architectures
  6986. supported. This list is by no means complete as the architecture is
  6987. configurable:
  6988. - arm
  6989. - i586
  6990. - x86_64
  6991. - powerpc
  6992. - powerpc64
  6993. - mips
  6994. - mipsel
  6995. For additional information on machine architectures, see the
  6996. :term:`TUNE_ARCH` variable.
  6997. :term:`TARGET_AS_ARCH`
  6998. Specifies architecture-specific assembler flags for the target
  6999. system. :term:`TARGET_AS_ARCH` is initialized from
  7000. :term:`TUNE_ASARGS` by default in the BitBake
  7001. configuration file (``meta/conf/bitbake.conf``)::
  7002. TARGET_AS_ARCH = "${TUNE_ASARGS}"
  7003. :term:`TARGET_CC_ARCH`
  7004. Specifies architecture-specific C compiler flags for the target
  7005. system. :term:`TARGET_CC_ARCH` is initialized from
  7006. :term:`TUNE_CCARGS` by default.
  7007. .. note::
  7008. It is a common workaround to append :term:`LDFLAGS` to
  7009. :term:`TARGET_CC_ARCH` in recipes that build software for the target that
  7010. would not otherwise respect the exported :term:`LDFLAGS` variable.
  7011. :term:`TARGET_CC_KERNEL_ARCH`
  7012. This is a specific kernel compiler flag for a CPU or Application
  7013. Binary Interface (ABI) tune. The flag is used rarely and only for
  7014. cases where a userspace :term:`TUNE_CCARGS` is not
  7015. compatible with the kernel compilation. The :term:`TARGET_CC_KERNEL_ARCH`
  7016. variable allows the kernel (and associated modules) to use a
  7017. different configuration. See the
  7018. ``meta/conf/machine/include/arm/feature-arm-thumb.inc`` file in the
  7019. :term:`Source Directory` for an example.
  7020. :term:`TARGET_CFLAGS`
  7021. Specifies the flags to pass to the C compiler when building for the
  7022. target. When building in the target context,
  7023. :term:`CFLAGS` is set to the value of this variable by
  7024. default.
  7025. Additionally, the SDK's environment setup script sets the :term:`CFLAGS`
  7026. variable in the environment to the :term:`TARGET_CFLAGS` value so that
  7027. executables built using the SDK also have the flags applied.
  7028. :term:`TARGET_CPPFLAGS`
  7029. Specifies the flags to pass to the C pre-processor (i.e. to both the
  7030. C and the C++ compilers) when building for the target. When building
  7031. in the target context, :term:`CPPFLAGS` is set to the
  7032. value of this variable by default.
  7033. Additionally, the SDK's environment setup script sets the
  7034. :term:`CPPFLAGS` variable in the environment to the :term:`TARGET_CPPFLAGS`
  7035. value so that executables built using the SDK also have the flags
  7036. applied.
  7037. :term:`TARGET_CXXFLAGS`
  7038. Specifies the flags to pass to the C++ compiler when building for the
  7039. target. When building in the target context,
  7040. :term:`CXXFLAGS` is set to the value of this variable
  7041. by default.
  7042. Additionally, the SDK's environment setup script sets the
  7043. :term:`CXXFLAGS` variable in the environment to the :term:`TARGET_CXXFLAGS`
  7044. value so that executables built using the SDK also have the flags
  7045. applied.
  7046. :term:`TARGET_DBGSRC_DIR`
  7047. Specifies the target path to debug source files. The default is
  7048. ``/usr/src/debug/${PN}/${PV}``.
  7049. :term:`TARGET_FPU`
  7050. Specifies the method for handling FPU code. For FPU-less targets,
  7051. which include most ARM CPUs, the variable must be set to "soft". If
  7052. not, the kernel emulation gets used, which results in a performance
  7053. penalty.
  7054. :term:`TARGET_LD_ARCH`
  7055. Specifies architecture-specific linker flags for the target system.
  7056. :term:`TARGET_LD_ARCH` is initialized from
  7057. :term:`TUNE_LDARGS` by default in the BitBake
  7058. configuration file (``meta/conf/bitbake.conf``)::
  7059. TARGET_LD_ARCH = "${TUNE_LDARGS}"
  7060. :term:`TARGET_LDFLAGS`
  7061. Specifies the flags to pass to the linker when building for the
  7062. target. When building in the target context,
  7063. :term:`LDFLAGS` is set to the value of this variable
  7064. by default.
  7065. Additionally, the SDK's environment setup script sets the
  7066. :term:`LDFLAGS` variable in the environment to the
  7067. :term:`TARGET_LDFLAGS` value so that executables built using the SDK also
  7068. have the flags applied.
  7069. :term:`TARGET_OS`
  7070. Specifies the target's operating system. The variable can be set to
  7071. "linux" for glibc-based systems (GNU C Library) and to "linux-musl"
  7072. for musl libc. For ARM/EABI targets, the possible values are
  7073. "linux-gnueabi" and "linux-musleabi".
  7074. :term:`TARGET_PREFIX`
  7075. Specifies the prefix used for the toolchain binary target tools.
  7076. Depending on the type of recipe and the build target,
  7077. :term:`TARGET_PREFIX` is set as follows:
  7078. - For recipes building for the target machine, the value is
  7079. "${:term:`TARGET_SYS`}-".
  7080. - For native recipes, the build system sets the variable to the
  7081. value of :term:`BUILD_PREFIX`.
  7082. - For native SDK recipes (:ref:`ref-classes-nativesdk`),
  7083. the build system sets the variable to the value of :term:`SDK_PREFIX`.
  7084. :term:`TARGET_SYS`
  7085. Specifies the system, including the architecture and the operating
  7086. system, for which the build is occurring in the context of the
  7087. current recipe.
  7088. The OpenEmbedded build system automatically sets this variable based
  7089. on :term:`TARGET_ARCH`,
  7090. :term:`TARGET_VENDOR`, and
  7091. :term:`TARGET_OS` variables.
  7092. .. note::
  7093. You do not need to set the :term:`TARGET_SYS` variable yourself.
  7094. Consider these two examples:
  7095. - Given a native recipe on a 32-bit, x86 machine running Linux, the
  7096. value is "i686-linux".
  7097. - Given a recipe being built for a little-endian, MIPS target
  7098. running Linux, the value might be "mipsel-linux".
  7099. :term:`TARGET_VENDOR`
  7100. Specifies the name of the target vendor.
  7101. :term:`TCLIBC`
  7102. Specifies the GNU standard C library (``libc``) variant to use during
  7103. the build process.
  7104. You can select "glibc", "musl", "newlib", or "baremetal".
  7105. :term:`TCMODE`
  7106. Specifies the toolchain selector. :term:`TCMODE` controls the
  7107. characteristics of the generated packages and images by telling the
  7108. OpenEmbedded build system which toolchain profile to use. By default,
  7109. the OpenEmbedded build system builds its own internal toolchain. The
  7110. variable's default value is "default", which uses that internal
  7111. toolchain.
  7112. .. note::
  7113. If :term:`TCMODE` is set to a value other than "default", then it is your
  7114. responsibility to ensure that the toolchain is compatible with the
  7115. default toolchain. Using older or newer versions of these
  7116. components might cause build problems. See
  7117. :doc:`Release Information </migration-guides/index>` for your
  7118. version of the Yocto Project, to find the specific components with
  7119. which the toolchain must be compatible.
  7120. The :term:`TCMODE` variable is similar to :term:`TCLIBC`,
  7121. which controls the variant of the GNU standard C library (``libc``)
  7122. used during the build process: ``glibc`` or ``musl``.
  7123. With additional layers, it is possible to use a pre-compiled external
  7124. toolchain. One example is the Sourcery G++ Toolchain. The support for
  7125. this toolchain resides in the separate Mentor Graphics
  7126. ``meta-sourcery`` layer at
  7127. https://github.com/MentorEmbedded/meta-sourcery/.
  7128. The layer's ``README`` file contains information on how to use the
  7129. Sourcery G++ Toolchain as an external toolchain. You will have to
  7130. add the layer to your ``bblayers.conf`` file and then set the
  7131. :term:`EXTERNAL_TOOLCHAIN` variable in your ``local.conf`` file to
  7132. the location of the toolchain.
  7133. The fundamentals used for this example apply to any external
  7134. toolchain. You can use ``meta-sourcery`` as a template for adding
  7135. support for other external toolchains.
  7136. In addition to toolchain configuration, you will also need a
  7137. corresponding toolchain recipe file. This recipe file needs to package
  7138. up any pre-built objects in the toolchain such as ``libgcc``,
  7139. ``libstdcc++``, any locales, and ``libc``.
  7140. :term:`TC_CXX_RUNTIME`
  7141. Specifies the C/C++ STL and runtime variant to use during
  7142. the build process. Default value is 'gnu'
  7143. You can select "gnu", "llvm", or "android".
  7144. :term:`TEMPLATECONF`
  7145. Specifies the directory used by the build system to find templates
  7146. from which to build the ``bblayers.conf`` and ``local.conf`` files.
  7147. Use this variable if you wish to customize such files, and the default
  7148. BitBake targets shown when sourcing the ``oe-init-build-env`` script.
  7149. For details, see the
  7150. :ref:`dev-manual/custom-template-configuration-directory:creating a custom template configuration directory`
  7151. section in the Yocto Project Development Tasks manual.
  7152. .. note::
  7153. You must set this variable in the external environment in order
  7154. for it to work.
  7155. :term:`TEST_EXPORT_DIR`
  7156. The location the OpenEmbedded build system uses to export tests when
  7157. the :term:`TEST_EXPORT_ONLY` variable is set
  7158. to "1".
  7159. The :term:`TEST_EXPORT_DIR` variable defaults to
  7160. ``"${TMPDIR}/testimage/${PN}"``.
  7161. :term:`TEST_EXPORT_ONLY`
  7162. Specifies to export the tests only. Set this variable to "1" if you
  7163. do not want to run the tests but you want them to be exported in a
  7164. manner that you to run them outside of the build system.
  7165. :term:`TEST_LOG_DIR`
  7166. Holds the SSH log and the boot log for QEMU machines. The
  7167. :term:`TEST_LOG_DIR` variable defaults to ``"${WORKDIR}/testimage"``.
  7168. .. note::
  7169. Actual test results reside in the task log (``log.do_testimage``),
  7170. which is in the ``${WORKDIR}/temp/`` directory.
  7171. :term:`TEST_POWERCONTROL_CMD`
  7172. For automated hardware testing, specifies the command to use to
  7173. control the power of the target machine under test. Typically, this
  7174. command would point to a script that performs the appropriate action
  7175. (e.g. interacting with a web-enabled power strip). The specified
  7176. command should expect to receive as the last argument "off", "on" or
  7177. "cycle" specifying to power off, on, or cycle (power off and then
  7178. power on) the device, respectively.
  7179. :term:`TEST_POWERCONTROL_EXTRA_ARGS`
  7180. For automated hardware testing, specifies additional arguments to
  7181. pass through to the command specified in
  7182. :term:`TEST_POWERCONTROL_CMD`. Setting
  7183. :term:`TEST_POWERCONTROL_EXTRA_ARGS` is optional. You can use it if you
  7184. wish, for example, to separate the machine-specific and
  7185. non-machine-specific parts of the arguments.
  7186. :term:`TEST_QEMUBOOT_TIMEOUT`
  7187. The time in seconds allowed for an image to boot before automated
  7188. runtime tests begin to run against an image. The default timeout
  7189. period to allow the boot process to reach the login prompt is 500
  7190. seconds. You can specify a different value in the ``local.conf``
  7191. file.
  7192. For more information on testing images, see the
  7193. ":ref:`test-manual/runtime-testing:performing automated runtime testing`"
  7194. section in the Yocto Project Test Environment Manual.
  7195. :term:`TEST_SERIALCONTROL_CMD`
  7196. For automated hardware testing, specifies the command to use to
  7197. connect to the serial console of the target machine under test. This
  7198. command simply needs to connect to the serial console and forward
  7199. that connection to standard input and output as any normal terminal
  7200. program does.
  7201. For example, to use the Picocom terminal program on serial device
  7202. ``/dev/ttyUSB0`` at 115200bps, you would set the variable as follows::
  7203. TEST_SERIALCONTROL_CMD = "picocom /dev/ttyUSB0 -b 115200"
  7204. :term:`TEST_SERIALCONTROL_EXTRA_ARGS`
  7205. For automated hardware testing, specifies additional arguments to
  7206. pass through to the command specified in
  7207. :term:`TEST_SERIALCONTROL_CMD`. Setting
  7208. :term:`TEST_SERIALCONTROL_EXTRA_ARGS` is optional. You can use it if you
  7209. wish, for example, to separate the machine-specific and
  7210. non-machine-specific parts of the command.
  7211. :term:`TEST_SERVER_IP`
  7212. The IP address of the build machine (host machine). This IP address
  7213. is usually automatically detected. However, if detection fails, this
  7214. variable needs to be set to the IP address of the build machine (i.e.
  7215. where the build is taking place).
  7216. .. note::
  7217. The :term:`TEST_SERVER_IP` variable is only used for a small number of
  7218. tests such as the "dnf" test suite, which needs to download packages
  7219. from ``WORKDIR/oe-rootfs-repo``.
  7220. :term:`TEST_SUITES`
  7221. An ordered list of tests (modules) to run against an image when
  7222. performing automated runtime testing.
  7223. The OpenEmbedded build system provides a core set of tests that can
  7224. be used against images.
  7225. .. note::
  7226. Currently, there is only support for running these tests under
  7227. QEMU.
  7228. Tests include ``ping``, ``ssh``, ``df`` among others. You can add
  7229. your own tests to the list of tests by appending :term:`TEST_SUITES` as
  7230. follows::
  7231. TEST_SUITES:append = " mytest"
  7232. Alternatively, you can
  7233. provide the "auto" option to have all applicable tests run against
  7234. the image::
  7235. TEST_SUITES:append = " auto"
  7236. Using this option causes the
  7237. build system to automatically run tests that are applicable to the
  7238. image. Tests that are not applicable are skipped.
  7239. The order in which tests are run is important. Tests that depend on
  7240. another test must appear later in the list than the test on which
  7241. they depend. For example, if you append the list of tests with two
  7242. tests (``test_A`` and ``test_B``) where ``test_B`` is dependent on
  7243. ``test_A``, then you must order the tests as follows::
  7244. TEST_SUITES = "test_A test_B"
  7245. For more information on testing images, see the
  7246. ":ref:`test-manual/runtime-testing:performing automated runtime testing`"
  7247. section in the Yocto Project Test Environment Manual.
  7248. :term:`TEST_TARGET`
  7249. Specifies the target controller to use when running tests against a
  7250. test image. The default controller to use is "qemu"::
  7251. TEST_TARGET = "qemu"
  7252. A target controller is a class that defines how an image gets
  7253. deployed on a target and how a target is started. A layer can extend
  7254. the controllers by adding a module in the layer's
  7255. ``/lib/oeqa/controllers`` directory and by inheriting the
  7256. ``BaseTarget`` class, which is an abstract class that cannot be used
  7257. as a value of :term:`TEST_TARGET`.
  7258. You can provide the following arguments with :term:`TEST_TARGET`:
  7259. - *"qemu":* Boots a QEMU image and runs the tests. See the
  7260. ":ref:`test-manual/runtime-testing:enabling runtime tests on qemu`" section
  7261. in the Yocto Project Test Environment Manual for more
  7262. information.
  7263. - *"simpleremote":* Runs the tests on target hardware that is
  7264. already up and running. The hardware can be on the network or it
  7265. can be a device running an image on QEMU. You must also set
  7266. :term:`TEST_TARGET_IP` when you use
  7267. "simpleremote".
  7268. .. note::
  7269. This argument is defined in
  7270. ``meta/lib/oeqa/controllers/simpleremote.py``.
  7271. For information on running tests on hardware, see the
  7272. ":ref:`test-manual/runtime-testing:enabling runtime tests on hardware`"
  7273. section in the Yocto Project Test Environment Manual.
  7274. :term:`TEST_TARGET_IP`
  7275. The IP address of your hardware under test. The :term:`TEST_TARGET_IP`
  7276. variable has no effect when :term:`TEST_TARGET` is
  7277. set to "qemu".
  7278. When you specify the IP address, you can also include a port. Here is
  7279. an example::
  7280. TEST_TARGET_IP = "192.168.1.4:2201"
  7281. Specifying a port is
  7282. useful when SSH is started on a non-standard port or in cases when
  7283. your hardware under test is behind a firewall or network that is not
  7284. directly accessible from your host and you need to do port address
  7285. translation.
  7286. :term:`TESTIMAGE_AUTO`
  7287. Automatically runs the series of automated tests for images when an
  7288. image is successfully built. Setting :term:`TESTIMAGE_AUTO` to "1" causes
  7289. any image that successfully builds to automatically boot under QEMU.
  7290. Using the variable also adds in dependencies so that any SDK for
  7291. which testing is requested is automatically built first.
  7292. These tests are written in Python making use of the ``unittest``
  7293. module, and the majority of them run commands on the target system
  7294. over ``ssh``. You can set this variable to "1" in your ``local.conf``
  7295. file in the :term:`Build Directory` to have the
  7296. OpenEmbedded build system automatically run these tests after an
  7297. image successfully builds:
  7298. TESTIMAGE_AUTO = "1"
  7299. For more information
  7300. on enabling, running, and writing these tests, see the
  7301. ":ref:`test-manual/runtime-testing:performing automated runtime testing`"
  7302. section in the Yocto Project Test Environment Manual and the
  7303. ":ref:`ref-classes-testimage`" section.
  7304. :term:`TESTIMAGE_FAILED_QA_ARTIFACTS`
  7305. When using the :ref:`ref-classes-testimage` class, the variable
  7306. :term:`TESTIMAGE_FAILED_QA_ARTIFACTS` lists space-separated paths on the
  7307. target to retrieve onto the host.
  7308. :term:`THISDIR`
  7309. The directory in which the file BitBake is currently parsing is
  7310. located. Do not manually set this variable.
  7311. :term:`TIME`
  7312. The time the build was started. Times appear using the hour, minute,
  7313. and second (HMS) format (e.g. "140159" for one minute and fifty-nine
  7314. seconds past 1400 hours).
  7315. :term:`TMPDIR`
  7316. This variable is the base directory the OpenEmbedded build system
  7317. uses for all build output and intermediate files (other than the
  7318. shared state cache). By default, the :term:`TMPDIR` variable points to
  7319. ``tmp`` within the :term:`Build Directory`.
  7320. If you want to establish this directory in a location other than the
  7321. default, you can uncomment and edit the following statement in the
  7322. ``conf/local.conf`` file in the :term:`Source Directory`::
  7323. #TMPDIR = "${TOPDIR}/tmp"
  7324. An example use for this scenario is to set :term:`TMPDIR` to a local disk,
  7325. which does not use NFS, while having the :term:`Build Directory` use NFS.
  7326. The filesystem used by :term:`TMPDIR` must have standard filesystem
  7327. semantics (i.e. mixed-case files are unique, POSIX file locking, and
  7328. persistent inodes). Due to various issues with NFS and bugs in some
  7329. implementations, NFS does not meet this minimum requirement.
  7330. Consequently, :term:`TMPDIR` cannot be on NFS.
  7331. :term:`TOOLCHAIN_HOST_TASK`
  7332. This variable lists packages the OpenEmbedded build system uses when
  7333. building an SDK, which contains a cross-development environment. The
  7334. packages specified by this variable are part of the toolchain set
  7335. that runs on the :term:`SDKMACHINE`, and each
  7336. package should usually have the prefix ``nativesdk-``. For example,
  7337. consider the following command when building an SDK::
  7338. $ bitbake -c populate_sdk imagename
  7339. In this case, a default list of packages is
  7340. set in this variable, but you can add additional packages to the
  7341. list. See the
  7342. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  7343. in the Yocto Project Application Development and the Extensible
  7344. Software Development Kit (eSDK) manual for more information.
  7345. For background information on cross-development toolchains in the
  7346. Yocto Project development environment, see the
  7347. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  7348. section in the Yocto Project Overview and Concepts Manual. For
  7349. information on setting up a cross-development environment, see the
  7350. :doc:`/sdk-manual/index` manual.
  7351. Note that this variable applies to building an SDK, not an eSDK,
  7352. in which case the :term:`TOOLCHAIN_HOST_TASK_ESDK` setting should be
  7353. used instead.
  7354. :term:`TOOLCHAIN_HOST_TASK_ESDK`
  7355. This variable allows to extend what is installed in the host
  7356. portion of an eSDK. This is similar to :term:`TOOLCHAIN_HOST_TASK`
  7357. applying to SDKs.
  7358. :term:`TOOLCHAIN_OPTIONS`
  7359. This variable holds extra options passed to the compiler and the linker
  7360. for non ``-native`` recipes as they have to point to their custom
  7361. ``sysroot`` folder pointed to by :term:`RECIPE_SYSROOT`::
  7362. TOOLCHAIN_OPTIONS = " --sysroot=${RECIPE_SYSROOT}"
  7363. Native recipes don't need this variable to be set, as they are
  7364. built for the host machine with the native compiler.
  7365. :term:`TOOLCHAIN_OUTPUTNAME`
  7366. This variable defines the name used for the toolchain output. The
  7367. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class sets
  7368. the :term:`TOOLCHAIN_OUTPUTNAME` variable as follows::
  7369. TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${SDK_VERSION}"
  7370. See
  7371. the :term:`SDK_NAME` and
  7372. :term:`SDK_VERSION` variables for additional
  7373. information.
  7374. :term:`TOOLCHAIN_TARGET_TASK`
  7375. This variable lists packages the OpenEmbedded build system uses when
  7376. it creates the target part of an SDK (i.e. the part built for the
  7377. target hardware), which includes libraries and headers. Use this
  7378. variable to add individual packages to the part of the SDK that runs
  7379. on the target. See the
  7380. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  7381. in the Yocto Project Application Development and the Extensible
  7382. Software Development Kit (eSDK) manual for more information.
  7383. For background information on cross-development toolchains in the
  7384. Yocto Project development environment, see the
  7385. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  7386. section in the Yocto Project Overview and Concepts Manual. For
  7387. information on setting up a cross-development environment, see the
  7388. :doc:`/sdk-manual/index` manual.
  7389. :term:`TOPDIR`
  7390. See :term:`bitbake:TOPDIR` in the BitBake manual.
  7391. :term:`TRANSLATED_TARGET_ARCH`
  7392. A sanitized version of :term:`TARGET_ARCH`. This
  7393. variable is used where the architecture is needed in a value where
  7394. underscores are not allowed, for example within package filenames. In
  7395. this case, dash characters replace any underscore characters used in
  7396. :term:`TARGET_ARCH`.
  7397. Do not edit this variable.
  7398. :term:`TUNE_ARCH`
  7399. The GNU canonical architecture for a specific architecture (i.e.
  7400. ``arm``, ``armeb``, ``mips``, ``mips64``, and so forth). BitBake uses
  7401. this value to setup configuration.
  7402. :term:`TUNE_ARCH` definitions are specific to a given architecture. The
  7403. definitions can be a single static definition, or can be dynamically
  7404. adjusted. You can see details for a given CPU family by looking at
  7405. the architecture's ``README`` file. For example, the
  7406. ``meta/conf/machine/include/mips/README`` file in the
  7407. :term:`Source Directory` provides information for
  7408. :term:`TUNE_ARCH` specific to the ``mips`` architecture.
  7409. :term:`TUNE_ARCH` is tied closely to
  7410. :term:`TARGET_ARCH`, which defines the target
  7411. machine's architecture. The BitBake configuration file
  7412. (``meta/conf/bitbake.conf``) sets :term:`TARGET_ARCH` as follows::
  7413. TARGET_ARCH = "${TUNE_ARCH}"
  7414. The following list, which is by no means complete since architectures
  7415. are configurable, shows supported machine architectures:
  7416. - arm
  7417. - i586
  7418. - x86_64
  7419. - powerpc
  7420. - powerpc64
  7421. - mips
  7422. - mipsel
  7423. :term:`TUNE_ASARGS`
  7424. Specifies architecture-specific assembler flags for the target
  7425. system. The set of flags is based on the selected tune features.
  7426. :term:`TUNE_ASARGS` is set using the tune include files, which are
  7427. typically under ``meta/conf/machine/include/`` and are influenced
  7428. through :term:`TUNE_FEATURES`. For example, the
  7429. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  7430. for the x86 architecture as follows::
  7431. TUNE_ASARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-x32", "", d)}"
  7432. .. note::
  7433. Board Support Packages (BSPs) select the tune. The selected tune,
  7434. in turn, affects the tune variables themselves (i.e. the tune can
  7435. supply its own set of flags).
  7436. :term:`TUNE_CCARGS`
  7437. Specifies architecture-specific C compiler flags for the target
  7438. system. The set of flags is based on the selected tune features.
  7439. :term:`TUNE_CCARGS` is set using the tune include files, which are
  7440. typically under ``meta/conf/machine/include/`` and are influenced
  7441. through :term:`TUNE_FEATURES`.
  7442. .. note::
  7443. Board Support Packages (BSPs) select the tune. The selected tune,
  7444. in turn, affects the tune variables themselves (i.e. the tune can
  7445. supply its own set of flags).
  7446. :term:`TUNE_FEATURES`
  7447. Features used to "tune" a compiler for optimal use given a specific
  7448. processor. The features are defined within the tune files and allow
  7449. arguments (i.e. ``TUNE_*ARGS``) to be dynamically generated based on
  7450. the features.
  7451. The OpenEmbedded build system verifies the features to be sure they
  7452. are not conflicting and that they are supported.
  7453. The BitBake configuration file (``meta/conf/bitbake.conf``) defines
  7454. :term:`TUNE_FEATURES` as follows::
  7455. TUNE_FEATURES ??= "${TUNE_FEATURES:tune-${DEFAULTTUNE}}"
  7456. See the :term:`DEFAULTTUNE` variable for more information.
  7457. :term:`TUNE_LDARGS`
  7458. Specifies architecture-specific linker flags for the target system.
  7459. The set of flags is based on the selected tune features.
  7460. :term:`TUNE_LDARGS` is set using the tune include files, which are
  7461. typically under ``meta/conf/machine/include/`` and are influenced
  7462. through :term:`TUNE_FEATURES`. For example, the
  7463. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  7464. for the x86 architecture as follows::
  7465. TUNE_LDARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-m elf32_x86_64", "", d)}"
  7466. .. note::
  7467. Board Support Packages (BSPs) select the tune. The selected tune,
  7468. in turn, affects the tune variables themselves (i.e. the tune can
  7469. supply its own set of flags).
  7470. :term:`TUNE_PKGARCH`
  7471. The package architecture understood by the packaging system to define
  7472. the architecture, ABI, and tuning of output packages. The specific
  7473. tune is defined using the "_tune" override as follows::
  7474. TUNE_PKGARCH:tune-tune = "tune"
  7475. These tune-specific package architectures are defined in the machine
  7476. include files. Here is an example of the "core2-32" tuning as used in
  7477. the ``meta/conf/machine/include/x86/tune-core2.inc`` file::
  7478. TUNE_PKGARCH:tune-core2-32 = "core2-32"
  7479. :term:`TUNECONFLICTS[feature]`
  7480. Specifies CPU or Application Binary Interface (ABI) tuning features
  7481. that conflict with feature.
  7482. Known tuning conflicts are specified in the machine include files in
  7483. the :term:`Source Directory`. Here is an example from
  7484. the ``meta/conf/machine/include/mips/arch-mips.inc`` include file
  7485. that lists the "o32" and "n64" features as conflicting with the "n32"
  7486. feature::
  7487. TUNECONFLICTS[n32] = "o32 n64"
  7488. :term:`TUNEVALID[feature]`
  7489. Specifies a valid CPU or Application Binary Interface (ABI) tuning
  7490. feature. The specified feature is stored as a flag. Valid features
  7491. are specified in the machine include files (e.g.
  7492. ``meta/conf/machine/include/arm/arch-arm.inc``). Here is an example
  7493. from that file::
  7494. TUNEVALID[bigendian] = "Enable big-endian mode."
  7495. See the machine include files in the :term:`Source Directory`
  7496. for these features.
  7497. :term:`UBOOT_BINARY`
  7498. Specifies the name of the binary build by U-Boot.
  7499. :term:`UBOOT_CONFIG`
  7500. Configures one or more U-Boot configurations to build. Each
  7501. configuration can define the :term:`UBOOT_MACHINE` and optionally the
  7502. :term:`IMAGE_FSTYPES` and the :term:`UBOOT_BINARY`.
  7503. Here is an example from the ``meta-freescale`` layer. ::
  7504. UBOOT_CONFIG ??= "sdcard-ifc-secure-boot sdcard-ifc sdcard-qspi lpuart qspi secure-boot nor"
  7505. UBOOT_CONFIG[nor] = "ls1021atwr_nor_defconfig"
  7506. UBOOT_CONFIG[sdcard-ifc] = "ls1021atwr_sdcard_ifc_defconfig,,u-boot-with-spl-pbl.bin"
  7507. UBOOT_CONFIG[sdcard-qspi] = "ls1021atwr_sdcard_qspi_defconfig,,u-boot-with-spl-pbl.bin"
  7508. UBOOT_CONFIG[lpuart] = "ls1021atwr_nor_lpuart_defconfig"
  7509. UBOOT_CONFIG[qspi] = "ls1021atwr_qspi_defconfig"
  7510. UBOOT_CONFIG[secure-boot] = "ls1021atwr_nor_SECURE_BOOT_defconfig"
  7511. UBOOT_CONFIG[sdcard-ifc-secure-boot] = "ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig,,u-boot-with-spl-pbl.bin"
  7512. In this example, all possible seven configurations are selected. Each
  7513. configuration specifies "..._defconfig" as :term:`UBOOT_MACHINE`, and
  7514. the "sd..." configurations define an individual name for
  7515. :term:`UBOOT_BINARY`. No configuration defines a second parameter for
  7516. :term:`IMAGE_FSTYPES` to use for the U-Boot image.
  7517. For more information on how the :term:`UBOOT_CONFIG` is handled, see the
  7518. :ref:`ref-classes-uboot-config` class.
  7519. :term:`UBOOT_DTB_LOADADDRESS`
  7520. Specifies the load address for the dtb image used by U-Boot. During FIT
  7521. image creation, the :term:`UBOOT_DTB_LOADADDRESS` variable is used in
  7522. :ref:`ref-classes-kernel-fitimage` class to specify the load address to be
  7523. used in creating the dtb sections of Image Tree Source for the FIT image.
  7524. :term:`UBOOT_DTBO_LOADADDRESS`
  7525. Specifies the load address for the dtbo image used by U-Boot. During FIT
  7526. image creation, the :term:`UBOOT_DTBO_LOADADDRESS` variable is used in
  7527. :ref:`ref-classes-kernel-fitimage` class to specify the load address to be
  7528. used in creating the dtbo sections of Image Tree Source for the FIT image.
  7529. :term:`UBOOT_ENTRYPOINT`
  7530. Specifies the entry point for the U-Boot image. During U-Boot image
  7531. creation, the :term:`UBOOT_ENTRYPOINT` variable is passed as a
  7532. command-line parameter to the ``uboot-mkimage`` utility.
  7533. To pass a 64 bit address for FIT image creation, you will need to set:
  7534. - The :term:`FIT_ADDRESS_CELLS` variable for FIT image creation.
  7535. - The :term:`UBOOT_FIT_ADDRESS_CELLS` variable for U-Boot FIT image creation.
  7536. This variable is used by the :ref:`ref-classes-kernel-fitimage`,
  7537. :ref:`ref-classes-kernel-uimage`, :ref:`ref-classes-kernel`,
  7538. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  7539. classes.
  7540. :term:`UBOOT_FIT_ADDRESS_CELLS`
  7541. Specifies the value of the ``#address-cells`` value for the
  7542. description of the U-Boot FIT image.
  7543. The default value is set to "1" by the :ref:`ref-classes-uboot-sign`
  7544. class, which corresponds to 32 bit addresses.
  7545. For platforms that need to set 64 bit addresses in
  7546. :term:`UBOOT_LOADADDRESS` and :term:`UBOOT_ENTRYPOINT`, you need to
  7547. set this value to "2", as two 32 bit values (cells) will be needed
  7548. to represent such addresses.
  7549. Here is an example setting "0x400000000" as a load address::
  7550. UBOOT_FIT_ADDRESS_CELLS = "2"
  7551. UBOOT_LOADADDRESS= "0x04 0x00000000"
  7552. See `more details about #address-cells <https://elinux.org/Device_Tree_Usage#How_Addressing_Works>`__.
  7553. :term:`UBOOT_FIT_DESC`
  7554. Specifies the description string encoded into a U-Boot fitImage. The default
  7555. value is set by the :ref:`ref-classes-uboot-sign` class as follows::
  7556. UBOOT_FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
  7557. :term:`UBOOT_FIT_GENERATE_KEYS`
  7558. Decides whether to generate the keys for signing the U-Boot fitImage if
  7559. they don't already exist. The keys are created in :term:`SPL_SIGN_KEYDIR`.
  7560. The default value is "0".
  7561. Enable this as follows::
  7562. UBOOT_FIT_GENERATE_KEYS = "1"
  7563. This variable is used in the :ref:`ref-classes-uboot-sign` class.
  7564. :term:`UBOOT_FIT_HASH_ALG`
  7565. Specifies the hash algorithm used in creating the U-Boot FIT Image.
  7566. It is set by default to ``sha256`` by the :ref:`ref-classes-uboot-sign`
  7567. class.
  7568. :term:`UBOOT_FIT_KEY_GENRSA_ARGS`
  7569. Arguments to ``openssl genrsa`` for generating a RSA private key for
  7570. signing the U-Boot FIT image. The default value of this variable
  7571. is set to "-F4" by the :ref:`ref-classes-uboot-sign` class.
  7572. :term:`UBOOT_FIT_KEY_REQ_ARGS`
  7573. Arguments to ``openssl req`` for generating a certificate for signing
  7574. the U-Boot FIT image. The default value is "-batch -new" by the
  7575. :ref:`ref-classes-uboot-sign` class, "batch" for
  7576. non interactive mode and "new" for generating new keys.
  7577. :term:`UBOOT_FIT_KEY_SIGN_PKCS`
  7578. Format for the public key certificate used for signing the U-Boot FIT
  7579. image. The default value is set to "x509" by the
  7580. :ref:`ref-classes-uboot-sign` class.
  7581. :term:`UBOOT_FIT_SIGN_ALG`
  7582. Specifies the signature algorithm used in creating the U-Boot FIT Image.
  7583. This variable is set by default to "rsa2048" by the
  7584. :ref:`ref-classes-uboot-sign` class.
  7585. :term:`UBOOT_FIT_SIGN_NUMBITS`
  7586. Size of the private key used in signing the U-Boot FIT image, in number
  7587. of bits. The default value for this variable is set to "2048"
  7588. by the :ref:`ref-classes-uboot-sign` class.
  7589. :term:`UBOOT_FITIMAGE_ENABLE`
  7590. This variable allows to generate a FIT image for U-Boot, which is one
  7591. of the ways to implement a verified boot process.
  7592. Its default value is "0", so set it to "1" to enable this functionality::
  7593. UBOOT_FITIMAGE_ENABLE = "1"
  7594. See the :ref:`ref-classes-uboot-sign` class for details.
  7595. :term:`UBOOT_LOADADDRESS`
  7596. Specifies the load address for the U-Boot image. During U-Boot image
  7597. creation, the :term:`UBOOT_LOADADDRESS` variable is passed as a
  7598. command-line parameter to the ``uboot-mkimage`` utility.
  7599. To pass a 64 bit address, you will also need to set:
  7600. - The :term:`FIT_ADDRESS_CELLS` variable for FIT image creation.
  7601. - The :term:`UBOOT_FIT_ADDRESS_CELLS` variable for U-Boot FIT image creation.
  7602. This variable is used by the :ref:`ref-classes-kernel-fitimage`,
  7603. :ref:`ref-classes-kernel-uimage`, :ref:`ref-classes-kernel`,
  7604. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  7605. classes.
  7606. :term:`UBOOT_LOCALVERSION`
  7607. Appends a string to the name of the local version of the U-Boot
  7608. image. For example, assuming the version of the U-Boot image built
  7609. was "2013.10", the full version string reported by U-Boot would be
  7610. "2013.10-yocto" given the following statement::
  7611. UBOOT_LOCALVERSION = "-yocto"
  7612. :term:`UBOOT_MACHINE`
  7613. Specifies the value passed on the ``make`` command line when building
  7614. a U-Boot image. The value indicates the target platform
  7615. configuration. You typically set this variable from the machine
  7616. configuration file (i.e. ``conf/machine/machine_name.conf``).
  7617. Please see the "Selection of Processor Architecture and Board Type"
  7618. section in the U-Boot README for valid values for this variable.
  7619. :term:`UBOOT_MAKE_TARGET`
  7620. Specifies the target called in the ``Makefile``. The default target
  7621. is "all".
  7622. :term:`UBOOT_MKIMAGE`
  7623. Specifies the name of the mkimage command as used by the
  7624. :ref:`ref-classes-kernel-fitimage` class to assemble
  7625. the FIT image. This can be used to substitute an alternative command, wrapper
  7626. script or function if desired. The default is "uboot-mkimage".
  7627. :term:`UBOOT_MKIMAGE_DTCOPTS`
  7628. Options for the device tree compiler passed to ``mkimage -D`` feature
  7629. while creating a FIT image with the :ref:`ref-classes-kernel-fitimage`
  7630. class. If :term:`UBOOT_MKIMAGE_DTCOPTS` is not set then the
  7631. :ref:`ref-classes-kernel-fitimage` class will not pass the ``-D`` option
  7632. to ``mkimage``.
  7633. This variable is also used by the :ref:`ref-classes-uboot-sign` class.
  7634. :term:`UBOOT_MKIMAGE_KERNEL_TYPE`
  7635. Specifies the type argument for the kernel as passed to ``uboot-mkimage``.
  7636. The default value is "kernel".
  7637. :term:`UBOOT_MKIMAGE_SIGN`
  7638. Specifies the name of the mkimage command as used by the
  7639. :ref:`ref-classes-kernel-fitimage` class to sign
  7640. the FIT image after it has been assembled (if enabled). This can be used
  7641. to substitute an alternative command, wrapper script or function if
  7642. desired. The default is "${:term:`UBOOT_MKIMAGE`}".
  7643. :term:`UBOOT_MKIMAGE_SIGN_ARGS`
  7644. Optionally specifies additional arguments for the
  7645. :ref:`ref-classes-kernel-fitimage` class to pass to the
  7646. mkimage command when signing the FIT image.
  7647. :term:`UBOOT_RD_ENTRYPOINT`
  7648. Specifies the entrypoint for the RAM disk image. During FIT image
  7649. creation, the :term:`UBOOT_RD_ENTRYPOINT` variable is used in
  7650. :ref:`ref-classes-kernel-fitimage` class to specify the entrypoint to be
  7651. used in creating the Image Tree Source for the FIT image.
  7652. :term:`UBOOT_RD_LOADADDRESS`
  7653. Specifies the load address for the RAM disk image. During FIT image
  7654. creation, the :term:`UBOOT_RD_LOADADDRESS` variable is used in
  7655. :ref:`ref-classes-kernel-fitimage` class to specify the load address to
  7656. be used in creating the Image Tree Source for the FIT image.
  7657. :term:`UBOOT_SIGN_ENABLE`
  7658. Enable signing of FIT image. The default value is "0".
  7659. This variable is used by the :ref:`ref-classes-kernel-fitimage`,
  7660. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  7661. classes.
  7662. :term:`UBOOT_SIGN_KEYDIR`
  7663. Location of the directory containing the RSA key and certificate used for
  7664. signing FIT image, used by the :ref:`ref-classes-kernel-fitimage` and
  7665. :ref:`ref-classes-uboot-sign` classes.
  7666. :term:`UBOOT_SIGN_KEYNAME`
  7667. The name of keys used by the :ref:`ref-classes-kernel-fitimage` class
  7668. for signing U-Boot FIT image stored in the :term:`UBOOT_SIGN_KEYDIR`
  7669. directory. If we have for example a ``dev.key`` key and a ``dev.crt``
  7670. certificate stored in the :term:`UBOOT_SIGN_KEYDIR` directory, you will
  7671. have to set :term:`UBOOT_SIGN_KEYNAME` to ``dev``.
  7672. :term:`UBOOT_SUFFIX`
  7673. Points to the generated U-Boot extension. For example, ``u-boot.sb``
  7674. has a ``.sb`` extension.
  7675. The default U-Boot extension is ``.bin``
  7676. :term:`UBOOT_TARGET`
  7677. Specifies the target used for building U-Boot. The target is passed
  7678. directly as part of the "make" command (e.g. SPL and AIS). If you do
  7679. not specifically set this variable, the OpenEmbedded build process
  7680. passes and uses "all" for the target during the U-Boot building
  7681. process.
  7682. :term:`UKIFY_CMD`
  7683. When inheriting the :ref:`ref-classes-uki` class,
  7684. `ukify <https://www.freedesktop.org/software/systemd/man/latest/ukify.html>`__ command to build
  7685. `Unified Kernel Image (UKI) <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  7686. Defaults to ``ukify build``.
  7687. :term:`UKI_CMDLINE`
  7688. When inheriting the :ref:`ref-classes-uki` class, the kernel command line
  7689. to use when booting the `Unified Kernel Image (UKI)
  7690. <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  7691. Defaults to ``rootwait root=LABEL=root console=${KERNEL_CONSOLE}``.
  7692. :term:`UKI_CONFIG_FILE`
  7693. When inheriting the :ref:`ref-classes-uki` class, an optional config
  7694. file for the `ukify
  7695. <https://www.freedesktop.org/software/systemd/man/latest/ukify.html>`__
  7696. command.
  7697. :term:`UKI_FILENAME`
  7698. When inheriting the :ref:`ref-classes-uki` class, the output file name
  7699. for the generated `Unified Kernel Image (UKI)
  7700. <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  7701. Defaults to ``uki.efi``.
  7702. :term:`UKI_KERNEL_FILENAME`
  7703. When inheriting the :ref:`ref-classes-uki` class, the kernel image file
  7704. name to use as input. Defaults to :term:`KERNEL_IMAGETYPE`.
  7705. :term:`UKI_SB_CERT`
  7706. When inheriting the :ref:`ref-classes-uki` class, optional UEFI
  7707. secureboot certificate matching the private key in :term:`UKI_SB_KEY`.
  7708. :term:`UKI_SB_KEY`
  7709. When inheriting the :ref:`ref-classes-uki` class, optional UEFI
  7710. secureboot private key to sign the `Unified Kernel Image (UKI)
  7711. <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  7712. :term:`UNKNOWN_CONFIGURE_OPT_IGNORE`
  7713. Specifies a list of options that, if reported by the configure script
  7714. as being invalid, should not generate a warning during the
  7715. :ref:`ref-tasks-configure` task. Normally, invalid
  7716. configure options are simply not passed to the configure script (e.g.
  7717. should be removed from :term:`EXTRA_OECONF` or
  7718. :term:`PACKAGECONFIG_CONFARGS`).
  7719. However, there are common options that are passed to all
  7720. configure scripts at a class level, but might not be valid for some
  7721. configure scripts. Therefore warnings about these options are useless.
  7722. For these cases, the options are added to :term:`UNKNOWN_CONFIGURE_OPT_IGNORE`.
  7723. The configure arguments check that uses
  7724. :term:`UNKNOWN_CONFIGURE_OPT_IGNORE` is part of the
  7725. :ref:`ref-classes-insane` class and is only enabled if the
  7726. recipe inherits the :ref:`ref-classes-autotools` class.
  7727. :term:`UNPACKDIR`
  7728. This variable, used by the :ref:`ref-classes-base` class,
  7729. specifies where fetches sources should be unpacked by the
  7730. :ref:`ref-tasks-unpack` task.
  7731. :term:`UPDATERCPN`
  7732. For recipes inheriting the
  7733. :ref:`ref-classes-update-rc.d` class, :term:`UPDATERCPN`
  7734. specifies the package that contains the initscript that is enabled.
  7735. The default value is "${PN}". Given that almost all recipes that
  7736. install initscripts package them in the main package for the recipe,
  7737. you rarely need to set this variable in individual recipes.
  7738. :term:`UPSTREAM_CHECK_COMMITS`
  7739. You can perform a per-recipe check for what the latest upstream
  7740. source code version is by calling ``devtool latest-version recipe``. If
  7741. the recipe source code is provided from Git repositories, but
  7742. releases are not identified by Git tags, set :term:`UPSTREAM_CHECK_COMMITS`
  7743. to ``1`` in the recipe, and the OpenEmbedded build system
  7744. will compare the latest commit with the one currently specified
  7745. by the recipe (:term:`SRCREV`)::
  7746. UPSTREAM_CHECK_COMMITS = "1"
  7747. :term:`UPSTREAM_CHECK_GITTAGREGEX`
  7748. You can perform a per-recipe check for what the latest upstream
  7749. source code version is by calling ``devtool latest-version recipe``. If
  7750. the recipe source code is provided from Git repositories, the
  7751. OpenEmbedded build system determines the latest upstream version by
  7752. picking the latest tag from the list of all repository tags.
  7753. You can use the :term:`UPSTREAM_CHECK_GITTAGREGEX` variable to provide a
  7754. regular expression to filter only the relevant tags should the
  7755. default filter not work correctly::
  7756. UPSTREAM_CHECK_GITTAGREGEX = "git_tag_regex"
  7757. :term:`UPSTREAM_CHECK_REGEX`
  7758. Use the :term:`UPSTREAM_CHECK_REGEX` variable to specify a different
  7759. regular expression instead of the default one when the package
  7760. checking system is parsing the page found using
  7761. :term:`UPSTREAM_CHECK_URI`::
  7762. UPSTREAM_CHECK_REGEX = "package_regex"
  7763. :term:`UPSTREAM_CHECK_URI`
  7764. You can perform a per-recipe check for what the latest upstream
  7765. source code version is by calling ``devtool latest-version recipe``. If
  7766. the source code is provided from tarballs, the latest version is
  7767. determined by fetching the directory listing where the tarball is and
  7768. attempting to find a later tarball. When this approach does not work,
  7769. you can use :term:`UPSTREAM_CHECK_URI` to provide a different URI that
  7770. contains the link to the latest tarball::
  7771. UPSTREAM_CHECK_URI = "recipe_url"
  7772. :term:`UPSTREAM_VERSION_UNKNOWN`
  7773. You can perform a per-recipe check for what the latest upstream
  7774. source code version is by calling ``devtool latest-version recipe``.
  7775. If no combination of the :term:`UPSTREAM_CHECK_URI`, :term:`UPSTREAM_CHECK_REGEX`,
  7776. :term:`UPSTREAM_CHECK_GITTAGREGEX` and :term:`UPSTREAM_CHECK_COMMITS` variables in
  7777. the recipe allows to determine what the latest upstream version is,
  7778. you can set :term:`UPSTREAM_VERSION_UNKNOWN` to ``1`` in the recipe
  7779. to acknowledge that the check cannot be performed::
  7780. UPSTREAM_VERSION_UNKNOWN = "1"
  7781. :term:`USE_DEVFS`
  7782. Determines if ``devtmpfs`` is used for ``/dev`` population. The
  7783. default value used for :term:`USE_DEVFS` is "1" when no value is
  7784. specifically set. Typically, you would set :term:`USE_DEVFS` to "0" for a
  7785. statically populated ``/dev`` directory.
  7786. See the ":ref:`dev-manual/device-manager:selecting a device manager`" section in
  7787. the Yocto Project Development Tasks Manual for information on how to
  7788. use this variable.
  7789. :term:`USE_VT`
  7790. When using
  7791. :ref:`SysVinit <dev-manual/new-recipe:enabling system services>`,
  7792. determines whether or not to run a :wikipedia:`getty <Getty_(Unix)>`
  7793. on any virtual terminals in order to enable logging in through those
  7794. terminals.
  7795. The default value used for :term:`USE_VT` is "1" when no default value is
  7796. specifically set. Typically, you would set :term:`USE_VT` to "0" in the
  7797. machine configuration file for machines that do not have a graphical
  7798. display attached and therefore do not need virtual terminal
  7799. functionality.
  7800. :term:`USER_CLASSES`
  7801. A list of classes to globally inherit. These classes are used by the
  7802. OpenEmbedded build system to enable extra features.
  7803. Classes inherited using :term:`USER_CLASSES` must be located in the
  7804. ``classes-global/`` or ``classes/`` subdirectories.
  7805. The default list is set in your ``local.conf`` file::
  7806. USER_CLASSES ?= "buildstats"
  7807. For more information, see
  7808. ``meta-poky/conf/templates/default/local.conf.sample`` in the
  7809. :term:`Source Directory`.
  7810. :term:`USERADD_DEPENDS`
  7811. Specifies a list of recipes that create users / groups (via
  7812. :term:`USERADD_PARAM` / :term:`GROUPADD_PARAM`) which a recipe
  7813. depends upon. This ensures that those users / groups are available
  7814. when building a recipe.
  7815. :term:`USERADD_ERROR_DYNAMIC`
  7816. If set to ``error``, forces the OpenEmbedded build system to produce
  7817. an error if the user identification (``uid``) and group
  7818. identification (``gid``) values are not defined in any of the files
  7819. listed in :term:`USERADD_UID_TABLES` and
  7820. :term:`USERADD_GID_TABLES`. If set to
  7821. ``warn``, a warning will be issued instead.
  7822. The default behavior for the build system is to dynamically apply
  7823. ``uid`` and ``gid`` values. Consequently, the
  7824. :term:`USERADD_ERROR_DYNAMIC` variable is by default not set. If you plan
  7825. on using statically assigned ``gid`` and ``uid`` values, you should
  7826. set the :term:`USERADD_ERROR_DYNAMIC` variable in your ``local.conf``
  7827. file as follows::
  7828. USERADD_ERROR_DYNAMIC = "error"
  7829. Overriding the
  7830. default behavior implies you are going to also take steps to set
  7831. static ``uid`` and ``gid`` values through use of the
  7832. :term:`USERADDEXTENSION`,
  7833. :term:`USERADD_UID_TABLES`, and
  7834. :term:`USERADD_GID_TABLES` variables.
  7835. .. note::
  7836. There is a difference in behavior between setting
  7837. :term:`USERADD_ERROR_DYNAMIC` to ``error`` and setting it to ``warn``.
  7838. When it is set to ``warn``, the build system will report a warning for
  7839. every undefined ``uid`` and ``gid`` in any recipe. But when it is set
  7840. to ``error``, it will only report errors for recipes that are actually
  7841. built.
  7842. This saves you from having to add static IDs for recipes that you
  7843. know will never be built.
  7844. :term:`USERADD_GID_TABLES`
  7845. Specifies a password file to use for obtaining static group
  7846. identification (``gid``) values when the OpenEmbedded build system
  7847. adds a group to the system during package installation.
  7848. When applying static group identification (``gid``) values, the
  7849. OpenEmbedded build system looks in :term:`BBPATH` for a
  7850. ``files/group`` file and then applies those ``uid`` values. Set the
  7851. variable as follows in your ``local.conf`` file::
  7852. USERADD_GID_TABLES = "files/group"
  7853. .. note::
  7854. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  7855. causes the build system to use static ``gid`` values.
  7856. :term:`USERADD_PACKAGES`
  7857. When inheriting the :ref:`ref-classes-useradd` class,
  7858. this variable specifies the individual packages within the recipe
  7859. that require users and/or groups to be added.
  7860. You must set this variable if the recipe inherits the class. For
  7861. example, the following enables adding a user for the main package in
  7862. a recipe::
  7863. USERADD_PACKAGES = "${PN}"
  7864. .. note::
  7865. It follows that if you are going to use the :term:`USERADD_PACKAGES`
  7866. variable, you need to set one or more of the :term:`USERADD_PARAM`,
  7867. :term:`GROUPADD_PARAM`, or :term:`GROUPMEMS_PARAM` variables.
  7868. :term:`USERADD_PARAM`
  7869. When inheriting the :ref:`ref-classes-useradd` class,
  7870. this variable specifies for a package what parameters should pass to
  7871. the ``useradd`` command if you add a user to the system when the
  7872. package is installed.
  7873. Here is an example from the ``dbus`` recipe::
  7874. USERADD_PARAM:${PN} = "--system --home ${localstatedir}/lib/dbus \
  7875. --no-create-home --shell /bin/false \
  7876. --user-group messagebus"
  7877. For information on the
  7878. standard Linux shell command ``useradd``, see
  7879. https://linux.die.net/man/8/useradd.
  7880. :term:`USERADD_UID_TABLES`
  7881. Specifies a password file to use for obtaining static user
  7882. identification (``uid``) values when the OpenEmbedded build system
  7883. adds a user to the system during package installation.
  7884. When applying static user identification (``uid``) values, the
  7885. OpenEmbedded build system looks in :term:`BBPATH` for a
  7886. ``files/passwd`` file and then applies those ``uid`` values. Set the
  7887. variable as follows in your ``local.conf`` file::
  7888. USERADD_UID_TABLES = "files/passwd"
  7889. .. note::
  7890. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  7891. causes the build system to use static ``uid`` values.
  7892. :term:`USERADDEXTENSION`
  7893. When set to "useradd-staticids", causes the OpenEmbedded build system
  7894. to base all user and group additions on a static ``passwd`` and
  7895. ``group`` files found in :term:`BBPATH`.
  7896. To use static user identification (``uid``) and group identification
  7897. (``gid``) values, set the variable as follows in your ``local.conf``
  7898. file: USERADDEXTENSION = "useradd-staticids"
  7899. .. note::
  7900. Setting this variable to use static ``uid`` and ``gid``
  7901. values causes the OpenEmbedded build system to employ the
  7902. :ref:`ref-classes-useradd` class.
  7903. If you use static ``uid`` and ``gid`` information, you must also
  7904. specify the ``files/passwd`` and ``files/group`` files by setting the
  7905. :term:`USERADD_UID_TABLES` and
  7906. :term:`USERADD_GID_TABLES` variables.
  7907. Additionally, you should also set the
  7908. :term:`USERADD_ERROR_DYNAMIC` variable.
  7909. :term:`VIRTUAL-RUNTIME`
  7910. :term:`VIRTUAL-RUNTIME` is a commonly used prefix for defining virtual
  7911. packages for runtime usage, typically for use in :term:`RDEPENDS`
  7912. or in image definitions.
  7913. An example is ``VIRTUAL-RUNTIME_base-utils`` that makes it possible
  7914. to either use BusyBox based utilities::
  7915. VIRTUAL-RUNTIME_base-utils = "busybox"
  7916. or their full featured implementations from GNU Coreutils
  7917. and other projects::
  7918. VIRTUAL-RUNTIME_base-utils = "packagegroup-core-base-utils"
  7919. Here are two examples using this virtual runtime package. The
  7920. first one is in :yocto_git:`initramfs-framework_1.0.bb
  7921. </poky/tree/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb?h=scarthgap>`::
  7922. RDEPENDS:${PN} += "${VIRTUAL-RUNTIME_base-utils}"
  7923. The second example is in the :yocto_git:`core-image-initramfs-boot
  7924. </poky/tree/meta/recipes-core/images/core-image-initramfs-boot.bb?h=scarthgap>`
  7925. image definition::
  7926. PACKAGE_INSTALL = "${INITRAMFS_SCRIPTS} ${VIRTUAL-RUNTIME_base-utils} base-passwd"
  7927. :term:`WARN_QA`
  7928. Specifies the quality assurance checks whose failures are reported as
  7929. warnings by the OpenEmbedded build system. You set this variable in
  7930. your distribution configuration file. For a list of the checks you
  7931. can control with this variable, see the
  7932. ":ref:`ref-classes-insane`" section.
  7933. :term:`WATCHDOG_TIMEOUT`
  7934. Specifies the timeout in seconds used by the ``watchdog`` recipe and
  7935. also by ``systemd`` during reboot. The default is 60 seconds.
  7936. :term:`WIC_SECTOR_SIZE`
  7937. The variable :term:`WIC_SECTOR_SIZE` controls the sector size of Wic
  7938. images. In the background, this controls the value of the
  7939. ``PARTED_SECTOR_SIZE`` environment variable passed to the ``parted``
  7940. command-line utility, used to generated the images. The default value is
  7941. ``512``.
  7942. For more information on how to create Wic images, see the
  7943. ":ref:`dev-manual/wic:creating partitioned images using wic`" section in
  7944. the Yocto Project Development Tasks Manual.
  7945. :term:`WIRELESS_DAEMON`
  7946. For ``connman`` and ``packagegroup-base``, specifies the wireless
  7947. daemon to use. The default is "wpa-supplicant" (note that the value
  7948. uses a dash and not an underscore).
  7949. :term:`WKS_FILE`
  7950. Specifies the location of the Wic kickstart file that is used by the
  7951. OpenEmbedded build system to create a partitioned image
  7952. (``image.wic``). For information on how to create a partitioned
  7953. image, see the
  7954. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  7955. section in the Yocto Project Development Tasks Manual. For details on
  7956. the kickstart file format, see the ":doc:`/ref-manual/kickstart`" Chapter.
  7957. :term:`WKS_FILE_DEPENDS`
  7958. When placed in the recipe that builds your image, this variable lists
  7959. build-time dependencies. The :term:`WKS_FILE_DEPENDS` variable is only
  7960. applicable when Wic images are active (i.e. when
  7961. :term:`IMAGE_FSTYPES` contains entries related
  7962. to Wic). If your recipe does not create Wic images, the variable has
  7963. no effect.
  7964. The :term:`WKS_FILE_DEPENDS` variable is similar to the
  7965. :term:`DEPENDS` variable. When you use the variable in
  7966. your recipe that builds the Wic image, dependencies you list in the
  7967. :term:`WKS_FILE_DEPENDS` variable are added to the :term:`DEPENDS` variable.
  7968. With the :term:`WKS_FILE_DEPENDS` variable, you have the possibility to
  7969. specify a list of additional dependencies (e.g. native tools,
  7970. bootloaders, and so forth), that are required to build Wic images.
  7971. Here is an example::
  7972. WKS_FILE_DEPENDS = "some-native-tool"
  7973. In the
  7974. previous example, some-native-tool would be replaced with an actual
  7975. native tool on which the build would depend.
  7976. :term:`WKS_FILES`
  7977. Specifies a list of candidate Wic kickstart files to be used by the
  7978. OpenEmbedded build system to create a partitioned image. Only the
  7979. first one that is found, from left to right, will be used.
  7980. This is only useful when there are multiple ``.wks`` files that can be
  7981. used to produce an image. A typical case is when multiple layers are
  7982. used for different hardware platforms, each supplying a different
  7983. ``.wks`` file. In this case, you specify all possible ones through
  7984. :term:`WKS_FILES`.
  7985. If only one ``.wks`` file is used, set :term:`WKS_FILE` instead.
  7986. :term:`WORKDIR`
  7987. The pathname of the work directory in which the OpenEmbedded build
  7988. system builds a recipe. This directory is located within the
  7989. :term:`TMPDIR` directory structure and is specific to
  7990. the recipe being built and the system for which it is being built.
  7991. The :term:`WORKDIR` directory is defined as follows::
  7992. ${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}
  7993. The actual directory depends on several things:
  7994. - :term:`TMPDIR`: The top-level build output directory
  7995. - :term:`MULTIMACH_TARGET_SYS`: The target system identifier
  7996. - :term:`PN`: The recipe name
  7997. - :term:`EXTENDPE`: The epoch --- if :term:`PE` is not specified, which
  7998. is usually the case for most recipes, then :term:`EXTENDPE` is blank.
  7999. - :term:`PV`: The recipe version
  8000. - :term:`PR`: The recipe revision
  8001. As an example, assume a Source Directory top-level folder name
  8002. ``poky``, a default :term:`Build Directory` at ``poky/build``, and a
  8003. ``qemux86-poky-linux`` machine target system. Furthermore, suppose
  8004. your recipe is named ``foo_1.3.0-r0.bb``. In this case, the work
  8005. directory the build system uses to build the package would be as
  8006. follows::
  8007. poky/build/tmp/work/qemux86-poky-linux/foo/1.3.0-r0
  8008. :term:`XSERVER`
  8009. Specifies the packages that should be installed to provide an X
  8010. server and drivers for the current machine, assuming your image
  8011. directly includes ``packagegroup-core-x11-xserver`` or, perhaps
  8012. indirectly, includes "x11-base" in
  8013. :term:`IMAGE_FEATURES`.
  8014. The default value of :term:`XSERVER`, if not specified in the machine
  8015. configuration, is "xserver-xorg xf86-video-fbdev xf86-input-evdev".
  8016. :term:`XZ_THREADS`
  8017. Specifies the number of parallel threads that should be used when
  8018. using xz compression.
  8019. By default this scales with core count, but is never set less than 2
  8020. to ensure that multi-threaded mode is always used so that the output
  8021. file contents are deterministic. Builds will work with a value of 1
  8022. but the output will differ compared to the output from the compression
  8023. generated when more than one thread is used.
  8024. On systems where many tasks run in parallel, setting a limit to this
  8025. can be helpful in controlling system resource usage.
  8026. :term:`XZ_MEMLIMIT`
  8027. Specifies the maximum memory the xz compression should use as a percentage
  8028. of system memory. If unconstrained the xz compressor can use large amounts of
  8029. memory and become problematic with parallelism elsewhere in the build.
  8030. "50%" has been found to be a good value.
  8031. :term:`ZSTD_COMPRESSION_LEVEL`
  8032. Specifies the compression level to be used with ZStandard compression
  8033. (from ``1`` to ``19``, set to ``3`` by default, following upstream choice).
  8034. Higher levels produce smaller files, but take longer to complete.
  8035. :term:`ZSTD_THREADS`
  8036. Specifies the number of parallel threads that should be used when
  8037. using ZStandard compression.
  8038. By default this scales with core count, but is never set less than 2
  8039. to ensure that multi-threaded mode is always used so that the output
  8040. file contents are deterministic. Builds will work with a value of 1
  8041. but the output will differ compared to the output from the compression
  8042. generated when more than one thread is used.
  8043. On systems where many tasks run in parallel, setting a limit to this
  8044. can be helpful in controlling system resource usage.