variables.rst 485 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309
  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 <IMAGE_BASENAME>`
  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 :manpage:`ar <ar(1)>`.
  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 :manpage:`assembler
  131. <as(1)>`.
  132. :term:`ASSUME_PROVIDED`
  133. Lists recipe names (:term:`PN` values) BitBake does not
  134. attempt to build. Instead, BitBake assumes these recipes have already
  135. been built.
  136. In OpenEmbedded-Core, :term:`ASSUME_PROVIDED` mostly specifies native
  137. tools that should not be built. An example is ``git-native``, which
  138. when specified, allows for the Git binary from the host to be used
  139. rather than building ``git-native``.
  140. :term:`ASSUME_SHLIBS`
  141. Provides additional ``shlibs`` provider mapping information, which
  142. adds to or overwrites the information provided automatically by the
  143. system. Separate multiple entries using spaces.
  144. As an example, use the following form to add an ``shlib`` provider of
  145. shlibname in packagename with the optional version::
  146. shlibname:packagename[_version]
  147. Here is an example that adds a shared library named ``libEGL.so.1``
  148. as being provided by the ``libegl-implementation`` package::
  149. ASSUME_SHLIBS = "libEGL.so.1:libegl-implementation"
  150. :term:`AUTO_LIBNAME_PKGS`
  151. When the :ref:`ref-classes-debian` class is inherited,
  152. which is the default behavior, :term:`AUTO_LIBNAME_PKGS` specifies which
  153. packages should be checked for libraries and renamed according to
  154. Debian library package naming.
  155. The default value is "${PACKAGES}", which causes the
  156. :ref:`ref-classes-debian` class to act on all packages that are
  157. explicitly generated by the recipe.
  158. :term:`AUTOREV`
  159. When :term:`SRCREV` is set to the value of this variable, it specifies to
  160. use the latest source revision in the repository. Here is an example::
  161. SRCREV = "${AUTOREV}"
  162. If you use the previous statement to retrieve the latest version of
  163. software, you need to make sure :term:`PV` contains the ``+`` sign so
  164. :term:`bitbake` includes source control information to :term:`PKGV` when
  165. packaging the recipe. For example::
  166. PV = "6.10.y+git"
  167. For more information see the
  168. ":ref:`dev-manual/packages:automatically incrementing a package version number`"
  169. section in the Yocto Project Development Tasks Manual.
  170. :term:`AUTO_SYSLINUXMENU`
  171. Enables creating an automatic menu for the syslinux bootloader. You
  172. must set this variable in your recipe. The
  173. :ref:`ref-classes-syslinux` class checks this variable.
  174. :term:`AUTOTOOLS_SCRIPT_PATH`
  175. When using the :ref:`ref-classes-autotools` class, the
  176. :term:`AUTOTOOLS_SCRIPT_PATH` variable stores the location of the
  177. different scripts used by the Autotools build system. The default
  178. value for this variable is :term:`S`.
  179. :term:`AVAILTUNES`
  180. The list of defined CPU and Application Binary Interface (ABI)
  181. tunings (i.e. "tunes") available for use by the OpenEmbedded build
  182. system.
  183. The list simply presents the tunes that are available. Not all tunes
  184. may be compatible with a particular machine configuration, or with
  185. each other in a
  186. :ref:`Multilib <dev-manual/libraries:combining multiple versions of library files into one image>`
  187. configuration.
  188. To add a tune to the list, be sure to append it with spaces using the
  189. "+=" BitBake operator. Do not simply replace the list by using the
  190. "=" operator. See the
  191. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:basic syntax`" section in the BitBake
  192. User Manual for more information.
  193. :term:`AZ_SAS`
  194. Azure Storage Shared Access Signature, when using the
  195. :ref:`Azure Storage fetcher (az://) <bitbake-user-manual/bitbake-user-manual-fetching:fetchers>`
  196. This variable can be defined to be used by the fetcher to authenticate
  197. and gain access to non-public artifacts::
  198. AZ_SAS = ""se=2021-01-01&sp=r&sv=2018-11-09&sr=c&skoid=<skoid>&sig=<signature>""
  199. For more information see Microsoft's Azure Storage documentation at
  200. https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview
  201. :term:`B`
  202. The directory within the :term:`Build Directory` in which the
  203. OpenEmbedded build system places generated objects during a recipe's
  204. build process. By default, this directory is the same as the
  205. :term:`S` directory, which is defined as::
  206. S = "${UNPACKDIR}/${BP}"
  207. You can separate the (:term:`S`) directory and the directory pointed to
  208. by the :term:`B` variable. Most Autotools-based recipes support
  209. separating these directories. The build system defaults to using
  210. separate directories for ``gcc`` and some kernel recipes.
  211. :term:`BAD_RECOMMENDATIONS`
  212. Lists "recommended-only" packages to not install. Recommended-only
  213. packages are packages installed only through the
  214. :term:`RRECOMMENDS` variable. You can prevent any
  215. of these "recommended" packages from being installed by listing them
  216. with the :term:`BAD_RECOMMENDATIONS` variable::
  217. BAD_RECOMMENDATIONS = "package_name package_name package_name ..."
  218. You can set this variable globally in your ``local.conf`` file or you
  219. can attach it to a specific image recipe by using the recipe name
  220. override::
  221. BAD_RECOMMENDATIONS:pn-target_image = "package_name"
  222. It is important to realize that if you choose to not install packages
  223. using this variable and some other packages are dependent on them
  224. (i.e. listed in a recipe's :term:`RDEPENDS`
  225. variable), the OpenEmbedded build system ignores your request and
  226. will install the packages to avoid dependency errors.
  227. This variable is supported only when using the IPK and RPM
  228. packaging backends. DEB is not supported.
  229. See the :term:`NO_RECOMMENDATIONS` and the
  230. :term:`PACKAGE_EXCLUDE` variables for related
  231. information.
  232. :term:`BAREBOX_BINARY`
  233. When using the :ref:`ref-classes-barebox` class, this variable allows you
  234. to specify a particular binary that should be deployed and installed.
  235. The barebox build system can build multiple barebox binaries at once.
  236. By default, all built binaries will be deployed and installed under their
  237. original name.
  238. Here is an example usage of this variable::
  239. BAREBOX_BINARY = "barebox-boundarydevices-imx6dl-nitrogen6x-1g.img"
  240. :term:`BAREBOX_CONFIG`
  241. When using the :ref:`ref-classes-barebox` class, this variable allows you
  242. to specify the name of the barebox defconfig to build.
  243. The name must be a defconfig file known to the barebox build environment.
  244. This variable is mainly useful for generic use cases where a dedicated
  245. configuration is not required.
  246. The :ref:`ref-classes-barebox` class itself already sets it for some QEMU
  247. machines::
  248. BAREBOX_CONFIG:qemuarm = "multi_v7_defconfig"
  249. BAREBOX_CONFIG:qemuarm64 = "multi_v8_defconfig"
  250. BAREBOX_CONFIG:qemux86-64 = "efi_defconfig"
  251. Except for these, the default value of :term:`BAREBOX_CONFIG` is empty.
  252. For more information on how to provide a barebox configuration, see the
  253. :ref:`ref-classes-barebox` class.
  254. :term:`BASE_LIB`
  255. The library directory name for the CPU or Application Binary
  256. Interface (ABI) tune. The :term:`BASE_LIB` applies only in the Multilib
  257. context. See the ":ref:`dev-manual/libraries:combining multiple versions of library files into one image`"
  258. section in the Yocto Project Development Tasks Manual for information
  259. on Multilib.
  260. The :term:`BASE_LIB` variable is defined in the machine include files in
  261. the :term:`Source Directory`. If Multilib is not
  262. being used, the value defaults to "lib".
  263. :term:`BASE_WORKDIR`
  264. Points to the base of the work directory for all recipes. The default
  265. value is "${TMPDIR}/work".
  266. :term:`BB_ALLOWED_NETWORKS`
  267. Specifies a space-delimited list of hosts that the fetcher is allowed
  268. to use to obtain the required source code. Here are
  269. considerations surrounding this variable:
  270. - This host list is only used if :term:`BB_NO_NETWORK` is either not set
  271. or set to "0".
  272. - There is limited support for wildcard matching against the beginning of
  273. host names. For example, the following setting matches
  274. ``git.gnu.org``, ``ftp.gnu.org``, and ``foo.git.gnu.org``::
  275. BB_ALLOWED_NETWORKS = "*.gnu.org"
  276. .. note::
  277. The use of the "``*``" character only works at the beginning of
  278. a host name and it must be isolated from the remainder of the
  279. host name. You cannot use the wildcard character in any other
  280. location of the name or combined with the front part of the
  281. name.
  282. For example, ``*.foo.bar`` is supported, while ``*aa.foo.bar``
  283. is not.
  284. - Mirrors not in the host list are skipped and logged in debug.
  285. - Attempts to access networks not in the host list cause a failure.
  286. Using :term:`BB_ALLOWED_NETWORKS` in conjunction with
  287. :term:`PREMIRRORS` is very useful. Adding the host
  288. you want to use to :term:`PREMIRRORS` results in the source code being
  289. fetched from an allowed location and avoids raising an error when a
  290. host that is not allowed is in a :term:`SRC_URI`
  291. statement. This is because the fetcher does not attempt to use the
  292. host listed in :term:`SRC_URI` after a successful fetch from the
  293. :term:`PREMIRRORS` occurs.
  294. :term:`BB_BASEHASH_IGNORE_VARS`
  295. See :term:`bitbake:BB_BASEHASH_IGNORE_VARS` in the BitBake manual.
  296. :term:`BB_CACHEDIR`
  297. See :term:`bitbake:BB_CACHEDIR` in the BitBake manual.
  298. :term:`BB_CHECK_SSL_CERTS`
  299. See :term:`bitbake:BB_CHECK_SSL_CERTS` in the BitBake manual.
  300. :term:`BB_CONSOLELOG`
  301. See :term:`bitbake:BB_CONSOLELOG` in the BitBake manual.
  302. :term:`BB_CURRENTTASK`
  303. See :term:`bitbake:BB_CURRENTTASK` in the BitBake manual.
  304. :term:`BB_CURRENT_MC`
  305. See :term:`bitbake:BB_CURRENT_MC` in the BitBake manual.
  306. :term:`BB_DEFAULT_TASK`
  307. See :term:`bitbake:BB_DEFAULT_TASK` in the BitBake manual.
  308. :term:`BB_DEFAULT_UMASK`
  309. See :term:`bitbake:BB_DEFAULT_UMASK` in the BitBake manual.
  310. :term:`BB_DEFER_BBCLASSES`
  311. See :term:`bitbake:BB_DEFER_BBCLASSES` in the BitBake manual.
  312. :term:`BB_DISKMON_DIRS`
  313. Monitors disk space and available inodes during the build and allows
  314. you to control the build based on these parameters.
  315. Disk space monitoring is disabled by default. To enable monitoring,
  316. add the :term:`BB_DISKMON_DIRS` variable to your ``conf/local.conf`` file
  317. found in the :term:`Build Directory`. Use the
  318. following form:
  319. .. code-block:: none
  320. BB_DISKMON_DIRS = "action,dir,threshold [...]"
  321. where:
  322. action is:
  323. ABORT: Immediately stop the build when
  324. a threshold is broken.
  325. STOPTASKS: Stop the build after the currently
  326. executing tasks have finished when
  327. a threshold is broken.
  328. WARN: Issue a warning but continue the
  329. build when a threshold is broken.
  330. Subsequent warnings are issued as
  331. defined by the BB_DISKMON_WARNINTERVAL
  332. variable, which must be defined in
  333. the conf/local.conf file.
  334. dir is:
  335. Any directory you choose. You can specify one or
  336. more directories to monitor by separating the
  337. groupings with a space. If two directories are
  338. on the same device, only the first directory
  339. is monitored.
  340. threshold is:
  341. Either the minimum available disk space,
  342. the minimum number of free inodes, or
  343. both. You must specify at least one. To
  344. omit one or the other, simply omit the value.
  345. Specify the threshold using G, M, K for Gbytes,
  346. Mbytes, and Kbytes, respectively. If you do
  347. not specify G, M, or K, Kbytes is assumed by
  348. default. Do not use GB, MB, or KB.
  349. Here are some examples::
  350. BB_DISKMON_DIRS = "ABORT,${TMPDIR},1G,100K WARN,${SSTATE_DIR},1G,100K"
  351. BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},1G"
  352. BB_DISKMON_DIRS = "ABORT,${TMPDIR},,100K"
  353. The first example works only if you also provide the
  354. :term:`BB_DISKMON_WARNINTERVAL`
  355. variable in the ``conf/local.conf``. This example causes the build
  356. system to immediately stop when either the disk space in
  357. ``${TMPDIR}`` drops below 1 Gbyte or the available free inodes drops
  358. below 100 Kbytes. Because two directories are provided with the
  359. variable, the build system also issue a warning when the disk space
  360. in the ``${SSTATE_DIR}`` directory drops below 1 Gbyte or the number
  361. of free inodes drops below 100 Kbytes. Subsequent warnings are issued
  362. during intervals as defined by the :term:`BB_DISKMON_WARNINTERVAL`
  363. variable.
  364. The second example stops the build after all currently executing
  365. tasks complete when the minimum disk space in the ``${TMPDIR}``
  366. directory drops below 1 Gbyte. No disk monitoring occurs for the free
  367. inodes in this case.
  368. The final example immediately stops the build when the number of
  369. free inodes in the ``${TMPDIR}`` directory drops below 100 Kbytes. No
  370. disk space monitoring for the directory itself occurs in this case.
  371. :term:`BB_DISKMON_WARNINTERVAL`
  372. Defines the disk space and free inode warning intervals. To set these
  373. intervals, define the variable in your ``conf/local.conf`` file in
  374. the :term:`Build Directory`.
  375. If you are going to use the :term:`BB_DISKMON_WARNINTERVAL` variable, you
  376. must also use the :term:`BB_DISKMON_DIRS`
  377. variable and define its action as "WARN". During the build,
  378. subsequent warnings are issued each time disk space or number of free
  379. inodes further reduces by the respective interval.
  380. If you do not provide a :term:`BB_DISKMON_WARNINTERVAL` variable and you
  381. do use :term:`BB_DISKMON_DIRS` with the "WARN" action, the disk
  382. monitoring interval defaults to the following::
  383. BB_DISKMON_WARNINTERVAL = "50M,5K"
  384. When specifying the variable in your configuration file, use the
  385. following form:
  386. .. code-block:: none
  387. BB_DISKMON_WARNINTERVAL = "disk_space_interval,disk_inode_interval"
  388. where:
  389. disk_space_interval is:
  390. An interval of memory expressed in either
  391. G, M, or K for Gbytes, Mbytes, or Kbytes,
  392. respectively. You cannot use GB, MB, or KB.
  393. disk_inode_interval is:
  394. An interval of free inodes expressed in either
  395. G, M, or K for Gbytes, Mbytes, or Kbytes,
  396. respectively. You cannot use GB, MB, or KB.
  397. Here is an example::
  398. BB_DISKMON_DIRS = "WARN,${SSTATE_DIR},1G,100K"
  399. BB_DISKMON_WARNINTERVAL = "50M,5K"
  400. These variables cause the
  401. OpenEmbedded build system to issue subsequent warnings each time the
  402. available disk space further reduces by 50 Mbytes or the number of
  403. free inodes further reduces by 5 Kbytes in the ``${SSTATE_DIR}``
  404. directory. Subsequent warnings based on the interval occur each time
  405. a respective interval is reached beyond the initial warning (i.e. 1
  406. Gbytes and 100 Kbytes).
  407. :term:`BB_ENV_PASSTHROUGH`
  408. See :term:`bitbake:BB_ENV_PASSTHROUGH` in the BitBake manual.
  409. :term:`BB_ENV_PASSTHROUGH_ADDITIONS`
  410. See :term:`bitbake:BB_ENV_PASSTHROUGH_ADDITIONS` in the BitBake manual.
  411. :term:`BB_FETCH_PREMIRRORONLY`
  412. See :term:`bitbake:BB_FETCH_PREMIRRORONLY` in the BitBake manual.
  413. :term:`BB_FILENAME`
  414. See :term:`bitbake:BB_FILENAME` in the BitBake manual.
  415. :term:`BB_GENERATE_MIRROR_TARBALLS`
  416. Causes tarballs of the source control repositories (e.g. Git
  417. repositories), including metadata, to be placed in the
  418. :term:`DL_DIR` directory.
  419. For performance reasons, creating and placing tarballs of these
  420. repositories is not the default action by the OpenEmbedded build
  421. system::
  422. BB_GENERATE_MIRROR_TARBALLS = "1"
  423. Set this variable in your
  424. ``local.conf`` file in the :term:`Build Directory`.
  425. Once you have the tarballs containing your source files, you can
  426. clean up your :term:`DL_DIR` directory by deleting any Git or other
  427. source control work directories.
  428. :term:`BB_GENERATE_SHALLOW_TARBALLS`
  429. See :term:`bitbake:BB_GENERATE_SHALLOW_TARBALLS` in the BitBake manual.
  430. :term:`BB_GIT_DEFAULT_DESTSUFFIX`
  431. See :term:`bitbake:BB_GIT_DEFAULT_DESTSUFFIX` in the BitBake manual.
  432. In :term:`OpenEmbedded-Core (OE-Core)`, this variable is set to
  433. :term:`BP` by default in :oe_git:`bitbake.conf
  434. </openembedded-core/tree/meta/conf/bitbake.conf>`.
  435. :term:`BB_GIT_SHALLOW`
  436. See :term:`bitbake:BB_GIT_SHALLOW` in the BitBake manual.
  437. :term:`BB_GIT_SHALLOW_DEPTH`
  438. See :term:`bitbake:BB_GIT_SHALLOW_DEPTH` in the BitBake manual.
  439. :term:`BB_HASHCHECK_FUNCTION`
  440. See :term:`bitbake:BB_HASHCHECK_FUNCTION` in the BitBake manual.
  441. :term:`BB_HASHCONFIG_IGNORE_VARS`
  442. See :term:`bitbake:BB_HASHCONFIG_IGNORE_VARS` in the BitBake manual.
  443. :term:`BB_HASHSERVE`
  444. See :term:`bitbake:BB_HASHSERVE` in the BitBake manual.
  445. :term:`BB_HASHSERVE_UPSTREAM`
  446. See :term:`bitbake:BB_HASHSERVE_UPSTREAM` in the BitBake manual.
  447. :term:`BB_INVALIDCONF`
  448. See :term:`bitbake:BB_INVALIDCONF` in the BitBake manual.
  449. :term:`BB_LOADFACTOR_MAX`
  450. The system load threshold above which :term:`BitBake` will stop running
  451. extra tasks.
  452. For more information on how to limit the resources used during builds, see
  453. the :doc:`/dev-manual/limiting-resources` section of the Yocto Project
  454. Development Tasks Manual.
  455. :term:`BB_LOGCONFIG`
  456. See :term:`bitbake:BB_LOGCONFIG` in the BitBake manual.
  457. :term:`BB_LOGFMT`
  458. See :term:`bitbake:BB_LOGFMT` in the BitBake manual.
  459. :term:`BB_MULTI_PROVIDER_ALLOWED`
  460. See :term:`bitbake:BB_MULTI_PROVIDER_ALLOWED` in the BitBake manual.
  461. :term:`BB_NICE_LEVEL`
  462. See :term:`bitbake:BB_NICE_LEVEL` in the BitBake manual.
  463. :term:`BB_NO_NETWORK`
  464. See :term:`bitbake:BB_NO_NETWORK` in the BitBake manual.
  465. :term:`BB_NUMBER_PARSE_THREADS`
  466. See :term:`bitbake:BB_NUMBER_PARSE_THREADS` in the BitBake manual.
  467. :term:`BB_NUMBER_THREADS`
  468. The maximum number of tasks BitBake should run in parallel at any one
  469. time. The OpenEmbedded build system automatically configures this
  470. variable to be equal to the number of cores on the build system. For
  471. example, a system with a dual core processor that also uses
  472. hyper-threading causes the :term:`BB_NUMBER_THREADS` variable to default
  473. to "4".
  474. For single socket systems (i.e. one CPU), you should not have to
  475. override this variable to gain optimal parallelism during builds.
  476. However, if you have very large systems that employ multiple physical
  477. CPUs, you might want to make sure the :term:`BB_NUMBER_THREADS` variable
  478. is not set higher than "20".
  479. For more information on speeding up builds, see the
  480. ":ref:`dev-manual/speeding-up-build:speeding up a build`"
  481. section in the Yocto Project Development Tasks Manual.
  482. On the other hand, if your goal is to limit the amount of system
  483. resources consumed by BitBake tasks, setting :term:`BB_NUMBER_THREADS`
  484. to a number lower than the number of CPU threads in your machine
  485. won't be sufficient. That's because each package will still be built
  486. and installed through a number of parallel jobs specified by the
  487. :term:`PARALLEL_MAKE` variable, which is by default the number of CPU
  488. threads in your system, and is not impacted by the
  489. :term:`BB_NUMBER_THREADS` value.
  490. So, if you set :term:`BB_NUMBER_THREADS` to "1" but don't set
  491. :term:`PARALLEL_MAKE`, most of your system resources will be consumed
  492. anyway.
  493. Therefore, if you intend to reduce the load of your build system by
  494. setting :term:`BB_NUMBER_THREADS` to a relatively low value compared
  495. to the number of CPU threads on your system, you should also set
  496. :term:`PARALLEL_MAKE` to a similarly low value.
  497. An alternative to using :term:`BB_NUMBER_THREADS` to keep the usage
  498. of build system resources under control is to use the smarter
  499. :term:`BB_PRESSURE_MAX_CPU`, :term:`BB_PRESSURE_MAX_IO` or
  500. :term:`BB_PRESSURE_MAX_MEMORY` controls. See the
  501. :doc:`/dev-manual/limiting-resources` section of the Yocto Project
  502. Development Tasks Manual.
  503. :term:`BB_ORIGENV`
  504. See :term:`bitbake:BB_ORIGENV` in the BitBake manual.
  505. :term:`BB_PRESERVE_ENV`
  506. See :term:`bitbake:BB_PRESERVE_ENV` in the BitBake manual.
  507. :term:`BB_PRESSURE_MAX_CPU`
  508. See :term:`bitbake:BB_PRESSURE_MAX_CPU` in the BitBake manual.
  509. For more information on how to limit the resources used during builds, see
  510. the :doc:`/dev-manual/limiting-resources` section of the Yocto Project
  511. Development Tasks Manual.
  512. :term:`BB_PRESSURE_MAX_IO`
  513. See :term:`bitbake:BB_PRESSURE_MAX_IO` in the BitBake manual.
  514. For more information on how to limit the resources used during builds, see
  515. the :doc:`/dev-manual/limiting-resources` section of the Yocto Project
  516. Development Tasks Manual.
  517. :term:`BB_PRESSURE_MAX_MEMORY`
  518. See :term:`bitbake:BB_PRESSURE_MAX_MEMORY` in the BitBake manual.
  519. For more information on how to limit the resources used during builds, see
  520. the :doc:`/dev-manual/limiting-resources` section of the Yocto Project
  521. Development Tasks Manual.
  522. :term:`BB_RUNFMT`
  523. See :term:`bitbake:BB_RUNFMT` in the BitBake manual.
  524. :term:`BB_RUNTASK`
  525. See :term:`bitbake:BB_RUNTASK` in the BitBake manual.
  526. :term:`BB_SCHEDULER`
  527. See :term:`bitbake:BB_SCHEDULER` in the BitBake manual.
  528. :term:`BB_SCHEDULERS`
  529. See :term:`bitbake:BB_SCHEDULERS` in the BitBake manual.
  530. :term:`BB_SERVER_TIMEOUT`
  531. Specifies the time (in seconds) after which to unload the BitBake
  532. server due to inactivity. Set :term:`BB_SERVER_TIMEOUT` to determine how
  533. long the BitBake server stays resident between invocations.
  534. For example, the following statement in your ``local.conf`` file
  535. instructs the server to be unloaded after 20 seconds of inactivity::
  536. BB_SERVER_TIMEOUT = "20"
  537. If you want the server to never be unloaded,
  538. set :term:`BB_SERVER_TIMEOUT` to "-1".
  539. :term:`BB_SETSCENE_DEPVALID`
  540. See :term:`bitbake:BB_SETSCENE_DEPVALID` in the BitBake manual.
  541. :term:`BB_SIGNATURE_EXCLUDE_FLAGS`
  542. See :term:`bitbake:BB_SIGNATURE_EXCLUDE_FLAGS` in the BitBake manual.
  543. :term:`BB_SIGNATURE_HANDLER`
  544. See :term:`bitbake:BB_SIGNATURE_HANDLER` in the BitBake manual.
  545. :term:`BB_SRCREV_POLICY`
  546. See :term:`bitbake:BB_SRCREV_POLICY` in the BitBake manual.
  547. :term:`BB_STRICT_CHECKSUM`
  548. See :term:`bitbake:BB_STRICT_CHECKSUM` in the BitBake manual.
  549. :term:`BB_TASK_IONICE_LEVEL`
  550. See :term:`bitbake:BB_TASK_IONICE_LEVEL` in the BitBake manual.
  551. :term:`BB_TASK_NICE_LEVEL`
  552. See :term:`bitbake:BB_TASK_NICE_LEVEL` in the BitBake manual.
  553. :term:`BB_TASKHASH`
  554. See :term:`bitbake:BB_TASKHASH` in the BitBake manual.
  555. :term:`BB_USE_HOME_NPMRC`
  556. See :term:`bitbake:BB_USE_HOME_NPMRC` in the BitBake manual.
  557. :term:`BB_VERBOSE_LOGS`
  558. See :term:`bitbake:BB_VERBOSE_LOGS` in the BitBake manual.
  559. :term:`BB_WORKERCONTEXT`
  560. See :term:`bitbake:BB_WORKERCONTEXT` in the BitBake manual.
  561. :term:`BBCLASSEXTEND`
  562. Allows you to extend a recipe so that it builds variants of the
  563. software. There are common variants for recipes as "natives" like
  564. ``quilt-native``, which is a copy of Quilt built to run on the build
  565. system; "crosses" such as ``gcc-cross``, which is a compiler built to
  566. run on the build machine but produces binaries that run on the target
  567. :term:`MACHINE`; ":ref:`ref-classes-nativesdk`", which
  568. targets the SDK machine instead of :term:`MACHINE`; and "mulitlibs" in
  569. the form "``multilib:``\ multilib_name".
  570. To build a different variant of the recipe with a minimal amount of
  571. code, it usually is as simple as adding the following to your recipe::
  572. BBCLASSEXTEND =+ "native nativesdk"
  573. BBCLASSEXTEND =+ "multilib:multilib_name"
  574. .. note::
  575. Internally, the :term:`BBCLASSEXTEND` mechanism generates recipe
  576. variants by rewriting variable values and applying overrides such
  577. as ``:class-native``. For example, to generate a native version of
  578. a recipe, a :term:`DEPENDS` on "foo" is rewritten
  579. to a :term:`DEPENDS` on "foo-native".
  580. Even when using :term:`BBCLASSEXTEND`, the recipe is only parsed once.
  581. Parsing once adds some limitations. For example, it is not
  582. possible to include a different file depending on the variant,
  583. since ``include`` statements are processed when the recipe is
  584. parsed.
  585. :term:`BBDEBUG`
  586. See :term:`bitbake:BBDEBUG` in the BitBake manual.
  587. :term:`BBFILE_COLLECTIONS`
  588. Lists the names of configured layers. These names are used to find
  589. the other ``BBFILE_*`` variables. Typically, each layer will append
  590. its name to this variable in its ``conf/layer.conf`` file.
  591. :term:`BBFILE_PATTERN`
  592. Variable that expands to match files from
  593. :term:`BBFILES` in a particular layer. This variable
  594. is used in the ``conf/layer.conf`` file and must be suffixed with the
  595. name of the specific layer (e.g. ``BBFILE_PATTERN_emenlow``).
  596. :term:`BBFILE_PRIORITY`
  597. Assigns the priority for recipe files in each layer.
  598. This variable is useful in situations where the same recipe appears
  599. in more than one layer. Setting this variable allows you to
  600. prioritize a layer against other layers that contain the same recipe
  601. --- effectively letting you control the precedence for the multiple
  602. layers. The precedence established through this variable stands
  603. regardless of a recipe's version (:term:`PV` variable). For
  604. example, a layer that has a recipe with a higher :term:`PV` value but for
  605. which the :term:`BBFILE_PRIORITY` is set to have a lower precedence still
  606. has a lower precedence.
  607. A larger value for the :term:`BBFILE_PRIORITY` variable results in a
  608. higher precedence. For example, the value 6 has a higher precedence
  609. than the value 5. If not specified, the :term:`BBFILE_PRIORITY` variable
  610. is set based on layer dependencies (see the :term:`LAYERDEPENDS` variable
  611. for more information. The default priority, if unspecified for a
  612. layer with no dependencies, is the lowest defined priority + 1 (or 1
  613. if no priorities are defined).
  614. .. tip::
  615. You can use the command ``bitbake-layers show-layers``
  616. to list all configured layers along with their priorities.
  617. :term:`BBFILES`
  618. A space-separated list of recipe files BitBake uses to build
  619. software.
  620. When specifying recipe files, you can pattern match using Python's
  621. `glob <https://docs.python.org/3/library/glob.html>`__ syntax.
  622. For details on the syntax, see the documentation by following the
  623. previous link.
  624. :term:`BBFILES_DYNAMIC`
  625. Activates content when identified layers are present. You identify
  626. the layers by the collections that the layers define.
  627. Use the :term:`BBFILES_DYNAMIC` variable to avoid ``.bbappend`` files
  628. whose corresponding ``.bb`` file is in a layer that attempts to
  629. modify other layers through ``.bbappend`` but does not want to
  630. introduce a hard dependency on those other layers.
  631. Use the following form for :term:`BBFILES_DYNAMIC`:
  632. ``collection_name:filename_pattern``.
  633. The following example identifies two collection names and two
  634. filename patterns::
  635. BBFILES_DYNAMIC += " \
  636. clang-layer:${LAYERDIR}/bbappends/meta-clang/*/*/*.bbappend \
  637. core:${LAYERDIR}/bbappends/openembedded-core/meta/*/*/*.bbappend \
  638. "
  639. This next example shows an error message that occurs because invalid
  640. entries are found, which cause parsing to fail:
  641. .. code-block:: none
  642. ERROR: BBFILES_DYNAMIC entries must be of the form <collection name>:<filename pattern>, not:
  643. /work/my-layer/bbappends/meta-security-isafw/*/*/*.bbappend
  644. /work/my-layer/bbappends/openembedded-core/meta/*/*/*.bbappend
  645. :term:`BBINCLUDED`
  646. See :term:`bitbake:BBINCLUDED` in the BitBake manual.
  647. :term:`BBINCLUDELOGS`
  648. Variable that controls how BitBake displays logs on build failure.
  649. :term:`BBINCLUDELOGS_LINES`
  650. If :term:`BBINCLUDELOGS` is set, specifies the
  651. maximum number of lines from the task log file to print when
  652. reporting a failed task. If you do not set :term:`BBINCLUDELOGS_LINES`,
  653. the entire log is printed.
  654. :term:`BBLAYERS`
  655. Lists the layers to enable during the build. This variable is defined
  656. in the ``bblayers.conf`` configuration file in the :term:`Build Directory`.
  657. Here is an example::
  658. BBLAYERS = " \
  659. /home/scottrif/poky/meta \
  660. /home/scottrif/poky/meta-poky \
  661. /home/scottrif/poky/meta-yocto-bsp \
  662. /home/scottrif/poky/meta-mykernel \
  663. "
  664. This example enables four layers, one of which is a custom,
  665. user-defined layer named ``meta-mykernel``.
  666. :term:`BBLAYERS_FETCH_DIR`
  667. See :term:`bitbake:BBLAYERS_FETCH_DIR` in the BitBake manual.
  668. :term:`BBMASK`
  669. Prevents BitBake from processing recipes and recipe append files.
  670. You can use the :term:`BBMASK` variable to "hide" these ``.bb`` and
  671. ``.bbappend`` files. BitBake ignores any recipe or recipe append
  672. files that match any of the expressions. It is as if BitBake does not
  673. see them at all. Consequently, matching files are not parsed or
  674. otherwise used by BitBake.
  675. The values you provide are passed to Python's regular expression
  676. compiler. Consequently, the syntax follows Python's Regular
  677. Expression (re) syntax. The expressions are compared against the full
  678. paths to the files. For complete syntax information, see Python's
  679. documentation at https://docs.python.org/3/library/re.html#regular-expression-syntax.
  680. The following example uses a complete regular expression to tell
  681. BitBake to ignore all recipe and recipe append files in the
  682. ``meta-ti/recipes-misc/`` directory::
  683. BBMASK = "meta-ti/recipes-misc/"
  684. If you want to mask out multiple directories or recipes, you can
  685. specify multiple regular expression fragments. This next example
  686. masks out multiple directories and individual recipes::
  687. BBMASK += "/meta-ti/recipes-misc/ meta-ti/recipes-ti/packagegroup/"
  688. BBMASK += "/meta-oe/recipes-support/"
  689. BBMASK += "/meta-foo/.*/openldap"
  690. BBMASK += "opencv.*\.bbappend"
  691. BBMASK += "lzma"
  692. .. note::
  693. When specifying a directory name, use the trailing slash character
  694. to ensure you match just that directory name.
  695. :term:`BBMULTICONFIG`
  696. Specifies each additional separate configuration when you are
  697. building targets with multiple configurations. Use this variable in
  698. your ``conf/local.conf`` configuration file. Specify a
  699. multiconfigname for each configuration file you are using. For
  700. example, the following line specifies three configuration files::
  701. BBMULTICONFIG = "configA configB configC"
  702. Each configuration file you use must reside in a ``multiconfig``
  703. subdirectory of a configuration directory within a layer, or
  704. within the :term:`Build Directory` (e.g.
  705. ``build_directory/conf/multiconfig/configA.conf`` or
  706. ``mylayer/conf/multiconfig/configB.conf``).
  707. For information on how to use :term:`BBMULTICONFIG` in an environment
  708. that supports building targets with multiple configurations, see the
  709. ":ref:`dev-manual/building:building images for multiple targets using multiple configurations`"
  710. section in the Yocto Project Development Tasks Manual.
  711. :term:`BBPATH`
  712. See :term:`bitbake:BBPATH` in the BitBake manual.
  713. :term:`BBSERVER`
  714. If defined in the BitBake environment, :term:`BBSERVER` points to the
  715. BitBake remote server.
  716. Use the following format to export the variable to the BitBake
  717. environment::
  718. export BBSERVER=localhost:$port
  719. By default, :term:`BBSERVER` also appears in :term:`BB_BASEHASH_IGNORE_VARS`.
  720. Consequently, :term:`BBSERVER` is excluded from checksum and dependency
  721. data.
  722. :term:`BBTARGETS`
  723. See :term:`bitbake:BBTARGETS` in the BitBake manual.
  724. :term:`BINCONFIG`
  725. When inheriting the :ref:`ref-classes-binconfig-disabled` class, this
  726. variable specifies binary configuration scripts to disable in favor of
  727. using ``pkg-config`` to query the information. The
  728. :ref:`ref-classes-binconfig-disabled` class will modify the specified
  729. scripts to return an error so that calls to them can be easily found
  730. and replaced.
  731. To add multiple scripts, separate them by spaces. Here is an example
  732. from the ``libpng`` recipe::
  733. BINCONFIG = "${bindir}/libpng-config ${bindir}/libpng16-config"
  734. :term:`BINCONFIG_GLOB`
  735. When inheriting the :ref:`ref-classes-binconfig` class,
  736. this variable specifies a wildcard for configuration scripts that
  737. need editing. The scripts are edited to correct any paths that have
  738. been set up during compilation so that they are correct for use when
  739. installed into the sysroot and called by the build processes of other
  740. recipes.
  741. .. note::
  742. The :term:`BINCONFIG_GLOB` variable uses
  743. `shell globbing <https://tldp.org/LDP/abs/html/globbingref.html>`__,
  744. which is recognition and expansion of wildcards during pattern
  745. matching. Shell globbing is very similar to
  746. `fnmatch <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__
  747. and `glob <https://docs.python.org/3/library/glob.html>`__.
  748. For more information on how this variable works, see
  749. ``meta/classes-recipe/binconfig.bbclass`` in the :term:`Source Directory`.
  750. You can also find general
  751. information on the class in the
  752. ":ref:`ref-classes-binconfig`" section.
  753. :term:`BITBAKE_UI`
  754. See :term:`bitbake:BITBAKE_UI` in the BitBake manual.
  755. :term:`BP`
  756. The base recipe name and version but without any special recipe name
  757. suffix (i.e. ``-native``, ``lib64-``, and so forth). :term:`BP` is
  758. comprised of the following::
  759. ${BPN}-${PV}
  760. :term:`BPN`
  761. This variable is a version of the :term:`PN` variable with
  762. common prefixes and suffixes removed, such as ``nativesdk-``,
  763. ``-cross``, ``-native``, and multilib's ``lib64-`` and ``lib32-``.
  764. The exact lists of prefixes and suffixes removed are specified by the
  765. :term:`MLPREFIX` and
  766. :term:`SPECIAL_PKGSUFFIX` variables,
  767. respectively.
  768. :term:`BUGTRACKER`
  769. Specifies a URL for an upstream bug tracking website for a recipe.
  770. The OpenEmbedded build system does not use this variable. Rather, the
  771. variable is a useful pointer in case a bug in the software being
  772. built needs to be manually reported.
  773. :term:`BUILD_AR`
  774. Specifies the architecture-specific :manpage:`archiver <ar(1)>` for the
  775. build host, and its default definition is derived in part from
  776. :term:`BUILD_PREFIX`::
  777. BUILD_AR = "${BUILD_PREFIX}ar"
  778. When building a :ref:`ref-classes-native` recipe, :term:`AR` is set to the
  779. value of this variable by default.
  780. The :term:`BUILD_AR` variable should not be set manually, and is rarely
  781. used in recipes as :term:`AR` contains the appropriate value depending on
  782. the context (native or target recipes). Exception be made for target
  783. recipes that need to use the :manpage:`archiver <ar(1)>` from the build
  784. host at some point during the build.
  785. :term:`BUILD_ARCH`
  786. Specifies the architecture of the build host (e.g. ``i686``). The
  787. OpenEmbedded build system sets the value of :term:`BUILD_ARCH` from the
  788. machine name reported by the ``uname`` command.
  789. :term:`BUILD_AS`
  790. Specifies the architecture-specific :manpage:`assembler <as(1)>` for the
  791. build host, and its default definition is derived in part from
  792. :term:`BUILD_PREFIX`::
  793. BUILD_AS = "${BUILD_PREFIX}as ${BUILD_AS_ARCH}"
  794. When building a :ref:`ref-classes-native` recipe, :term:`AS` is set to the
  795. value of this variable by default.
  796. The :term:`BUILD_AS` variable should not be set manually, and is rarely
  797. used in recipes as :term:`AS` contains the appropriate value depending on
  798. the context (native or target recipes). Exception be made for target
  799. recipes that need to use the :manpage:`assembler <as(1)>` from the build
  800. host at some point during the build.
  801. :term:`BUILD_AS_ARCH`
  802. Specifies the architecture-specific assembler flags for the build
  803. host. By default, the value of :term:`BUILD_AS_ARCH` is empty.
  804. :term:`BUILD_CC`
  805. Specifies the architecture-specific C compiler for the build host,
  806. and its default definition is derived in part from :term:`BUILD_PREFIX`
  807. and :term:`BUILD_CC_ARCH`::
  808. BUILD_CC = "${CCACHE}${BUILD_PREFIX}gcc ${BUILD_CC_ARCH}"
  809. When building a :ref:`ref-classes-native` recipe, :term:`CC` is set to the
  810. value of this variable by default.
  811. The :term:`BUILD_CC` variable should not be set manually, and is rarely
  812. used in recipes as :term:`CC` contains the appropriate value depending on
  813. the context (native or target recipes). Exception be made for target
  814. recipes that need to use the compiler from the build host at some point
  815. during the build.
  816. :term:`BUILD_CC_ARCH`
  817. Specifies the architecture-specific C compiler flags for the build
  818. host. By default, the value of :term:`BUILD_CC_ARCH` is empty.
  819. :term:`BUILD_CCLD`
  820. Specifies the :manpage:`linker <ld(1)>` command to be used for the build
  821. host when the C compiler is being used as the linker, and its default
  822. definition is derived in part from :term:`BUILD_PREFIX` and
  823. :term:`BUILD_CC_ARCH`::
  824. BUILD_CCLD = "${BUILD_PREFIX}gcc ${BUILD_CC_ARCH}"
  825. When building a :ref:`ref-classes-native` recipe, :term:`CCLD` is set to
  826. the value of this variable by default.
  827. The :term:`BUILD_CCLD` variable should not be set manually, and is rarely
  828. used in recipes as :term:`CCLD` contains the appropriate value depending on
  829. the context (native or target recipes). Exception be made for target
  830. recipes that need to use the :manpage:`linker <ld(1)>` from the build host
  831. at some point during the build.
  832. :term:`BUILD_CFLAGS`
  833. Specifies the flags to pass to the C compiler when building for the
  834. build host. When building a :ref:`ref-classes-native` recipe,
  835. :term:`CFLAGS` is set to the value of this variable by
  836. default.
  837. :term:`BUILD_CPP`
  838. Specifies the C preprocessor command (to both the C and the C++ compilers)
  839. when building for the build host, and its default definition is derived in
  840. part from :term:`BUILD_PREFIX` and :term:`BUILD_CC_ARCH`::
  841. BUILD_CPP = "${BUILD_PREFIX}gcc ${BUILD_CC_ARCH} -E"
  842. When building a :ref:`ref-classes-native` recipe, :term:`CPP` is set to
  843. the value of this variable by default.
  844. The :term:`BUILD_CPP` variable should not be set manually, and is rarely
  845. used in recipes as :term:`CPP` contains the appropriate value depending on
  846. the context (native or target recipes). Exception be made for target
  847. recipes that need to use the preprocessor from the build host at some
  848. point during the build.
  849. :term:`BUILD_CPPFLAGS`
  850. Specifies the flags to pass to the C preprocessor (i.e. to both the C
  851. and the C++ compilers) when building for the build host. When
  852. building in the ``-native`` context, :term:`CPPFLAGS`
  853. is set to the value of this variable by default.
  854. :term:`BUILD_CXX`
  855. Specifies the architecture-specific C++ compiler for the build host,
  856. and its default definition is derived in part from :term:`BUILD_PREFIX`
  857. and :term:`BUILD_CC_ARCH`::
  858. BUILD_CXX = "${CCACHE}${BUILD_PREFIX}g++ ${BUILD_CC_ARCH}"
  859. When building a :ref:`ref-classes-native` recipe, :term:`CXX` is set to
  860. the value of this variable by default.
  861. The :term:`BUILD_CXX` variable should not be set manually, and is rarely
  862. used in recipes as :term:`CXX` contains the appropriate value depending on
  863. the context (native or target recipes). Exception be made for target
  864. recipes that need to use the C++ compiler from the build host at some
  865. point during the build.
  866. :term:`BUILD_CXXFLAGS`
  867. Specifies the flags to pass to the C++ compiler when building for the
  868. build host. When building a :ref:`ref-classes-native` recipe,
  869. :term:`CXXFLAGS` is set to the value of this variable
  870. by default.
  871. :term:`BUILD_FC`
  872. Specifies the Fortran compiler command for the build host, and its default
  873. definition is derived in part from :term:`BUILD_PREFIX` and
  874. :term:`BUILD_CC_ARCH`::
  875. BUILD_FC = "${BUILD_PREFIX}gfortran ${BUILD_CC_ARCH}"
  876. When building a :ref:`ref-classes-native` recipe, :term:`FC` is set to the
  877. value of this variable by default.
  878. The :term:`BUILD_FC` variable should not be set manually, and is rarely
  879. used in recipes as :term:`FC` contains the appropriate value depending on
  880. the context (native or target recipes). Exception be made for target
  881. recipes that need to use the Fortran compiler from the build host at some
  882. point during the build.
  883. :term:`BUILD_LD`
  884. Specifies the linker command for the build host, and its default
  885. definition is derived in part from :term:`BUILD_PREFIX` and
  886. :term:`BUILD_LD_ARCH`::
  887. BUILD_LD = "${BUILD_PREFIX}ld ${BUILD_LD_ARCH}"
  888. When building a :ref:`ref-classes-native` recipe, :term:`LD` is set to the
  889. value of this variable by default.
  890. The :term:`BUILD_LD` variable should not be set manually, and is rarely
  891. used in recipes as :term:`LD` contains the appropriate value depending on
  892. the context (native or target recipes). Exception be made for target
  893. recipes that need to use the linker from the build host at some point
  894. during the build.
  895. :term:`BUILD_LD_ARCH`
  896. Specifies architecture-specific linker flags for the build host. By
  897. default, the value of :term:`BUILD_LD_ARCH` is empty.
  898. :term:`BUILD_LDFLAGS`
  899. Specifies the flags to pass to the linker when building for the build
  900. host. When building a :ref:`ref-classes-native` recipe,
  901. :term:`LDFLAGS` is set to the value of this variable
  902. by default.
  903. :term:`BUILD_NM`
  904. Specifies the architecture-specific utility to list symbols from object
  905. files for the build host, and its default definition is derived in part
  906. from :term:`BUILD_PREFIX`::
  907. BUILD_NM = "${BUILD_PREFIX}nm"
  908. When building a :ref:`ref-classes-native` recipe, :term:`NM` is set to the
  909. value of this variable by default.
  910. The :term:`BUILD_NM` variable should not be set manually, and is rarely
  911. used in recipes as :term:`NM` contains the appropriate value depending on
  912. the context (native or target recipes). Exception be made for target
  913. recipes that need to use the utility from the build host at some point
  914. during the build.
  915. :term:`BUILD_OBJCOPY`
  916. Specifies the architecture-specific utility to copy object files for the
  917. build host, and its default definition is derived in part from
  918. :term:`BUILD_PREFIX`::
  919. BUILD_OBJCOPY = "${BUILD_PREFIX}objcopy"
  920. When building a :ref:`ref-classes-native` recipe, :term:`OBJCOPY` is set
  921. to the value of this variable by default.
  922. The :term:`BUILD_OBJCOPY` variable should not be set manually, and is
  923. rarely used in recipes as :term:`OBJCOPY` contains the appropriate value
  924. depending on the context (native or target recipes). Exception be made for
  925. target recipes that need to use the utility from the build host at some
  926. point during the build.
  927. :term:`BUILD_OBJDUMP`
  928. Specifies the architecture-specific utility to display object files
  929. information for the build host, and its default definition is derived in
  930. part from :term:`BUILD_PREFIX`::
  931. BUILD_OBJDUMP = "${BUILD_PREFIX}objdump"
  932. When building a :ref:`ref-classes-native` recipe, :term:`OBJDUMP` is set
  933. to the value of this variable by default.
  934. The :term:`BUILD_OBJDUMP` variable should not be set manually, and is
  935. rarely used in recipes as :term:`OBJDUMP` contains the appropriate value
  936. depending on the context (native or target recipes). Exception be made for
  937. target recipes that need to use the utility from the build host at some
  938. point during the build.
  939. :term:`BUILD_OPTIMIZATION`
  940. Specifies the optimization flags passed to the C compiler when
  941. building for the build host or the SDK. The flags are passed through
  942. the :term:`BUILD_CFLAGS` and
  943. :term:`BUILDSDK_CFLAGS` default values.
  944. The default value of the :term:`BUILD_OPTIMIZATION` variable is "-O2
  945. -pipe".
  946. :term:`BUILD_OS`
  947. Specifies the operating system in use on the build host (e.g.
  948. "linux"). The OpenEmbedded build system sets the value of
  949. :term:`BUILD_OS` from the OS reported by the ``uname`` command --- the
  950. first word, converted to lower-case characters.
  951. :term:`BUILD_PREFIX`
  952. The toolchain binary prefix used for native recipes. The OpenEmbedded
  953. build system uses the :term:`BUILD_PREFIX` value to set the
  954. :term:`TARGET_PREFIX` when building for :ref:`ref-classes-native` recipes.
  955. :term:`BUILD_RANLIB`
  956. Specifies the architecture-specific utility to generate indexes for
  957. archives for the build host, and its default definition is derived in part
  958. from :term:`BUILD_PREFIX`::
  959. BUILD_RANLIB = "${BUILD_PREFIX}ranlib -D"
  960. When building a :ref:`ref-classes-native` recipe, :term:`RANLIB` is set to
  961. the value of this variable by default.
  962. The :term:`BUILD_RANLIB` variable should not be set manually, and is
  963. rarely used in recipes as :term:`RANLIB` contains the appropriate value
  964. depending on the context (native or target recipes). Exception be made for
  965. target recipes that need to use the utility from the build host at some
  966. point during the build.
  967. :term:`BUILD_READELF`
  968. Specifies the architecture-specific utility to display information about
  969. ELF files for the build host, and its default definition is derived in
  970. part from :term:`BUILD_PREFIX`::
  971. BUILD_READELF = "${BUILD_PREFIX}readelf"
  972. When building a :ref:`ref-classes-native` recipe, :term:`READELF` is set
  973. to the value of this variable by default.
  974. The :term:`BUILD_READELF` variable should not be set manually, and is
  975. rarely used in recipes as :term:`READELF` contains the appropriate value
  976. depending on the context (native or target recipes). Exception be made for
  977. target recipes that need to use the utility from the build host at some
  978. point during the build.
  979. :term:`BUILD_STRIP`
  980. Specifies the command to be used to strip debugging symbols from binaries
  981. produced for the build host, and its default definition is derived in part
  982. from :term:`BUILD_PREFIX`::
  983. BUILD_STRIP = "${BUILD_PREFIX}strip"
  984. When building a :ref:`ref-classes-native` recipe, :term:`STRIP` is set to
  985. the value of this variable by default.
  986. The :term:`BUILD_STRIP` variable should not be set manually, and is
  987. rarely used in recipes as :term:`STRIP` contains the appropriate value
  988. depending on the context (native or target recipes). Exception be made for
  989. target recipes that need to use the utility from the build host at some
  990. point during the build.
  991. :term:`BUILD_SYS`
  992. Specifies the system, including the architecture and the operating
  993. system, to use when building for the build host (i.e. when building
  994. :ref:`ref-classes-native` recipes).
  995. The OpenEmbedded build system automatically sets this variable based
  996. on :term:`BUILD_ARCH`,
  997. :term:`BUILD_VENDOR`, and
  998. :term:`BUILD_OS`. You do not need to set the
  999. :term:`BUILD_SYS` variable yourself.
  1000. :term:`BUILD_VENDOR`
  1001. Specifies the vendor name to use when building for the build host.
  1002. The default value is an empty string ("").
  1003. :term:`BUILDDIR`
  1004. Points to the location of the :term:`Build Directory`. You can define
  1005. this directory indirectly through the :ref:`structure-core-script` script
  1006. by passing in a :term:`Build Directory` path when you run the script. If
  1007. you run the script and do not provide a :term:`Build Directory` path, the
  1008. :term:`BUILDDIR` defaults to ``build`` in the current directory.
  1009. :term:`BUILDHISTORY_COMMIT`
  1010. When inheriting the :ref:`ref-classes-buildhistory` class, this variable
  1011. specifies whether or not to commit the build history output in a local
  1012. Git repository. If set to "1", this local repository will be maintained
  1013. automatically by the :ref:`ref-classes-buildhistory` class and a commit
  1014. will be created on every build for changes to each top-level subdirectory
  1015. of the build history output (images, packages, and sdk). If you want to
  1016. track changes to build history over time, you should set this value to
  1017. "1".
  1018. By default, the :ref:`ref-classes-buildhistory` class
  1019. enables committing the buildhistory output in a local Git repository::
  1020. BUILDHISTORY_COMMIT ?= "1"
  1021. :term:`BUILDHISTORY_COMMIT_AUTHOR`
  1022. When inheriting the :ref:`ref-classes-buildhistory`
  1023. class, this variable specifies the author to use for each Git commit.
  1024. In order for the :term:`BUILDHISTORY_COMMIT_AUTHOR` variable to work, the
  1025. :term:`BUILDHISTORY_COMMIT` variable must
  1026. be set to "1".
  1027. Git requires that the value you provide for the
  1028. :term:`BUILDHISTORY_COMMIT_AUTHOR` variable takes the form of "name
  1029. email@host". Providing an email address or host that is not valid
  1030. does not produce an error.
  1031. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  1032. as follows::
  1033. BUILDHISTORY_COMMIT_AUTHOR ?= "buildhistory <buildhistory@${DISTRO}>"
  1034. :term:`BUILDHISTORY_DIR`
  1035. When inheriting the :ref:`ref-classes-buildhistory`
  1036. class, this variable specifies the directory in which build history
  1037. information is kept. For more information on how the variable works,
  1038. see the :ref:`ref-classes-buildhistory` class.
  1039. By default, the :ref:`ref-classes-buildhistory` class sets the directory
  1040. as follows::
  1041. BUILDHISTORY_DIR ?= "${TOPDIR}/buildhistory"
  1042. :term:`BUILDHISTORY_FEATURES`
  1043. When inheriting the :ref:`ref-classes-buildhistory`
  1044. class, this variable specifies the build history features to be
  1045. enabled. For more information on how build history works, see the
  1046. ":ref:`dev-manual/build-quality:maintaining build output quality`"
  1047. section in the Yocto Project Development Tasks Manual.
  1048. You can specify these features in the form of a space-separated list:
  1049. - *image:* Analysis of the contents of images, which includes the
  1050. list of installed packages among other things.
  1051. - *package:* Analysis of the contents of individual packages.
  1052. - *sdk:* Analysis of the contents of the software development kit
  1053. (SDK).
  1054. - *task:* Save output file signatures for
  1055. :ref:`shared state <overview-manual/concepts:shared state cache>`
  1056. (sstate) tasks.
  1057. This saves one file per task and lists the SHA-256 checksums for
  1058. each file staged (i.e. the output of the task).
  1059. By default, the :ref:`ref-classes-buildhistory` class enables the
  1060. following features::
  1061. BUILDHISTORY_FEATURES ?= "image package sdk"
  1062. :term:`BUILDHISTORY_IMAGE_FILES`
  1063. When inheriting the :ref:`ref-classes-buildhistory`
  1064. class, this variable specifies a list of paths to files copied from
  1065. the image contents into the build history directory under an
  1066. "image-files" directory in the directory for the image, so that you
  1067. can track the contents of each file. The default is to copy
  1068. ``/etc/passwd`` and ``/etc/group``, which allows you to monitor for
  1069. changes in user and group entries. You can modify the list to include
  1070. any file. Specifying an invalid path does not produce an error.
  1071. Consequently, you can include files that might not always be present.
  1072. By default, the :ref:`ref-classes-buildhistory` class provides paths to
  1073. the following files::
  1074. BUILDHISTORY_IMAGE_FILES ?= "/etc/passwd /etc/group"
  1075. :term:`BUILDHISTORY_PATH_PREFIX_STRIP`
  1076. When inheriting the :ref:`ref-classes-buildhistory`
  1077. class, this variable specifies a common path prefix that should be
  1078. stripped off the beginning of paths in the task signature list when the
  1079. ``task`` feature is active in :term:`BUILDHISTORY_FEATURES`. This can be
  1080. useful when build history is populated from multiple sources that may not
  1081. all use the same top level directory.
  1082. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  1083. as follows::
  1084. BUILDHISTORY_PATH_PREFIX_STRIP ?= ""
  1085. In this case, no prefixes will be stripped.
  1086. :term:`BUILDHISTORY_PUSH_REPO`
  1087. When inheriting the :ref:`ref-classes-buildhistory` class, this variable
  1088. optionally specifies a remote repository to which build history pushes
  1089. Git changes. In order for :term:`BUILDHISTORY_PUSH_REPO` to work,
  1090. :term:`BUILDHISTORY_COMMIT` must be set to "1".
  1091. The repository should correspond to a remote address that specifies a
  1092. repository as understood by Git, or alternatively to a remote name
  1093. that you have set up manually using ``git remote`` within the local
  1094. repository.
  1095. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  1096. as follows::
  1097. BUILDHISTORY_PUSH_REPO ?= ""
  1098. :term:`BUILDNAME`
  1099. See :term:`bitbake:BUILDNAME` in the BitBake manual.
  1100. :term:`BUILDSDK_CFLAGS`
  1101. Specifies the flags to pass to the C compiler when building for the
  1102. SDK. When building in the ``nativesdk-`` context,
  1103. :term:`CFLAGS` is set to the value of this variable by
  1104. default.
  1105. :term:`BUILDSDK_CPPFLAGS`
  1106. Specifies the flags to pass to the C pre-processor (i.e. to both the
  1107. C and the C++ compilers) when building for the SDK. When building in
  1108. the ``nativesdk-`` context, :term:`CPPFLAGS` is set
  1109. to the value of this variable by default.
  1110. :term:`BUILDSDK_CXXFLAGS`
  1111. Specifies the flags to pass to the C++ compiler when building for the
  1112. SDK. When building in the ``nativesdk-`` context,
  1113. :term:`CXXFLAGS` is set to the value of this variable
  1114. by default.
  1115. :term:`BUILDSDK_LDFLAGS`
  1116. Specifies the flags to pass to the linker when building for the SDK.
  1117. When building in the ``nativesdk-`` context,
  1118. :term:`LDFLAGS` is set to the value of this variable
  1119. by default.
  1120. :term:`BUILDSTATS_BASE`
  1121. Points to the location of the directory that holds build statistics
  1122. when you use and enable the :ref:`ref-classes-buildstats` class. The
  1123. :term:`BUILDSTATS_BASE` directory defaults to
  1124. ``${``\ :term:`TMPDIR`\ ``}/buildstats/``.
  1125. :term:`BUSYBOX_SPLIT_SUID`
  1126. For the BusyBox recipe, specifies whether to split the output
  1127. executable file into two parts: one for features that require
  1128. ``setuid root``, and one for the remaining features (i.e. those that
  1129. do not require ``setuid root``).
  1130. The :term:`BUSYBOX_SPLIT_SUID` variable defaults to "1", which results in
  1131. splitting the output executable file. Set the variable to "0" to get
  1132. a single output executable file.
  1133. :term:`BZRDIR`
  1134. See :term:`bitbake:BZRDIR` in the BitBake manual.
  1135. :term:`CACHE`
  1136. Specifies the directory BitBake uses to store a cache of the
  1137. :term:`Metadata` so it does not need to be parsed every time
  1138. BitBake is started.
  1139. :term:`CARGO_INSTALL_LIBRARIES`
  1140. When inheriting the :ref:`ref-classes-cargo` class, the variable
  1141. :term:`CARGO_INSTALL_LIBRARIES` can be set to a non-empty value by
  1142. individual recipes to enable the installation of the libraries the
  1143. recipe has built in ``${B}/target/${CARGO_TARGET_SUBDIR}`` (files ending
  1144. with ``.so`` or ``.rlib``). By default this variable is not defined and
  1145. libraries are not installed, to replicate the behavior of the ``cargo
  1146. install`` command.
  1147. :term:`CC`
  1148. The minimal command and arguments used to run the C compiler.
  1149. :term:`CCLD`
  1150. The minimal command and arguments used to run the linker when the C
  1151. compiler is being used as the linker.
  1152. :term:`CFLAGS`
  1153. Specifies the flags to pass to the C compiler. This variable is
  1154. exported to an environment variable and thus made visible to the
  1155. software being built during the compilation step.
  1156. Default initialization for :term:`CFLAGS` varies depending on what is
  1157. being built:
  1158. - :term:`TARGET_CFLAGS` when building for the
  1159. target
  1160. - :term:`BUILD_CFLAGS` when building for the
  1161. build host (i.e. ``-native``)
  1162. - :term:`BUILDSDK_CFLAGS` when building for
  1163. an SDK (i.e. ``nativesdk-``)
  1164. :term:`CHECKLAYER_REQUIRED_TESTS`
  1165. The :term:`CHECKLAYER_REQUIRED_TESTS` variable lists the QA tests that are
  1166. required to be enabled to pass the Yocto Project Compatible status for a
  1167. layer. It is meant to be a read-only variable and any change to the
  1168. variable may be done with the approval of the :oe_wiki:`Technical Steering
  1169. Committee (TSC) </TSC>`.
  1170. For more information on the Yocto Project Compatible status, see
  1171. the :ref:`dev-manual/layers:Making Sure Your Layer is Compatible With
  1172. Yocto Project` section of the Yocto Project Development Manual.
  1173. :term:`CLASSOVERRIDE`
  1174. An internal variable specifying the special class override that
  1175. should currently apply (e.g. "class-target", "class-native", and so
  1176. forth). The classes that use this variable (e.g.
  1177. :ref:`ref-classes-native`, :ref:`ref-classes-nativesdk`, and so forth)
  1178. set the variable to appropriate values.
  1179. .. note::
  1180. :term:`CLASSOVERRIDE` gets its default "class-target" value from the
  1181. ``bitbake.conf`` file.
  1182. As an example, the following override allows you to install extra
  1183. files, but only when building for the target::
  1184. do_install:append:class-target() {
  1185. install my-extra-file ${D}${sysconfdir}
  1186. }
  1187. Here is an example where ``FOO`` is set to
  1188. "native" when building for the build host, and to "other" when not
  1189. building for the build host::
  1190. FOO:class-native = "native"
  1191. FOO = "other"
  1192. The underlying mechanism behind :term:`CLASSOVERRIDE` is simply
  1193. that it is included in the default value of
  1194. :term:`OVERRIDES`.
  1195. :term:`CLEANBROKEN`
  1196. If set to "1" within a recipe, :term:`CLEANBROKEN` specifies that the
  1197. ``make clean`` command does not work for the software being built.
  1198. Consequently, the OpenEmbedded build system will not try to run
  1199. ``make clean`` during the :ref:`ref-tasks-configure`
  1200. task, which is the default behavior.
  1201. :term:`COMBINED_FEATURES`
  1202. Provides a list of hardware features that are enabled in both
  1203. :term:`MACHINE_FEATURES` and
  1204. :term:`DISTRO_FEATURES`. This select list of
  1205. features contains features that make sense to be controlled both at
  1206. the machine and distribution configuration level. For example, the
  1207. "bluetooth" feature requires hardware support but should also be
  1208. optional at the distribution level, in case the hardware supports
  1209. Bluetooth but you do not ever intend to use it.
  1210. :term:`COMMERCIAL_AUDIO_PLUGINS`
  1211. This variable is specific to the :yocto_git:`GStreamer recipes
  1212. </poky/tree/meta/recipes-multimedia/gstreamer/gstreamer1.0-meta-base.bb>`.
  1213. It allows to build the GStreamer `"ugly"
  1214. <https://github.com/GStreamer/gst-plugins-ugly>`__ and
  1215. `"bad" <https://github.com/GStreamer/gst-plugins-bad>`__ audio plugins.
  1216. See the :ref:`dev-manual/licenses:other variables related to commercial licenses`
  1217. section for usage details.
  1218. :term:`COMMERCIAL_VIDEO_PLUGINS`
  1219. This variable is specific to the :yocto_git:`GStreamer recipes
  1220. </poky/tree/meta/recipes-multimedia/gstreamer/gstreamer1.0-meta-base.bb>`.
  1221. It allows to build the GStreamer `"ugly"
  1222. <https://github.com/GStreamer/gst-plugins-ugly>`__ and
  1223. `"bad" <https://github.com/GStreamer/gst-plugins-bad>`__ video plugins.
  1224. See the :ref:`dev-manual/licenses:other variables related to commercial licenses`
  1225. section for usage details.
  1226. :term:`COMMON_LICENSE_DIR`
  1227. Points to ``meta/files/common-licenses`` in the
  1228. :term:`Source Directory`, which is where generic license
  1229. files reside.
  1230. :term:`COMPATIBLE_HOST`
  1231. A regular expression that resolves to one or more hosts (when the
  1232. recipe is native) or one or more targets (when the recipe is
  1233. non-native) with which a recipe is compatible. The regular expression
  1234. is matched against :term:`HOST_SYS`. You can use the
  1235. variable to stop recipes from being built for classes of systems with
  1236. which the recipes are not compatible. Stopping these builds is
  1237. particularly useful with kernels. The variable also helps to increase
  1238. parsing speed since the build system skips parsing recipes not
  1239. compatible with the current system.
  1240. :term:`COMPATIBLE_MACHINE`
  1241. A regular expression that resolves to one or more target machines
  1242. with which a recipe is compatible. The regular expression is matched
  1243. against :term:`MACHINEOVERRIDES`. You can use
  1244. the variable to stop recipes from being built for machines with which
  1245. the recipes are not compatible. Stopping these builds is particularly
  1246. useful with kernels. The variable also helps to increase parsing
  1247. speed since the build system skips parsing recipes not compatible
  1248. with the current machine.
  1249. If one wants to have a recipe only available for some architectures
  1250. (here ``aarch64`` and ``mips64``), the following can be used::
  1251. COMPATIBLE_MACHINE = "^$"
  1252. COMPATIBLE_MACHINE:arch64 = "^(aarch64)$"
  1253. COMPATIBLE_MACHINE:mips64 = "^(mips64)$"
  1254. The first line means "match all machines whose :term:`MACHINEOVERRIDES`
  1255. contains the empty string", which will always be none.
  1256. The second is for matching all machines whose :term:`MACHINEOVERRIDES`
  1257. contains one override which is exactly ``aarch64``.
  1258. The third is for matching all machines whose :term:`MACHINEOVERRIDES`
  1259. contains one override which is exactly ``mips64``.
  1260. The same could be achieved with::
  1261. COMPATIBLE_MACHINE = "^(aarch64|mips64)$"
  1262. .. note::
  1263. When :term:`COMPATIBLE_MACHINE` is set in a recipe inherits from
  1264. native, the recipe is always skipped. All native recipes must be
  1265. entirely target independent and should not rely on :term:`MACHINE`.
  1266. :term:`COMPLEMENTARY_GLOB`
  1267. Defines wildcards to match when installing a list of complementary
  1268. packages for all the packages explicitly (or implicitly) installed in
  1269. an image.
  1270. The :term:`COMPLEMENTARY_GLOB` variable uses Unix filename pattern matching
  1271. (`fnmatch <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__),
  1272. which is similar to the Unix style pathname pattern expansion
  1273. (`glob <https://docs.python.org/3/library/glob.html>`__).
  1274. The resulting list of complementary packages is associated with an
  1275. item that can be added to
  1276. :term:`IMAGE_FEATURES`. An example usage of
  1277. this is the "dev-pkgs" item that when added to :term:`IMAGE_FEATURES`
  1278. will install -dev packages (containing headers and other development
  1279. files) for every package in the image.
  1280. To add a new feature item pointing to a wildcard, use a variable flag
  1281. to specify the feature item name and use the value to specify the
  1282. wildcard. Here is an example::
  1283. COMPLEMENTARY_GLOB[dev-pkgs] = '*-dev'
  1284. .. note::
  1285. When installing complementary packages, recommends relationships
  1286. (set via :term:`RRECOMMENDS`) are always ignored.
  1287. :term:`COMPONENTS_DIR`
  1288. Stores sysroot components for each recipe. The OpenEmbedded build
  1289. system uses :term:`COMPONENTS_DIR` when constructing recipe-specific
  1290. sysroots for other recipes.
  1291. The default is
  1292. "``${``\ :term:`STAGING_DIR`\ ``}-components``."
  1293. (i.e.
  1294. "``${``\ :term:`TMPDIR`\ ``}/sysroots-components``").
  1295. :term:`CONF_VERSION`
  1296. Tracks the version of the local configuration file (i.e.
  1297. ``local.conf``). The value for :term:`CONF_VERSION` increments each time
  1298. ``build/conf/`` compatibility changes.
  1299. :term:`CONFFILES`
  1300. Identifies editable or configurable files that are part of a package.
  1301. If the Package Management System (PMS) is being used to update
  1302. packages on the target system, it is possible that configuration
  1303. files you have changed after the original installation and that you
  1304. now want to remain unchanged are overwritten. In other words,
  1305. editable files might exist in the package that you do not want reset
  1306. as part of the package update process. You can use the :term:`CONFFILES`
  1307. variable to list the files in the package that you wish to prevent
  1308. the PMS from overwriting during this update process.
  1309. To use the :term:`CONFFILES` variable, provide a package name override
  1310. that identifies the resulting package. Then, provide a
  1311. space-separated list of files. Here is an example::
  1312. CONFFILES:${PN} += "${sysconfdir}/file1 \
  1313. ${sysconfdir}/file2 ${sysconfdir}/file3"
  1314. There is a relationship between the :term:`CONFFILES` and :term:`FILES`
  1315. variables. The files listed within :term:`CONFFILES` must be a subset of
  1316. the files listed within :term:`FILES`. Because the configuration files
  1317. you provide with :term:`CONFFILES` are simply being identified so that
  1318. the PMS will not overwrite them, it makes sense that the files must
  1319. already be included as part of the package through the :term:`FILES`
  1320. variable.
  1321. .. note::
  1322. When specifying paths as part of the :term:`CONFFILES` variable, it is
  1323. good practice to use appropriate path variables.
  1324. For example, ``${sysconfdir}`` rather than ``/etc`` or ``${bindir}``
  1325. rather than ``/usr/bin``. You can find a list of these variables at
  1326. the top of the ``meta/conf/bitbake.conf`` file in the
  1327. :term:`Source Directory`.
  1328. :term:`CONFIG_INITRAMFS_SOURCE`
  1329. Identifies the initial RAM filesystem (:term:`Initramfs`) source files. The
  1330. OpenEmbedded build system receives and uses this kernel Kconfig
  1331. variable as an environment variable. By default, the variable is set
  1332. to null ("").
  1333. The :term:`CONFIG_INITRAMFS_SOURCE` can be either a single cpio archive
  1334. with a ``.cpio`` suffix or a space-separated list of directories and
  1335. files for building the :term:`Initramfs` image. A cpio archive should contain
  1336. a filesystem archive to be used as an :term:`Initramfs` image. Directories
  1337. should contain a filesystem layout to be included in the :term:`Initramfs`
  1338. image. Files should contain entries according to the format described
  1339. by the ``usr/gen_init_cpio`` program in the kernel tree.
  1340. If you specify multiple directories and files, the :term:`Initramfs` image
  1341. will be the aggregate of all of them.
  1342. For information on creating an :term:`Initramfs`, see the
  1343. ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  1344. in the Yocto Project Development Tasks Manual.
  1345. :term:`CONFIG_SITE`
  1346. A list of files that contains ``autoconf`` test results relevant to
  1347. the current build. This variable is used by the Autotools utilities
  1348. when running ``configure``.
  1349. :term:`CONFIGURE_FLAGS`
  1350. The minimal arguments for GNU configure.
  1351. :term:`CONFIGURE_SCRIPT`
  1352. When using the :ref:`ref-classes-autotools` class, the
  1353. :term:`CONFIGURE_SCRIPT` variable stores the location of the ``configure``
  1354. script for the Autotools build system. The default definition for this
  1355. variable is::
  1356. CONFIGURE_SCRIPT ?= "${AUTOTOOLS_SCRIPT_PATH}/configure"
  1357. Where :term:`AUTOTOOLS_SCRIPT_PATH` is the location of the of the
  1358. Autotools build system scripts, which defaults to :term:`S`.
  1359. :term:`CONFLICT_DISTRO_FEATURES`
  1360. When inheriting the :ref:`ref-classes-features_check`
  1361. class, this variable identifies distribution features that would be
  1362. in conflict should the recipe be built. In other words, if the
  1363. :term:`CONFLICT_DISTRO_FEATURES` variable lists a feature that also
  1364. appears in :term:`DISTRO_FEATURES` within the current configuration, then
  1365. the recipe will be skipped, and if the build system attempts to build
  1366. the recipe then an error will be triggered.
  1367. :term:`CONVERSION_CMD`
  1368. This variable is used for storing image conversion commands.
  1369. Image conversion can convert an image into different objects like:
  1370. - Compressed version of the image
  1371. - Checksums for the image
  1372. An example of :term:`CONVERSION_CMD` from :ref:`ref-classes-image_types`
  1373. class is::
  1374. CONVERSION_CMD:lzo = "lzop -9 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
  1375. :term:`COPY_LIC_DIRS`
  1376. If set to "1" along with the
  1377. :term:`COPY_LIC_MANIFEST` variable, the
  1378. OpenEmbedded build system copies into the image the license files,
  1379. which are located in ``/usr/share/common-licenses``, for each
  1380. package. The license files are placed in directories within the image
  1381. itself during build time.
  1382. .. note::
  1383. The :term:`COPY_LIC_DIRS` does not offer a path for adding licenses for
  1384. newly installed packages to an image, which might be most suitable for
  1385. read-only filesystems that cannot be upgraded. See the
  1386. :term:`LICENSE_CREATE_PACKAGE` variable for additional information.
  1387. You can also reference the ":ref:`dev-manual/licenses:providing license text`"
  1388. section in the Yocto Project Development Tasks Manual for
  1389. information on providing license text.
  1390. :term:`COPY_LIC_MANIFEST`
  1391. If set to "1", the OpenEmbedded build system copies the license
  1392. manifest for the image to
  1393. ``/usr/share/common-licenses/license.manifest`` within the image
  1394. itself during build time.
  1395. .. note::
  1396. The :term:`COPY_LIC_MANIFEST` does not offer a path for adding licenses for
  1397. newly installed packages to an image, which might be most suitable for
  1398. read-only filesystems that cannot be upgraded. See the
  1399. :term:`LICENSE_CREATE_PACKAGE` variable for additional information.
  1400. You can also reference the ":ref:`dev-manual/licenses:providing license text`"
  1401. section in the Yocto Project Development Tasks Manual for
  1402. information on providing license text.
  1403. :term:`COPYLEFT_LICENSE_EXCLUDE`
  1404. A space-separated list of licenses to exclude from the source archived by
  1405. the :ref:`ref-classes-archiver` class. In other words, if a license in a
  1406. recipe's :term:`LICENSE` value is in the value of
  1407. :term:`COPYLEFT_LICENSE_EXCLUDE`, then its source is not archived by the
  1408. class.
  1409. .. note::
  1410. The :term:`COPYLEFT_LICENSE_EXCLUDE` variable takes precedence over the
  1411. :term:`COPYLEFT_LICENSE_INCLUDE` variable.
  1412. The default value, which is "CLOSED Proprietary", for
  1413. :term:`COPYLEFT_LICENSE_EXCLUDE` is set by the
  1414. :ref:`ref-classes-copyleft_filter` class, which
  1415. is inherited by the :ref:`ref-classes-archiver` class.
  1416. :term:`COPYLEFT_LICENSE_INCLUDE`
  1417. A space-separated list of licenses to include in the source archived
  1418. by the :ref:`ref-classes-archiver` class. In other
  1419. words, if a license in a recipe's :term:`LICENSE`
  1420. value is in the value of :term:`COPYLEFT_LICENSE_INCLUDE`, then its
  1421. source is archived by the class.
  1422. The default value is set by the :ref:`ref-classes-copyleft_filter` class,
  1423. which is inherited by the :ref:`ref-classes-archiver` class. The default
  1424. value includes "GPL*", "LGPL*", and "AGPL*".
  1425. :term:`COPYLEFT_PN_EXCLUDE`
  1426. A list of recipes to exclude in the source archived by the
  1427. :ref:`ref-classes-archiver` class. The :term:`COPYLEFT_PN_EXCLUDE`
  1428. variable overrides the license inclusion and exclusion caused through the
  1429. :term:`COPYLEFT_LICENSE_INCLUDE` and :term:`COPYLEFT_LICENSE_EXCLUDE`
  1430. variables, respectively.
  1431. The default value, which is "" indicating to not explicitly exclude
  1432. any recipes by name, for :term:`COPYLEFT_PN_EXCLUDE` is set by the
  1433. :ref:`ref-classes-copyleft_filter` class, which is inherited by the
  1434. :ref:`ref-classes-archiver` class.
  1435. :term:`COPYLEFT_PN_INCLUDE`
  1436. A list of recipes to include in the source archived by the
  1437. :ref:`ref-classes-archiver` class. The :term:`COPYLEFT_PN_INCLUDE`
  1438. variable overrides the license inclusion and exclusion caused through the
  1439. :term:`COPYLEFT_LICENSE_INCLUDE` and :term:`COPYLEFT_LICENSE_EXCLUDE`
  1440. variables, respectively.
  1441. The default value, which is "" indicating to not explicitly include
  1442. any recipes by name, for :term:`COPYLEFT_PN_INCLUDE` is set by the
  1443. :ref:`ref-classes-copyleft_filter` class, which is inherited by the
  1444. :ref:`ref-classes-archiver` class.
  1445. :term:`COPYLEFT_RECIPE_TYPES`
  1446. A space-separated list of recipe types to include in the source
  1447. archived by the :ref:`archiver <ref-classes-archiver>` class.
  1448. Recipe types are ``target``, :ref:`ref-classes-native`,
  1449. :ref:`ref-classes-nativesdk`, :ref:`ref-classes-cross`,
  1450. :ref:`ref-classes-crosssdk`, and :ref:`ref-classes-cross-canadian`.
  1451. The default value, which is "target*", for :term:`COPYLEFT_RECIPE_TYPES`
  1452. is set by the :ref:`ref-classes-copyleft_filter` class, which is
  1453. inherited by the :ref:`ref-classes-archiver` class.
  1454. :term:`CORE_IMAGE_EXTRA_INSTALL`
  1455. Specifies the list of packages to be added to the image. You should
  1456. only set this variable in the ``local.conf`` configuration file found
  1457. in the :term:`Build Directory`.
  1458. This variable replaces ``POKY_EXTRA_INSTALL``, which is no longer
  1459. supported.
  1460. :term:`COREBASE`
  1461. Specifies the parent directory of the OpenEmbedded-Core Metadata
  1462. layer (i.e. ``meta``).
  1463. It is an important distinction that :term:`COREBASE` points to the parent
  1464. of this layer and not the layer itself. Consider an example where you
  1465. have cloned the Poky Git repository and retained the ``poky`` name
  1466. for your local copy of the repository. In this case, :term:`COREBASE`
  1467. points to the ``poky`` folder because it is the parent directory of
  1468. the ``poky/meta`` layer.
  1469. :term:`COREBASE_FILES`
  1470. Lists files from the :term:`COREBASE` directory that
  1471. should be copied other than the layers listed in the
  1472. ``bblayers.conf`` file. The :term:`COREBASE_FILES` variable allows
  1473. to copy metadata from the OpenEmbedded build system
  1474. into the extensible SDK.
  1475. Explicitly listing files in :term:`COREBASE` is needed because it
  1476. typically contains build directories and other files that should not
  1477. normally be copied into the extensible SDK. Consequently, the value
  1478. of :term:`COREBASE_FILES` is used in order to only copy the files that
  1479. are actually needed.
  1480. :term:`CPP`
  1481. The minimal command and arguments used to run the C preprocessor.
  1482. :term:`CPPFLAGS`
  1483. Specifies the flags to pass to the C pre-processor (i.e. to both the
  1484. C and the C++ compilers). This variable is exported to an environment
  1485. variable and thus made visible to the software being built during the
  1486. compilation step.
  1487. Default initialization for :term:`CPPFLAGS` varies depending on what is
  1488. being built:
  1489. - :term:`TARGET_CPPFLAGS` when building for
  1490. the target
  1491. - :term:`BUILD_CPPFLAGS` when building for the
  1492. build host (i.e. ``-native``)
  1493. - :term:`BUILDSDK_CPPFLAGS` when building
  1494. for an SDK (i.e. ``nativesdk-``)
  1495. :term:`CROSS_COMPILE`
  1496. The toolchain binary prefix for the target tools. The
  1497. :term:`CROSS_COMPILE` variable is the same as the
  1498. :term:`TARGET_PREFIX` variable.
  1499. .. note::
  1500. The OpenEmbedded build system sets the :term:`CROSS_COMPILE`
  1501. variable only in certain contexts (e.g. when building for kernel
  1502. and kernel module recipes).
  1503. :term:`CVE_CHECK_CREATE_MANIFEST`
  1504. Specifies whether to create a CVE manifest to place in the deploy
  1505. directory. The default is "1".
  1506. :term:`CVE_CHECK_IGNORE`
  1507. This variable is deprecated and should be replaced by :term:`CVE_STATUS`.
  1508. :term:`CVE_CHECK_MANIFEST_JSON`
  1509. Specifies the path to the CVE manifest in JSON format. See
  1510. :term:`CVE_CHECK_CREATE_MANIFEST`.
  1511. :term:`CVE_CHECK_MANIFEST_JSON_SUFFIX`
  1512. Allows to modify the JSON manifest suffix. See
  1513. :term:`CVE_CHECK_MANIFEST_JSON`.
  1514. :term:`CVE_CHECK_REPORT_PATCHED`
  1515. Specifies whether or not the :ref:`ref-classes-cve-check`
  1516. class should report patched or ignored CVEs. The default is "1", but you
  1517. may wish to set it to "0" if you do not need patched or ignored CVEs in
  1518. the logs.
  1519. :term:`CVE_CHECK_SHOW_WARNINGS`
  1520. Specifies whether or not the :ref:`ref-classes-cve-check`
  1521. class should generate warning messages on the console when unpatched
  1522. CVEs are found. The default is "1", but you may wish to set it to "0" if
  1523. you are already examining/processing the logs after the build has
  1524. completed and thus do not need the warning messages.
  1525. :term:`CVE_CHECK_SKIP_RECIPE`
  1526. The list of package names (:term:`PN`) for which
  1527. CVEs (Common Vulnerabilities and Exposures) are ignored.
  1528. :term:`CVE_DB_INCR_UPDATE_AGE_THRES`
  1529. Specifies the maximum age of the CVE database in seconds for an
  1530. incremental update (instead of a full-download). Use "0" to force a
  1531. full-download.
  1532. :term:`CVE_DB_UPDATE_INTERVAL`
  1533. Specifies the CVE database update interval in seconds, as used by
  1534. ``cve-update-db-native``. The default value is "86400" i.e. once a day
  1535. (24*60*60). If the value is set to "0" then the update will be forced
  1536. every time. Alternatively, a negative value e.g. "-1" will disable
  1537. updates entirely.
  1538. :term:`CVE_PRODUCT`
  1539. In a recipe, defines the name used to match the recipe name
  1540. against the name in the upstream `NIST CVE database <https://nvd.nist.gov/>`__.
  1541. The default is ${:term:`BPN`} (except for recipes that inherit the
  1542. :ref:`ref-classes-pypi` class where it is set based upon
  1543. :term:`PYPI_PACKAGE`). If it does not match the name in the NIST CVE
  1544. database or matches with multiple entries in the database, the default
  1545. value needs to be changed.
  1546. Here is an example from the :oe_layerindex:`Berkeley DB recipe </layerindex/recipe/544>`::
  1547. CVE_PRODUCT = "oracle_berkeley_db berkeley_db"
  1548. Sometimes the product name is not specific enough, for example
  1549. "tar" has been matching CVEs for the GNU ``tar`` package and also
  1550. the ``node-tar`` node.js extension. To avoid this problem, use the
  1551. vendor name as a prefix. The syntax for this is::
  1552. CVE_PRODUCT = "vendor:package"
  1553. :term:`CVE_STATUS`
  1554. The CVE ID which is patched or should be ignored. Here is
  1555. an example from the :oe_layerindex:`Python3 recipe</layerindex/recipe/23823>`::
  1556. CVE_STATUS[CVE-2020-15523] = "not-applicable-platform: Issue only applies on Windows"
  1557. It has the format "reason: description" and the description is optional.
  1558. The Reason is mapped to the final CVE state by mapping via
  1559. :term:`CVE_CHECK_STATUSMAP`. See :ref:`dev-manual/vulnerabilities:fixing vulnerabilities in recipes`
  1560. for details.
  1561. :term:`CVE_STATUS_GROUPS`
  1562. If there are many CVEs with the same status and reason, they can by simplified by using this
  1563. variable instead of many similar lines with :term:`CVE_STATUS`::
  1564. CVE_STATUS_GROUPS = "CVE_STATUS_WIN CVE_STATUS_PATCHED"
  1565. CVE_STATUS_WIN = "CVE-1234-0001 CVE-1234-0002"
  1566. CVE_STATUS_WIN[status] = "not-applicable-platform: Issue only applies on Windows"
  1567. CVE_STATUS_PATCHED = "CVE-1234-0003 CVE-1234-0004"
  1568. CVE_STATUS_PATCHED[status] = "fixed-version: Fixed externally"
  1569. :term:`CVE_CHECK_STATUSMAP`
  1570. Mapping variable for all possible reasons of :term:`CVE_STATUS`:
  1571. ``Patched``, ``Unpatched`` and ``Ignored``.
  1572. See :ref:`ref-classes-cve-check` or ``meta/conf/cve-check-map.conf`` for more details::
  1573. CVE_CHECK_STATUSMAP[cpe-incorrect] = "Ignored"
  1574. :term:`CVE_CHECK_VEX_JUSTIFICATION`
  1575. Mapping variable for :term:`CVE_STATUS` reasons
  1576. (for example ``not-applicable-platform``) to :ref:`ref-classes-vex`
  1577. justifications. Should be set as follows::
  1578. CVE_CHECK_VEX_JUSTIFICATION[not-applicable-config] = "vulnerableCodeNotPresent"
  1579. :term:`CVE_VERSION`
  1580. In a recipe, defines the version used to match the recipe version
  1581. against the version in the `NIST CVE database <https://nvd.nist.gov/>`__
  1582. when usign :ref:`ref-classes-cve-check`.
  1583. The default is ${:term:`PV`} but if recipes use custom version numbers
  1584. which do not map to upstream software component release versions and the versions
  1585. used in the CVE database, then this variable can be used to set the
  1586. version number for :ref:`ref-classes-cve-check`. Example::
  1587. CVE_VERSION = "2.39"
  1588. :term:`CVSDIR`
  1589. The directory in which files checked out under the CVS system are
  1590. stored.
  1591. :term:`CXX`
  1592. The minimal command and arguments used to run the C++ compiler.
  1593. :term:`CXXFLAGS`
  1594. Specifies the flags to pass to the C++ compiler. This variable is
  1595. exported to an environment variable and thus made visible to the
  1596. software being built during the compilation step.
  1597. Default initialization for :term:`CXXFLAGS` varies depending on what is
  1598. being built:
  1599. - :term:`TARGET_CXXFLAGS` when building for
  1600. the target
  1601. - :term:`BUILD_CXXFLAGS` when building for the
  1602. build host (i.e. ``-native``)
  1603. - :term:`BUILDSDK_CXXFLAGS` when building
  1604. for an SDK (i.e. ``nativesdk-``)
  1605. :term:`D`
  1606. The destination directory. The location in the :term:`Build Directory`
  1607. where components are installed by the
  1608. :ref:`ref-tasks-install` task. This location defaults
  1609. to::
  1610. ${WORKDIR}/image
  1611. .. note::
  1612. Tasks that read from or write to this directory should run under
  1613. :ref:`fakeroot <overview-manual/concepts:fakeroot and pseudo>`.
  1614. :term:`DATE`
  1615. The date the build was started. Dates appear using the year, month,
  1616. and day (YMD) format (e.g. "20150209" for February 9th, 2015).
  1617. :term:`DATETIME`
  1618. The date and time on which the current build started. The format is
  1619. suitable for timestamps.
  1620. :term:`DEBIAN_NOAUTONAME`
  1621. When the :ref:`ref-classes-debian` class is inherited,
  1622. which is the default behavior, :term:`DEBIAN_NOAUTONAME` specifies a
  1623. particular package should not be renamed according to Debian library
  1624. package naming. You must use the package name as an override when you
  1625. set this variable. Here is an example from the ``fontconfig`` recipe::
  1626. DEBIAN_NOAUTONAME:fontconfig-utils = "1"
  1627. :term:`DEBIANNAME`
  1628. When the :ref:`ref-classes-debian` class is inherited,
  1629. which is the default behavior, :term:`DEBIANNAME` allows you to override
  1630. the library name for an individual package. Overriding the library
  1631. name in these cases is rare. You must use the package name as an
  1632. override when you set this variable. Here is an example from the
  1633. ``dbus`` recipe::
  1634. DEBIANNAME:${PN} = "dbus-1"
  1635. :term:`DEBUG_BUILD`
  1636. Specifies to build packages with debugging information. This
  1637. influences the value of the :term:`SELECTED_OPTIMIZATION` variable.
  1638. :term:`DEBUG_OPTIMIZATION`
  1639. The options to pass in :term:`TARGET_CFLAGS` and :term:`CFLAGS` when
  1640. compiling a system for debugging. This variable defaults to "-O
  1641. -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe".
  1642. :term:`DEBUG_PREFIX_MAP`
  1643. Allows to set C compiler options, such as ``-fdebug-prefix-map``,
  1644. ``-fmacro-prefix-map``, and ``-ffile-prefix-map``, which allow to
  1645. replace build-time paths by install-time ones in the debugging sections
  1646. of binaries. This makes compiler output files location independent,
  1647. at the cost of having to pass an extra command to tell the debugger
  1648. where source files are.
  1649. This is used by the Yocto Project to guarantee
  1650. :doc:`/test-manual/reproducible-builds` even when the source code of
  1651. a package uses the ``__FILE__`` or ``assert()`` macros. See the
  1652. `reproducible-builds.org <https://reproducible-builds.org/docs/build-path/>`__
  1653. website for details.
  1654. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  1655. not intended to be user-configurable.
  1656. :term:`DEFAULT_PREFERENCE`
  1657. Specifies a weak bias for recipe selection priority.
  1658. The most common usage of this is variable is to set it to "-1" within
  1659. a recipe for a development version of a piece of software. Using the
  1660. variable in this way causes the stable version of the recipe to build
  1661. by default in the absence of :term:`PREFERRED_VERSION` being used to
  1662. build the development version.
  1663. .. note::
  1664. The bias provided by :term:`DEFAULT_PREFERENCE` is weak and is overridden
  1665. by :term:`BBFILE_PRIORITY` if that variable is different between two
  1666. layers that contain different versions of the same recipe.
  1667. :term:`DEFAULT_TIMEZONE`
  1668. Specifies the time zone set in the image.
  1669. This variable causes the ``tzdata`` package to configure
  1670. ``${sysconfdir}/localtime`` accordingly. Valid values are all files
  1671. found in ``/usr/share/zoneinfo`` like ``CET`` or ``Asia/Baku``.
  1672. :term:`DEFAULTTUNE`
  1673. The default CPU and Application Binary Interface (ABI) tunings (i.e.
  1674. the "tune") used by the OpenEmbedded build system. The
  1675. :term:`DEFAULTTUNE` helps define
  1676. :term:`TUNE_FEATURES`.
  1677. The default tune is either implicitly or explicitly set by the
  1678. machine (:term:`MACHINE`). However, you can override
  1679. the setting using available tunes as defined with
  1680. :term:`AVAILTUNES`.
  1681. :term:`DEPENDS`
  1682. Lists a recipe's build-time dependencies. These are dependencies on
  1683. other recipes whose contents (e.g. headers and shared libraries) are
  1684. needed by the recipe at build time.
  1685. As an example, consider a recipe ``foo`` that contains the following
  1686. assignment::
  1687. DEPENDS = "bar"
  1688. The practical effect of the previous assignment is that all files
  1689. installed by bar will be available in the appropriate staging sysroot,
  1690. given by the :term:`STAGING_DIR* <STAGING_DIR>` variables, by the time
  1691. the :ref:`ref-tasks-configure` task for ``foo`` runs. This mechanism is
  1692. implemented by having :ref:`ref-tasks-configure` depend on the
  1693. :ref:`ref-tasks-populate_sysroot` task of each recipe listed in
  1694. :term:`DEPENDS`, through a
  1695. ``[``\ :ref:`deptask <bitbake-user-manual/bitbake-user-manual-metadata:variable flags>`\ ``]``
  1696. declaration in the :ref:`ref-classes-base` class.
  1697. .. note::
  1698. It seldom is necessary to reference, for example, :term:`STAGING_DIR_HOST`
  1699. explicitly. The standard classes and build-related variables are
  1700. configured to automatically use the appropriate staging sysroots.
  1701. As another example, :term:`DEPENDS` can also be used to add utilities
  1702. that run on the build machine during the build. For example, a recipe
  1703. that makes use of a code generator built by the recipe ``codegen``
  1704. might have the following::
  1705. DEPENDS = "codegen-native"
  1706. For more
  1707. information, see the :ref:`ref-classes-native` class and
  1708. the :term:`EXTRANATIVEPATH` variable.
  1709. .. note::
  1710. - :term:`DEPENDS` is a list of recipe names. Or, to be more precise,
  1711. it is a list of :term:`PROVIDES` names, which
  1712. usually match recipe names. Putting a package name such as
  1713. "foo-dev" in :term:`DEPENDS` does not make sense. Use "foo"
  1714. instead, as this will put files from all the packages that make
  1715. up ``foo``, which includes those from ``foo-dev``, into the
  1716. sysroot.
  1717. - One recipe having another recipe in :term:`DEPENDS` does not by
  1718. itself add any runtime dependencies between the packages
  1719. produced by the two recipes. However, as explained in the
  1720. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  1721. section in the Yocto Project Overview and Concepts Manual,
  1722. runtime dependencies will often be added automatically, meaning
  1723. :term:`DEPENDS` alone is sufficient for most recipes.
  1724. - Counterintuitively, :term:`DEPENDS` is often necessary even for
  1725. recipes that install precompiled components. For example, if
  1726. ``libfoo`` is a precompiled library that links against
  1727. ``libbar``, then linking against ``libfoo`` requires both
  1728. ``libfoo`` and ``libbar`` to be available in the sysroot.
  1729. Without a :term:`DEPENDS` from the recipe that installs ``libfoo``
  1730. to the recipe that installs ``libbar``, other recipes might
  1731. fail to link against ``libfoo``.
  1732. For information on runtime dependencies, see the :term:`RDEPENDS`
  1733. variable. You can also see the
  1734. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:tasks`" and
  1735. ":ref:`bitbake-user-manual/bitbake-user-manual-execution:dependencies`"
  1736. sections in the BitBake User Manual for additional information on tasks
  1737. and dependencies.
  1738. :term:`DEPLOY_DIR`
  1739. Points to the general area that the OpenEmbedded build system uses to
  1740. place images, packages, SDKs, and other output files that are ready
  1741. to be used outside of the build system. By default, this directory
  1742. resides within the :term:`Build Directory` as ``${TMPDIR}/deploy``.
  1743. For more information on the structure of the Build Directory, see
  1744. ":ref:`ref-manual/structure:the build directory --- ``build/```" section.
  1745. For more detail on the contents of the ``deploy`` directory, see the
  1746. ":ref:`overview-manual/concepts:images`",
  1747. ":ref:`overview-manual/concepts:package feeds`", and
  1748. ":ref:`overview-manual/concepts:application development sdk`" sections all in the
  1749. Yocto Project Overview and Concepts Manual.
  1750. :term:`DEPLOY_DIR_DEB`
  1751. Points to the area that the OpenEmbedded build system uses to place
  1752. Debian packages that are ready to be used outside of the build
  1753. system. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1754. ":ref:`ref-classes-package_deb`".
  1755. The BitBake configuration file initially defines the
  1756. :term:`DEPLOY_DIR_DEB` variable as a sub-folder of
  1757. :term:`DEPLOY_DIR`::
  1758. DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb"
  1759. The :ref:`ref-classes-package_deb` class uses the
  1760. :term:`DEPLOY_DIR_DEB` variable to make sure the
  1761. :ref:`ref-tasks-package_write_deb` task
  1762. writes Debian packages into the appropriate folder. For more
  1763. information on how packaging works, see the
  1764. ":ref:`overview-manual/concepts:package feeds`" section
  1765. in the Yocto Project Overview and Concepts Manual.
  1766. :term:`DEPLOY_DIR_IMAGE`
  1767. Points to the area that the OpenEmbedded build system uses to place
  1768. images and other associated output files that are ready to be
  1769. deployed onto the target machine. The directory is machine-specific
  1770. as it contains the ``${MACHINE}`` name. By default, this directory
  1771. resides within the :term:`Build Directory` as
  1772. ``${DEPLOY_DIR}/images/${MACHINE}/``.
  1773. It must not be used directly in recipes when deploying files. Instead,
  1774. it's only useful when a recipe needs to "read" a file already deployed
  1775. by a dependency. So, it should be filled with the contents of
  1776. :term:`DEPLOYDIR` by the :ref:`ref-classes-deploy` class or with the
  1777. contents of :term:`IMGDEPLOYDIR` by the :ref:`ref-classes-image` class.
  1778. For more information on the structure of the :term:`Build Directory`, see
  1779. ":ref:`ref-manual/structure:the build directory --- ``build/```" section.
  1780. For more detail on the contents of the ``deploy`` directory, see the
  1781. ":ref:`overview-manual/concepts:images`" and
  1782. ":ref:`overview-manual/concepts:application development sdk`" sections both in
  1783. the Yocto Project Overview and Concepts Manual.
  1784. :term:`DEPLOY_DIR_IPK`
  1785. Points to the area that the OpenEmbedded build system uses to place
  1786. IPK packages that are ready to be used outside of the build system.
  1787. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1788. ":ref:`ref-classes-package_ipk`".
  1789. The BitBake configuration file initially defines this variable as a
  1790. sub-folder of :term:`DEPLOY_DIR`::
  1791. DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk"
  1792. The :ref:`ref-classes-package_ipk` class uses the :term:`DEPLOY_DIR_IPK`
  1793. variable to make sure the :ref:`ref-tasks-package_write_ipk` task
  1794. writes IPK packages into the appropriate folder. For more information
  1795. on how packaging works, see the
  1796. ":ref:`overview-manual/concepts:package feeds`" section
  1797. in the Yocto Project Overview and Concepts Manual.
  1798. :term:`DEPLOY_DIR_RPM`
  1799. Points to the area that the OpenEmbedded build system uses to place
  1800. RPM packages that are ready to be used outside of the build system.
  1801. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1802. ":ref:`ref-classes-package_rpm`".
  1803. The BitBake configuration file initially defines this variable as a
  1804. sub-folder of :term:`DEPLOY_DIR`::
  1805. DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm"
  1806. The :ref:`ref-classes-package_rpm` class uses the
  1807. :term:`DEPLOY_DIR_RPM` variable to make sure the
  1808. :ref:`ref-tasks-package_write_rpm` task
  1809. writes RPM packages into the appropriate folder. For more information
  1810. on how packaging works, see the
  1811. ":ref:`overview-manual/concepts:package feeds`" section
  1812. in the Yocto Project Overview and Concepts Manual.
  1813. :term:`DEPLOYDIR`
  1814. When inheriting the :ref:`ref-classes-deploy` class, the
  1815. :term:`DEPLOYDIR` points to a temporary work area for deployed files that
  1816. is set in the :ref:`ref-classes-deploy` class as follows::
  1817. DEPLOYDIR = "${WORKDIR}/deploy-${PN}"
  1818. Recipes inheriting the :ref:`ref-classes-deploy` class should copy files to be
  1819. deployed into :term:`DEPLOYDIR`, and the class will take care of copying
  1820. them into :term:`DEPLOY_DIR_IMAGE`
  1821. afterwards.
  1822. :term:`DESCRIPTION`
  1823. The package description used by package managers. If not set,
  1824. :term:`DESCRIPTION` takes the value of the :term:`SUMMARY`
  1825. variable.
  1826. :term:`DEV_PKG_DEPENDENCY`
  1827. Provides an easy way for recipes to disable or adjust the runtime recommendation
  1828. (:term:`RRECOMMENDS`) of the ``${PN}-dev`` package on the main
  1829. (``${PN}``) package.
  1830. :term:`DISABLE_STATIC`
  1831. Used in order to disable static linking by default (in order to save
  1832. space, since static libraries are often unused in embedded systems.)
  1833. The default value is " --disable-static", however it can be set to ""
  1834. in order to enable static linking if desired. Certain recipes do this
  1835. individually, and also there is a
  1836. ``meta/conf/distro/include/no-static-libs.inc`` include file that
  1837. disables static linking for a number of recipes. Some software
  1838. packages or build tools (such as CMake) have explicit support for
  1839. enabling / disabling static linking, and in those cases
  1840. :term:`DISABLE_STATIC` is not used.
  1841. :term:`DISTRO`
  1842. The short name of the distribution. For information on the long name
  1843. of the distribution, see the :term:`DISTRO_NAME`
  1844. variable.
  1845. The :term:`DISTRO` variable corresponds to a distribution configuration
  1846. file whose root name is the same as the variable's argument and whose
  1847. filename extension is ``.conf``. For example, the distribution
  1848. configuration file for the Poky distribution is named ``poky.conf``
  1849. and resides in the ``meta-poky/conf/distro`` directory of the
  1850. :term:`Source Directory`.
  1851. Within that ``poky.conf`` file, the :term:`DISTRO` variable is set as
  1852. follows::
  1853. DISTRO = "poky"
  1854. Distribution configuration files are located in a ``conf/distro``
  1855. directory within the :term:`Metadata` that contains the
  1856. distribution configuration. The value for :term:`DISTRO` must not contain
  1857. spaces, and is typically all lower-case.
  1858. .. note::
  1859. If the :term:`DISTRO` variable is blank, a set of default configurations
  1860. are used, which are specified within
  1861. ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.
  1862. :term:`DISTRO_CODENAME`
  1863. Specifies a codename for the distribution being built.
  1864. :term:`DISTRO_EXTRA_RDEPENDS`
  1865. Specifies a list of distro-specific packages to add to all images.
  1866. This variable takes effect through ``packagegroup-base`` so the
  1867. variable only really applies to the more full-featured images that
  1868. include ``packagegroup-base``. You can use this variable to keep
  1869. distro policy out of generic images. As with all other distro
  1870. variables, you set this variable in the distro ``.conf`` file.
  1871. :term:`DISTRO_EXTRA_RRECOMMENDS`
  1872. Specifies a list of distro-specific packages to add to all images if
  1873. the packages exist. The packages might not exist or be empty (e.g.
  1874. kernel modules). The list of packages are automatically installed but
  1875. you can remove them.
  1876. :term:`DISTRO_FEATURES`
  1877. The software support you want in your distribution for various
  1878. features. You define your distribution features in the distribution
  1879. configuration file.
  1880. In most cases, the presence or absence of a feature in
  1881. :term:`DISTRO_FEATURES` is translated to the appropriate option supplied
  1882. to the configure script during the
  1883. :ref:`ref-tasks-configure` task for recipes that
  1884. optionally support the feature. For example, specifying "x11" in
  1885. :term:`DISTRO_FEATURES`, causes every piece of software built for the
  1886. target that can optionally support X11 to have its X11 support
  1887. enabled.
  1888. .. note::
  1889. Just enabling :term:`DISTRO_FEATURES` alone doesn't
  1890. enable feature support for packages. Mechanisms such as making
  1891. :term:`PACKAGECONFIG` track :term:`DISTRO_FEATURES` are used
  1892. to enable/disable package features.
  1893. Two more examples are Bluetooth and NFS support. For a more complete
  1894. list of features that ships with the Yocto Project and that you can
  1895. provide with this variable, see the ":ref:`ref-features-distro`" section.
  1896. :term:`DISTRO_FEATURES_BACKFILL`
  1897. A space-separated list of features to be added to :term:`DISTRO_FEATURES`
  1898. if not also present in :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`.
  1899. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  1900. not intended to be user-configurable. It is best to just reference
  1901. the variable to see which distro features are being
  1902. :ref:`backfilled <ref-features-backfill>` for all distro configurations.
  1903. :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`
  1904. A space-separated list of features from :term:`DISTRO_FEATURES_BACKFILL`
  1905. that should not be :ref:`backfilled <ref-features-backfill>` (i.e. added
  1906. to :term:`DISTRO_FEATURES`) during the build.
  1907. This corresponds to an opt-out mechanism. When new default distro
  1908. features are introduced, distribution maintainers can review (`consider`)
  1909. them and decide to exclude them from the
  1910. :ref:`backfilled <ref-features-backfill>` features. Therefore, the
  1911. combination of :term:`DISTRO_FEATURES_BACKFILL` and
  1912. :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED` makes it possible to
  1913. add new default features without breaking existing distributions.
  1914. :term:`DISTRO_FEATURES_DEFAULT`
  1915. A convenience variable that gives you the default list of distro
  1916. features with the exception of any features specific to the C library
  1917. (``libc``).
  1918. When creating a custom distribution, you might find it useful to be
  1919. able to reuse the default
  1920. :term:`DISTRO_FEATURES` options without the
  1921. need to write out the full set. Here is an example that uses
  1922. :term:`DISTRO_FEATURES_DEFAULT` from a custom distro configuration file::
  1923. DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} myfeature"
  1924. :term:`DISTRO_FEATURES_FILTER_NATIVE`
  1925. Specifies a list of features that if present in the target
  1926. :term:`DISTRO_FEATURES` value should be
  1927. included in :term:`DISTRO_FEATURES` when building native recipes. This
  1928. variable is used in addition to the features filtered using the
  1929. :term:`DISTRO_FEATURES_NATIVE`
  1930. variable.
  1931. :term:`DISTRO_FEATURES_FILTER_NATIVESDK`
  1932. Specifies a list of features that if present in the target
  1933. :term:`DISTRO_FEATURES` value should be included in
  1934. :term:`DISTRO_FEATURES` when building :ref:`ref-classes-nativesdk`
  1935. recipes. This variable is used in addition to the features filtered using
  1936. the :term:`DISTRO_FEATURES_NATIVESDK` variable.
  1937. :term:`DISTRO_FEATURES_NATIVE`
  1938. Specifies a list of features that should be included in
  1939. :term:`DISTRO_FEATURES` when building native
  1940. recipes. This variable is used in addition to the features filtered
  1941. using the
  1942. :term:`DISTRO_FEATURES_FILTER_NATIVE`
  1943. variable.
  1944. :term:`DISTRO_FEATURES_NATIVESDK`
  1945. Specifies a list of features that should be included in
  1946. :term:`DISTRO_FEATURES` when building
  1947. :ref:`ref-classes-nativesdk` recipes. This variable is used
  1948. in addition to the features filtered using the
  1949. :term:`DISTRO_FEATURES_FILTER_NATIVESDK` variable.
  1950. :term:`DISTRO_NAME`
  1951. The long name of the distribution. For information on the short name
  1952. of the distribution, see the :term:`DISTRO` variable.
  1953. The :term:`DISTRO_NAME` variable corresponds to a distribution
  1954. configuration file whose root name is the same as the variable's
  1955. argument and whose filename extension is ``.conf``. For example, the
  1956. distribution configuration file for the Poky distribution is named
  1957. ``poky.conf`` and resides in the ``meta-poky/conf/distro`` directory
  1958. of the :term:`Source Directory`.
  1959. Within that ``poky.conf`` file, the :term:`DISTRO_NAME` variable is set
  1960. as follows::
  1961. DISTRO_NAME = "Poky (Yocto Project Reference Distro)"
  1962. Distribution configuration files are located in a ``conf/distro``
  1963. directory within the :term:`Metadata` that contains the
  1964. distribution configuration.
  1965. .. note::
  1966. If the :term:`DISTRO_NAME` variable is blank, a set of default
  1967. configurations are used, which are specified within
  1968. ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.
  1969. :term:`DISTRO_VERSION`
  1970. The version of the distribution.
  1971. :term:`DISTROOVERRIDES`
  1972. A colon-separated list of overrides specific to the current
  1973. distribution. By default, this list includes the value of
  1974. :term:`DISTRO`.
  1975. You can extend :term:`DISTROOVERRIDES` to add extra overrides that should
  1976. apply to the distribution.
  1977. The underlying mechanism behind :term:`DISTROOVERRIDES` is simply that it
  1978. is included in the default value of
  1979. :term:`OVERRIDES`.
  1980. Here is an example from :yocto_git:`meta-poky/conf/distro/poky-tiny.conf
  1981. </poky/tree/meta-poky/conf/distro/poky-tiny.conf>`::
  1982. DISTROOVERRIDES = "poky:poky-tiny"
  1983. :term:`DL_DIR`
  1984. The central download directory used by the build process to store
  1985. downloads. By default, :term:`DL_DIR` gets files suitable for mirroring
  1986. for everything except Git repositories. If you want tarballs of Git
  1987. repositories, use the
  1988. :term:`BB_GENERATE_MIRROR_TARBALLS`
  1989. variable.
  1990. You can set this directory by defining the :term:`DL_DIR` variable in the
  1991. ``conf/local.conf`` file. This directory is self-maintaining and you
  1992. should not have to touch it. By default, the directory is
  1993. ``downloads`` in the :term:`Build Directory`::
  1994. #DL_DIR ?= "${TOPDIR}/downloads"
  1995. To specify a different download directory,
  1996. simply remove the comment from the line and provide your directory.
  1997. During a first build, the system downloads many different source code
  1998. tarballs from various upstream projects. Downloading can take a
  1999. while, particularly if your network connection is slow. Tarballs are
  2000. all stored in the directory defined by :term:`DL_DIR` and the build
  2001. system looks there first to find source tarballs.
  2002. .. note::
  2003. When wiping and rebuilding, you can preserve this directory to
  2004. speed up this part of subsequent builds.
  2005. You can safely share this directory between multiple builds on the
  2006. same development machine. For additional information on how the build
  2007. process gets source files when working behind a firewall or proxy
  2008. server, see this specific question in the ":doc:`/ref-manual/faq`"
  2009. chapter. You can also refer to the
  2010. ":yocto_wiki:`Working Behind a Network Proxy </Working_Behind_a_Network_Proxy>`"
  2011. Wiki page.
  2012. :term:`DOC_COMPRESS`
  2013. When inheriting the :ref:`ref-classes-compress_doc`
  2014. class, this variable sets the compression policy used when the
  2015. OpenEmbedded build system compresses manual and info pages. By
  2016. default, the compression method used is gz (gzip). Other policies
  2017. available are xz and bz2.
  2018. For information on policies and on how to use this variable, see the
  2019. comments in the ``meta/classes-recipe/compress_doc.bbclass`` file.
  2020. :term:`DT_FILES`
  2021. Space-separated list of device tree source files to compile using
  2022. a recipe that inherits the :ref:`ref-classes-devicetree` class. These
  2023. are relative to the :term:`DT_FILES_PATH`.
  2024. For convenience, both ``.dts`` and ``.dtb`` extensions can be used.
  2025. Use an empty string (default) to build all device tree sources within
  2026. the :term:`DT_FILES_PATH` directory.
  2027. :term:`DT_FILES_PATH`
  2028. When compiling out-of-tree device tree sources using a recipe that
  2029. inherits the :ref:`ref-classes-devicetree` class, this variable specifies
  2030. the path to the directory containing dts files to build.
  2031. Defaults to the :term:`S` directory.
  2032. :term:`DT_PADDING_SIZE`
  2033. When inheriting the :ref:`ref-classes-devicetree` class, this variable
  2034. specifies the size of padding appended to the device tree blob, used as
  2035. extra space typically for additional properties during boot.
  2036. :term:`EFI_ARCH`
  2037. The CPU architecture name within EFI standard. Set in
  2038. :oe_git:`meta/conf/image-uefi.conf
  2039. <openembedded-core/tree/meta/conf/image-uefi.conf>`.
  2040. :term:`EFI_PROVIDER`
  2041. When building bootable images (i.e. where ``hddimg``, ``iso``, or
  2042. ``wic.vmdk`` is in :term:`IMAGE_FSTYPES`), the
  2043. :term:`EFI_PROVIDER` variable specifies the EFI bootloader to use. The
  2044. default is "grub-efi", but "systemd-boot" can be used instead.
  2045. See the :ref:`ref-classes-systemd-boot` and :ref:`ref-classes-image-live`
  2046. classes for more information.
  2047. :term:`EFI_UKI_DIR`
  2048. The primary place for the UKI image inside the EFI System Partition.
  2049. :term:`EFI_UKI_PATH`
  2050. The path for the UKI image inside the root filesystem.
  2051. :term:`ENABLE_BINARY_LOCALE_GENERATION`
  2052. Variable that controls which locales for ``glibc`` are generated
  2053. during the build (useful if the target device has 64Mbytes of RAM or
  2054. less).
  2055. :term:`ERR_REPORT_DIR`
  2056. When used with the :ref:`ref-classes-report-error` class, specifies the
  2057. path used for storing the debug files created by the :ref:`error reporting
  2058. tool <dev-manual/error-reporting-tool:using the error reporting tool>`,
  2059. which allows you to submit build errors you encounter to a central
  2060. database. By default, the value of this variable is
  2061. ``${``\ :term:`LOG_DIR`\ ``}/error-report``.
  2062. You can set :term:`ERR_REPORT_DIR` to the path you want the error
  2063. reporting tool to store the debug files as follows in your
  2064. ``local.conf`` file::
  2065. ERR_REPORT_DIR = "path"
  2066. :term:`ERROR_QA`
  2067. Specifies the quality assurance checks whose failures are reported as
  2068. errors by the OpenEmbedded build system. You set this variable in
  2069. your distribution configuration file. For a list of the checks you
  2070. can control with this variable, see the
  2071. ":ref:`ref-classes-insane`" section.
  2072. :term:`ESDK_CLASS_INHERIT_DISABLE`
  2073. A list of classes to remove from the :term:`INHERIT`
  2074. value globally within the extensible SDK configuration. The
  2075. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class sets the
  2076. default value::
  2077. ESDK_CLASS_INHERIT_DISABLE ?= "buildhistory"
  2078. Some classes are not generally applicable within the extensible SDK
  2079. context. You can use this variable to disable those classes.
  2080. For additional information on how to customize the extensible SDK's
  2081. configuration, see the
  2082. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  2083. section in the Yocto Project Application Development and the
  2084. Extensible Software Development Kit (eSDK) manual.
  2085. :term:`ESDK_LOCALCONF_ALLOW`
  2086. A list of variables allowed through from the OpenEmbedded build
  2087. system configuration into the extensible SDK configuration. By
  2088. default, the list of variables is empty and is set in the
  2089. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class.
  2090. This list overrides the variables specified using the
  2091. :term:`ESDK_LOCALCONF_REMOVE` variable as well as
  2092. other variables automatically added due to the "/" character
  2093. being found at the start of the
  2094. value, which is usually indicative of being a path and thus might not
  2095. be valid on the system where the SDK is installed.
  2096. For additional information on how to customize the extensible SDK's
  2097. configuration, see the
  2098. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  2099. section in the Yocto Project Application Development and the
  2100. Extensible Software Development Kit (eSDK) manual.
  2101. :term:`ESDK_LOCALCONF_REMOVE`
  2102. A list of variables not allowed through from the OpenEmbedded build
  2103. system configuration into the extensible SDK configuration. Usually,
  2104. these are variables that are specific to the machine on which the
  2105. build system is running and thus would be potentially problematic
  2106. within the extensible SDK.
  2107. By default, :term:`ESDK_LOCALCONF_REMOVE` is set in the
  2108. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class and
  2109. excludes the following variables:
  2110. - :term:`CONF_VERSION`
  2111. - :term:`BB_NUMBER_THREADS`
  2112. - :term:`BB_NUMBER_PARSE_THREADS`
  2113. - :term:`PARALLEL_MAKE`
  2114. - :term:`PRSERV_HOST`
  2115. - :term:`SSTATE_MIRRORS` :term:`DL_DIR`
  2116. - :term:`SSTATE_DIR` :term:`TMPDIR`
  2117. - :term:`BB_SERVER_TIMEOUT`
  2118. For additional information on how to customize the extensible SDK's
  2119. configuration, see the
  2120. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  2121. section in the Yocto Project Application Development and the
  2122. Extensible Software Development Kit (eSDK) manual.
  2123. :term:`EXCLUDE_FROM_SHLIBS`
  2124. Triggers the OpenEmbedded build system's shared libraries resolver to
  2125. exclude an entire package when scanning for shared libraries.
  2126. .. note::
  2127. The shared libraries resolver's functionality results in part from
  2128. the internal function ``package_do_shlibs``, which is part of the
  2129. :ref:`ref-tasks-package` task. You should be aware that the shared
  2130. libraries resolver might implicitly define some dependencies between
  2131. packages.
  2132. The :term:`EXCLUDE_FROM_SHLIBS` variable is similar to the
  2133. :term:`PRIVATE_LIBS` variable, which excludes a
  2134. package's particular libraries only and not the whole package.
  2135. Use the :term:`EXCLUDE_FROM_SHLIBS` variable by setting it to "1" for a
  2136. particular package::
  2137. EXCLUDE_FROM_SHLIBS = "1"
  2138. :term:`EXCLUDE_FROM_WORLD`
  2139. Directs BitBake to exclude a recipe from world builds (i.e.
  2140. ``bitbake world``). During world builds, BitBake locates, parses and
  2141. builds all recipes found in every layer exposed in the
  2142. ``bblayers.conf`` configuration file.
  2143. To exclude a recipe from a world build using this variable, set the
  2144. variable to "1" in the recipe.
  2145. .. note::
  2146. Recipes added to :term:`EXCLUDE_FROM_WORLD` may still be built during a
  2147. world build in order to satisfy dependencies of other recipes. Adding
  2148. a recipe to :term:`EXCLUDE_FROM_WORLD` only ensures that the recipe is not
  2149. explicitly added to the list of build targets in a world build.
  2150. :term:`EXTENDPE`
  2151. Used with file and pathnames to create a prefix for a recipe's
  2152. version based on the recipe's :term:`PE` value. If :term:`PE`
  2153. is set and greater than zero for a recipe, :term:`EXTENDPE` becomes that
  2154. value (e.g if :term:`PE` is equal to "1" then :term:`EXTENDPE` becomes "1").
  2155. If a recipe's :term:`PE` is not set (the default) or is equal to zero,
  2156. :term:`EXTENDPE` becomes "".
  2157. See the :term:`STAMP` variable for an example.
  2158. :term:`EXTENDPKGV`
  2159. The full package version specification as it appears on the final
  2160. packages produced by a recipe. The variable's value is normally used
  2161. to fix a runtime dependency to the exact same version of another
  2162. package in the same recipe::
  2163. RDEPENDS:${PN}-additional-module = "${PN} (= ${EXTENDPKGV})"
  2164. The dependency relationships are intended to force the package
  2165. manager to upgrade these types of packages in lock-step.
  2166. :term:`EXTERNAL_KERNEL_TOOLS`
  2167. When set, the :term:`EXTERNAL_KERNEL_TOOLS` variable indicates that these
  2168. tools are not in the source tree.
  2169. When kernel tools are available in the tree, they are preferred over
  2170. any externally installed tools. Setting the :term:`EXTERNAL_KERNEL_TOOLS`
  2171. variable tells the OpenEmbedded build system to prefer the installed
  2172. external tools. See the :ref:`ref-classes-kernel-yocto` class in
  2173. ``meta/classes-recipe`` to see how the variable is used.
  2174. :term:`EXTERNAL_KERNEL_DEVICETREE`
  2175. When inheriting :ref:`ref-classes-kernel-fit-image` and a
  2176. :term:`PREFERRED_PROVIDER` for ``virtual/dtb`` set to ``devicetree``, the
  2177. variable :term:`EXTERNAL_KERNEL_DEVICETREE` can be used to specify a
  2178. directory containing one or more compiled device tree or device tree
  2179. overlays to use.
  2180. :term:`KERNEL_LOCALVERSION`
  2181. This variable allows to append a string to the version
  2182. of the kernel image. This corresponds to the ``CONFIG_LOCALVERSION``
  2183. kernel configuration parameter.
  2184. Using this variable is only useful when you are using a kernel recipe
  2185. inheriting the :ref:`ref-classes-kernel` class, and which doesn't
  2186. already set a local version. Therefore, setting this variable has no
  2187. impact on ``linux-yocto`` kernels.
  2188. :term:`EXTERNAL_TOOLCHAIN`
  2189. When you intend to use an
  2190. :ref:`external toolchain <dev-manual/external-toolchain:optionally using an external toolchain>`,
  2191. this variable allows to specify the directory where this toolchain was
  2192. installed.
  2193. :term:`EXTERNALSRC`
  2194. When inheriting the :ref:`ref-classes-externalsrc`
  2195. class, this variable points to the source tree, which is outside of
  2196. the OpenEmbedded build system. When set, this variable sets the
  2197. :term:`S` variable, which is what the OpenEmbedded build
  2198. system uses to locate unpacked recipe source code.
  2199. See the ":ref:`ref-classes-externalsrc`" section for details. You
  2200. can also find information on how to use this variable in the
  2201. ":ref:`dev-manual/building:building software from an external source`"
  2202. section in the Yocto Project Development Tasks Manual.
  2203. :term:`EXTERNALSRC_BUILD`
  2204. When inheriting the :ref:`ref-classes-externalsrc`
  2205. class, this variable points to the directory in which the recipe's
  2206. source code is built, which is outside of the OpenEmbedded build
  2207. system. When set, this variable sets the :term:`B` variable,
  2208. which is what the OpenEmbedded build system uses to locate the
  2209. :term:`Build Directory`.
  2210. See the ":ref:`ref-classes-externalsrc`" section for details. You
  2211. can also find information on how to use this variable in the
  2212. ":ref:`dev-manual/building:building software from an external source`"
  2213. section in the Yocto Project Development Tasks Manual.
  2214. :term:`EXTRA_AUTORECONF`
  2215. For recipes inheriting the :ref:`ref-classes-autotools`
  2216. class, you can use :term:`EXTRA_AUTORECONF` to specify extra options to
  2217. pass to the ``autoreconf`` command that is executed during the
  2218. :ref:`ref-tasks-configure` task.
  2219. The default value is "--exclude=autopoint".
  2220. :term:`EXTRA_IMAGE_FEATURES`
  2221. A list of additional features to include in an image. When listing
  2222. more than one feature, separate them with a space.
  2223. Typically, you configure this variable in your ``local.conf`` file,
  2224. which is found in the :term:`Build Directory`. Although you can use this
  2225. variable from within a recipe, best practices dictate that you do not.
  2226. .. note::
  2227. To enable primary features from within the image recipe, use the
  2228. :term:`IMAGE_FEATURES` variable.
  2229. Here are some examples of features you can add:
  2230. - "dbg-pkgs" --- adds -dbg packages for all installed packages including
  2231. symbol information for debugging and profiling.
  2232. - "empty-root-password" --- This feature can be used if you want to
  2233. allow root login with an empty password.
  2234. - "allow-empty-password" --- Allows Dropbear and OpenSSH to accept
  2235. logins from accounts having an empty password string.
  2236. - "allow-root-login" --- Allows Dropbear and OpenSSH to accept root logins.
  2237. - "post-install-logging" --- Enables logging postinstall script runs to
  2238. the ``/var/log/postinstall.log`` file on first boot of the image on
  2239. the target system.
  2240. - "dev-pkgs" --- adds -dev packages for all installed packages. This is
  2241. useful if you want to develop against the libraries in the image.
  2242. - "read-only-rootfs" --- creates an image whose root filesystem is
  2243. read-only. See the
  2244. ":ref:`dev-manual/read-only-rootfs:creating a read-only root filesystem`"
  2245. section in the Yocto Project Development Tasks Manual for more
  2246. information
  2247. - "tools-debug" --- adds debugging tools such as gdb and strace.
  2248. - "tools-sdk" --- adds development tools such as gcc, make,
  2249. pkgconfig and so forth.
  2250. - "tools-testapps" --- adds useful testing tools
  2251. such as ts_print, aplay, arecord and so forth.
  2252. For a complete list of image features that ships with the Yocto
  2253. Project, see the ":ref:`ref-features-image`" section.
  2254. For an example that shows how to customize your image by using this
  2255. variable, see the ":ref:`dev-manual/customizing-images:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  2256. section in the Yocto Project Development Tasks Manual.
  2257. :term:`EXTRA_IMAGECMD`
  2258. Specifies additional options for the image creation command that has
  2259. been specified in :term:`IMAGE_CMD`. When setting
  2260. this variable, use an override for the associated image type. Here is
  2261. an example::
  2262. EXTRA_IMAGECMD:ext3 ?= "-i 4096"
  2263. :term:`EXTRA_IMAGEDEPENDS`
  2264. A list of recipes to build that do not provide packages for
  2265. installing into the root filesystem.
  2266. Sometimes a recipe is required to build the final image but is not
  2267. needed in the root filesystem. You can use the :term:`EXTRA_IMAGEDEPENDS`
  2268. variable to list these recipes and thus specify the dependencies. A
  2269. typical example is a required bootloader in a machine configuration.
  2270. .. note::
  2271. To add packages to the root filesystem, see the various
  2272. :term:`RDEPENDS` and :term:`RRECOMMENDS` variables.
  2273. :term:`EXTRA_OECMAKE`
  2274. Additional `CMake <https://cmake.org/overview/>`__ options. See the
  2275. :ref:`ref-classes-cmake` class for additional information.
  2276. :term:`EXTRA_OECONF`
  2277. Additional ``configure`` script options. See
  2278. :term:`PACKAGECONFIG_CONFARGS` for
  2279. additional information on passing configure script options.
  2280. :term:`EXTRA_OEMAKE`
  2281. Additional GNU ``make`` options.
  2282. Because the :term:`EXTRA_OEMAKE` defaults to "", you need to set the
  2283. variable to specify any required GNU options.
  2284. :term:`PARALLEL_MAKE` and
  2285. :term:`PARALLEL_MAKEINST` also make use of
  2286. :term:`EXTRA_OEMAKE` to pass the required flags.
  2287. :term:`EXTRA_OESCONS`
  2288. When inheriting the :ref:`ref-classes-scons` class, this
  2289. variable specifies additional configuration options you want to pass
  2290. to the ``scons`` command line.
  2291. :term:`EXTRA_OEMESON`
  2292. Additional `Meson <https://mesonbuild.com/>`__ options. See the
  2293. :ref:`ref-classes-meson` class for additional information.
  2294. In addition to standard Meson options, such options correspond to
  2295. `Meson build options <https://mesonbuild.com/Build-options.html>`__
  2296. defined in the ``meson_options.txt`` file in the sources to build.
  2297. Here is an example::
  2298. EXTRA_OEMESON = "-Dpython=disabled -Dvalgrind=disabled"
  2299. Note that any custom value for the Meson ``--buildtype`` option
  2300. should be set through the :term:`MESON_BUILDTYPE` variable.
  2301. :term:`EXTRA_USERS_PARAMS`
  2302. When inheriting the :ref:`ref-classes-extrausers`
  2303. class, this variable provides image level user and group operations.
  2304. This is a more global method of providing user and group
  2305. configuration as compared to using the
  2306. :ref:`ref-classes-useradd` class, which ties user and
  2307. group configurations to a specific recipe.
  2308. The set list of commands you can configure using the
  2309. :term:`EXTRA_USERS_PARAMS` is shown in the
  2310. :ref:`ref-classes-extrausers` class. These commands map to the normal
  2311. Unix commands of the same names::
  2312. # EXTRA_USERS_PARAMS = "\
  2313. # useradd -p '' tester; \
  2314. # groupadd developers; \
  2315. # userdel nobody; \
  2316. # groupdel -g video; \
  2317. # groupmod -g 1020 developers; \
  2318. # usermod -s /bin/sh tester; \
  2319. # "
  2320. Hardcoded passwords are supported via the ``-p`` parameters for
  2321. ``useradd`` or ``usermod``, but only hashed.
  2322. Here is an example that adds two users named "tester-jim" and "tester-sue" and assigns
  2323. passwords. First on host, create the (escaped) password hash::
  2324. printf "%q" $(mkpasswd -m sha256crypt tester01)
  2325. The resulting hash is set to a variable and used in ``useradd`` command parameters::
  2326. inherit extrausers
  2327. PASSWD = "\$X\$ABC123\$A-Long-Hash"
  2328. EXTRA_USERS_PARAMS = "\
  2329. useradd -p '${PASSWD}' tester-jim; \
  2330. useradd -p '${PASSWD}' tester-sue; \
  2331. "
  2332. Finally, here is an example that sets the root password::
  2333. inherit extrausers
  2334. EXTRA_USERS_PARAMS = "\
  2335. usermod -p '${PASSWD}' root; \
  2336. "
  2337. .. note::
  2338. From a security perspective, hardcoding a default password is not
  2339. generally a good idea or even legal in some jurisdictions. It is
  2340. recommended that you do not do this if you are building a production
  2341. image.
  2342. Additionally there is a special ``passwd-expire`` command that will
  2343. cause the password for a user to be expired and thus force changing it
  2344. on first login, for example::
  2345. EXTRA_USERS_PARAMS += " useradd myuser; passwd-expire myuser;"
  2346. .. note::
  2347. At present, ``passwd-expire`` may only work for remote logins when
  2348. using OpenSSH and not dropbear as an SSH server.
  2349. :term:`EXTRANATIVEPATH`
  2350. A list of subdirectories of
  2351. ``${``\ :term:`STAGING_BINDIR_NATIVE`\ ``}``
  2352. added to the beginning of the environment variable ``PATH``. As an
  2353. example, the following prepends
  2354. "${STAGING_BINDIR_NATIVE}/foo:${STAGING_BINDIR_NATIVE}/bar:" to
  2355. ``PATH``::
  2356. EXTRANATIVEPATH = "foo bar"
  2357. :term:`FAKEROOT`
  2358. See :term:`bitbake:FAKEROOT` in the BitBake manual.
  2359. :term:`FAKEROOTBASEENV`
  2360. See :term:`bitbake:FAKEROOTBASEENV` in the BitBake manual.
  2361. :term:`FAKEROOTCMD`
  2362. See :term:`bitbake:FAKEROOTCMD` in the BitBake manual.
  2363. :term:`FAKEROOTDIRS`
  2364. See :term:`bitbake:FAKEROOTDIRS` in the BitBake manual.
  2365. :term:`FAKEROOTENV`
  2366. See :term:`bitbake:FAKEROOTENV` in the BitBake manual.
  2367. :term:`FAKEROOTNOENV`
  2368. See :term:`bitbake:FAKEROOTNOENV` in the BitBake manual.
  2369. :term:`FC`
  2370. The minimal command and arguments used to run the Fortran compiler.
  2371. :term:`FEATURE_PACKAGES`
  2372. Defines one or more packages to include in an image when a specific
  2373. item is included in :term:`IMAGE_FEATURES`.
  2374. When setting the value, :term:`FEATURE_PACKAGES` should have the name of
  2375. the feature item as an override. Here is an example::
  2376. FEATURE_PACKAGES_widget = "package1 package2"
  2377. In this example, if "widget" were added to :term:`IMAGE_FEATURES`,
  2378. package1 and package2 would be included in the image.
  2379. .. note::
  2380. Packages installed by features defined through :term:`FEATURE_PACKAGES`
  2381. are often package groups. While similarly named, you should not
  2382. confuse the :term:`FEATURE_PACKAGES` variable with package groups, which
  2383. are discussed elsewhere in the documentation.
  2384. :term:`FEED_DEPLOYDIR_BASE_URI`
  2385. Points to the base URL of the server and location within the
  2386. document-root that provides the metadata and packages required by
  2387. OPKG to support runtime package management of IPK packages. You set
  2388. this variable in your ``local.conf`` file.
  2389. Consider the following example::
  2390. FEED_DEPLOYDIR_BASE_URI = "http://192.168.7.1/BOARD-dir"
  2391. This example assumes you are serving
  2392. your packages over HTTP and your databases are located in a directory
  2393. named ``BOARD-dir``, which is underneath your HTTP server's
  2394. document-root. In this case, the OpenEmbedded build system generates
  2395. a set of configuration files for you in your target that work with
  2396. the feed.
  2397. :term:`FETCHCMD`
  2398. See :term:`bitbake:FETCHCMD` in the BitBake manual.
  2399. :term:`FILE`
  2400. See :term:`bitbake:FILE` in the BitBake manual.
  2401. :term:`FILES`
  2402. The list of files and directories that are placed in a package. The
  2403. :term:`PACKAGES` variable lists the packages
  2404. generated by a recipe.
  2405. To use the :term:`FILES` variable, provide a package name override that
  2406. identifies the resulting package. Then, provide a space-separated
  2407. list of files or paths that identify the files you want included as
  2408. part of the resulting package. Here is an example::
  2409. FILES:${PN} += "${bindir}/mydir1 ${bindir}/mydir2/myfile"
  2410. .. note::
  2411. - When specifying files or paths, you can pattern match using
  2412. Python's
  2413. `glob <https://docs.python.org/3/library/glob.html>`__
  2414. syntax. For details on the syntax, see the documentation by
  2415. following the previous link.
  2416. - When specifying paths as part of the :term:`FILES` variable, it is
  2417. good practice to use appropriate path variables. For example,
  2418. use ``${sysconfdir}`` rather than ``/etc``, or ``${bindir}``
  2419. rather than ``/usr/bin``. You can find a list of these
  2420. variables at the top of the ``meta/conf/bitbake.conf`` file in
  2421. the :term:`Source Directory`. You will also
  2422. find the default values of the various ``FILES:*`` variables in
  2423. this file.
  2424. If some of the files you provide with the :term:`FILES` variable are
  2425. editable and you know they should not be overwritten during the
  2426. package update process by the Package Management System (PMS), you
  2427. can identify these files so that the PMS will not overwrite them. See
  2428. the :term:`CONFFILES` variable for information on
  2429. how to identify these files to the PMS.
  2430. :term:`FILES_SOLIBSDEV`
  2431. Defines the file specification to match
  2432. :term:`SOLIBSDEV`. In other words,
  2433. :term:`FILES_SOLIBSDEV` defines the full path name of the development
  2434. symbolic link (symlink) for shared libraries on the target platform.
  2435. The following statement from the ``bitbake.conf`` shows how it is
  2436. set::
  2437. FILES_SOLIBSDEV ?= "${base_libdir}/lib*${SOLIBSDEV} ${libdir}/lib*${SOLIBSDEV}"
  2438. :term:`FILESEXTRAPATHS`
  2439. A colon-separated list to extend the search path the OpenEmbedded build
  2440. system uses when looking for files and patches as it processes recipes
  2441. and append files. The default directories BitBake uses when it processes
  2442. recipes are initially defined by the :term:`FILESPATH` variable. You can
  2443. extend :term:`FILESPATH` variable by using :term:`FILESEXTRAPATHS`.
  2444. Best practices dictate that you accomplish this by using
  2445. :term:`FILESEXTRAPATHS` from within a ``.bbappend`` file and that you
  2446. prepend paths as follows::
  2447. FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
  2448. In the above example, the build system first
  2449. looks for files in a directory that has the same name as the
  2450. corresponding append file.
  2451. .. note::
  2452. When extending :term:`FILESEXTRAPATHS`, be sure to use the immediate
  2453. expansion (``:=``) operator. Immediate expansion makes sure that
  2454. BitBake evaluates :term:`THISDIR` at the time the
  2455. directive is encountered rather than at some later time when
  2456. expansion might result in a directory that does not contain the
  2457. files you need.
  2458. Also, include the trailing separating colon character if you are
  2459. prepending. The trailing colon character is necessary because you
  2460. are directing BitBake to extend the path by prepending directories
  2461. to the search path.
  2462. Here is another common use::
  2463. FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  2464. In this example, the build system extends the
  2465. :term:`FILESPATH` variable to include a directory named ``files`` that is
  2466. in the same directory as the corresponding append file.
  2467. This next example specifically adds three paths::
  2468. FILESEXTRAPATHS:prepend := "path_1:path_2:path_3:"
  2469. A final example shows how you can extend the search path and include
  2470. a :term:`MACHINE`-specific override, which is useful
  2471. in a BSP layer::
  2472. FILESEXTRAPATHS:prepend:intel-x86-common := "${THISDIR}/${PN}:"
  2473. The previous statement appears in the
  2474. ``linux-yocto-dev.bbappend`` file, which is found in the
  2475. :ref:`overview-manual/development-environment:yocto project source repositories` in
  2476. ``meta-intel/common/recipes-kernel/linux``. Here, the machine
  2477. override is a special :term:`PACKAGE_ARCH`
  2478. definition for multiple ``meta-intel`` machines.
  2479. .. note::
  2480. For a layer that supports a single BSP, the override could just be
  2481. the value of :term:`MACHINE`.
  2482. By prepending paths in ``.bbappend`` files, you allow multiple append
  2483. files that reside in different layers but are used for the same
  2484. recipe to correctly extend the path.
  2485. :term:`FILESOVERRIDES`
  2486. A colon-separated list to specify a subset of :term:`OVERRIDES` used by
  2487. the OpenEmbedded build system for creating :term:`FILESPATH`. The
  2488. :term:`FILESOVERRIDES` variable uses overrides to automatically extend
  2489. the :term:`FILESPATH` variable. For an example of how that works, see the
  2490. :term:`FILESPATH` variable description. Additionally, you find more
  2491. information on how overrides are handled in the
  2492. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  2493. section of the BitBake User Manual.
  2494. By default, the :term:`FILESOVERRIDES` variable is defined as::
  2495. FILESOVERRIDES = "${TRANSLATED_TARGET_ARCH}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}"
  2496. .. note::
  2497. Do not hand-edit the :term:`FILESOVERRIDES` variable. The values match up
  2498. with expected overrides and are used in an expected manner by the
  2499. build system.
  2500. :term:`FILESPATH`
  2501. A colon-separated list specifying the default set of directories the
  2502. OpenEmbedded build system uses when searching for patches and files.
  2503. During the build process, BitBake searches each directory in
  2504. :term:`FILESPATH` in the specified order when looking for files and
  2505. patches specified by each ``file://`` URI in a recipe's
  2506. :term:`SRC_URI` statements.
  2507. The default value for the :term:`FILESPATH` variable is defined in the
  2508. :ref:`ref-classes-base` class found in ``meta/classes-global`` in the
  2509. :term:`Source Directory`::
  2510. FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}", \
  2511. "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
  2512. The
  2513. :term:`FILESPATH` variable is automatically extended using the overrides
  2514. from the :term:`FILESOVERRIDES` variable.
  2515. .. note::
  2516. - Do not hand-edit the :term:`FILESPATH` variable. If you want the
  2517. build system to look in directories other than the defaults,
  2518. extend the :term:`FILESPATH` variable by using the
  2519. :term:`FILESEXTRAPATHS` variable.
  2520. - Be aware that the default :term:`FILESPATH` directories do not map
  2521. to directories in custom layers where append files
  2522. (``.bbappend``) are used. If you want the build system to find
  2523. patches or files that reside with your append files, you need
  2524. to extend the :term:`FILESPATH` variable by using the
  2525. :term:`FILESEXTRAPATHS` variable.
  2526. You can take advantage of this searching behavior in useful ways. For
  2527. example, consider a case where there is the following directory structure
  2528. for general and machine-specific configurations::
  2529. files/defconfig
  2530. files/MACHINEA/defconfig
  2531. files/MACHINEB/defconfig
  2532. Also in the example, the :term:`SRC_URI` statement contains
  2533. "file://defconfig". Given this scenario, you can set
  2534. :term:`MACHINE` to "MACHINEA" and cause the build
  2535. system to use files from ``files/MACHINEA``. Set :term:`MACHINE` to
  2536. "MACHINEB" and the build system uses files from ``files/MACHINEB``.
  2537. Finally, for any machine other than "MACHINEA" and "MACHINEB", the
  2538. build system uses files from ``files/defconfig``.
  2539. You can find out more about the patching process in the
  2540. ":ref:`overview-manual/concepts:patching`" section
  2541. in the Yocto Project Overview and Concepts Manual and the
  2542. ":ref:`dev-manual/new-recipe:patching code`" section in
  2543. the Yocto Project Development Tasks Manual. See the
  2544. :ref:`ref-tasks-patch` task as well.
  2545. :term:`FILESYSTEM_PERMS_TABLES`
  2546. Allows you to define your own file permissions settings tables as part
  2547. of your configuration for the packaging process. For example, suppose
  2548. you need a consistent set of custom permissions for a set of groups
  2549. and users across an entire work project. It is best to do this in the
  2550. packages themselves but this is not always possible.
  2551. By default, the OpenEmbedded build system uses the ``fs-perms.txt``,
  2552. ``fs-perms-volatile-log.txt`` and ``fs-perms-volatile-tmp.txt`` which are
  2553. located in the ``meta/files`` folder in the :term:`Source Directory`. If
  2554. you create your own permission setting table files, you should place
  2555. those in your layer.
  2556. You can override the value of :term:`FILESYSTEM_PERMS_TABLES` variable
  2557. in your distribution configuration file to point to your custom
  2558. permission table files. You can specify one or more file permissions
  2559. setting tables. The paths that you specify to these files must be defined
  2560. within the :term:`BBPATH` variable.
  2561. In order to disable the volatile log, which is enabled by default, one
  2562. can remove the ``files/fs-perms-volatile-log.txt`` value from
  2563. ``FILESYSTEM_PERMS_TABLES``. Similarly, in order to disable the volatile
  2564. tmp, one can remove the ``files/fs-perms-volatile-tmp.txt`` value.
  2565. For guidance on how to define your own file permissions settings
  2566. tables, examine the existing ``fs-perms.txt``,
  2567. ``fs-perms-volatile-log.txt`` and ``fs-perms-volatile-tmp.txt`` files.
  2568. :term:`FIRMWARE_COMPRESSION`
  2569. The :term:`FIRMWARE_COMPRESSION` allows compressing the firmware provided
  2570. by the ``linux-firmware`` recipe. The default value of this variable is an
  2571. empty string (no compression), and the possible values it can take are
  2572. ``xz`` and ``zst``. This can allow significant disk space savings.
  2573. For this to work, the Linux Kernel requires the
  2574. ``CONFIG_FW_LOADER_COMPRESS_XZ`` or ``CONFIG_FW_LOADER_COMPRESS_ZSTD``
  2575. configuration options to be set.
  2576. :term:`FIT_ADDRESS_CELLS`
  2577. Specifies the value of the ``#address-cells`` value for the
  2578. description of the FIT image.
  2579. The default value is set to "1" by the :ref:`ref-classes-kernel-fit-image`
  2580. class, which corresponds to 32 bit addresses.
  2581. For platforms that need to set 64 bit addresses, for example in
  2582. :term:`UBOOT_LOADADDRESS` and :term:`UBOOT_ENTRYPOINT`, you need to
  2583. set this value to "2", as two 32 bit values (cells) will be needed
  2584. to represent such addresses.
  2585. Here is an example setting "0x400000000" as a load address::
  2586. FIT_ADDRESS_CELLS = "2"
  2587. UBOOT_LOADADDRESS= "0x04 0x00000000"
  2588. See `more details about #address-cells <https://elinux.org/Device_Tree_Usage#How_Addressing_Works>`__.
  2589. :term:`FIT_CONF_DEFAULT_DTB`
  2590. Specifies the default device tree binary (dtb) file for a FIT image
  2591. when multiple ones are provided.
  2592. This variable is used in the :ref:`ref-classes-kernel-fit-image` class.
  2593. :term:`FIT_CONF_PREFIX`
  2594. When using the :ref:`ref-classes-kernel-fit-image`, this is the prefix
  2595. used for creating FIT configuration nodes. Its default value is "conf-".
  2596. :term:`FIT_DESC`
  2597. Specifies the description string encoded into a FIT image. The
  2598. default value is set by the :ref:`ref-classes-kernel-fit-image` class as
  2599. follows::
  2600. FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
  2601. :term:`FIT_GENERATE_KEYS`
  2602. Decides whether to generate the keys for signing the FIT image if
  2603. they don't already exist. The keys are created in
  2604. :term:`UBOOT_SIGN_KEYDIR`. The default value is set to "0"
  2605. by the :ref:`ref-classes-kernel-fit-image` class.
  2606. :term:`FIT_HASH_ALG`
  2607. Specifies the hash algorithm used in creating the FIT Image.
  2608. This variable is set by default to "sha256" by the
  2609. :ref:`ref-classes-kernel-fit-image` class.
  2610. :term:`FIT_KERNEL_COMP_ALG`
  2611. The compression algorithm to use for the kernel image inside the FIT Image.
  2612. At present, the only supported values are "gzip" (default), "lzo" or "none".
  2613. If you set this variable to anything other than "none" you may also need
  2614. to set :term:`FIT_KERNEL_COMP_ALG_EXTENSION`.
  2615. This variable is used in the :ref:`ref-classes-kernel-uboot` class.
  2616. :term:`FIT_KERNEL_COMP_ALG_EXTENSION`
  2617. File extension corresponding to :term:`FIT_KERNEL_COMP_ALG`. The default
  2618. value is set ".gz" by the :ref:`ref-classes-kernel-uboot` class. If you
  2619. set :term:`FIT_KERNEL_COMP_ALG` to "lzo", you may want to set this
  2620. variable to ".lzo".
  2621. :term:`FIT_KEY_GENRSA_ARGS`
  2622. Arguments to ``openssl genrsa`` for generating a RSA private key for
  2623. signing the FIT image. The default value is set to "-F4" by the
  2624. :ref:`ref-classes-kernel-fit-image` class.
  2625. :term:`FIT_KEY_REQ_ARGS`
  2626. Arguments to ``openssl req`` for generating a certificate for signing
  2627. the FIT image. The default value is "-batch -new" by the
  2628. :ref:`ref-classes-kernel-fit-image` class, "batch" for
  2629. non interactive mode and "new" for generating new keys.
  2630. :term:`FIT_KEY_SIGN_PKCS`
  2631. Format for the public key certificate used for signing the FIT image.
  2632. The default value is set to "x509" by the
  2633. :ref:`ref-classes-kernel-fit-image` class.
  2634. :term:`FIT_SIGN_ALG`
  2635. Specifies the signature algorithm used in creating the FIT Image.
  2636. This variable is set by default to "rsa2048" by the
  2637. :ref:`ref-classes-kernel-fit-image` class.
  2638. :term:`FIT_PAD_ALG`
  2639. Specifies the padding algorithm used in creating the FIT Image.
  2640. The default value is set to "pkcs-1.5" by the
  2641. :ref:`ref-classes-kernel-fit-image` class.
  2642. :term:`FIT_SIGN_INDIVIDUAL`
  2643. If set to "1", the :ref:`ref-classes-kernel-fit-image` class signs each
  2644. image node individually, including the kernel, DTB, RAM disk, and any
  2645. other image types present in the FIT image, in addition to signing the
  2646. configuration nodes.
  2647. This can be useful if you need to verify signatures outside of the
  2648. U-Boot boot process. By default, this variable is set to "0".
  2649. If :term:`UBOOT_SIGN_ENABLE` is set to "1" and
  2650. :term:`FIT_SIGN_INDIVIDUAL` remains at its default value of "0", only the
  2651. configuration nodes are signed. Since configuration nodes include hashes
  2652. of their referenced image nodes, the integrity of the entire FIT image is
  2653. ensured as long as the image nodes are loaded via the configuration nodes
  2654. and the hashes of the image nodes are checked. That's usually the case.
  2655. Enabling :term:`FIT_SIGN_INDIVIDUAL` typically increases complexity for
  2656. little benefit. There might be exceptions such as image nodes that are
  2657. not referenced by any configuration node or loaded directly for whatever
  2658. reason.
  2659. For most use cases, setting this variable to "0" provides sufficient
  2660. security.
  2661. For further details, refer to the official U-Boot documentation:
  2662. `U-Boot fit signature <https://docs.u-boot.org/en/latest/usage/fit/signature.html>`__
  2663. and more specifically at:
  2664. `U-Boot signed configurations <https://docs.u-boot.org/en/latest/usage/fit/signature.html#signed-configurations>`__.
  2665. Signing only the image nodes is intentionally not implemented by
  2666. :term:`OpenEmbedded-Core (OE-Core)`, as it is vulnerable to mix-and-match
  2667. attacks.
  2668. :term:`FIT_SIGN_NUMBITS`
  2669. Size of the private key used in the FIT image, in number of bits.
  2670. The default value for this variable is set to "2048"
  2671. by the :ref:`ref-classes-kernel-fit-image` class.
  2672. :term:`FIT_UBOOT_ENV`
  2673. This variable allows to add a U-Boot script as a text file to the
  2674. FIT image. Such a script can be sourced from the U-Boot shell.
  2675. When inheriting the :ref:`ref-classes-kernel-fit-image` class a
  2676. script file should be included in the :term:`SRC_URI` of the Linux
  2677. kernel recipe.
  2678. Example:
  2679. - Add a script ``boot.cmd`` to the Linux kernel recipe::
  2680. FIT_UBOOT_ENV = "boot.cmd"
  2681. SRC_URI += "file://${FIT_UBOOT_ENV}"
  2682. - Use the script file from the U-Boot shell. The name of the script in
  2683. FIT image is ``bootscr-${FIT_UBOOT_ENV}``. This example loads the FIT
  2684. image from a TFTP server::
  2685. tftp $loadaddr $fit_tftp_path
  2686. source $loadaddr#bootscr-boot.cmd
  2687. More information can be found in the official U-Boot documentation:
  2688. `U-Boot source command <https://docs.u-boot.org/en/latest/usage/cmd/source.html#fit-image.f>`__
  2689. :term:`FONT_EXTRA_RDEPENDS`
  2690. When inheriting the :ref:`ref-classes-fontcache` class,
  2691. this variable specifies the runtime dependencies for font packages.
  2692. By default, the :term:`FONT_EXTRA_RDEPENDS` is set to "fontconfig-utils".
  2693. :term:`FONT_PACKAGES`
  2694. When inheriting the :ref:`ref-classes-fontcache` class, this variable
  2695. identifies packages containing font files that need to be cached by
  2696. Fontconfig. By default, the :ref:`ref-classes-fontcache` class assumes
  2697. that fonts are in the recipe's main package (i.e.
  2698. ``${``\ :term:`PN`\ ``}``). Use this variable if fonts you
  2699. need are in a package other than that main package.
  2700. :term:`FORCE_RO_REMOVE`
  2701. Forces the removal of the packages listed in ``ROOTFS_RO_UNNEEDED``
  2702. during the generation of the root filesystem.
  2703. Set the variable to "1" to force the removal of these packages.
  2704. :term:`FULL_OPTIMIZATION`
  2705. The options to pass in :term:`TARGET_CFLAGS` and :term:`CFLAGS` when
  2706. compiling an optimized system. This variable defaults to "-O2 -pipe
  2707. ${DEBUG_FLAGS}".
  2708. :term:`GCCPIE`
  2709. Enables Position Independent Executables (PIE) within the GNU C
  2710. Compiler (GCC). Enabling PIE in the GCC makes Return Oriented
  2711. Programming (ROP) attacks much more difficult to execute.
  2712. By default the ``security_flags.inc`` file enables PIE by setting the
  2713. variable as follows::
  2714. GCCPIE ?= "--enable-default-pie"
  2715. :term:`GCCVERSION`
  2716. Specifies the default version of the GNU C Compiler (GCC) used for
  2717. compilation. By default, :term:`GCCVERSION` is set to "8.x" in the
  2718. ``meta/conf/distro/include/tcmode-default.inc`` include file::
  2719. GCCVERSION ?= "8.%"
  2720. You can override this value by setting it in a
  2721. configuration file such as the ``local.conf``.
  2722. :term:`GDB`
  2723. The minimal command and arguments to run the GNU Debugger.
  2724. :term:`GIR_EXTRA_LIBS_PATH`
  2725. Allows to specify an extra search path for ``.so`` files
  2726. in GLib related recipes using GObject introspection,
  2727. and which do not compile without this setting.
  2728. See the ":ref:`dev-manual/gobject-introspection:enabling gobject introspection support`"
  2729. section for details.
  2730. :term:`GITDIR`
  2731. The directory in which a local copy of a Git repository is stored
  2732. when it is cloned.
  2733. :term:`GITHUB_BASE_URI`
  2734. When inheriting the :ref:`ref-classes-github-releases`
  2735. class, specifies the base URL for fetching releases for the github
  2736. project you wish to fetch sources from. The default value is as follows::
  2737. GITHUB_BASE_URI ?= "https://github.com/${BPN}/${BPN}/releases/"
  2738. :term:`GLIBC_GENERATE_LOCALES`
  2739. Specifies the list of GLIBC locales to generate should you not wish
  2740. to generate all LIBC locals, which can be time consuming.
  2741. .. note::
  2742. If you specifically remove the locale ``en_US.UTF-8``, you must set
  2743. :term:`IMAGE_LINGUAS` appropriately.
  2744. You can set :term:`GLIBC_GENERATE_LOCALES` in your ``local.conf`` file.
  2745. By default, all locales are generated::
  2746. GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 en_US.UTF-8"
  2747. :term:`GO_IMPORT`
  2748. When inheriting the :ref:`ref-classes-go` class, this mandatory variable
  2749. sets the import path for the Go package that will be created for the code
  2750. to build. If you have a ``go.mod`` file in the source directory, this
  2751. typically matches the path in the ``module`` line in this file.
  2752. Other Go programs importing this package will use this path.
  2753. Here is an example setting from the
  2754. :yocto_git:`go-helloworld_0.1.bb </poky/tree/meta/recipes-extended/go-examples/go-helloworld_0.1.bb>`
  2755. recipe::
  2756. GO_IMPORT = "golang.org/x/example"
  2757. :term:`GO_INSTALL`
  2758. When inheriting the :ref:`ref-classes-go` class, this optional variable
  2759. specifies which packages in the sources should be compiled and
  2760. installed in the Go build space by the
  2761. `go install <https://go.dev/ref/mod#go-install>`__ command.
  2762. Here is an example setting from the
  2763. :oe_git:`crucible </meta-openembedded/tree/meta-oe/recipes-support/crucible/>`
  2764. recipe::
  2765. GO_INSTALL = "\
  2766. ${GO_IMPORT}/cmd/crucible \
  2767. ${GO_IMPORT}/cmd/habtool \
  2768. "
  2769. By default, :term:`GO_INSTALL` is defined as::
  2770. GO_INSTALL ?= "${GO_IMPORT}/..."
  2771. The ``...`` wildcard means that it will catch all
  2772. packages found in the sources.
  2773. See the :term:`GO_INSTALL_FILTEROUT` variable for
  2774. filtering out unwanted packages from the ones
  2775. found from the :term:`GO_INSTALL` value.
  2776. :term:`GO_INSTALL_FILTEROUT`
  2777. When using the Go "vendor" mechanism to bring in dependencies for a Go
  2778. package, the default :term:`GO_INSTALL` setting, which uses the ``...``
  2779. wildcard, will include the vendored packages in the build, which produces
  2780. incorrect results.
  2781. There are also some Go packages that are structured poorly, so that the
  2782. ``...`` wildcard results in building example or test code that should not
  2783. be included in the build, or could fail to build.
  2784. This optional variable allows for filtering out a subset of the sources.
  2785. It defaults to excluding everything under the ``vendor`` subdirectory
  2786. under package's main directory. This is the normal location for vendored
  2787. packages, but it can be overridden by a recipe to filter out other
  2788. subdirectories if needed.
  2789. :term:`GO_WORKDIR`
  2790. When using Go Modules, the current working directory must be the directory
  2791. containing the ``go.mod`` file, or one of its subdirectories. When the
  2792. ``go`` tool is used, it will automatically look for the ``go.mod`` file
  2793. in the Go working directory or in any parent directory, but not in
  2794. subdirectories.
  2795. When using the :ref:`ref-classes-go-mod` class to use Go modules,
  2796. the optional :term:`GO_WORKDIR` variable, defaulting to the value
  2797. of :term:`GO_IMPORT`, allows to specify a different Go working directory.
  2798. :term:`GROUPADD_PARAM`
  2799. When inheriting the :ref:`ref-classes-useradd` class,
  2800. this variable specifies for a package what parameters should be
  2801. passed to the ``groupadd`` command if you wish to add a group to the
  2802. system when the package is installed.
  2803. Here is an example from the ``dbus`` recipe::
  2804. GROUPADD_PARAM:${PN} = "-r netdev"
  2805. More than one group can be added by separating each set of different
  2806. groups' parameters with a semicolon.
  2807. Here is an example adding multiple groups from the ``useradd-example.bb``
  2808. file in the ``meta-skeleton`` layer::
  2809. GROUPADD_PARAM:${PN} = "-g 880 group1; -g 890 group2"
  2810. For information on the standard Linux shell command
  2811. ``groupadd``, see https://linux.die.net/man/8/groupadd.
  2812. :term:`GROUPMEMS_PARAM`
  2813. When inheriting the :ref:`ref-classes-useradd` class,
  2814. this variable specifies for a package what parameters should be
  2815. passed to the ``groupmems`` command if you wish to modify the members
  2816. of a group when the package is installed.
  2817. For information on the standard Linux shell command ``groupmems``,
  2818. see https://linux.die.net/man/8/groupmems.
  2819. :term:`GRUB_GFXSERIAL`
  2820. Configures the GNU GRand Unified Bootloader (GRUB) to have graphics
  2821. and serial in the boot menu. Set this variable to "1" in your
  2822. ``local.conf`` or distribution configuration file to enable graphics
  2823. and serial in the menu.
  2824. See the :ref:`ref-classes-grub-efi` class for more
  2825. information on how this variable is used.
  2826. :term:`GRUB_MKIMAGE_OPTS`
  2827. This variable controls additional options passed to the ``grub-mkimage``
  2828. command in the GNU GRand Unified Bootloader (GRUB) recipe during the
  2829. ``do_mkimage`` task.
  2830. :term:`GRUB_OPTS`
  2831. Additional options to add to the GNU GRand Unified Bootloader (GRUB)
  2832. configuration. Use a semi-colon character (``;``) to separate
  2833. multiple options.
  2834. The :term:`GRUB_OPTS` variable is optional. See the
  2835. :ref:`ref-classes-grub-efi` class for more information
  2836. on how this variable is used.
  2837. :term:`GRUB_TIMEOUT`
  2838. Specifies the timeout before executing the default ``LABEL`` in the
  2839. GNU GRand Unified Bootloader (GRUB).
  2840. The :term:`GRUB_TIMEOUT` variable is optional. See the
  2841. :ref:`ref-classes-grub-efi` class for more information
  2842. on how this variable is used.
  2843. :term:`GRUB_TITLE`
  2844. Specifies custom titles for GRUB labels defined in :term:`LABELS`. See
  2845. the :ref:`ref-classes-grub-efi` class for more information on how this
  2846. variable is used.
  2847. :term:`GTKIMMODULES_PACKAGES`
  2848. When inheriting the :ref:`ref-classes-gtk-immodules-cache` class,
  2849. this variable specifies the packages that contain the GTK+ input
  2850. method modules being installed when the modules are in packages other
  2851. than the main package.
  2852. :term:`HGDIR`
  2853. See :term:`bitbake:HGDIR` in the BitBake manual.
  2854. :term:`HOMEPAGE`
  2855. Website where more information about the software the recipe is
  2856. building can be found.
  2857. :term:`HOST_ARCH`
  2858. The name of the target architecture, which is normally the same as
  2859. :term:`TARGET_ARCH`. The OpenEmbedded build system
  2860. supports many architectures. Here is an example list of architectures
  2861. supported. This list is by no means complete as the architecture is
  2862. configurable:
  2863. - arm
  2864. - i586
  2865. - x86_64
  2866. - powerpc
  2867. - powerpc64
  2868. - mips
  2869. - mipsel
  2870. :term:`HOST_AS_ARCH`
  2871. Specifies architecture-specific assembler flags.
  2872. Default initialization for :term:`HOST_AS_ARCH` varies depending on what
  2873. is being built:
  2874. - :term:`TARGET_AS_ARCH` when building for the
  2875. target
  2876. - :term:`BUILD_AS_ARCH` when building for the build host (i.e.
  2877. ``-native``)
  2878. - :term:`SDK_AS_ARCH` when building for an SDK (i.e. ``nativesdk-``)
  2879. :term:`HOST_CC_ARCH`
  2880. Specifies architecture-specific compiler flags that are passed to the
  2881. C compiler.
  2882. Default initialization for :term:`HOST_CC_ARCH` varies depending on what
  2883. is being built:
  2884. - :term:`TARGET_CC_ARCH` when building for the
  2885. target
  2886. - :term:`BUILD_CC_ARCH` when building for the build host (i.e.
  2887. ``-native``)
  2888. - :term:`SDK_CC_ARCH` when building for an SDK (i.e. ``nativesdk-``)
  2889. :term:`HOST_LD_ARCH`
  2890. Specifies architecture-specific linker flags.
  2891. Default initialization for :term:`HOST_LD_ARCH` varies depending on what
  2892. is being built:
  2893. - :term:`TARGET_LD_ARCH` when building for the target
  2894. - :term:`BUILD_LD_ARCH` when building for the build host (i.e.
  2895. ``-native``)
  2896. - :term:`SDK_LD_ARCH` when building for an SDK (i.e. ``nativesdk-``)
  2897. :term:`HOST_OS`
  2898. Specifies the name of the target operating system, which is normally
  2899. the same as the :term:`TARGET_OS`. The variable can
  2900. be set to "linux" for ``glibc``-based systems and to "linux-musl" for
  2901. ``musl``. For ARM/EABI targets, there are also "linux-gnueabi" and
  2902. "linux-musleabi" values possible.
  2903. :term:`HOST_PREFIX`
  2904. Specifies the prefix for the cross-compile toolchain. :term:`HOST_PREFIX`
  2905. is normally the same as :term:`TARGET_PREFIX`.
  2906. :term:`HOST_SYS`
  2907. Specifies the system, including the architecture and the operating
  2908. system, for which the build is occurring in the context of the
  2909. current recipe.
  2910. The OpenEmbedded build system automatically sets this variable based
  2911. on :term:`HOST_ARCH`,
  2912. :term:`HOST_VENDOR`, and
  2913. :term:`HOST_OS` variables.
  2914. .. note::
  2915. You do not need to set the variable yourself.
  2916. Consider these two examples:
  2917. - Given a native recipe on a 32-bit x86 machine running Linux, the
  2918. value is "i686-linux".
  2919. - Given a recipe being built for a little-endian MIPS target running
  2920. Linux, the value might be "mipsel-linux".
  2921. :term:`HOST_VENDOR`
  2922. Specifies the name of the vendor. :term:`HOST_VENDOR` is normally the
  2923. same as :term:`TARGET_VENDOR`.
  2924. :term:`HOSTTOOLS`
  2925. A space-separated list (filter) of tools on the build host that
  2926. should be allowed to be called from within build tasks. Using this
  2927. filter helps reduce the possibility of host contamination. If a tool
  2928. specified in the value of :term:`HOSTTOOLS` is not found on the build
  2929. host, the OpenEmbedded build system produces an error and the build
  2930. is not started.
  2931. For additional information, see
  2932. :term:`HOSTTOOLS_NONFATAL`.
  2933. :term:`HOSTTOOLS_NONFATAL`
  2934. A space-separated list (filter) of tools on the build host that
  2935. should be allowed to be called from within build tasks. Using this
  2936. filter helps reduce the possibility of host contamination. Unlike
  2937. :term:`HOSTTOOLS`, the OpenEmbedded build system
  2938. does not produce an error if a tool specified in the value of
  2939. :term:`HOSTTOOLS_NONFATAL` is not found on the build host. Thus, you can
  2940. use :term:`HOSTTOOLS_NONFATAL` to filter optional host tools.
  2941. :term:`IMAGE_BASENAME`
  2942. The base name of image output files. This variable defaults to the
  2943. recipe name (``${``\ :term:`PN`\ ``}``).
  2944. :term:`IMAGE_BOOT_FILES`
  2945. A space-separated list of files installed into the boot partition
  2946. when preparing an image using the Wic tool with the
  2947. ``bootimg_partition`` source plugin. By default,
  2948. the files are
  2949. installed under the same name as the source files. To change the
  2950. installed name, separate it from the original name with a semi-colon
  2951. (;). Source files need to be located in
  2952. :term:`DEPLOY_DIR_IMAGE`. Here are two
  2953. examples::
  2954. IMAGE_BOOT_FILES = "u-boot.img uImage;kernel"
  2955. IMAGE_BOOT_FILES = "u-boot.${UBOOT_SUFFIX} ${KERNEL_IMAGETYPE}"
  2956. Alternatively, source files can be picked up using a glob pattern. In
  2957. this case, the destination file must have the same name as the base
  2958. name of the source file path. To install files into a directory
  2959. within the target location, pass its name after a semi-colon (;).
  2960. Here are two examples::
  2961. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*"
  2962. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*;boot/"
  2963. The first example
  2964. installs all files from ``${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles``
  2965. into the root of the target partition. The second example installs
  2966. the same files into a ``boot`` directory within the target partition.
  2967. You can find information on how to use the Wic tool in the
  2968. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  2969. section of the Yocto Project Development Tasks Manual. Reference
  2970. material for Wic is located in the
  2971. ":doc:`/ref-manual/kickstart`" chapter.
  2972. :term:`IMAGE_BUILDINFO_FILE`
  2973. When using the :ref:`ref-classes-image-buildinfo` class,
  2974. specifies the file in the image to write the build information into. The
  2975. default value is "``${sysconfdir}/buildinfo``".
  2976. :term:`IMAGE_BUILDINFO_VARS`
  2977. When using the :ref:`ref-classes-image-buildinfo` class,
  2978. specifies the list of variables to include in the `Build Configuration`
  2979. section of the output file (as a space-separated list). Defaults to
  2980. ":term:`DISTRO` :term:`DISTRO_VERSION`".
  2981. :term:`IMAGE_CLASSES`
  2982. A list of classes that all images should inherit. This is typically used
  2983. to enable functionality across all image recipes.
  2984. Classes specified in :term:`IMAGE_CLASSES` must be located in the
  2985. ``classes-recipe/`` or ``classes/`` subdirectories.
  2986. :term:`IMAGE_CMD`
  2987. Specifies the command to create the image file for a specific image
  2988. type, which corresponds to the value set in
  2989. :term:`IMAGE_FSTYPES`, (e.g. ``ext3``,
  2990. ``btrfs``, and so forth). When setting this variable, you should use
  2991. an override for the associated type. Here is an example::
  2992. IMAGE_CMD:jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime \
  2993. --output=${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.jffs2 \
  2994. ${EXTRA_IMAGECMD}"
  2995. You typically do not need to set this variable unless you are adding
  2996. support for a new image type. For more examples on how to set this
  2997. variable, see the :ref:`ref-classes-image_types`
  2998. class file, which is ``meta/classes-recipe/image_types.bbclass``.
  2999. :term:`IMAGE_DEVICE_TABLES`
  3000. Specifies one or more files that contain custom device tables that
  3001. are passed to the ``makedevs`` command as part of creating an image.
  3002. These files list basic device nodes that should be created under
  3003. ``/dev`` within the image. If :term:`IMAGE_DEVICE_TABLES` is not set,
  3004. ``files/device_table-minimal.txt`` is used, which is located by
  3005. :term:`BBPATH`. For details on how you should write
  3006. device table files, see ``meta/files/device_table-minimal.txt`` as an
  3007. example.
  3008. :term:`IMAGE_EFI_BOOT_FILES`
  3009. A space-separated list of files installed into the boot partition
  3010. when preparing an image using the Wic tool with the
  3011. ``bootimg_efi`` source plugin. By default,
  3012. the files are
  3013. installed under the same name as the source files. To change the
  3014. installed name, separate it from the original name with a semi-colon
  3015. (;). Source files need to be located in
  3016. :term:`DEPLOY_DIR_IMAGE`. Here are two
  3017. examples::
  3018. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE};bz2"
  3019. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE} microcode.cpio"
  3020. Alternatively, source files can be picked up using a glob pattern. In
  3021. this case, the destination file must have the same name as the base
  3022. name of the source file path. To install files into a directory
  3023. within the target location, pass its name after a semi-colon (;).
  3024. Here are two examples::
  3025. IMAGE_EFI_BOOT_FILES = "boot/loader/*"
  3026. IMAGE_EFI_BOOT_FILES = "boot/loader/*;boot/"
  3027. The first example
  3028. installs all files from ``${DEPLOY_DIR_IMAGE}/boot/loader/``
  3029. into the root of the target partition. The second example installs
  3030. the same files into a ``boot`` directory within the target partition.
  3031. You can find information on how to use the Wic tool in the
  3032. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  3033. section of the Yocto Project Development Tasks Manual. Reference
  3034. material for Wic is located in the
  3035. ":doc:`/ref-manual/kickstart`" chapter.
  3036. :term:`IMAGE_FEATURES`
  3037. The primary list of features to include in an image. Typically, you
  3038. configure this variable in an image recipe. Although you can use this
  3039. variable from your ``local.conf`` file, which is found in the
  3040. :term:`Build Directory`, best practices dictate that you do
  3041. not.
  3042. .. note::
  3043. To enable extra features from outside the image recipe, use the
  3044. :term:`EXTRA_IMAGE_FEATURES` variable.
  3045. For a list of image features that ships with the Yocto Project, see
  3046. the ":ref:`ref-features-image`" section.
  3047. For an example that shows how to customize your image by using this
  3048. variable, see the ":ref:`dev-manual/customizing-images:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  3049. section in the Yocto Project Development Tasks Manual.
  3050. :term:`IMAGE_FSTYPES`
  3051. Specifies the formats the OpenEmbedded build system uses during the
  3052. build when creating the root filesystem. For example, setting
  3053. :term:`IMAGE_FSTYPES` as follows causes the build system to create root
  3054. filesystems using two formats: ``.ext3`` and ``.tar.bz2``::
  3055. IMAGE_FSTYPES = "ext3 tar.bz2"
  3056. For the complete list of supported image formats from which you can
  3057. choose, see :term:`IMAGE_TYPES`.
  3058. .. note::
  3059. - If an image recipe uses the "inherit image" line and you are
  3060. setting :term:`IMAGE_FSTYPES` inside the recipe, you must set
  3061. :term:`IMAGE_FSTYPES` prior to using the "inherit image" line.
  3062. - Due to the way the OpenEmbedded build system processes this
  3063. variable, you cannot update its contents by using ``:append``
  3064. or ``:prepend``. You must use the ``+=`` operator to add one or
  3065. more options to the :term:`IMAGE_FSTYPES` variable.
  3066. :term:`IMAGE_INSTALL`
  3067. Used by recipes to specify the packages to install into an image
  3068. through the :ref:`ref-classes-image` class. Use the
  3069. :term:`IMAGE_INSTALL` variable with care to avoid ordering issues.
  3070. Image recipes set :term:`IMAGE_INSTALL` to specify the packages to
  3071. install into an image through :ref:`ref-classes-image`. Additionally,
  3072. there are "helper" classes such as the :ref:`ref-classes-core-image`
  3073. class which can take lists used with :term:`IMAGE_FEATURES` and turn
  3074. them into auto-generated entries in :term:`IMAGE_INSTALL` in addition
  3075. to its default contents.
  3076. When you use this variable, it is best to use it as follows::
  3077. IMAGE_INSTALL:append = " package-name"
  3078. Be sure to include the space
  3079. between the quotation character and the start of the package name or
  3080. names.
  3081. .. note::
  3082. - When working with a
  3083. :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  3084. image, do not use the :term:`IMAGE_INSTALL` variable to specify
  3085. packages for installation. Instead, use the
  3086. :term:`PACKAGE_INSTALL` variable, which
  3087. allows the initial RAM filesystem (:term:`Initramfs`) recipe to use a
  3088. fixed set of packages and not be affected by :term:`IMAGE_INSTALL`.
  3089. For information on creating an :term:`Initramfs`, see the
  3090. ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`"
  3091. section in the Yocto Project Development Tasks Manual.
  3092. - Using :term:`IMAGE_INSTALL` with the
  3093. :ref:`+= <bitbake-user-manual/bitbake-user-manual-metadata:appending (+=) and prepending (=+) with spaces>`
  3094. BitBake operator within the ``/conf/local.conf`` file or from
  3095. within an image recipe is not recommended. Use of this operator in
  3096. these ways can cause ordering issues. Since
  3097. :ref:`ref-classes-core-image` sets :term:`IMAGE_INSTALL` to a
  3098. default value using the
  3099. :ref:`?= <bitbake-user-manual/bitbake-user-manual-metadata:setting a default value (?=)>`
  3100. operator, using a ``+=`` operation against :term:`IMAGE_INSTALL`
  3101. results in unexpected behavior when used within
  3102. ``conf/local.conf``. Furthermore, the same operation from within an
  3103. image recipe may or may not succeed depending on the specific
  3104. situation. In both these cases, the behavior is contrary to how
  3105. most users expect the ``+=`` operator to work.
  3106. :term:`IMAGE_LINGUAS`
  3107. Specifies the list of locales to install into the image during the
  3108. root filesystem construction process. The OpenEmbedded build system
  3109. automatically splits locale files, which are used for localization,
  3110. into separate packages. Setting the :term:`IMAGE_LINGUAS` variable
  3111. ensures that any locale packages that correspond to packages already
  3112. selected for installation into the image are also installed. Here is
  3113. an example::
  3114. IMAGE_LINGUAS = "pt-br de-de"
  3115. In this example, the build system ensures any Brazilian Portuguese
  3116. and German locale files that correspond to packages in the image are
  3117. installed (i.e. ``*-locale-pt-br`` and ``*-locale-de-de`` as well as
  3118. ``*-locale-pt`` and ``*-locale-de``, since some software packages
  3119. only provide locale files by language and not by country-specific
  3120. language).
  3121. See the :term:`GLIBC_GENERATE_LOCALES`
  3122. variable for information on generating GLIBC locales.
  3123. :term:`IMAGE_LINK_NAME`
  3124. The name of the output image symlink (which does not include
  3125. the version part as :term:`IMAGE_NAME` does). The default value
  3126. is derived using the :term:`IMAGE_BASENAME` and
  3127. :term:`IMAGE_MACHINE_SUFFIX` variables::
  3128. IMAGE_LINK_NAME ?= "${IMAGE_BASENAME}${IMAGE_MACHINE_SUFFIX}"
  3129. .. note::
  3130. It is possible to set this to "" to disable symlink creation,
  3131. however, you also need to set :term:`IMAGE_NAME` to still have
  3132. a reasonable value e.g.::
  3133. IMAGE_LINK_NAME = ""
  3134. IMAGE_NAME = "${IMAGE_BASENAME}${IMAGE_MACHINE_SUFFIX}${IMAGE_VERSION_SUFFIX}"
  3135. :term:`IMAGE_MACHINE_SUFFIX`
  3136. Specifies the by default machine-specific suffix for image file names
  3137. (before the extension). The default value is set as follows::
  3138. IMAGE_MACHINE_SUFFIX ??= "-${MACHINE}"
  3139. The default :term:`DEPLOY_DIR_IMAGE` already has a :term:`MACHINE`
  3140. subdirectory, so you may find it unnecessary to also include this suffix
  3141. in the name of every image file. If you prefer to remove the suffix you
  3142. can set this variable to an empty string::
  3143. IMAGE_MACHINE_SUFFIX = ""
  3144. (Not to be confused with :term:`IMAGE_NAME_SUFFIX`.)
  3145. :term:`IMAGE_MANIFEST`
  3146. The manifest file for the image. This file lists all the installed
  3147. packages that make up the image. The file contains package
  3148. information on a line-per-package basis as follows::
  3149. packagename packagearch version
  3150. The :ref:`rootfs-postcommands <ref-classes-rootfs*>` class defines the manifest
  3151. file as follows::
  3152. IMAGE_MANIFEST ="${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.manifest"
  3153. The location is
  3154. derived using the :term:`IMGDEPLOYDIR`
  3155. and :term:`IMAGE_NAME` variables. You can find
  3156. information on how the image is created in the ":ref:`overview-manual/concepts:image generation`"
  3157. section in the Yocto Project Overview and Concepts Manual.
  3158. :term:`IMAGE_NAME`
  3159. The name of the output image files minus the extension. By default
  3160. this variable is set using the :term:`IMAGE_LINK_NAME`, and
  3161. :term:`IMAGE_VERSION_SUFFIX` variables::
  3162. IMAGE_NAME ?= "${IMAGE_LINK_NAME}${IMAGE_VERSION_SUFFIX}"
  3163. :term:`IMAGE_NAME_SUFFIX`
  3164. Suffix used for the image output filename --- defaults to ``".rootfs"``
  3165. to distinguish the image file from other files created during image
  3166. building; however if this suffix is redundant or not desired you can
  3167. clear the value of this variable (set the value to ""). For example,
  3168. this is typically cleared in :term:`Initramfs` image recipes.
  3169. :term:`IMAGE_OUTPUT_MANIFEST`
  3170. When inheriting the :ref:`ref-classes-image` class directly or through the
  3171. :ref:`ref-classes-core-image` class, the :term:`IMAGE_OUTPUT_MANIFEST`
  3172. points to a manifest ``json`` file that lists what images were created by
  3173. various image creation tasks (as defined by the :term:`IMAGE_FSTYPES`
  3174. variable). It is set in the :ref:`ref-classes-image` class as follows::
  3175. IMAGE_OUTPUT_MANIFEST = "${IMAGE_OUTPUT_MANIFEST_DIR}/manifest.json"
  3176. :term:`IMAGE_OUTPUT_MANIFEST_DIR`
  3177. When inheriting the :ref:`ref-classes-image` class directly or through the
  3178. :ref:`ref-classes-core-image` class, the :term:`IMAGE_OUTPUT_MANIFEST_DIR` points to
  3179. a directory that stores a manifest ``json`` file that lists what
  3180. images were created by various image creation tasks (as defined by the
  3181. :term:`IMAGE_FSTYPES` variable). It is set in the :ref:`ref-classes-image`
  3182. class as follows::
  3183. IMAGE_OUTPUT_MANIFEST_DIR = "${WORKDIR}/deploy-image-output-manifest"
  3184. :term:`IMAGE_OVERHEAD_FACTOR`
  3185. Defines a multiplier that the build system applies to the initial
  3186. image size for cases when the multiplier times the returned disk
  3187. usage value for the image is greater than the sum of
  3188. :term:`IMAGE_ROOTFS_SIZE` and :term:`IMAGE_ROOTFS_EXTRA_SPACE`. The result of
  3189. the multiplier applied to the initial image size creates free disk
  3190. space in the image as overhead. By default, the build process uses a
  3191. multiplier of 1.3 for this variable. This default value results in
  3192. 30% free disk space added to the image when this method is used to
  3193. determine the final generated image size. You should be aware that
  3194. post install scripts and the package management system uses disk
  3195. space inside this overhead area. Consequently, the multiplier does
  3196. not produce an image with all the theoretical free disk space. See
  3197. :term:`IMAGE_ROOTFS_SIZE` for information on how the build system
  3198. determines the overall image size.
  3199. The default 30% free disk space typically gives the image enough room
  3200. to boot and allows for basic post installs while still leaving a
  3201. small amount of free disk space. If 30% free space is inadequate, you
  3202. can increase the default value. For example, the following setting
  3203. gives you 50% free space added to the image::
  3204. IMAGE_OVERHEAD_FACTOR = "1.5"
  3205. Alternatively, you can ensure a specific amount of free disk space is
  3206. added to the image by using the :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  3207. variable.
  3208. :term:`IMAGE_PKGTYPE`
  3209. Defines the package type (i.e. DEB, RPM or IPK) used by the
  3210. OpenEmbedded build system. The variable is defined appropriately by
  3211. one of the :ref:`ref-classes-package_deb`, :ref:`ref-classes-package_rpm`,
  3212. or :ref:`ref-classes-package_ipk` classes.
  3213. The :ref:`ref-classes-populate-sdk-*` and :ref:`ref-classes-image`
  3214. classes use the :term:`IMAGE_PKGTYPE` for packaging images and SDKs.
  3215. You should not set the :term:`IMAGE_PKGTYPE` manually. Rather, the
  3216. variable is set indirectly through the appropriate
  3217. :ref:`package_* <ref-classes-package>` class using the
  3218. :term:`PACKAGE_CLASSES` variable. The
  3219. OpenEmbedded build system uses the first package type (e.g. DEB, RPM,
  3220. or IPK) that appears with the variable
  3221. :term:`IMAGE_POSTPROCESS_COMMAND`
  3222. Specifies a list of functions to call once the OpenEmbedded build
  3223. system creates the final image output files. You can specify
  3224. functions separated by spaces::
  3225. IMAGE_POSTPROCESS_COMMAND += "function"
  3226. If you need to pass the root filesystem path to a command within the
  3227. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  3228. directory that becomes the root filesystem image. See the
  3229. :term:`IMAGE_ROOTFS` variable for more
  3230. information.
  3231. :term:`IMAGE_PREPROCESS_COMMAND`
  3232. Specifies a list of functions to call before the OpenEmbedded build
  3233. system creates the final image output files. You can specify
  3234. functions separated by spaces::
  3235. IMAGE_PREPROCESS_COMMAND += "function"
  3236. If you need to pass the root filesystem path to a command within the
  3237. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  3238. directory that becomes the root filesystem image. See the
  3239. :term:`IMAGE_ROOTFS` variable for more
  3240. information.
  3241. :term:`IMAGE_ROOTFS`
  3242. The location of the root filesystem while it is under construction
  3243. (i.e. during the :ref:`ref-tasks-rootfs` task). This
  3244. variable is not configurable. Do not change it.
  3245. :term:`IMAGE_ROOTFS_ALIGNMENT`
  3246. Specifies the alignment for the output image file in Kbytes. If the
  3247. size of the image is not a multiple of this value, then the size is
  3248. rounded up to the nearest multiple of the value. The default value is
  3249. "1". See :term:`IMAGE_ROOTFS_SIZE` for
  3250. additional information.
  3251. :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  3252. Defines additional free disk space created in the image in Kbytes. By
  3253. default, this variable is set to "0". This free disk space is added
  3254. to the image after the build system determines the image size as
  3255. described in :term:`IMAGE_ROOTFS_SIZE`.
  3256. This variable is particularly useful when you want to ensure that a
  3257. specific amount of free disk space is available on a device after an
  3258. image is installed and running. For example, to be sure 5 Gbytes of
  3259. free disk space is available, set the variable as follows::
  3260. IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
  3261. For example, the Yocto Project Build Appliance specifically requests
  3262. 40 Gbytes of extra space with the line::
  3263. IMAGE_ROOTFS_EXTRA_SPACE = "41943040"
  3264. :term:`IMAGE_ROOTFS_MAXSIZE`
  3265. Defines the maximum allowed size of the generated image in kilobytes.
  3266. The build will fail if the generated image size exceeds this value.
  3267. The generated image size undergoes several calculation steps before being
  3268. compared to :term:`IMAGE_ROOTFS_MAXSIZE`.
  3269. In the first step, the size of the directory pointed to by :term:`IMAGE_ROOTFS`
  3270. is calculated.
  3271. In the second step, the result from the first step is multiplied
  3272. by :term:`IMAGE_OVERHEAD_FACTOR`.
  3273. In the third step, the result from the second step is compared with
  3274. :term:`IMAGE_ROOTFS_SIZE`. The larger value of these is added to
  3275. :term:`IMAGE_ROOTFS_EXTRA_SPACE`.
  3276. In the fourth step, the result from the third step is checked for
  3277. a decimal part. If it has one, it is rounded up to the next integer.
  3278. If it does not, it is simply converted into an integer.
  3279. In the fifth step, the :term:`IMAGE_ROOTFS_ALIGNMENT` is added to the result
  3280. from the fourth step and "1" is subtracted.
  3281. In the sixth step, the remainder of the division between the result
  3282. from the fifth step and :term:`IMAGE_ROOTFS_ALIGNMENT` is subtracted from the
  3283. result of the fifth step. In this way, the result from the fourth step is
  3284. rounded up to the nearest multiple of :term:`IMAGE_ROOTFS_ALIGNMENT`.
  3285. Thus, if the :term:`IMAGE_ROOTFS_MAXSIZE` is set, is compared with the result
  3286. of the above calculations and is independent of the final image type.
  3287. No default value is set for :term:`IMAGE_ROOTFS_MAXSIZE`.
  3288. It's a good idea to set this variable for images that need to fit on a limited
  3289. space (e.g. SD card, a fixed-size partition, ...).
  3290. :term:`IMAGE_ROOTFS_SIZE`
  3291. Defines the size in Kbytes for the generated image. The OpenEmbedded
  3292. build system determines the final size for the generated image using
  3293. an algorithm that takes into account the initial disk space used for
  3294. the generated image, a requested size for the image, and requested
  3295. additional free disk space to be added to the image. Programatically,
  3296. the build system determines the final size of the generated image as
  3297. follows::
  3298. if (image-du * overhead) < rootfs-size:
  3299. internal-rootfs-size = rootfs-size + xspace
  3300. else:
  3301. internal-rootfs-size = (image-du * overhead) + xspace
  3302. where:
  3303. image-du = Returned value of the du command on the image.
  3304. overhead = IMAGE_OVERHEAD_FACTOR
  3305. rootfs-size = IMAGE_ROOTFS_SIZE
  3306. internal-rootfs-size = Initial root filesystem size before any modifications.
  3307. xspace = IMAGE_ROOTFS_EXTRA_SPACE
  3308. See the :term:`IMAGE_OVERHEAD_FACTOR`
  3309. and :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  3310. variables for related information.
  3311. :term:`IMAGE_TYPEDEP`
  3312. Specifies a dependency from one image type on another. Here is an
  3313. example from the :ref:`ref-classes-image-live` class::
  3314. IMAGE_TYPEDEP:live = "ext3"
  3315. In the previous example, the variable ensures that when "live" is
  3316. listed with the :term:`IMAGE_FSTYPES` variable,
  3317. the OpenEmbedded build system produces an ``ext3`` image first since
  3318. one of the components of the live image is an ``ext3`` formatted
  3319. partition containing the root filesystem.
  3320. :term:`IMAGE_TYPES`
  3321. Specifies the complete list of supported image types by default:
  3322. - btrfs
  3323. - container
  3324. - cpio
  3325. - cpio.gz
  3326. - cpio.lz4
  3327. - cpio.lzma
  3328. - cpio.xz
  3329. - cramfs
  3330. - erofs
  3331. - erofs-lz4
  3332. - erofs-lz4hc
  3333. - ext2
  3334. - ext2.bz2
  3335. - ext2.gz
  3336. - ext2.lzma
  3337. - ext3
  3338. - ext3.gz
  3339. - ext4
  3340. - ext4.gz
  3341. - f2fs
  3342. - hddimg
  3343. - iso
  3344. - jffs2
  3345. - jffs2.sum
  3346. - multiubi
  3347. - squashfs
  3348. - squashfs-lz4
  3349. - squashfs-lzo
  3350. - squashfs-xz
  3351. - tar
  3352. - tar.bz2
  3353. - tar.gz
  3354. - tar.lz4
  3355. - tar.xz
  3356. - tar.zst
  3357. - ubi
  3358. - ubifs
  3359. - wic
  3360. - wic.bz2
  3361. - wic.gz
  3362. - wic.lzma
  3363. - wic.zst
  3364. For more information about these types of images, see
  3365. ``meta/classes-recipe/image_types*.bbclass`` in the :term:`Source Directory`.
  3366. :term:`IMAGE_VERSION_SUFFIX`
  3367. Version suffix that is part of the default :term:`IMAGE_NAME` and
  3368. :term:`KERNEL_ARTIFACT_NAME` values.
  3369. Defaults to ``"-${DATETIME}"``, however you could set this to a
  3370. version string that comes from your external build environment if
  3371. desired, and this suffix would then be used consistently across
  3372. the build artifacts.
  3373. :term:`IMGDEPLOYDIR`
  3374. When inheriting the :ref:`ref-classes-image` class directly or
  3375. through the :ref:`ref-classes-core-image` class, the
  3376. :term:`IMGDEPLOYDIR` points to a temporary work area for deployed files
  3377. that is set in the ``image`` class as follows::
  3378. IMGDEPLOYDIR = "${WORKDIR}/deploy-${PN}-image-complete"
  3379. Recipes inheriting the :ref:`ref-classes-image` class should copy
  3380. files to be deployed into :term:`IMGDEPLOYDIR`, and the class will take
  3381. care of copying them into :term:`DEPLOY_DIR_IMAGE` afterwards.
  3382. :term:`IMGMANIFESTDIR`
  3383. When inheriting the :ref:`ref-classes-image` class directly or through the
  3384. :ref:`ref-classes-core-image` class, the :term:`IMGMANIFESTDIR` setting
  3385. points to a temporary area that stores manifest ``json`` files, that list
  3386. what images were created by various images creation tasks (as defined by
  3387. the :term:`IMAGE_FSTYPES` variable). It is set in the
  3388. :ref:`ref-classes-image` class as follows::
  3389. IMGMANIFESTDIR = "${WORKDIR}/image-task-manifest"
  3390. :term:`INCOMPATIBLE_LICENSE`
  3391. Specifies a space-separated list of license names (as they would
  3392. appear in :term:`LICENSE`) that should be excluded
  3393. from the build (if set globally), or from an image (if set locally
  3394. in an image recipe).
  3395. When the variable is set globally, recipes that provide no alternatives to listed
  3396. incompatible licenses are not built. Packages that are individually
  3397. licensed with the specified incompatible licenses will be deleted.
  3398. Most of the time this does not allow a feasible build (because it becomes impossible
  3399. to satisfy build time dependencies), so the recommended way to
  3400. implement license restrictions is to set the variable in specific
  3401. image recipes where the restrictions must apply. That way there
  3402. are no build time restrictions, but the license check is still
  3403. performed when the image's filesystem is assembled from packages.
  3404. There is some support for wildcards in this variable's value,
  3405. however it is restricted to specific licenses. Currently only
  3406. these wildcards are allowed and expand as follows:
  3407. - ``AGPL-3.0*"``: ``AGPL-3.0-only``, ``AGPL-3.0-or-later``
  3408. - ``GPL-3.0*``: ``GPL-3.0-only``, ``GPL-3.0-or-later``
  3409. - ``LGPL-3.0*``: ``LGPL-3.0-only``, ``LGPL-3.0-or-later``
  3410. .. note::
  3411. This functionality is only regularly tested using the following
  3412. setting::
  3413. INCOMPATIBLE_LICENSE = "GPL-3.0* LGPL-3.0* AGPL-3.0*"
  3414. Although you can use other settings, you might be required to
  3415. remove dependencies on (or provide alternatives to) components that
  3416. are required to produce a functional system image.
  3417. :term:`INCOMPATIBLE_LICENSE_EXCEPTIONS`
  3418. Specifies a space-separated list of package and license pairs that
  3419. are allowed to be used even if the license is specified in
  3420. :term:`INCOMPATIBLE_LICENSE`. The package and license pairs are
  3421. separated using a colon. Example::
  3422. INCOMPATIBLE_LICENSE_EXCEPTIONS = "gdbserver:GPL-3.0-only gdbserver:LGPL-3.0-only"
  3423. :term:`INHERIT`
  3424. Causes the named class or classes to be inherited globally. Anonymous
  3425. functions in the class or classes are not executed for the base
  3426. configuration and in each individual recipe. The OpenEmbedded build
  3427. system ignores changes to :term:`INHERIT` in individual recipes.
  3428. Classes inherited using :term:`INHERIT` must be located in the
  3429. ``classes-global/`` or ``classes/`` subdirectories.
  3430. For more information on :term:`INHERIT`, see the
  3431. :ref:`bitbake-user-manual/bitbake-user-manual-metadata:\`\`inherit\`\` configuration directive`"
  3432. section in the BitBake User Manual.
  3433. :term:`INHERIT_DISTRO`
  3434. Lists classes that will be inherited at the distribution level. It is
  3435. unlikely that you want to edit this variable.
  3436. Classes specified in :term:`INHERIT_DISTRO` must be located in the
  3437. ``classes-global/`` or ``classes/`` subdirectories.
  3438. The default value of the variable is set as follows in the
  3439. ``meta/conf/distro/defaultsetup.conf`` file::
  3440. INHERIT_DISTRO ?= "debian devshell sstate license remove-libtool create-spdx"
  3441. :term:`INHIBIT_AUTOTOOLS_DEPS`
  3442. Prevents the :ref:`ref-classes-autotools` class from automatically adding
  3443. its default build-time dependencies.
  3444. When a recipe inherits the :ref:`ref-classes-autotools` class, several
  3445. native cross tools such as ``autoconf-native``, ``automake-native``,
  3446. ``libtool-native``, ``libtool-cross`` are added to :term:`DEPENDS` to
  3447. support the ``autotools`` build process.
  3448. To prevent the build system from adding these dependencies automatically,
  3449. set the :term:`INHIBIT_AUTOTOOLS_DEPS` variable as follows::
  3450. INHIBIT_AUTOTOOLS_DEPS = "1"
  3451. By default, the value of :term:`INHIBIT_AUTOTOOLS_DEPS` is empty. Setting
  3452. it to "0" does not disable inhibition. Only the empty string will disable
  3453. inhibition.
  3454. :term:`INHIBIT_DEFAULT_DEPS`
  3455. Prevents the default dependencies, namely the C compiler and standard
  3456. C library (libc), from being added to :term:`DEPENDS`.
  3457. This variable is usually used within recipes that do not require any
  3458. compilation using the C compiler.
  3459. Set the variable to "1" to prevent the default dependencies from
  3460. being added.
  3461. :term:`INHIBIT_DEFAULT_RUST_DEPS`
  3462. Prevents the :ref:`ref-classes-rust` class from automatically adding
  3463. its default build-time dependencies.
  3464. When a recipe inherits the :ref:`ref-classes-rust` class, several
  3465. tools such as ``rust-native`` and ``${RUSTLIB_DEP}`` (only added when cross-compiling) are added
  3466. to :term:`DEPENDS` to support the ``rust`` build process.
  3467. To prevent the build system from adding these dependencies automatically,
  3468. set the :term:`INHIBIT_DEFAULT_RUST_DEPS` variable as follows::
  3469. INHIBIT_DEFAULT_RUST_DEPS = "1"
  3470. By default, the value of :term:`INHIBIT_DEFAULT_RUST_DEPS` is empty. Setting
  3471. it to "0" does not disable inhibition. Only the empty string will disable
  3472. inhibition.
  3473. :term:`INHIBIT_PACKAGE_DEBUG_SPLIT`
  3474. Prevents the OpenEmbedded build system from splitting out debug
  3475. information during packaging. By default, the build system splits out
  3476. debugging information during the
  3477. :ref:`ref-tasks-package` task. For more information on
  3478. how debug information is split out, see the
  3479. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  3480. variable.
  3481. To prevent the build system from splitting out debug information
  3482. during packaging, set the :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` variable as
  3483. follows::
  3484. INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
  3485. :term:`INHIBIT_PACKAGE_STRIP`
  3486. If set to "1", causes the build to not strip binaries in resulting
  3487. packages and prevents the ``-dbg`` package from containing the source
  3488. files.
  3489. By default, the OpenEmbedded build system strips binaries and puts
  3490. the debugging symbols into ``${``\ :term:`PN`\ ``}-dbg``.
  3491. Consequently, you should not set :term:`INHIBIT_PACKAGE_STRIP` when you
  3492. plan to debug in general.
  3493. :term:`INHIBIT_SYSROOT_STRIP`
  3494. If set to "1", causes the build to not strip binaries in the
  3495. resulting sysroot.
  3496. By default, the OpenEmbedded build system strips binaries in the
  3497. resulting sysroot. When you specifically set the
  3498. :term:`INHIBIT_SYSROOT_STRIP` variable to "1" in your recipe, you inhibit
  3499. this stripping.
  3500. If you want to use this variable, include the :ref:`ref-classes-staging`
  3501. class. This class uses a ``sys_strip()`` function to test for the variable
  3502. and acts accordingly.
  3503. .. note::
  3504. Use of the :term:`INHIBIT_SYSROOT_STRIP` variable occurs in rare and
  3505. special circumstances. For example, suppose you are building
  3506. bare-metal firmware by using an external GCC toolchain. Furthermore,
  3507. even if the toolchain's binaries are strippable, there are other files
  3508. needed for the build that are not strippable.
  3509. :term:`INHIBIT_UPDATERCD_BBCLASS`
  3510. Prevents the :ref:`ref-classes-update-rc.d` class from automatically
  3511. installing and registering SysV init scripts for packages.
  3512. When a recipe inherits the :ref:`ref-classes-update-rc.d` class, init
  3513. scripts are typically installed and registered for the packages listed in
  3514. :term:`INITSCRIPT_PACKAGES`. This ensures that the relevant
  3515. services are started and stopped at the appropriate runlevels using the
  3516. traditional SysV init system.
  3517. To prevent the build system from adding these scripts and configurations
  3518. automatically, set the :term:`INHIBIT_UPDATERCD_BBCLASS` variable as follows::
  3519. INHIBIT_UPDATERCD_BBCLASS = "1"
  3520. By default, the value of :term:`INHIBIT_UPDATERCD_BBCLASS` is empty. Setting
  3521. it to "0" does not disable inhibition. Only the empty string will disable
  3522. inhibition.
  3523. :term:`INIT_MANAGER`
  3524. Specifies the system init manager to use. Available options are:
  3525. - ``sysvinit``
  3526. - ``systemd``
  3527. - ``mdev-busybox``
  3528. With ``sysvinit``, the init manager is set to
  3529. :wikipedia:`SysVinit <Init#SysV-style>`, the traditional UNIX init
  3530. system. This is the default choice in the Poky distribution, together with
  3531. the Udev device manager (see the ":ref:`device-manager`" section).
  3532. With ``systemd``, the init manager becomes :wikipedia:`systemd <Systemd>`,
  3533. which comes with the :wikipedia:`udev <Udev>` device manager.
  3534. With ``mdev-busybox``, the init manager becomes the much simpler BusyBox
  3535. init, together with the BusyBox mdev device manager. This is the simplest
  3536. and lightest solution, and probably the best choice for low-end systems
  3537. with a rather slow CPU and a limited amount of RAM.
  3538. More concretely, this is used to include
  3539. ``conf/distro/include/init-manager-${INIT_MANAGER}.inc`` into the global
  3540. configuration. You can have a look at the
  3541. :yocto_git:`meta/conf/distro/include/init-manager-*.inc </poky/tree/meta/conf/distro/include>`
  3542. files for more information, and also the ":ref:`init-manager`"
  3543. section in the Yocto Project Development Tasks Manual.
  3544. :term:`INITRAMFS_DEPLOY_DIR_IMAGE`
  3545. Indicates the deploy directory used by :ref:`ref-tasks-bundle_initramfs`
  3546. where the :term:`INITRAMFS_IMAGE` will be fetched from. This variable is
  3547. set by default to ``${DEPLOY_DIR_IMAGE}`` in the
  3548. :ref:`ref-classes-kernel` class and it's only meant to be changed when
  3549. building an :term:`Initramfs` image from a separate multiconfig via
  3550. :term:`INITRAMFS_MULTICONFIG`.
  3551. :term:`INITRAMFS_FSTYPES`
  3552. Defines the format for the output image of an initial RAM filesystem
  3553. (:term:`Initramfs`), which is used during boot. Supported formats are the
  3554. same as those supported by the
  3555. :term:`IMAGE_FSTYPES` variable.
  3556. The default value of this variable, which is set in the
  3557. ``meta/conf/bitbake.conf`` configuration file in the
  3558. :term:`Source Directory`, is "cpio.gz". The Linux kernel's
  3559. :term:`Initramfs` mechanism, as opposed to the initial RAM filesystem
  3560. :wikipedia:`initrd <Initrd>` mechanism, expects
  3561. an optionally compressed cpio archive.
  3562. :term:`INITRAMFS_IMAGE`
  3563. Specifies the :term:`PROVIDES` name of an image
  3564. recipe that is used to build an initial RAM filesystem (:term:`Initramfs`)
  3565. image. In other words, the :term:`INITRAMFS_IMAGE` variable causes an
  3566. additional recipe to be built as a dependency to whatever root
  3567. filesystem recipe you might be using (e.g. ``core-image-sato``). The
  3568. :term:`Initramfs` image recipe you provide should set
  3569. :term:`IMAGE_FSTYPES` to
  3570. :term:`INITRAMFS_FSTYPES`.
  3571. An :term:`Initramfs` image provides a temporary root filesystem used for
  3572. early system initialization (e.g. loading of modules needed to locate
  3573. and mount the "real" root filesystem).
  3574. .. note::
  3575. See the ``meta/recipes-core/images/core-image-minimal-initramfs.bb``
  3576. recipe in the :term:`Source Directory`
  3577. for an example :term:`Initramfs` recipe. To select this sample recipe as
  3578. the one built to provide the :term:`Initramfs` image, set :term:`INITRAMFS_IMAGE`
  3579. to "core-image-minimal-initramfs".
  3580. You can also find more information by referencing the
  3581. ``meta-poky/conf/templates/default/local.conf.sample.extended``
  3582. configuration file in the Source Directory, the :ref:`ref-classes-image`
  3583. class, and the :ref:`ref-classes-kernel` class to see how to use the
  3584. :term:`INITRAMFS_IMAGE` variable.
  3585. If :term:`INITRAMFS_IMAGE` is empty, which is the default, then no
  3586. :term:`Initramfs` image is built.
  3587. For more information, you can also see the
  3588. :term:`INITRAMFS_IMAGE_BUNDLE`
  3589. variable, which allows the generated image to be bundled inside the
  3590. kernel image. Additionally, for information on creating an :term:`Initramfs`
  3591. image, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  3592. in the Yocto Project Development Tasks Manual.
  3593. :term:`INITRAMFS_IMAGE_BUNDLE`
  3594. Controls whether or not the image recipe specified by
  3595. :term:`INITRAMFS_IMAGE` is run through an
  3596. extra pass
  3597. (:ref:`ref-tasks-bundle_initramfs`) during
  3598. kernel compilation in order to build a single binary that contains
  3599. both the kernel image and the initial RAM filesystem (:term:`Initramfs`)
  3600. image. This makes use of the
  3601. :term:`CONFIG_INITRAMFS_SOURCE` kernel
  3602. feature.
  3603. .. note::
  3604. Bundling the :term:`Initramfs` with the kernel conflates the code in the
  3605. :term:`Initramfs` with the GPLv2 licensed Linux kernel binary. Thus only GPLv2
  3606. compatible software may be part of a bundled :term:`Initramfs`.
  3607. .. note::
  3608. Using an extra compilation pass to bundle the :term:`Initramfs` avoids a
  3609. circular dependency between the kernel recipe and the :term:`Initramfs`
  3610. recipe should the :term:`Initramfs` include kernel modules. Should that be
  3611. the case, the :term:`Initramfs` recipe depends on the kernel for the
  3612. kernel modules, and the kernel depends on the :term:`Initramfs` recipe
  3613. since the :term:`Initramfs` is bundled inside the kernel image.
  3614. The combined binary is deposited into the ``tmp/deploy`` directory,
  3615. which is part of the :term:`Build Directory`.
  3616. Setting the variable to "1" in a configuration file causes the
  3617. OpenEmbedded build system to generate a kernel image with the
  3618. :term:`Initramfs` specified in :term:`INITRAMFS_IMAGE` bundled within::
  3619. INITRAMFS_IMAGE_BUNDLE = "1"
  3620. By default, the :ref:`ref-classes-kernel` class sets this variable to a
  3621. null string as follows::
  3622. INITRAMFS_IMAGE_BUNDLE ?= ""
  3623. .. note::
  3624. You must set the :term:`INITRAMFS_IMAGE_BUNDLE` variable in a
  3625. configuration file. You cannot set the variable in a recipe file.
  3626. See the
  3627. :yocto_git:`local.conf.sample.extended </poky/tree/meta-poky/conf/templates/default/local.conf.sample.extended>`
  3628. file for additional information. Also, for information on creating an
  3629. :term:`Initramfs`, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  3630. in the Yocto Project Development Tasks Manual.
  3631. :term:`INITRAMFS_IMAGE_NAME`
  3632. This value needs to stay in sync with :term:`IMAGE_LINK_NAME`, but with
  3633. :term:`INITRAMFS_IMAGE` instead of :term:`IMAGE_BASENAME`. The default value
  3634. is set as follows:
  3635. INITRAMFS_IMAGE_NAME ?= "${@['${INITRAMFS_IMAGE}${IMAGE_MACHINE_SUFFIX}', ''][d.getVar('INITRAMFS_IMAGE') == '']}"
  3636. That is, if :term:`INITRAMFS_IMAGE` is set, the value of
  3637. :term:`INITRAMFS_IMAGE_NAME` will be set based upon
  3638. :term:`INITRAMFS_IMAGE` and :term:`IMAGE_MACHINE_SUFFIX`.
  3639. :term:`INITRAMFS_LINK_NAME`
  3640. The link name of the initial RAM filesystem image. This variable is
  3641. set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3642. follows::
  3643. INITRAMFS_LINK_NAME ?= "initramfs-${KERNEL_ARTIFACT_LINK_NAME}"
  3644. The value of the
  3645. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3646. file, has the following value::
  3647. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3648. See the :term:`MACHINE` variable for additional
  3649. information.
  3650. :term:`INITRAMFS_MAXSIZE`
  3651. Defines the maximum allowed size of the :term:`Initramfs` image in Kbytes.
  3652. The build will fail if the :term:`Initramfs` image size exceeds this value.
  3653. The :term:`Initramfs` image size undergoes several calculation steps before
  3654. being compared to :term:`INITRAMFS_MAXSIZE`.
  3655. These steps are the same as those used for :term:`IMAGE_ROOTFS_MAXSIZE`
  3656. and are described in detail in that entry.
  3657. Thus, :term:`INITRAMFS_MAXSIZE` is compared with the result of the calculations
  3658. and is independent of the final image type (e.g. compressed).
  3659. A default value for :term:`INITRAMFS_MAXSIZE` is set in
  3660. :oe_git:`meta/conf/bitbake.conf </openembedded-core/tree/meta/conf/bitbake.conf>`.
  3661. :term:`INITRAMFS_MULTICONFIG`
  3662. Defines the multiconfig to create a multiconfig dependency to be used by
  3663. the :ref:`ref-classes-kernel` class.
  3664. This allows the kernel to bundle an :term:`INITRAMFS_IMAGE` coming from
  3665. a separate multiconfig, this is meant to be used in addition to :term:`INITRAMFS_DEPLOY_DIR_IMAGE`.
  3666. For more information on how to bundle an :term:`Initramfs` image from a separate
  3667. multiconfig see the ":ref:`dev-manual/building:Bundling an Initramfs Image From a Separate Multiconfig`"
  3668. section in the Yocto Project Development Tasks Manual.
  3669. :term:`INITRAMFS_NAME`
  3670. The base name of the initial RAM filesystem image. This variable is
  3671. set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3672. follows::
  3673. INITRAMFS_NAME ?= "initramfs-${KERNEL_ARTIFACT_NAME}"
  3674. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3675. :term:`INITRD`
  3676. Indicates list of filesystem images to concatenate and use as an
  3677. initial RAM disk (``initrd``).
  3678. The :term:`INITRD` variable is an optional variable used with the
  3679. :ref:`ref-classes-image-live` class.
  3680. :term:`INITRD_IMAGE`
  3681. When building a "live" bootable image (i.e. when
  3682. :term:`IMAGE_FSTYPES` contains "live"),
  3683. :term:`INITRD_IMAGE` specifies the image recipe that should be built to
  3684. provide the initial RAM disk image. The default value is
  3685. "core-image-minimal-initramfs".
  3686. See the :ref:`ref-classes-image-live` class for more information.
  3687. :term:`INITSCRIPT_NAME`
  3688. The filename of the initialization script as installed to
  3689. ``${sysconfdir}/init.d``.
  3690. This variable is used in recipes when using :ref:`ref-classes-update-rc.d`.
  3691. The variable is mandatory.
  3692. :term:`INITSCRIPT_PACKAGES`
  3693. A list of the packages that contain initscripts. If multiple packages
  3694. are specified, you need to append the package name to the other
  3695. ``INITSCRIPT_*`` as an override.
  3696. This variable is used in recipes when using :ref:`ref-classes-update-rc.d`.
  3697. The variable is optional and defaults to the :term:`PN`
  3698. variable.
  3699. :term:`INITSCRIPT_PARAMS`
  3700. Specifies the options to pass to ``update-rc.d``. Here is an example::
  3701. INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."
  3702. In this example, the script has a runlevel of 99, starts the script
  3703. in initlevels 2 and 5, and stops the script in levels 0, 1 and 6.
  3704. The variable's default value is "defaults", which is set in the
  3705. :ref:`ref-classes-update-rc.d` class.
  3706. The value in :term:`INITSCRIPT_PARAMS` is passed through to the
  3707. ``update-rc.d`` command. For more information on valid parameters,
  3708. please see the manual page: :manpage:`update-rc.d <update-rc.d(8)>`.
  3709. :term:`INSANE_SKIP`
  3710. Specifies the QA checks to skip for a specific package within a
  3711. recipe. For example, to skip the check for symbolic link ``.so``
  3712. files in the main package of a recipe, add the following to the
  3713. recipe. The package name override must be used, which in this example
  3714. is ``${PN}``::
  3715. INSANE_SKIP:${PN} += "dev-so"
  3716. See the ":ref:`ref-classes-insane`" section for a
  3717. list of the valid QA checks you can specify using this variable.
  3718. :term:`INSTALL_TIMEZONE_FILE`
  3719. By default, the ``tzdata`` recipe packages an ``/etc/timezone`` file.
  3720. Set the :term:`INSTALL_TIMEZONE_FILE` variable to "0" at the
  3721. configuration level to disable this behavior.
  3722. :term:`IPK_FEED_URIS`
  3723. When the IPK backend is in use and package management is enabled on
  3724. the target, you can use this variable to set up ``opkg`` in the
  3725. target image to point to package feeds on a nominated server. Once
  3726. the feed is established, you can perform installations or upgrades
  3727. using the package manager at runtime.
  3728. :term:`KARCH`
  3729. Defines the kernel architecture used when assembling the
  3730. configuration. Architectures supported for this release are:
  3731. - powerpc
  3732. - i386
  3733. - x86_64
  3734. - arm
  3735. - qemu
  3736. - mips
  3737. You define the :term:`KARCH` variable in the :ref:`kernel-dev/advanced:bsp descriptions`.
  3738. :term:`KBRANCH`
  3739. A regular expression used by the build process to explicitly identify
  3740. the kernel branch that is validated, patched, and configured during a
  3741. build. You must set this variable to ensure the exact kernel branch
  3742. you want is being used by the build process.
  3743. Values for this variable are set in the kernel's recipe file and the
  3744. kernel's append file. For example, if you are using the
  3745. ``linux-yocto_4.12`` kernel, the kernel recipe file is the
  3746. ``meta/recipes-kernel/linux/linux-yocto_4.12.bb`` file. :term:`KBRANCH`
  3747. is set as follows in that kernel recipe file::
  3748. KBRANCH ?= "standard/base"
  3749. This variable is also used from the kernel's append file to identify
  3750. the kernel branch specific to a particular machine or target
  3751. hardware. Continuing with the previous kernel example, the kernel's
  3752. append file is located in the
  3753. BSP layer for a given machine. For example, the append file for the
  3754. Beaglebone and generic versions of both 32 and 64-bit IA
  3755. machines (``meta-yocto-bsp``) is named
  3756. ``meta-yocto-bsp/recipes-kernel/linux/linux-yocto_6.1.bbappend``.
  3757. Here are the related statements from that append file::
  3758. KBRANCH:genericx86 = "v6.1/standard/base"
  3759. KBRANCH:genericx86-64 = "v6.1/standard/base"
  3760. KBRANCH:beaglebone-yocto = "v6.1/standard/beaglebone"
  3761. The :term:`KBRANCH` statements
  3762. identify the kernel branch to use when building for each supported
  3763. BSP.
  3764. :term:`KBUILD_DEFCONFIG`
  3765. When used with the :ref:`ref-classes-kernel-yocto`
  3766. class, specifies an "in-tree" kernel configuration file for use
  3767. during a kernel build.
  3768. Typically, when using a ``defconfig`` to configure a kernel during a
  3769. build, you place the file in your layer in the same manner as you
  3770. would place patch files and configuration fragment files (i.e.
  3771. "out-of-tree"). However, if you want to use a ``defconfig`` file that
  3772. is part of the kernel tree (i.e. "in-tree"), you can use the
  3773. :term:`KBUILD_DEFCONFIG` variable and append the
  3774. :term:`KMACHINE` variable to point to the
  3775. ``defconfig`` file.
  3776. To use the variable, set it in the append file for your kernel recipe
  3777. using the following form::
  3778. KBUILD_DEFCONFIG:<machine> ?= "defconfig_file"
  3779. Here is an example from a "raspberrypi2" :term:`MACHINE` build that uses
  3780. a ``defconfig`` file named "bcm2709_defconfig"::
  3781. KBUILD_DEFCONFIG:raspberrypi2 = "bcm2709_defconfig"
  3782. As an alternative, you can use the following within your append file::
  3783. KBUILD_DEFCONFIG:pn-linux-yocto ?= "defconfig_file"
  3784. For more
  3785. information on how to use the :term:`KBUILD_DEFCONFIG` variable, see the
  3786. ":ref:`kernel-dev/common:using an "in-tree" \`\`defconfig\`\` file`"
  3787. section in the Yocto Project Linux Kernel Development Manual.
  3788. :term:`KCONF_AUDIT_LEVEL`
  3789. When inheriting the :ref:`ref-classes-kernel-yocto` class and when the
  3790. :term:`KMETA_AUDIT` variable is set to a non-empty string, the
  3791. :term:`KCONF_AUDIT_LEVEL` variable specifies whether to report Kernel
  3792. configuration values that are different from the user-specified value. Its
  3793. value is a positive integer (default: 1):
  3794. - 0: no reporting is done.
  3795. - 1: report the problems as warnings and trigger an error if
  3796. :term:`KMETA_AUDIT_WERROR` is set.
  3797. - 2: if the :ref:`ref-tasks-kernel_configme` has failed to generate a
  3798. ``.config`` file, print the content of the ``merge_config_build.log``
  3799. file containing the errors, instead of just providing the path to
  3800. that file.
  3801. For more details see the :ref:`ref-classes-kernel-yocto` class and the
  3802. :yocto_git:`symbol_why.py </yocto-kernel-tools/tree/tools/symbol_why.py>`
  3803. script in :yocto_git:`yocto-kernel-tools </yocto-kernel-tools>`.
  3804. :term:`KCONF_BSP_AUDIT_LEVEL`
  3805. When inheriting the :ref:`ref-classes-kernel-yocto` class and when the
  3806. :term:`KMETA_AUDIT` variable is set to a non-empty string, the
  3807. :term:`KCONF_BSP_AUDIT_LEVEL` variable can be set to report:
  3808. #. User-specified Kernel configurations that did not make it into the final
  3809. Kernel configuration.
  3810. #. Configurations defined in multiple input files with differing values.
  3811. Its value is a positive integer (default: 0):
  3812. - 0: no reporting is done.
  3813. - 1: reporting of configuration options that did not make it in the
  3814. final configuration is done and is not limited to the current
  3815. architecture (``ARCH``) in use.
  3816. - 2: reporting of configuration options that did not make it in the
  3817. final configuration is done and is strictly limited to the current
  3818. architecture (``ARCH``) in use.
  3819. - 3: report the problems found when this variable equals 2, and also
  3820. report configurations options defined in multiple input files with
  3821. differing values.
  3822. For value 1, 2 and 3 an error is produced if :term:`KMETA_AUDIT_WERROR`
  3823. is set.
  3824. For more details see the :ref:`ref-classes-kernel-yocto` class and the
  3825. :yocto_git:`symbol_why.py </yocto-kernel-tools/tree/tools/symbol_why.py>`
  3826. script in :yocto_git:`yocto-kernel-tools </yocto-kernel-tools>`.
  3827. :term:`KCONFIG_MODE`
  3828. When used with the :ref:`ref-classes-kernel-yocto`
  3829. class, specifies the kernel configuration values to use for options
  3830. not specified in the provided ``defconfig`` file. Valid options are::
  3831. KCONFIG_MODE = "alldefconfig"
  3832. KCONFIG_MODE = "allnoconfig"
  3833. In ``alldefconfig`` mode the options not explicitly specified will be
  3834. assigned their Kconfig default value. In ``allnoconfig`` mode the
  3835. options not explicitly specified will be disabled in the kernel
  3836. config.
  3837. In case :term:`KCONFIG_MODE` is not set the ``defconfig`` file
  3838. will be handled in ``allnoconfig`` mode.
  3839. A ``defconfig`` file compatible with ``allnoconfig`` mode can be
  3840. generated by copying the ``.config`` file from a working Linux kernel
  3841. build, renaming it to ``defconfig`` and placing it into the Linux
  3842. kernel ``${WORKDIR}`` through your meta-layer. :term:`KCONFIG_MODE` does
  3843. not need to be explicitly set.
  3844. A ``defconfig`` file compatible with ``alldefconfig`` mode can be
  3845. generated using the
  3846. :ref:`ref-tasks-savedefconfig`
  3847. task and placed into the Linux kernel ``${WORKDIR}`` through your
  3848. meta-layer. Explicitely set :term:`KCONFIG_MODE`::
  3849. KCONFIG_MODE = "alldefconfig"
  3850. :term:`KERNEL_ALT_IMAGETYPE`
  3851. Specifies an alternate kernel image type for creation in addition to
  3852. the kernel image type specified using the :term:`KERNEL_IMAGETYPE` and
  3853. :term:`KERNEL_IMAGETYPES` variables.
  3854. :term:`KERNEL_ARTIFACT_NAME`
  3855. Specifies the name of all of the build artifacts. You can change the
  3856. name of the artifacts by changing the :term:`KERNEL_ARTIFACT_NAME`
  3857. variable.
  3858. The value of :term:`KERNEL_ARTIFACT_NAME`, which is set in the
  3859. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file, has the
  3860. following default value::
  3861. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}${IMAGE_MACHINE_SUFFIX}${IMAGE_VERSION_SUFFIX}"
  3862. See the :term:`PKGE`, :term:`PKGV`, :term:`PKGR`, :term:`IMAGE_MACHINE_SUFFIX`
  3863. and :term:`IMAGE_VERSION_SUFFIX` variables for additional information.
  3864. :term:`KERNEL_CLASSES`
  3865. A list of classes defining kernel image types that the
  3866. :ref:`ref-classes-kernel` class should inherit. You typically
  3867. append this variable to enable extended image types.
  3868. You can register custom kernel image types with the
  3869. :ref:`ref-classes-kernel` class using this variable.
  3870. :term:`KERNEL_CONSOLE`
  3871. The :term:`KERNEL_CONSOLE` variable holds the value of the ``console``
  3872. parameter of the kernel command line and can be used in places such as a
  3873. ``wks`` description file for :ref:`Wic images <dev-manual/wic:creating
  3874. partitioned images using wic>`.
  3875. The default value of this variable is extracted from the first console
  3876. device and setting in :term:`SERIAL_CONSOLES`. If nothing is found in
  3877. :term:`SERIAL_CONSOLES`, the default value is set to ``ttyS0,115200``.
  3878. For more information, see the `Kernel command-line documentation
  3879. <https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html>`__.
  3880. :term:`KERNEL_DANGLING_FEATURES_WARN_ONLY`
  3881. When kernel configuration fragments are missing for some
  3882. :term:`KERNEL_FEATURES` specified by layers or BSPs,
  3883. building and configuring the kernel stops with an error.
  3884. You can turn these errors into warnings by setting the
  3885. following in ``conf/local.conf``::
  3886. KERNEL_DANGLING_FEATURES_WARN_ONLY = "1"
  3887. You will still be warned that runtime issues may occur,
  3888. but at least the kernel configuration and build process will
  3889. be allowed to continue.
  3890. :term:`KERNEL_DEBUG_TIMESTAMPS`
  3891. If set to "1", enables timestamping functionality during building
  3892. the kernel. The default is "0" to disable this for reproducibility
  3893. reasons.
  3894. :term:`KERNEL_DEPLOY_DEPEND`
  3895. Provides a means of controlling the dependency of an image recipe
  3896. on the kernel. The default value is "virtual/kernel:do_deploy",
  3897. however for a small initramfs image or other images that do not
  3898. need the kernel, this can be set to "" in the image recipe.
  3899. :term:`KERNEL_DEVICETREE`
  3900. Specifies the name of the generated Linux kernel device tree (i.e.
  3901. the ``.dtb``) file.
  3902. .. note::
  3903. There is legacy support for specifying the full path to the device
  3904. tree. However, providing just the ``.dtb`` file is preferred.
  3905. In order to use this variable, the :ref:`ref-classes-kernel-devicetree`
  3906. class must be inherited.
  3907. :term:`KERNEL_DEVICETREE_BUNDLE`
  3908. When set to "1", this variable allows to bundle the Linux kernel
  3909. and the Device Tree Binary together in a single file.
  3910. This feature is currently only supported on the "arm" (32 bit)
  3911. architecture.
  3912. This variable is set to "0" by default by the
  3913. :ref:`ref-classes-kernel-devicetree` class.
  3914. :term:`KERNEL_DTB_LINK_NAME`
  3915. The link name of the kernel device tree binary (DTB). This variable
  3916. is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3917. follows::
  3918. KERNEL_DTB_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3919. The
  3920. value of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in
  3921. the same file, has the following value::
  3922. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3923. See the :term:`MACHINE` variable for additional
  3924. information.
  3925. :term:`KERNEL_DTB_NAME`
  3926. The base name of the kernel device tree binary (DTB). This variable
  3927. is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3928. follows::
  3929. KERNEL_DTB_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3930. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3931. :term:`KERNEL_DTBDEST`
  3932. This variable, used by the :ref:`ref-classes-kernel-devicetree`
  3933. class, allows to change the installation directory of the DTB
  3934. (Device Tree Binary) files.
  3935. It is set by default to "${KERNEL_IMAGEDEST}" by the
  3936. :ref:`ref-classes-kernel` class.
  3937. :term:`KERNEL_DTBVENDORED`
  3938. This variable, used by the :ref:`ref-classes-kernel-devicetree`,
  3939. allows to ignore vendor subdirectories when installing DTB
  3940. (Device Tree Binary) files, when it is set to "false".
  3941. To keep vendor subdirectories, set this variable to "true".
  3942. It is set by default to "false" by the :ref:`ref-classes-kernel` class.
  3943. :term:`KERNEL_DTC_FLAGS`
  3944. Specifies the ``dtc`` flags that are passed to the Linux kernel build
  3945. system when generating the device trees (via ``DTC_FLAGS`` environment
  3946. variable).
  3947. In order to use this variable, the :ref:`ref-classes-kernel-devicetree`
  3948. class must be inherited.
  3949. :term:`KERNEL_EXTRA_ARGS`
  3950. Specifies additional ``make`` command-line arguments the OpenEmbedded
  3951. build system passes on when compiling the kernel.
  3952. :term:`KERNEL_FEATURES`
  3953. Includes additional kernel metadata. In the OpenEmbedded build
  3954. system, the default Board Support Packages (BSPs)
  3955. :term:`Metadata` is provided through the
  3956. :term:`KMACHINE` and :term:`KBRANCH`
  3957. variables. You can use the :term:`KERNEL_FEATURES` variable from within
  3958. the kernel recipe or kernel append file to further add metadata for
  3959. all BSPs or specific BSPs.
  3960. The metadata you add through this variable includes config fragments
  3961. and features descriptions, which usually includes patches as well as
  3962. config fragments. You typically override the :term:`KERNEL_FEATURES`
  3963. variable for a specific machine. In this way, you can provide
  3964. validated, but optional, sets of kernel configurations and features.
  3965. For example, the following example from the ``linux-yocto-rt_4.12``
  3966. kernel recipe adds "netfilter" and "taskstats" features to all BSPs
  3967. as well as "virtio" configurations to all QEMU machines. The last two
  3968. statements add specific configurations to targeted machine types::
  3969. KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc"
  3970. KERNEL_FEATURES:append = " ${KERNEL_EXTRA_FEATURES}"
  3971. KERNEL_FEATURES:append:qemuall = " cfg/virtio.scc"
  3972. KERNEL_FEATURES:append:qemux86 = " cfg/sound.scc cfg/paravirt_kvm.scc"
  3973. KERNEL_FEATURES:append:qemux86-64 = " cfg/sound.scc"
  3974. :term:`KERNEL_FIT_LINK_NAME`
  3975. The link name of the kernel flattened image tree (FIT) image. This
  3976. variable is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass``
  3977. file as follows::
  3978. KERNEL_FIT_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3979. The value of the
  3980. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3981. file, has the following value::
  3982. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3983. See the :term:`MACHINE` variable for additional
  3984. information.
  3985. :term:`KERNEL_FIT_NAME`
  3986. The base name of the kernel flattened image tree (FIT) image. This
  3987. variable is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass``
  3988. file as follows::
  3989. KERNEL_FIT_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3990. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3991. :term:`KERNEL_IMAGE_LINK_NAME`
  3992. The link name for the kernel image. This variable is set in the
  3993. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  3994. KERNEL_IMAGE_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3995. The value of
  3996. the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3997. file, has the following value::
  3998. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3999. See the :term:`MACHINE` variable for additional
  4000. information.
  4001. :term:`KERNEL_IMAGE_MAXSIZE`
  4002. Specifies the maximum size of the kernel image file in kilobytes. If
  4003. :term:`KERNEL_IMAGE_MAXSIZE` is set, the size of the kernel image file is
  4004. checked against the set value during the
  4005. :ref:`ref-tasks-sizecheck` task. The task fails if
  4006. the kernel image file is larger than the setting.
  4007. :term:`KERNEL_IMAGE_MAXSIZE` is useful for target devices that have a
  4008. limited amount of space in which the kernel image must be stored.
  4009. By default, this variable is not set, which means the size of the
  4010. kernel image is not checked.
  4011. :term:`KERNEL_IMAGE_NAME`
  4012. The base name of the kernel image. This variable is set in the
  4013. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  4014. KERNEL_IMAGE_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  4015. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  4016. :term:`KERNEL_IMAGETYPE`
  4017. The type of kernel to build for a device, usually set by the machine
  4018. configuration files and defaults to "zImage". This variable is used
  4019. when building the kernel and is passed to ``make`` as the target to
  4020. build.
  4021. To build additional kernel image types, use :term:`KERNEL_IMAGETYPES`.
  4022. :term:`KERNEL_IMAGETYPES`
  4023. Lists additional types of kernel images to build for a device in addition
  4024. to image type specified in :term:`KERNEL_IMAGETYPE`. Usually set by the
  4025. machine configuration files.
  4026. :term:`KERNEL_MODULE_AUTOLOAD`
  4027. Lists kernel modules that need to be auto-loaded during boot.
  4028. .. note::
  4029. This variable replaces the deprecated :term:`module_autoload`
  4030. variable.
  4031. You can use the :term:`KERNEL_MODULE_AUTOLOAD` variable anywhere that it
  4032. can be recognized by the kernel recipe or by an out-of-tree kernel
  4033. module recipe (e.g. a machine configuration file, a distribution
  4034. configuration file, an append file for the recipe, or the recipe
  4035. itself).
  4036. Specify it as follows::
  4037. KERNEL_MODULE_AUTOLOAD += "module_name1 module_name2 module_name3"
  4038. Including :term:`KERNEL_MODULE_AUTOLOAD` causes the OpenEmbedded build
  4039. system to populate the ``/etc/modules-load.d/modname.conf`` file with
  4040. the list of modules to be auto-loaded on boot. The modules appear
  4041. one-per-line in the file. Here is an example of the most common use
  4042. case::
  4043. KERNEL_MODULE_AUTOLOAD += "module_name"
  4044. For information on how to populate the ``modname.conf`` file with
  4045. ``modprobe.d`` syntax lines, see the :term:`KERNEL_MODULE_PROBECONF` variable.
  4046. :term:`KERNEL_MODULE_PROBECONF`
  4047. Provides a list of modules for which the OpenEmbedded build system
  4048. expects to find ``module_conf_``\ modname values that specify
  4049. configuration for each of the modules. For information on how to
  4050. provide those module configurations, see the
  4051. :term:`module_conf_* <module_conf>` variable.
  4052. :term:`KERNEL_PACKAGE_NAME`
  4053. Specifies the base name of the kernel packages, such as "kernel"
  4054. in the kernel packages such as "kernel-modules", "kernel-image" and
  4055. "kernel-dbg".
  4056. The default value for this variable is set to "kernel" by the
  4057. :ref:`ref-classes-kernel` class.
  4058. :term:`KERNEL_PATH`
  4059. The location of the kernel sources. This variable is set to the value
  4060. of the :term:`STAGING_KERNEL_DIR` within the :ref:`ref-classes-module`
  4061. class. For information on how this variable is used, see the
  4062. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  4063. section in the Yocto Project Linux Kernel Development Manual.
  4064. To help maximize compatibility with out-of-tree drivers used to build
  4065. modules, the OpenEmbedded build system also recognizes and uses the
  4066. :term:`KERNEL_SRC` variable, which is identical to
  4067. the :term:`KERNEL_PATH` variable. Both variables are common variables
  4068. used by external Makefiles to point to the kernel source directory.
  4069. :term:`KERNEL_SPLIT_MODULES`
  4070. When inheriting the :ref:`ref-classes-kernel-module-split` class, this
  4071. variable controls whether kernel modules are split into separate packages
  4072. or bundled into a single package.
  4073. For some use cases, a monolithic kernel module package
  4074. :term:`KERNEL_PACKAGE_NAME` that contains all modules built from the
  4075. kernel sources may be preferred to speed up the installation.
  4076. By default, this variable is set to ``1``, resulting in one package per
  4077. module. Setting it to any other value will generate a single monolithic
  4078. package containing all kernel modules.
  4079. .. note::
  4080. If :term:`KERNEL_SPLIT_MODULES` is set to 0, it is still possible to
  4081. install all kernel modules at once by adding ``kernel-modules`` (assuming
  4082. :term:`KERNEL_PACKAGE_NAME` is ``kernel-modules``) to :term:`IMAGE_INSTALL`.
  4083. The way it works is that a placeholder "kernel-modules" package will be
  4084. created and will depend on every other individual kernel module packages.
  4085. :term:`KERNEL_SRC`
  4086. The location of the kernel sources. This variable is set to the value
  4087. of the :term:`STAGING_KERNEL_DIR` within the :ref:`ref-classes-module`
  4088. class. For information on how this variable is used, see the
  4089. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  4090. section in the Yocto Project Linux Kernel Development Manual.
  4091. To help maximize compatibility with out-of-tree drivers used to build
  4092. modules, the OpenEmbedded build system also recognizes and uses the
  4093. :term:`KERNEL_PATH` variable, which is identical
  4094. to the :term:`KERNEL_SRC` variable. Both variables are common variables
  4095. used by external Makefiles to point to the kernel source directory.
  4096. :term:`KERNEL_STRIP`
  4097. Allows to specific which ``strip`` command to use to strip the kernel
  4098. binary, typically either GNU binutils ``strip`` or ``llvm-strip``.
  4099. :term:`KERNEL_VERSION`
  4100. Specifies the version of the kernel as extracted from ``version.h``
  4101. or ``utsrelease.h`` within the kernel sources. Effects of setting
  4102. this variable do not take effect until the kernel has been
  4103. configured. Consequently, attempting to refer to this variable in
  4104. contexts prior to configuration will not work.
  4105. :term:`KERNELDEPMODDEPEND`
  4106. Specifies whether the data referenced through
  4107. :term:`PKGDATA_DIR` is needed or not.
  4108. :term:`KERNELDEPMODDEPEND` does not control whether or not that data
  4109. exists, but simply whether or not it is used. If you do not need to
  4110. use the data, set the :term:`KERNELDEPMODDEPEND` variable in your
  4111. :term:`Initramfs` recipe. Setting the variable there when the data is not
  4112. needed avoids a potential dependency loop.
  4113. :term:`KFEATURE_DESCRIPTION`
  4114. Provides a short description of a configuration fragment. You use
  4115. this variable in the ``.scc`` file that describes a configuration
  4116. fragment file. Here is the variable used in a file named ``smp.scc``
  4117. to describe SMP being enabled::
  4118. define KFEATURE_DESCRIPTION "Enable SMP"
  4119. :term:`KMACHINE`
  4120. The machine as known by the kernel. Sometimes the machine name used
  4121. by the kernel does not match the machine name used by the
  4122. OpenEmbedded build system. For example, the machine name that the
  4123. OpenEmbedded build system understands as ``core2-32-intel-common``
  4124. goes by a different name in the Linux Yocto kernel. The kernel
  4125. understands that machine as ``intel-core2-32``. For cases like these,
  4126. the :term:`KMACHINE` variable maps the kernel machine name to the
  4127. OpenEmbedded build system machine name.
  4128. These mappings between different names occur in the Yocto Linux
  4129. Kernel's ``meta`` branch. As an example take a look in the
  4130. ``common/recipes-kernel/linux/linux-yocto_3.19.bbappend`` file::
  4131. LINUX_VERSION:core2-32-intel-common = "3.19.0"
  4132. COMPATIBLE_MACHINE:core2-32-intel-common = "${MACHINE}"
  4133. SRCREV_meta:core2-32-intel-common = "8897ef68b30e7426bc1d39895e71fb155d694974"
  4134. SRCREV_machine:core2-32-intel-common = "43b9eced9ba8a57add36af07736344dcc383f711"
  4135. KMACHINE:core2-32-intel-common = "intel-core2-32"
  4136. KBRANCH:core2-32-intel-common = "standard/base"
  4137. KERNEL_FEATURES:append:core2-32-intel-common = " ${KERNEL_FEATURES_INTEL_COMMON}"
  4138. The :term:`KMACHINE` statement says
  4139. that the kernel understands the machine name as "intel-core2-32".
  4140. However, the OpenEmbedded build system understands the machine as
  4141. "core2-32-intel-common".
  4142. :term:`KMETA_AUDIT`
  4143. When inheriting the :ref:`ref-classes-kernel-yocto` class, the
  4144. :term:`KMETA_AUDIT` variable enables or disables auditing of Linux Kernel
  4145. configuration. The default value for this variable is "yes", and auditing
  4146. is enabled. Set this variable to an empty string to disable auditing.
  4147. :term:`KMETA_AUDIT_WERROR`
  4148. When inheriting the :ref:`ref-classes-kernel-yocto` class and when the
  4149. :term:`KMETA_AUDIT` and the :term:`KMETA_AUDIT_WERROR` variables are set
  4150. to non-empty strings, produce an error if Linux kernel configuration
  4151. problems were detected, instead of warnings only. For more details on the
  4152. Linux Kernel configuration auditing feature, see :term:`KCONF_AUDIT_LEVEL`
  4153. and :term:`KCONF_BSP_AUDIT_LEVEL`.
  4154. :term:`KMETA_CONFIG_FEATURES`
  4155. The :term:`KMETA_CONFIG_FEATURES` variable defines features enabled for the
  4156. :ref:`ref-classes-kernel-yocto` class. The following list of features are
  4157. supported:
  4158. - ``prefer-modules``: prefer a kernel configuration to be set as ``m``
  4159. instead of the default value ``y`` if the kernel configuration was
  4160. defined as follows::
  4161. CONFIG_FOO=y # OVERRIDE:$MODULE_OR_Y
  4162. The default value of this variable is an empty string.
  4163. :term:`KTYPE`
  4164. Defines the kernel type to be used in assembling the configuration.
  4165. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  4166. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  4167. section in the
  4168. Yocto Project Linux Kernel Development Manual for more information on
  4169. kernel types.
  4170. You define the :term:`KTYPE` variable in the
  4171. :ref:`kernel-dev/advanced:bsp descriptions`. The
  4172. value you use must match the value used for the
  4173. :term:`LINUX_KERNEL_TYPE` value used by the
  4174. kernel recipe.
  4175. :term:`LABELS`
  4176. Provides a list of targets for automatic configuration.
  4177. See the :ref:`ref-classes-grub-efi` class for more
  4178. information on how this variable is used.
  4179. :term:`LAYERDEPENDS`
  4180. Lists the layers, separated by spaces, on which this recipe depends.
  4181. Optionally, you can specify a specific layer version for a dependency
  4182. by adding it to the end of the layer name. Here is an example::
  4183. LAYERDEPENDS_mylayer = "anotherlayer (=3)"
  4184. In this previous example,
  4185. version 3 of "anotherlayer" is compared against
  4186. :term:`LAYERVERSION`\ ``_anotherlayer``.
  4187. An error is produced if any dependency is missing or the version
  4188. numbers (if specified) do not match exactly. This variable is used in
  4189. the ``conf/layer.conf`` file and must be suffixed with the name of
  4190. the specific layer (e.g. ``LAYERDEPENDS_mylayer``).
  4191. :term:`LAYERDIR`
  4192. When used inside the ``layer.conf`` configuration file, this variable
  4193. provides the path of the current layer. This variable is not
  4194. available outside of ``layer.conf`` and references are expanded
  4195. immediately when parsing of the file completes.
  4196. :term:`LAYERDIR_RE`
  4197. See :term:`bitbake:LAYERDIR_RE` in the BitBake manual.
  4198. :term:`LAYERRECOMMENDS`
  4199. Lists the layers, separated by spaces, recommended for use with this
  4200. layer.
  4201. Optionally, you can specify a specific layer version for a
  4202. recommendation by adding the version to the end of the layer name.
  4203. Here is an example::
  4204. LAYERRECOMMENDS_mylayer = "anotherlayer (=3)"
  4205. In this previous example, version 3 of "anotherlayer" is compared
  4206. against ``LAYERVERSION_anotherlayer``.
  4207. This variable is used in the ``conf/layer.conf`` file and must be
  4208. suffixed with the name of the specific layer (e.g.
  4209. ``LAYERRECOMMENDS_mylayer``).
  4210. :term:`LAYERSERIES_COMPAT`
  4211. See :term:`bitbake:LAYERSERIES_COMPAT` in the BitBake manual.
  4212. :term:`LAYERVERSION`
  4213. Optionally specifies the version of a layer as a single number. You
  4214. can use this within :term:`LAYERDEPENDS` for
  4215. another layer in order to depend on a specific version of the layer.
  4216. This variable is used in the ``conf/layer.conf`` file and must be
  4217. suffixed with the name of the specific layer (e.g.
  4218. ``LAYERVERSION_mylayer``).
  4219. :term:`LD`
  4220. The minimal command and arguments used to run the :manpage:`linker
  4221. <ld(1)>`.
  4222. :term:`LDFLAGS`
  4223. Specifies the flags to pass to the linker. This variable is exported
  4224. to an environment variable and thus made visible to the software
  4225. being built during the compilation step.
  4226. Default initialization for :term:`LDFLAGS` varies depending on what is
  4227. being built:
  4228. - :term:`TARGET_LDFLAGS` when building for the
  4229. target
  4230. - :term:`BUILD_LDFLAGS` when building for the
  4231. build host (i.e. ``-native``)
  4232. - :term:`BUILDSDK_LDFLAGS` when building for
  4233. an SDK (i.e. ``nativesdk-``)
  4234. :term:`LEAD_SONAME`
  4235. Specifies the lead (or primary) compiled library file (i.e. ``.so``)
  4236. that the :ref:`ref-classes-debian` class applies its
  4237. naming policy to given a recipe that packages multiple libraries.
  4238. This variable works in conjunction with the :ref:`ref-classes-debian`
  4239. class.
  4240. :term:`LIC_FILES_CHKSUM`
  4241. Checksums of the license text in the recipe source code.
  4242. This variable tracks changes in license text of the source code
  4243. files. If the license text is changed, it will trigger a build
  4244. failure, which gives the developer an opportunity to review any
  4245. license change.
  4246. This variable must be defined for all recipes (unless
  4247. :term:`LICENSE` is set to "CLOSED").
  4248. For more information, see the ":ref:`dev-manual/licenses:tracking license changes`"
  4249. section in the Yocto Project Development Tasks Manual.
  4250. :term:`LICENSE`
  4251. The list of source licenses for the recipe. Follow these rules:
  4252. - Do not use spaces within individual license names.
  4253. - Separate license names using \| (pipe) when there is a choice
  4254. between licenses.
  4255. - Separate license names using & (ampersand) when there are
  4256. multiple licenses for different parts of the source.
  4257. - You can use spaces between license names.
  4258. - For standard licenses, use the names of the files in
  4259. ``meta/files/common-licenses/`` or the
  4260. :term:`SPDXLICENSEMAP` flag names defined in
  4261. ``meta/conf/licenses.conf``.
  4262. Here are some examples::
  4263. LICENSE = "LGPL-2.1-only | GPL-3.0-only"
  4264. LICENSE = "MPL-1.0 & LGPL-2.1-only"
  4265. LICENSE = "GPL-2.0-or-later"
  4266. The first example is from the
  4267. recipes for Qt, which the user may choose to distribute under either
  4268. the LGPL version 2.1 or GPL version 3. The second example is from
  4269. Cairo where two licenses cover different parts of the source code.
  4270. The final example is from ``sysstat``, which presents a single
  4271. license.
  4272. You can also specify licenses on a per-package basis to handle
  4273. situations where components of the output have different licenses.
  4274. For example, a piece of software whose code is licensed under GPLv2
  4275. but has accompanying documentation licensed under the GNU Free
  4276. Documentation License 1.2 could be specified as follows::
  4277. LICENSE = "GFDL-1.2 & GPL-2.0-only"
  4278. LICENSE:${PN} = "GPL-2.0.only"
  4279. LICENSE:${PN}-doc = "GFDL-1.2"
  4280. :term:`LICENSE_CREATE_PACKAGE`
  4281. Setting :term:`LICENSE_CREATE_PACKAGE` to "1" causes the OpenEmbedded
  4282. build system to create an extra package (i.e.
  4283. ``${``\ :term:`PN`\ ``}-lic``) for each recipe and to add
  4284. those packages to the
  4285. :term:`RRECOMMENDS`\ ``:${PN}``.
  4286. The ``${PN}-lic`` package installs a directory in
  4287. ``/usr/share/licenses`` named ``${PN}``, which is the recipe's base
  4288. name, and installs files in that directory that contain license and
  4289. copyright information (i.e. copies of the appropriate license files
  4290. from ``meta/common-licenses`` that match the licenses specified in
  4291. the :term:`LICENSE` variable of the recipe metadata
  4292. and copies of files marked in
  4293. :term:`LIC_FILES_CHKSUM` as containing
  4294. license text).
  4295. For related information on providing license text, see the
  4296. :term:`COPY_LIC_DIRS` variable, the
  4297. :term:`COPY_LIC_MANIFEST` variable, and the
  4298. ":ref:`dev-manual/licenses:providing license text`"
  4299. section in the Yocto Project Development Tasks Manual.
  4300. :term:`LICENSE_FLAGS`
  4301. Specifies additional flags for a recipe you must allow through
  4302. :term:`LICENSE_FLAGS_ACCEPTED` in
  4303. order for the recipe to be built. When providing multiple flags,
  4304. separate them with spaces.
  4305. This value is independent of :term:`LICENSE` and is
  4306. typically used to mark recipes that might require additional licenses
  4307. in order to be used in a commercial product. For more information,
  4308. see the
  4309. ":ref:`dev-manual/licenses:enabling commercially licensed recipes`"
  4310. section in the Yocto Project Development Tasks Manual.
  4311. :term:`LICENSE_FLAGS_ACCEPTED`
  4312. Lists license flags that when specified in
  4313. :term:`LICENSE_FLAGS` within a recipe should not
  4314. prevent that recipe from being built. For more information, see the
  4315. ":ref:`dev-manual/licenses:enabling commercially licensed recipes`"
  4316. section in the Yocto Project Development Tasks Manual.
  4317. :term:`LICENSE_FLAGS_DETAILS`
  4318. Adds details about a flag in :term:`LICENSE_FLAGS`. This way,
  4319. if such a flag is not accepted through :term:`LICENSE_FLAGS_ACCEPTED`,
  4320. the error message will be more informative, containing the specified
  4321. extra details.
  4322. For example, a recipe with an EULA may set::
  4323. LICENSE_FLAGS = "FooBar-EULA"
  4324. LICENSE_FLAGS_DETAILS[FooBar-EULA] = "For further details, see https://example.com/eula."
  4325. If ``Foobar-EULA`` isn't in :term:`LICENSE_FLAGS_ACCEPTED`, the
  4326. error message is more useful::
  4327. Has a restricted license 'FooBar-EULA' which is not listed in your LICENSE_FLAGS_ACCEPTED.
  4328. For further details, see https://example.com/eula.
  4329. :term:`LICENSE_PATH`
  4330. Path to additional licenses used during the build. By default, the
  4331. OpenEmbedded build system uses :term:`COMMON_LICENSE_DIR` to define the
  4332. directory that holds common license text used during the build. The
  4333. :term:`LICENSE_PATH` variable allows you to extend that location to other
  4334. areas that have additional licenses::
  4335. LICENSE_PATH += "path-to-additional-common-licenses"
  4336. :term:`LINUX_KERNEL_TYPE`
  4337. Defines the kernel type to be used in assembling the configuration.
  4338. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  4339. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  4340. section in the
  4341. Yocto Project Linux Kernel Development Manual for more information on
  4342. kernel types.
  4343. If you do not specify a :term:`LINUX_KERNEL_TYPE`, it defaults to
  4344. "standard". Together with :term:`KMACHINE`, the
  4345. :term:`LINUX_KERNEL_TYPE` variable defines the search arguments used by
  4346. the kernel tools to find the appropriate description within the
  4347. kernel :term:`Metadata` with which to build out the sources
  4348. and configuration.
  4349. :term:`LINUX_VERSION`
  4350. The Linux version from ``kernel.org`` on which the Linux kernel image
  4351. being built using the OpenEmbedded build system is based. You define
  4352. this variable in the kernel recipe. For example, the
  4353. ``linux-yocto-3.4.bb`` kernel recipe found in
  4354. ``meta/recipes-kernel/linux`` defines the variables as follows::
  4355. LINUX_VERSION ?= "3.4.24"
  4356. The :term:`LINUX_VERSION` variable is used to define :term:`PV`
  4357. for the recipe::
  4358. PV = "${LINUX_VERSION}+git"
  4359. :term:`LINUX_VERSION_EXTENSION`
  4360. A string extension compiled into the version string of the Linux
  4361. kernel built with the OpenEmbedded build system. You define this
  4362. variable in the kernel recipe. For example, the linux-yocto kernel
  4363. recipes all define the variable as follows::
  4364. LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}"
  4365. Defining this variable essentially sets the Linux kernel
  4366. configuration item ``CONFIG_LOCALVERSION``, which is visible through
  4367. the ``uname`` command. Here is an example that shows the extension
  4368. assuming it was set as previously shown::
  4369. $ uname -r
  4370. 3.7.0-rc8-custom
  4371. :term:`LOG_DIR`
  4372. Specifies the directory to which the OpenEmbedded build system writes
  4373. overall log files. The default directory is ``${TMPDIR}/log``.
  4374. For the directory containing logs specific to each task, see the
  4375. :term:`T` variable.
  4376. :term:`MACHINE`
  4377. Specifies the target device for which the image is built. You define
  4378. :term:`MACHINE` in the ``local.conf`` file found in the
  4379. :term:`Build Directory`. By default, :term:`MACHINE` is set to
  4380. "qemux86", which is an x86-based architecture machine to be emulated
  4381. using QEMU::
  4382. MACHINE ?= "qemux86"
  4383. The variable corresponds to a machine configuration file of the same
  4384. name, through which machine-specific configurations are set. Thus,
  4385. when :term:`MACHINE` is set to "qemux86", the corresponding
  4386. ``qemux86.conf`` machine configuration file can be found in
  4387. the :term:`Source Directory` in
  4388. ``meta/conf/machine``.
  4389. The list of machines supported by the Yocto Project as shipped
  4390. include the following::
  4391. MACHINE ?= "qemuarm"
  4392. MACHINE ?= "qemuarm64"
  4393. MACHINE ?= "qemumips"
  4394. MACHINE ?= "qemumips64"
  4395. MACHINE ?= "qemuppc"
  4396. MACHINE ?= "qemux86"
  4397. MACHINE ?= "qemux86-64"
  4398. MACHINE ?= "genericx86"
  4399. MACHINE ?= "genericx86-64"
  4400. MACHINE ?= "beaglebone"
  4401. The last five are Yocto Project reference hardware
  4402. boards, which are provided in the ``meta-yocto-bsp`` layer.
  4403. .. note::
  4404. Adding additional Board Support Package (BSP) layers to your
  4405. configuration adds new possible settings for :term:`MACHINE`.
  4406. :term:`MACHINE_ARCH`
  4407. Specifies the name of the machine-specific architecture. This
  4408. variable is set automatically from :term:`MACHINE` or
  4409. :term:`TUNE_PKGARCH`. You should not hand-edit
  4410. the :term:`MACHINE_ARCH` variable.
  4411. :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  4412. A list of required machine-specific packages to install as part of
  4413. the image being built. The build process depends on these packages
  4414. being present. Furthermore, because this is a "machine-essential"
  4415. variable, the list of packages are essential for the machine to boot.
  4416. The impact of this variable affects images based on
  4417. ``packagegroup-core-boot``, including the ``core-image-minimal``
  4418. image.
  4419. This variable is similar to the
  4420. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS` variable with the exception
  4421. that the image being built has a build dependency on the variable's
  4422. list of packages. In other words, the image will not build if a file
  4423. in this list is not found.
  4424. As an example, suppose the machine for which you are building
  4425. requires ``example-init`` to be run during boot to initialize the
  4426. hardware. In this case, you would use the following in the machine's
  4427. ``.conf`` configuration file::
  4428. MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "example-init"
  4429. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS`
  4430. A list of recommended machine-specific packages to install as part of
  4431. the image being built. The build process does not depend on these
  4432. packages being present. However, because this is a
  4433. "machine-essential" variable, the list of packages are essential for
  4434. the machine to boot. The impact of this variable affects images based
  4435. on ``packagegroup-core-boot``, including the ``core-image-minimal``
  4436. image.
  4437. This variable is similar to the :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  4438. variable with the exception that the image being built does not have
  4439. a build dependency on the variable's list of packages. In other
  4440. words, the image will still build if a package in this list is not
  4441. found. Typically, this variable is used to handle essential kernel
  4442. modules, whose functionality may be selected to be built into the
  4443. kernel rather than as a module, in which case a package will not be
  4444. produced.
  4445. Consider an example where you have a custom kernel where a specific
  4446. touchscreen driver is required for the machine to be usable. However,
  4447. the driver can be built as a module or into the kernel depending on
  4448. the kernel configuration. If the driver is built as a module, you
  4449. want it to be installed. But, when the driver is built into the
  4450. kernel, you still want the build to succeed. This variable sets up a
  4451. "recommends" relationship so that in the latter case, the build will
  4452. not fail due to the missing package. To accomplish this, assuming the
  4453. package for the module was called ``kernel-module-ab123``, you would
  4454. use the following in the machine's ``.conf`` configuration file::
  4455. MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "kernel-module-ab123"
  4456. .. note::
  4457. In this example, the ``kernel-module-ab123`` recipe needs to
  4458. explicitly set its :term:`PACKAGES` variable to ensure that BitBake
  4459. does not use the kernel recipe's :term:`PACKAGES_DYNAMIC` variable to
  4460. satisfy the dependency.
  4461. Some examples of these machine essentials are flash, screen,
  4462. keyboard, mouse, or touchscreen drivers (depending on the machine).
  4463. :term:`MACHINE_EXTRA_RDEPENDS`
  4464. A list of machine-specific packages to install as part of the image
  4465. being built that are not essential for the machine to boot. However,
  4466. the build process for more fully-featured images depends on the
  4467. packages being present.
  4468. This variable affects all images based on ``packagegroup-base``,
  4469. which does not include the ``core-image-minimal`` or
  4470. ``core-image-full-cmdline`` images.
  4471. The variable is similar to the :term:`MACHINE_EXTRA_RRECOMMENDS` variable
  4472. with the exception that the image being built has a build dependency
  4473. on the variable's list of packages. In other words, the image will
  4474. not build if a file in this list is not found.
  4475. An example is a machine that has WiFi capability but is not essential
  4476. for the machine to boot the image. However, if you are building a
  4477. more fully-featured image, you want to enable the WiFi. The package
  4478. containing the firmware for the WiFi hardware is always expected to
  4479. exist, so it is acceptable for the build process to depend upon
  4480. finding the package. In this case, assuming the package for the
  4481. firmware was called ``wifidriver-firmware``, you would use the
  4482. following in the ``.conf`` file for the machine::
  4483. MACHINE_EXTRA_RDEPENDS += "wifidriver-firmware"
  4484. :term:`MACHINE_EXTRA_RRECOMMENDS`
  4485. A list of machine-specific packages to install as part of the image
  4486. being built that are not essential for booting the machine. The image
  4487. being built has no build dependency on this list of packages.
  4488. This variable affects only images based on ``packagegroup-base``,
  4489. which does not include the ``core-image-minimal`` or
  4490. ``core-image-full-cmdline`` images.
  4491. This variable is similar to the :term:`MACHINE_EXTRA_RDEPENDS` variable
  4492. with the exception that the image being built does not have a build
  4493. dependency on the variable's list of packages. In other words, the
  4494. image will build if a file in this list is not found.
  4495. An example is a machine that has WiFi capability but is not essential
  4496. For the machine to boot the image. However, if you are building a
  4497. more fully-featured image, you want to enable WiFi. In this case, the
  4498. package containing the WiFi kernel module will not be produced if the
  4499. WiFi driver is built into the kernel, in which case you still want
  4500. the build to succeed instead of failing as a result of the package
  4501. not being found. To accomplish this, assuming the package for the
  4502. module was called ``kernel-module-examplewifi``, you would use the
  4503. following in the ``.conf`` file for the machine::
  4504. MACHINE_EXTRA_RRECOMMENDS += "kernel-module-examplewifi"
  4505. :term:`MACHINE_FEATURES`
  4506. Specifies the list of hardware features the
  4507. :term:`MACHINE` is capable of supporting. For related
  4508. information on enabling features, see the
  4509. :term:`DISTRO_FEATURES`,
  4510. :term:`COMBINED_FEATURES`, and
  4511. :term:`IMAGE_FEATURES` variables.
  4512. For a list of hardware features supported by the Yocto Project as
  4513. shipped, see the ":ref:`ref-features-machine`" section.
  4514. :term:`MACHINE_FEATURES_BACKFILL`
  4515. A list of space-separated features to be added to
  4516. :term:`MACHINE_FEATURES` if not also present in
  4517. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`.
  4518. This variable is set in the ``meta/conf/bitbake.conf`` file. It is not
  4519. intended to be user-configurable. It is best to just reference the
  4520. variable to see which machine features are being
  4521. :ref:`backfilled <ref-features-backfill>` for all machine configurations.
  4522. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`
  4523. A list of space-separated features from :term:`MACHINE_FEATURES_BACKFILL`
  4524. that should not be :ref:`backfilled <ref-features-backfill>` (i.e. added
  4525. to :term:`MACHINE_FEATURES`) during the build.
  4526. This corresponds to an opt-out mechanism. When new default machine
  4527. features are introduced, machine definition maintainers can review
  4528. (`consider`) them and decide to exclude them from the
  4529. :ref:`backfilled <ref-features-backfill>` features. Therefore, the
  4530. combination of :term:`MACHINE_FEATURES_BACKFILL` and
  4531. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED` makes it possible to
  4532. add new default features without breaking existing machine definitions.
  4533. :term:`MACHINEOVERRIDES`
  4534. A colon-separated list of overrides that apply to the current
  4535. machine. By default, this list includes the value of
  4536. :term:`MACHINE`.
  4537. You can extend :term:`MACHINEOVERRIDES` to add extra overrides that
  4538. should apply to a machine. For example, all machines emulated in QEMU
  4539. (e.g. ``qemuarm``, ``qemux86``, and so forth) include a file named
  4540. ``meta/conf/machine/include/qemu.inc`` that prepends the following
  4541. override to :term:`MACHINEOVERRIDES`::
  4542. MACHINEOVERRIDES =. "qemuall:"
  4543. This
  4544. override allows variables to be overridden for all machines emulated
  4545. in QEMU, like in the following example from the ``connman-conf``
  4546. recipe::
  4547. SRC_URI:append:qemuall = " file://wired.config \
  4548. file://wired-setup \
  4549. "
  4550. The underlying mechanism behind
  4551. :term:`MACHINEOVERRIDES` is simply that it is included in the default
  4552. value of :term:`OVERRIDES`.
  4553. :term:`MAINTAINER`
  4554. The email address of the distribution maintainer.
  4555. :term:`MESON_BUILDTYPE`
  4556. Value of the Meson ``--buildtype`` argument used by the
  4557. :ref:`ref-classes-meson` class. It defaults to ``debug`` if
  4558. :term:`DEBUG_BUILD` is set to "1", and ``plain`` otherwise.
  4559. See `Meson build options <https://mesonbuild.com/Builtin-options.html>`__
  4560. for the values you could set in a recipe. Values such as ``plain``,
  4561. ``debug``, ``debugoptimized``, ``release`` and ``minsize`` allow
  4562. you to specify the inclusion of debugging symbols and the compiler
  4563. optimizations (none, performance or size).
  4564. :term:`MESON_INSTALL_TAGS`
  4565. A variable for the :ref:`ref-classes-meson` class, allowing to specify
  4566. install tags (``--tags`` argument of the ``meson install`` command).
  4567. :term:`MESON_TARGET`
  4568. A variable for the :ref:`ref-classes-meson` class, allowing to choose
  4569. a Meson target to build in :ref:`ref-tasks-compile`. Otherwise, the
  4570. default targets are built.
  4571. :term:`METADATA_BRANCH`
  4572. The branch currently checked out for the OpenEmbedded-Core layer (path
  4573. determined by :term:`COREBASE`).
  4574. :term:`METADATA_REVISION`
  4575. The revision currently checked out for the OpenEmbedded-Core layer (path
  4576. determined by :term:`COREBASE`).
  4577. :term:`MIME_XDG_PACKAGES`
  4578. The current implementation of the :ref:`ref-classes-mime-xdg`
  4579. class cannot detect ``.desktop`` files installed through absolute
  4580. symbolic links. Use this setting to make the class create post-install
  4581. and post-remove scripts for these packages anyway, to invoke the
  4582. ``update-destop-database`` command.
  4583. :term:`MIRRORS`
  4584. Specifies additional paths from which the OpenEmbedded build system
  4585. gets source code. When the build system searches for source code, it
  4586. first tries the local download directory. If that location fails, the
  4587. build system tries locations defined by
  4588. :term:`PREMIRRORS`, the upstream source, and then
  4589. locations specified by :term:`MIRRORS` in that order.
  4590. The default value for :term:`MIRRORS` is defined in the
  4591. ``meta/classes-global/mirrors.bbclass`` file in the core metadata layer.
  4592. :term:`MLPREFIX`
  4593. Specifies a prefix has been added to :term:`PN` to create a
  4594. special version of a recipe or package (i.e. a Multilib version). The
  4595. variable is used in places where the prefix needs to be added to or
  4596. removed from a name (e.g. the :term:`BPN` variable).
  4597. :term:`MLPREFIX` gets set when a prefix has been added to :term:`PN`.
  4598. .. note::
  4599. The "ML" in :term:`MLPREFIX` stands for "MultiLib". This representation
  4600. is historical and comes from a time when ":ref:`ref-classes-nativesdk`"
  4601. was a suffix rather than a prefix on the recipe name. When
  4602. ":ref:`ref-classes-nativesdk`" was turned into a prefix, it made sense
  4603. to set :term:`MLPREFIX` for it as well.
  4604. To help understand when :term:`MLPREFIX` might be needed, consider when
  4605. :term:`BBCLASSEXTEND` is used to provide a :ref:`ref-classes-nativesdk`
  4606. version of a recipe in addition to the target version. If that recipe
  4607. declares build-time dependencies on tasks in other recipes by using
  4608. :term:`DEPENDS`, then a dependency on "foo" will automatically get
  4609. rewritten to a dependency on "nativesdk-foo". However, dependencies like
  4610. the following will not get rewritten automatically::
  4611. do_foo[depends] += "recipe:do_foo"
  4612. If you want such a dependency to also get transformed, you can do the
  4613. following::
  4614. do_foo[depends] += "${MLPREFIX}recipe:do_foo"
  4615. :term:`module_autoload`
  4616. This variable has been replaced by the :term:`KERNEL_MODULE_AUTOLOAD`
  4617. variable. You should replace all occurrences of :term:`module_autoload`
  4618. with additions to :term:`KERNEL_MODULE_AUTOLOAD`, for example::
  4619. module_autoload_rfcomm = "rfcomm"
  4620. should now be replaced with::
  4621. KERNEL_MODULE_AUTOLOAD += "rfcomm"
  4622. See the :term:`KERNEL_MODULE_AUTOLOAD` variable for more information.
  4623. :term:`module_conf`
  4624. Specifies `modprobe.d <https://linux.die.net/man/5/modprobe.d>`__
  4625. syntax lines for inclusion in the ``/etc/modprobe.d/modname.conf``
  4626. file.
  4627. You can use this variable anywhere that it can be recognized by the
  4628. kernel recipe or out-of-tree kernel module recipe (e.g. a machine
  4629. configuration file, a distribution configuration file, an append file
  4630. for the recipe, or the recipe itself). If you use this variable, you
  4631. must also be sure to list the module name in the
  4632. :term:`KERNEL_MODULE_PROBECONF`
  4633. variable.
  4634. Here is the general syntax::
  4635. module_conf_module_name = "modprobe.d-syntax"
  4636. You must use the kernel module name override.
  4637. Run ``man modprobe.d`` in the shell to find out more information on
  4638. the exact syntax you want to provide with :term:`module_conf`.
  4639. Including :term:`module_conf` causes the OpenEmbedded build system to
  4640. populate the ``/etc/modprobe.d/modname.conf`` file with
  4641. ``modprobe.d`` syntax lines. Here is an example that adds the options
  4642. ``arg1`` and ``arg2`` to a module named ``mymodule``::
  4643. module_conf_mymodule = "options mymodule arg1=val1 arg2=val2"
  4644. For information on how to specify kernel modules to auto-load on
  4645. boot, see the :term:`KERNEL_MODULE_AUTOLOAD` variable.
  4646. :term:`MODULE_TARBALL_DEPLOY`
  4647. Controls creation of the ``modules-*.tgz`` file. Set this variable to
  4648. "0" to disable creation of this file, which contains all of the
  4649. kernel modules resulting from a kernel build.
  4650. :term:`MODULE_TARBALL_LINK_NAME`
  4651. The link name of the kernel module tarball. This variable is set in
  4652. the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  4653. MODULE_TARBALL_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  4654. The value
  4655. of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the
  4656. same file, has the following value::
  4657. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  4658. See the :term:`MACHINE` variable for additional information.
  4659. :term:`MODULE_TARBALL_NAME`
  4660. The base name of the kernel module tarball. This variable is set in
  4661. the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  4662. MODULE_TARBALL_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  4663. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  4664. :term:`MOUNT_BASE`
  4665. On non-systemd systems (where ``udev-extraconf`` is being used),
  4666. specifies the base directory for auto-mounting filesystems. The
  4667. default value is "/run/media".
  4668. :term:`MOUNT_GROUP`
  4669. On non-systemd systems (where ``udev-extraconf`` is being used),
  4670. specifies the mount group for auto-mounting filesystems. The
  4671. default value is "disk".
  4672. :term:`MULTIMACH_TARGET_SYS`
  4673. Uniquely identifies the type of the target system for which packages
  4674. are being built. This variable allows output for different types of
  4675. target systems to be put into different subdirectories of the same
  4676. output directory.
  4677. The default value of this variable is::
  4678. ${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}
  4679. Some classes (e.g. :ref:`ref-classes-cross-canadian`) modify the
  4680. :term:`MULTIMACH_TARGET_SYS` value.
  4681. See the :term:`STAMP` variable for an example. See the
  4682. :term:`STAGING_DIR_TARGET` variable for more information.
  4683. :term:`NATIVELSBSTRING`
  4684. A string identifying the host distribution. Strings consist of the
  4685. host distributor ID followed by the release, as reported by the
  4686. ``lsb_release`` tool or as read from ``/etc/lsb-release``. For
  4687. example, when running a build on Ubuntu 12.10, the value is
  4688. "Ubuntu-12.10". If this information is unable to be determined, the
  4689. value resolves to "Unknown".
  4690. This variable is used by default to isolate native shared state
  4691. packages for different distributions (e.g. to avoid problems with
  4692. ``glibc`` version incompatibilities). Additionally, the variable is
  4693. checked against
  4694. :term:`SANITY_TESTED_DISTROS` if that
  4695. variable is set.
  4696. :term:`NM`
  4697. The minimal command and arguments to run :manpage:`nm <nm(1)>`.
  4698. :term:`NO_GENERIC_LICENSE`
  4699. Avoids QA errors when you use a non-common, non-CLOSED license in a
  4700. recipe. There are packages, such as the linux-firmware package, with many
  4701. licenses that are not in any way common. Also, new licenses are added
  4702. occasionally to avoid introducing a lot of common license files,
  4703. which are only applicable to a specific package.
  4704. :term:`NO_GENERIC_LICENSE` is used to allow copying a license that does
  4705. not exist in common licenses.
  4706. The following example shows how to add :term:`NO_GENERIC_LICENSE` to a
  4707. recipe::
  4708. NO_GENERIC_LICENSE[license_name] = "license_file_in_fetched_source"
  4709. Here is an example that
  4710. uses the ``LICENSE.Abilis.txt`` file as the license from the fetched
  4711. source::
  4712. NO_GENERIC_LICENSE[Firmware-Abilis] = "LICENSE.Abilis.txt"
  4713. :term:`NO_RECOMMENDATIONS`
  4714. Prevents installation of all "recommended-only" packages.
  4715. Recommended-only packages are packages installed only through the
  4716. :term:`RRECOMMENDS` variable). Setting the
  4717. :term:`NO_RECOMMENDATIONS` variable to "1" turns this feature on::
  4718. NO_RECOMMENDATIONS = "1"
  4719. You can set this variable globally in your ``local.conf`` file or you
  4720. can attach it to a specific image recipe by using the recipe name
  4721. override::
  4722. NO_RECOMMENDATIONS:pn-target_image = "1"
  4723. It is important to realize that if you choose to not install packages
  4724. using this variable and some other packages are dependent on them
  4725. (i.e. listed in a recipe's :term:`RDEPENDS`
  4726. variable), the OpenEmbedded build system ignores your request and
  4727. will install the packages to avoid dependency errors.
  4728. .. note::
  4729. Some recommended packages might be required for certain system
  4730. functionality, such as kernel modules. It is up to you to add
  4731. packages with the :term:`IMAGE_INSTALL` variable.
  4732. This variable is only supported when using the IPK and RPM
  4733. packaging backends. DEB is not supported.
  4734. See the :term:`BAD_RECOMMENDATIONS` and
  4735. the :term:`PACKAGE_EXCLUDE` variables for
  4736. related information.
  4737. :term:`NOAUTOPACKAGEDEBUG`
  4738. Disables auto package from splitting ``.debug`` files. If a recipe
  4739. requires ``FILES:${PN}-dbg`` to be set manually, the
  4740. :term:`NOAUTOPACKAGEDEBUG` can be defined allowing you to define the
  4741. content of the debug package. For example::
  4742. NOAUTOPACKAGEDEBUG = "1"
  4743. FILES:${PN}-dev = "${includedir}/${QT_DIR_NAME}/Qt/*"
  4744. FILES:${PN}-dbg = "/usr/src/debug/"
  4745. FILES:${QT_BASE_NAME}-demos-doc = "${docdir}/${QT_DIR_NAME}/qch/qt.qch"
  4746. :term:`NON_MULTILIB_RECIPES`
  4747. A list of recipes that should not be built for multilib. OE-Core's
  4748. ``multilib.conf`` file defines a reasonable starting point for this
  4749. list with::
  4750. NON_MULTILIB_RECIPES = "grub grub-efi make-mod-scripts ovmf u-boot"
  4751. :term:`NVD_DB_VERSION`
  4752. The :term:`NVD_DB_VERSION` variable allows choosing the CVE feed when
  4753. using the :ref:`ref-classes-cve-check` class. It can be one of:
  4754. - ``NVD2`` (default): the NVD feed with API version 2
  4755. - ``FKIE``: the `FKIE-CAD <https://github.com/fkie-cad/nvd-json-data-feeds>`__
  4756. feed reconstruction
  4757. - ``NVD1``: the NVD JSON feed (deprecated)
  4758. In case of a malformed feed name, the ``NVD2`` feed is selected and an
  4759. error is printed.
  4760. :term:`NVDCVE_API_KEY`
  4761. The NVD API key used to retrieve data from the CVE database when
  4762. using :ref:`ref-classes-cve-check`.
  4763. By default, no API key is used, which results in larger delays between API
  4764. requests and limits the number of queries to the public rate limits posted
  4765. at the `NVD developer's page <https://nvd.nist.gov/developers/start-here>`__.
  4766. NVD API keys can be requested through the
  4767. `Request an API Key <https://nvd.nist.gov/developers/request-an-api-key>`__
  4768. page. You can set this variable to the NVD API key in your ``local.conf`` file.
  4769. Example::
  4770. NVDCVE_API_KEY = "fe753&7a2-1427-347d-23ff-b2e2b7ca5f3"
  4771. :term:`OBJCOPY`
  4772. The minimal command and arguments to run :manpage:`objcopy <objcopy(1)>`.
  4773. :term:`OBJDUMP`
  4774. The minimal command and arguments to run :manpage:`objdump <objdump(1)>`.
  4775. :term:`OE_BINCONFIG_EXTRA_MANGLE`
  4776. When inheriting the :ref:`ref-classes-binconfig` class,
  4777. this variable specifies additional arguments passed to the "sed"
  4778. command. The sed command alters any paths in configuration scripts
  4779. that have been set up during compilation. Inheriting this class
  4780. results in all paths in these scripts being changed to point into the
  4781. ``sysroots/`` directory so that all builds that use the script will
  4782. use the correct directories for the cross compiling layout.
  4783. See the ``meta/classes-recipe/binconfig.bbclass`` in the
  4784. :term:`Source Directory` for details on how this class
  4785. applies these additional sed command arguments.
  4786. :term:`OECMAKE_GENERATOR`
  4787. A variable for the :ref:`ref-classes-cmake` class, allowing to choose
  4788. which back-end will be generated by CMake to build an application.
  4789. By default, this variable is set to ``Ninja``, which is faster than GNU
  4790. make, but if building is broken with Ninja, a recipe can use this
  4791. variable to use GNU make instead::
  4792. OECMAKE_GENERATOR = "Unix Makefiles"
  4793. :term:`OE_INIT_ENV_SCRIPT`
  4794. The name of the build environment setup script for the purposes of
  4795. setting up the environment within the extensible SDK. The default
  4796. value is "oe-init-build-env".
  4797. If you use a custom script to set up your build environment, set the
  4798. :term:`OE_INIT_ENV_SCRIPT` variable to its name.
  4799. :term:`OE_SHARED_UMASK`
  4800. The :term:`OE_SHARED_UMASK` variable contains the :manpage:`umask`
  4801. definition for shared files (for example files in :term:`SSTATE_DIR` or
  4802. :term:`DL_DIR`).
  4803. :term:`OE_TERMINAL`
  4804. Controls how the OpenEmbedded build system spawns interactive
  4805. terminals on the host development system (e.g. using the BitBake
  4806. command with the ``-c devshell`` command-line option). For more
  4807. information, see the ":ref:`dev-manual/development-shell:using a development shell`" section in
  4808. the Yocto Project Development Tasks Manual.
  4809. You can use the following values for the :term:`OE_TERMINAL` variable:
  4810. - auto
  4811. - gnome
  4812. - xfce
  4813. - rxvt
  4814. - screen
  4815. - konsole
  4816. - none
  4817. :term:`OEROOT`
  4818. The directory from which the top-level build environment setup script
  4819. is sourced. The Yocto Project provides a top-level build environment
  4820. setup script: :ref:`structure-core-script`. When you run this
  4821. script, the :term:`OEROOT` variable resolves to the directory that
  4822. contains the script.
  4823. For additional information on how this variable is used, see the
  4824. initialization script.
  4825. :term:`OEQA_REPRODUCIBLE_TEST_LEAF_TARGETS`
  4826. Set build target(s) for build reproducibility testing but activate
  4827. :ref:`shared state <overview-manual/concepts:shared state cache>` build
  4828. for most dependencies (i.e. the ones explicitly listed in DEPENDS, which
  4829. may not be all dependencies, c.f. [depends] varflags, PACKAGE_DEPENDS and
  4830. other implementations). See :doc:`/test-manual/reproducible-builds`.
  4831. :term:`OEQA_REPRODUCIBLE_TEST_PACKAGE`
  4832. Set the package manager(s) for build reproducibility testing.
  4833. See :yocto_git:`reproducible.py </poky/tree/meta/lib/oeqa/selftest/cases/reproducible.py>`
  4834. and :doc:`/test-manual/reproducible-builds`.
  4835. :term:`OEQA_REPRODUCIBLE_TEST_TARGET`
  4836. Set build target for build reproducibility testing. By default
  4837. all available recipes are compiled with "bitbake world", see also :term:`EXCLUDE_FROM_WORLD`
  4838. and :doc:`/test-manual/reproducible-builds`.
  4839. :term:`OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS`
  4840. Set build targets which can be rebuilt using :ref:`shared state <overview-manual/concepts:shared state cache>`
  4841. when running build reproducibility tests. See :doc:`/test-manual/reproducible-builds`.
  4842. :term:`OLDEST_KERNEL`
  4843. Declares the oldest version of the Linux kernel that the produced
  4844. binaries must support. This variable is passed into the build of the
  4845. Embedded GNU C Library (``glibc``).
  4846. The default for this variable comes from the
  4847. ``meta/conf/bitbake.conf`` configuration file. You can override this
  4848. default by setting the variable in a custom distribution
  4849. configuration file.
  4850. :term:`OPKG_MAKE_INDEX_EXTRA_PARAMS`
  4851. Specifies extra parameters for the ``opkg-make-index`` command.
  4852. :term:`OPKGBUILDCMD`
  4853. The variable :term:`OPKGBUILDCMD` specifies the command used to build opkg
  4854. packages when using the :ref:`ref-classes-package_ipk` class. It is
  4855. defined in :ref:`ref-classes-package_ipk` as::
  4856. OPKGBUILDCMD ??= 'opkg-build -Z zstd -a "${ZSTD_DEFAULTS}"'
  4857. :term:`OVERLAYFS_ETC_DEVICE`
  4858. When the :ref:`ref-classes-overlayfs-etc` class is
  4859. inherited, specifies the device to be mounted for the read/write
  4860. layer of ``/etc``. There is no default, so you must set this if you
  4861. wish to enable :ref:`ref-classes-overlayfs-etc`, for
  4862. example, assuming ``/dev/mmcblk0p2`` was the desired device::
  4863. OVERLAYFS_ETC_DEVICE = "/dev/mmcblk0p2"
  4864. :term:`OVERLAYFS_ETC_EXPOSE_LOWER`
  4865. When the :ref:`ref-classes-overlayfs-etc` class is
  4866. inherited, if set to "1" then a read-only access to the original
  4867. ``/etc`` content will be provided as a ``lower/`` subdirectory of
  4868. :term:`OVERLAYFS_ETC_MOUNT_POINT`. The default value is "0".
  4869. :term:`OVERLAYFS_ETC_FSTYPE`
  4870. When the :ref:`ref-classes-overlayfs-etc` class is
  4871. inherited, specifies the file system type for the read/write
  4872. layer of ``/etc``. There is no default, so you must set this if you
  4873. wish to enable :ref:`ref-classes-overlayfs-etc`,
  4874. for example, assuming the file system is ext4::
  4875. OVERLAYFS_ETC_FSTYPE = "ext4"
  4876. :term:`OVERLAYFS_ETC_MOUNT_OPTIONS`
  4877. When the :ref:`ref-classes-overlayfs-etc` class is
  4878. inherited, specifies the mount options for the read-write layer.
  4879. The default value is "defaults".
  4880. :term:`OVERLAYFS_ETC_MOUNT_POINT`
  4881. When the :ref:`ref-classes-overlayfs-etc` class is
  4882. inherited, specifies the parent mount path for the filesystem layers.
  4883. There is no default, so you must set this if you wish to enable
  4884. :ref:`ref-classes-overlayfs-etc`, for example if the desired path is
  4885. "/data"::
  4886. OVERLAYFS_ETC_MOUNT_POINT = "/data"
  4887. :term:`OVERLAYFS_ETC_USE_ORIG_INIT_NAME`
  4888. When the :ref:`ref-classes-overlayfs-etc` class is inherited, controls
  4889. how the generated init will be named. For more information, see the
  4890. :ref:`ref-classes-overlayfs-etc` class documentation. The default value
  4891. is "1".
  4892. :term:`OVERLAYFS_MOUNT_POINT`
  4893. When inheriting the :ref:`ref-classes-overlayfs` class,
  4894. specifies mount point(s) to be used. For example::
  4895. OVERLAYFS_MOUNT_POINT[data] = "/data"
  4896. The assumes you have a ``data.mount`` systemd unit defined elsewhere in
  4897. your BSP (e.g. in ``systemd-machine-units`` recipe) and it is installed
  4898. into the image. For more information see :ref:`ref-classes-overlayfs`.
  4899. .. note::
  4900. Although the :ref:`ref-classes-overlayfs` class is
  4901. inherited by individual recipes, :term:`OVERLAYFS_MOUNT_POINT`
  4902. should be set in your machine configuration.
  4903. :term:`OVERLAYFS_QA_SKIP`
  4904. When inheriting the :ref:`ref-classes-overlayfs` class,
  4905. provides the ability to disable QA checks for particular overlayfs
  4906. mounts. For example::
  4907. OVERLAYFS_QA_SKIP[data] = "mount-configured"
  4908. .. note::
  4909. Although the :ref:`ref-classes-overlayfs` class is
  4910. inherited by individual recipes, :term:`OVERLAYFS_QA_SKIP`
  4911. should be set in your machine configuration.
  4912. :term:`OVERLAYFS_WRITABLE_PATHS`
  4913. When inheriting the :ref:`ref-classes-overlayfs` class,
  4914. specifies writable paths used at runtime for the recipe. For
  4915. example::
  4916. OVERLAYFS_WRITABLE_PATHS[data] = "/usr/share/my-custom-application"
  4917. :term:`OVERRIDES`
  4918. A colon-separated list of overrides that currently apply. Overrides
  4919. are a BitBake mechanism that allows variables to be selectively
  4920. overridden at the end of parsing. The set of overrides in
  4921. :term:`OVERRIDES` represents the "state" during building, which includes
  4922. the current recipe being built, the machine for which it is being
  4923. built, and so forth.
  4924. As an example, if the string "an-override" appears as an element in
  4925. the colon-separated list in :term:`OVERRIDES`, then the following
  4926. assignment will override ``FOO`` with the value "overridden" at the
  4927. end of parsing::
  4928. FOO:an-override = "overridden"
  4929. See the
  4930. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  4931. section in the BitBake User Manual for more information on the
  4932. overrides mechanism.
  4933. The default value of :term:`OVERRIDES` includes the values of the
  4934. :term:`CLASSOVERRIDE`,
  4935. :term:`MACHINEOVERRIDES`, and
  4936. :term:`DISTROOVERRIDES` variables. Another
  4937. important override included by default is ``pn-${PN}``. This override
  4938. allows variables to be set for a single recipe within configuration
  4939. (``.conf``) files. Here is an example::
  4940. FOO:pn-myrecipe = "myrecipe-specific value"
  4941. .. note::
  4942. An easy way to see what overrides apply is to search for :term:`OVERRIDES`
  4943. in the output of the ``bitbake -e`` command. See the
  4944. ":ref:`dev-manual/debugging:viewing variable values`" section in the Yocto
  4945. Project Development Tasks Manual for more information.
  4946. :term:`P`
  4947. The recipe name and version. :term:`P` is comprised of the following::
  4948. ${PN}-${PV}
  4949. :term:`P4DIR`
  4950. See :term:`bitbake:P4DIR` in the BitBake manual.
  4951. :term:`PACKAGE_ADD_METADATA`
  4952. This variable defines additional metadata to add to packages.
  4953. You may find you need to inject additional metadata into packages.
  4954. This variable allows you to do that by setting the injected data as
  4955. the value. Multiple fields can be added by splitting the content with
  4956. the literal separator "\n".
  4957. The suffixes '_IPK', '_DEB', or '_RPM' can be applied to the variable
  4958. to do package type specific settings. It can also be made package
  4959. specific by using the package name as a suffix.
  4960. You can find out more about applying this variable in the
  4961. ":ref:`dev-manual/packages:adding custom metadata to packages`"
  4962. section in the Yocto Project Development Tasks Manual.
  4963. :term:`PACKAGE_ARCH`
  4964. The architecture of the resulting package or packages.
  4965. By default, the value of this variable is set to
  4966. :term:`TUNE_PKGARCH` when building for the
  4967. target, :term:`BUILD_ARCH` when building for the
  4968. build host, and "${SDK_ARCH}-${SDKPKGSUFFIX}" when building for the
  4969. SDK.
  4970. .. note::
  4971. See :term:`SDK_ARCH` for more information.
  4972. However, if your recipe's output packages are built specific to the
  4973. target machine rather than generally for the architecture of the
  4974. machine, you should set :term:`PACKAGE_ARCH` to the value of
  4975. :term:`MACHINE_ARCH` in the recipe as follows::
  4976. PACKAGE_ARCH = "${MACHINE_ARCH}"
  4977. :term:`PACKAGE_ARCHS`
  4978. Specifies a list of architectures compatible with the target machine.
  4979. This variable is set automatically and should not normally be
  4980. hand-edited. Entries are separated using spaces and listed in order
  4981. of priority. The default value for :term:`PACKAGE_ARCHS` is "all any
  4982. noarch ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}".
  4983. :term:`PACKAGE_BEFORE_PN`
  4984. Enables easily adding packages to :term:`PACKAGES` before ``${PN}`` so
  4985. that those added packages can pick up files that would normally be
  4986. included in the default package.
  4987. :term:`PACKAGE_CLASSES`
  4988. This variable, which is set in the ``local.conf`` configuration file
  4989. found in the ``conf`` folder of the
  4990. :term:`Build Directory`, specifies the package manager the
  4991. OpenEmbedded build system uses when packaging data.
  4992. You can provide one or more of the following arguments for the
  4993. variable::
  4994. PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk"
  4995. The build system uses only the first argument in the list as the
  4996. package manager when creating your image or SDK. However, packages
  4997. will be created using any additional packaging classes you specify.
  4998. For example, if you use the following in your ``local.conf`` file::
  4999. PACKAGE_CLASSES ?= "package_ipk"
  5000. The OpenEmbedded build system uses
  5001. the IPK package manager to create your image or SDK.
  5002. For information on packaging and build performance effects as a
  5003. result of the package manager in use, see the
  5004. ":ref:`ref-classes-package`" section.
  5005. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  5006. Determines how to split up and package debug and source information
  5007. when creating debugging packages to be used with the GNU Project
  5008. Debugger (GDB). In general, based on the value of this variable,
  5009. you can combine the source and debug info in a single package,
  5010. you can break out the source into a separate package that can be
  5011. installed independently, or you can choose to not have the source
  5012. packaged at all.
  5013. The possible values of :term:`PACKAGE_DEBUG_SPLIT_STYLE` variable:
  5014. - "``.debug``": All debugging and source info is placed in a single
  5015. ``*-dbg`` package; debug symbol files are placed next to the
  5016. binary in a ``.debug`` directory so that, if a binary is installed
  5017. into ``/bin``, the corresponding debug symbol file is installed
  5018. in ``/bin/.debug``. Source files are installed in the same ``*-dbg``
  5019. package under ``/usr/src/debug``.
  5020. - "``debug-file-directory``": As above, all debugging and source info
  5021. is placed in a single ``*-dbg`` package; debug symbol files are
  5022. placed entirely under the directory ``/usr/lib/debug`` and separated
  5023. by the path from where the binary is installed, so that if a binary
  5024. is installed in ``/bin``, the corresponding debug symbols are installed
  5025. in ``/usr/lib/debug/bin``, and so on. As above, source is installed
  5026. in the same package under ``/usr/src/debug``.
  5027. - "``debug-with-srcpkg``": Debugging info is placed in the standard
  5028. ``*-dbg`` package as with the ``.debug`` value, while source is
  5029. placed in a separate ``*-src`` package, which can be installed
  5030. independently. This is the default setting for this variable,
  5031. as defined in Poky's ``bitbake.conf`` file.
  5032. - "``debug-without-src``": The same behavior as with the ``.debug``
  5033. setting, but no source is packaged at all.
  5034. .. note::
  5035. Much of the above package splitting can be overridden via
  5036. use of the :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` variable.
  5037. You can find out more about debugging using GDB by reading the
  5038. ":ref:`dev-manual/debugging:debugging with the gnu project debugger (gdb) remotely`" section
  5039. in the Yocto Project Development Tasks Manual.
  5040. :term:`PACKAGE_EXCLUDE`
  5041. Lists packages that should not be installed into an image. For
  5042. example::
  5043. PACKAGE_EXCLUDE = "package_name package_name package_name ..."
  5044. You can set this variable globally in your ``local.conf`` file or you
  5045. can attach it to a specific image recipe by using the recipe name
  5046. override::
  5047. PACKAGE_EXCLUDE:pn-target_image = "package_name"
  5048. If you choose to not install a package using this variable and some
  5049. other package is dependent on it (i.e. listed in a recipe's
  5050. :term:`RDEPENDS` variable), the OpenEmbedded build
  5051. system generates a fatal installation error. Because the build system
  5052. halts the process with a fatal error, you can use the variable with
  5053. an iterative development process to remove specific components from a
  5054. system.
  5055. This variable is supported only when using the IPK and RPM
  5056. packaging backends. DEB is not supported.
  5057. See the :term:`NO_RECOMMENDATIONS` and the
  5058. :term:`BAD_RECOMMENDATIONS` variables for
  5059. related information.
  5060. :term:`PACKAGE_EXCLUDE_COMPLEMENTARY`
  5061. Prevents specific packages from being installed when you are
  5062. installing complementary packages.
  5063. You might find that you want to prevent installing certain packages
  5064. when you are installing complementary packages. For example, if you
  5065. are using :term:`IMAGE_FEATURES` to install
  5066. ``dev-pkgs``, you might not want to install all packages from a
  5067. particular multilib. If you find yourself in this situation, you can
  5068. use the :term:`PACKAGE_EXCLUDE_COMPLEMENTARY` variable to specify regular
  5069. expressions to match the packages you want to exclude.
  5070. :term:`PACKAGE_EXTRA_ARCHS`
  5071. Specifies the list of architectures compatible with the device CPU.
  5072. This variable is useful when you build for several different devices
  5073. that use miscellaneous processors such as XScale and ARM926-EJS.
  5074. :term:`PACKAGE_FEED_ARCHS`
  5075. Optionally specifies the package architectures used as part of the
  5076. package feed URIs during the build. When used, the
  5077. :term:`PACKAGE_FEED_ARCHS` variable is appended to the final package feed
  5078. URI, which is constructed using the
  5079. :term:`PACKAGE_FEED_URIS` and
  5080. :term:`PACKAGE_FEED_BASE_PATHS`
  5081. variables.
  5082. .. note::
  5083. You can use the :term:`PACKAGE_FEED_ARCHS`
  5084. variable to allow specific package architectures. If you do
  5085. not need to allow specific architectures, which is a common
  5086. case, you can omit this variable. Omitting the variable results in
  5087. all available architectures for the current machine being included
  5088. into remote package feeds.
  5089. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  5090. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  5091. defined in your ``local.conf`` file::
  5092. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  5093. https://example.com/packagerepos/updates"
  5094. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  5095. PACKAGE_FEED_ARCHS = "all core2-64"
  5096. Given these settings, the resulting package feeds are as follows:
  5097. .. code-block:: none
  5098. https://example.com/packagerepos/release/rpm/all
  5099. https://example.com/packagerepos/release/rpm/core2-64
  5100. https://example.com/packagerepos/release/rpm-dev/all
  5101. https://example.com/packagerepos/release/rpm-dev/core2-64
  5102. https://example.com/packagerepos/updates/rpm/all
  5103. https://example.com/packagerepos/updates/rpm/core2-64
  5104. https://example.com/packagerepos/updates/rpm-dev/all
  5105. https://example.com/packagerepos/updates/rpm-dev/core2-64
  5106. :term:`PACKAGE_FEED_BASE_PATHS`
  5107. Specifies the base path used when constructing package feed URIs. The
  5108. :term:`PACKAGE_FEED_BASE_PATHS` variable makes up the middle portion of a
  5109. package feed URI used by the OpenEmbedded build system. The base path
  5110. lies between the :term:`PACKAGE_FEED_URIS`
  5111. and :term:`PACKAGE_FEED_ARCHS` variables.
  5112. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  5113. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  5114. defined in your ``local.conf`` file::
  5115. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  5116. https://example.com/packagerepos/updates"
  5117. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  5118. PACKAGE_FEED_ARCHS = "all core2-64"
  5119. Given these settings, the resulting package feeds are as follows:
  5120. .. code-block:: none
  5121. https://example.com/packagerepos/release/rpm/all
  5122. https://example.com/packagerepos/release/rpm/core2-64
  5123. https://example.com/packagerepos/release/rpm-dev/all
  5124. https://example.com/packagerepos/release/rpm-dev/core2-64
  5125. https://example.com/packagerepos/updates/rpm/all
  5126. https://example.com/packagerepos/updates/rpm/core2-64
  5127. https://example.com/packagerepos/updates/rpm-dev/all
  5128. https://example.com/packagerepos/updates/rpm-dev/core2-64
  5129. :term:`PACKAGE_FEED_URIS`
  5130. Specifies the front portion of the package feed URI used by the
  5131. OpenEmbedded build system. Each final package feed URI is comprised
  5132. of :term:`PACKAGE_FEED_URIS`,
  5133. :term:`PACKAGE_FEED_BASE_PATHS`, and
  5134. :term:`PACKAGE_FEED_ARCHS` variables.
  5135. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  5136. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  5137. defined in your ``local.conf`` file::
  5138. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  5139. https://example.com/packagerepos/updates"
  5140. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  5141. PACKAGE_FEED_ARCHS = "all core2-64"
  5142. Given these settings, the resulting package feeds are as follows:
  5143. .. code-block:: none
  5144. https://example.com/packagerepos/release/rpm/all
  5145. https://example.com/packagerepos/release/rpm/core2-64
  5146. https://example.com/packagerepos/release/rpm-dev/all
  5147. https://example.com/packagerepos/release/rpm-dev/core2-64
  5148. https://example.com/packagerepos/updates/rpm/all
  5149. https://example.com/packagerepos/updates/rpm/core2-64
  5150. https://example.com/packagerepos/updates/rpm-dev/all
  5151. https://example.com/packagerepos/updates/rpm-dev/core2-64
  5152. :term:`PACKAGE_INSTALL`
  5153. The final list of packages passed to the package manager for
  5154. installation into the image.
  5155. Because the package manager controls actual installation of all
  5156. packages, the list of packages passed using :term:`PACKAGE_INSTALL` is
  5157. not the final list of packages that are actually installed. This
  5158. variable is internal to the image construction code. Consequently, in
  5159. general, you should use the
  5160. :term:`IMAGE_INSTALL` variable to specify
  5161. packages for installation. The exception to this is when working with
  5162. the :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  5163. image. When working with an initial RAM filesystem (:term:`Initramfs`) image,
  5164. use the :term:`PACKAGE_INSTALL` variable. For information on creating an
  5165. :term:`Initramfs`, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  5166. in the Yocto Project Development Tasks Manual.
  5167. :term:`PACKAGE_INSTALL_ATTEMPTONLY`
  5168. Specifies a list of packages the OpenEmbedded build system attempts
  5169. to install when creating an image. If a listed package fails to
  5170. install, the build system does not generate an error. This variable
  5171. is generally not user-defined.
  5172. :term:`PACKAGE_PREPROCESS_FUNCS`
  5173. Specifies a list of functions run to pre-process the
  5174. :term:`PKGD` directory prior to splitting the files out
  5175. to individual packages.
  5176. :term:`PACKAGE_WRITE_DEPS`
  5177. Specifies a list of dependencies for post-installation and
  5178. pre-installation scripts on native/cross tools. If your
  5179. post-installation or pre-installation script can execute at root filesystem
  5180. creation time rather than on the target but depends on a native tool
  5181. in order to execute, you need to list the tools in
  5182. :term:`PACKAGE_WRITE_DEPS`.
  5183. For information on running post-installation scripts, see the
  5184. ":ref:`dev-manual/new-recipe:post-installation scripts`"
  5185. section in the Yocto Project Development Tasks Manual.
  5186. :term:`PACKAGECONFIG`
  5187. This variable provides a means of enabling or disabling features of a
  5188. recipe on a per-recipe basis. :term:`PACKAGECONFIG` blocks are defined in
  5189. recipes when you specify features and then arguments that define
  5190. feature behaviors. Here is the basic block structure (broken over
  5191. multiple lines for readability)::
  5192. PACKAGECONFIG ??= "f1 f2 f3 ..."
  5193. PACKAGECONFIG[f1] = "\
  5194. --with-f1, \
  5195. --without-f1, \
  5196. build-deps-for-f1, \
  5197. runtime-deps-for-f1, \
  5198. runtime-recommends-for-f1, \
  5199. packageconfig-conflicts-for-f1"
  5200. PACKAGECONFIG[f2] = "\
  5201. ... and so on and so on ...
  5202. The :term:`PACKAGECONFIG` variable itself specifies a space-separated
  5203. list of the features to enable. Following the features, you can
  5204. determine the behavior of each feature by providing up to six
  5205. order-dependent arguments, which are separated by commas. You can
  5206. omit any argument you like but must retain the separating commas. The
  5207. order is important and specifies the following:
  5208. #. Extra arguments that should be added to :term:`PACKAGECONFIG_CONFARGS`
  5209. if the feature is enabled.
  5210. #. Extra arguments that should be added to :term:`PACKAGECONFIG_CONFARGS`
  5211. if the feature is disabled.
  5212. #. Additional build dependencies (:term:`DEPENDS`)
  5213. that should be added if the feature is enabled.
  5214. #. Additional runtime dependencies (:term:`RDEPENDS`)
  5215. that should be added if the feature is enabled.
  5216. #. Additional runtime recommendations
  5217. (:term:`RRECOMMENDS`) that should be added if
  5218. the feature is enabled.
  5219. #. Any conflicting (that is, mutually exclusive) :term:`PACKAGECONFIG`
  5220. settings for this feature.
  5221. Consider the following :term:`PACKAGECONFIG` block taken from the
  5222. ``librsvg`` recipe. In this example the feature is ``gtk``, which has
  5223. three arguments that determine the feature's behavior::
  5224. PACKAGECONFIG[gtk] = "--with-gtk3,--without-gtk3,gtk+3"
  5225. The
  5226. ``--with-gtk3`` and ``gtk+3`` arguments apply only if the feature is
  5227. enabled. In this case, ``--with-gtk3`` is added to the configure
  5228. script argument list and ``gtk+3`` is added to :term:`DEPENDS`. On the
  5229. other hand, if the feature is disabled say through a ``.bbappend``
  5230. file in another layer, then the second argument ``--without-gtk3`` is
  5231. added to the configure script instead.
  5232. The basic :term:`PACKAGECONFIG` structure previously described holds true
  5233. regardless of whether you are creating a block or changing a block.
  5234. When creating a block, use the structure inside your recipe.
  5235. If you want to change an existing :term:`PACKAGECONFIG` block, you can do
  5236. so one of two ways:
  5237. - *Append file:* Create an append file named
  5238. ``recipename.bbappend`` in your layer and override the value of
  5239. :term:`PACKAGECONFIG`. You can either completely override the
  5240. variable::
  5241. PACKAGECONFIG = "f4 f5"
  5242. Or, you can just append the variable::
  5243. PACKAGECONFIG:append = " f4"
  5244. - *Configuration file:* This method is identical to changing the
  5245. block through an append file except you edit your ``local.conf``
  5246. or ``mydistro.conf`` file. As with append files previously
  5247. described, you can either completely override the variable::
  5248. PACKAGECONFIG:pn-recipename = "f4 f5"
  5249. Or, you can just amend the variable::
  5250. PACKAGECONFIG:append:pn-recipename = " f4"
  5251. Consider the following example of a :ref:`ref-classes-cmake` recipe with a systemd service
  5252. in which :term:`PACKAGECONFIG` is used to transform the systemd service
  5253. into a feature that can be easily enabled or disabled via :term:`PACKAGECONFIG`::
  5254. example.c
  5255. example.service
  5256. CMakeLists.txt
  5257. The ``CMakeLists.txt`` file contains::
  5258. if(WITH_SYSTEMD)
  5259. install(FILES ${PROJECT_SOURCE_DIR}/example.service DESTINATION /etc/systemd/systemd)
  5260. endif(WITH_SYSTEMD)
  5261. In order to enable the installation of ``example.service`` we need to
  5262. ensure that ``-DWITH_SYSTEMD=ON`` is passed to the ``cmake`` command
  5263. execution. Recipes that have ``CMakeLists.txt`` generally inherit the
  5264. :ref:`ref-classes-cmake` class, that runs ``cmake`` with
  5265. :term:`EXTRA_OECMAKE`, which :term:`PACKAGECONFIG_CONFARGS` will be
  5266. appended to. Now, knowing that :term:`PACKAGECONFIG_CONFARGS` is
  5267. automatically filled with either the first or second element of
  5268. :term:`PACKAGECONFIG` flag value, the recipe would be like::
  5269. inherit cmake
  5270. PACKAGECONFIG = "systemd"
  5271. PACKAGECONFIG[systemd] = "-DWITH_SYSTEMD=ON,-DWITH_SYSTEMD=OFF"
  5272. A side note to this recipe is to check if ``systemd`` is in fact the used :term:`INIT_MANAGER`
  5273. or not::
  5274. PACKAGECONFIG = "${@'systemd' if d.getVar('INIT_MANAGER') == 'systemd' else ''}"
  5275. :term:`PACKAGECONFIG_CONFARGS`
  5276. A space-separated list of configuration options generated from the
  5277. :term:`PACKAGECONFIG` setting.
  5278. Classes such as :ref:`ref-classes-autotools` and :ref:`ref-classes-cmake`
  5279. use :term:`PACKAGECONFIG_CONFARGS` to pass :term:`PACKAGECONFIG` options
  5280. to ``configure`` and ``cmake``, respectively. If you are using
  5281. :term:`PACKAGECONFIG` but not a class that handles the
  5282. :ref:`ref-tasks-configure` task, then you need to use
  5283. :term:`PACKAGECONFIG_CONFARGS` appropriately.
  5284. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY`
  5285. For recipes inheriting the :ref:`ref-classes-packagegroup` class, setting
  5286. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY` to "1" specifies that the
  5287. normal complementary packages (i.e. ``-dev``, ``-dbg``, and so forth)
  5288. should not be automatically created by the ``packagegroup`` recipe,
  5289. which is the default behavior.
  5290. :term:`PACKAGES`
  5291. The list of packages the recipe creates. The default value is the
  5292. following::
  5293. ${PN}-src ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}
  5294. During packaging, the :ref:`ref-tasks-package` task
  5295. goes through :term:`PACKAGES` and uses the :term:`FILES`
  5296. variable corresponding to each package to assign files to the
  5297. package. If a file matches the :term:`FILES` variable for more than one
  5298. package in :term:`PACKAGES`, it will be assigned to the earliest
  5299. (leftmost) package.
  5300. Packages in the variable's list that are empty (i.e. where none of
  5301. the patterns in ``FILES:``\ pkg match any files installed by the
  5302. :ref:`ref-tasks-install` task) are not generated,
  5303. unless generation is forced through the
  5304. :term:`ALLOW_EMPTY` variable.
  5305. :term:`PACKAGES_DYNAMIC`
  5306. A promise that your recipe satisfies runtime dependencies for
  5307. optional modules that are found in other recipes.
  5308. :term:`PACKAGES_DYNAMIC` does not actually satisfy the dependencies, it
  5309. only states that they should be satisfied. For example, if a hard,
  5310. runtime dependency (:term:`RDEPENDS`) of another
  5311. package is satisfied at build time through the :term:`PACKAGES_DYNAMIC`
  5312. variable, but a package with the module name is never actually
  5313. produced, then the other package will be broken. Thus, if you attempt
  5314. to include that package in an image, you will get a dependency
  5315. failure from the packaging system during the
  5316. :ref:`ref-tasks-rootfs` task.
  5317. Typically, if there is a chance that such a situation can occur and
  5318. the package that is not created is valid without the dependency being
  5319. satisfied, then you should use :term:`RRECOMMENDS`
  5320. (a soft runtime dependency) instead of :term:`RDEPENDS`.
  5321. For an example of how to use the :term:`PACKAGES_DYNAMIC` variable when
  5322. you are splitting packages, see the
  5323. ":ref:`dev-manual/packages:handling optional module packaging`"
  5324. section in the Yocto Project Development Tasks Manual.
  5325. :term:`PACKAGESPLITFUNCS`
  5326. Specifies a list of functions run to perform additional splitting of
  5327. files into individual packages. Recipes can either prepend to this
  5328. variable or prepend to the ``populate_packages`` function in order to
  5329. perform additional package splitting. In either case, the function
  5330. should set :term:`PACKAGES`,
  5331. :term:`FILES`, :term:`RDEPENDS` and
  5332. other packaging variables appropriately in order to perform the
  5333. desired splitting.
  5334. :term:`PARALLEL_MAKE`
  5335. Extra options passed to the build tool command (``make``,
  5336. ``ninja`` or more specific build engines, like the Go language one)
  5337. during the :ref:`ref-tasks-compile` task, to specify parallel compilation
  5338. on the local build host. This variable is usually in the form "-j x",
  5339. where x represents the maximum number of parallel threads such engines
  5340. can run.
  5341. .. note::
  5342. For software compiled by ``make``, in order for :term:`PARALLEL_MAKE`
  5343. to be effective, ``make`` must be called with
  5344. ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy
  5345. way to ensure this is to use the ``oe_runmake`` function.
  5346. By default, the OpenEmbedded build system automatically sets this
  5347. variable to be equal to the number of cores the build system uses.
  5348. .. note::
  5349. If the software being built experiences dependency issues during
  5350. the :ref:`ref-tasks-compile` task that result in race conditions, you can clear
  5351. the :term:`PARALLEL_MAKE` variable within the recipe as a workaround. For
  5352. information on addressing race conditions, see the
  5353. ":ref:`dev-manual/debugging:debugging parallel make races`"
  5354. section in the Yocto Project Development Tasks Manual.
  5355. For single socket systems (i.e. one CPU), you should not have to
  5356. override this variable to gain optimal parallelism during builds.
  5357. However, if you have very large systems that employ multiple physical
  5358. CPUs, you might want to make sure the :term:`PARALLEL_MAKE` variable is
  5359. not set higher than "-j 20".
  5360. For more information on speeding up builds, see the
  5361. ":ref:`dev-manual/speeding-up-build:speeding up a build`"
  5362. section in the Yocto Project Development Tasks Manual.
  5363. For more information on how to limit the resources used during builds, see
  5364. the :doc:`/dev-manual/limiting-resources` section of the Yocto Project
  5365. Development Tasks Manual.
  5366. :term:`PARALLEL_MAKEINST`
  5367. Extra options passed to the build tool install command
  5368. (``make install``, ``ninja install`` or more specific ones)
  5369. during the :ref:`ref-tasks-install` task in order to specify
  5370. parallel installation. This variable defaults to the value of
  5371. :term:`PARALLEL_MAKE`.
  5372. .. note::
  5373. For software compiled by ``make``, in order for :term:`PARALLEL_MAKEINST`
  5374. to be effective, ``make`` must be called with
  5375. ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy
  5376. way to ensure this is to use the ``oe_runmake`` function.
  5377. If the software being built experiences dependency issues during
  5378. the :ref:`ref-tasks-install` task that result in race conditions, you can
  5379. clear the :term:`PARALLEL_MAKEINST` variable within the recipe as a
  5380. workaround. For information on addressing race conditions, see the
  5381. ":ref:`dev-manual/debugging:debugging parallel make races`"
  5382. section in the Yocto Project Development Tasks Manual.
  5383. :term:`PATCHRESOLVE`
  5384. Determines the action to take when a patch fails. You can set this
  5385. variable to one of two values: "noop" and "user".
  5386. The default value of "noop" causes the build to simply fail when the
  5387. OpenEmbedded build system cannot successfully apply a patch. Setting
  5388. the value to "user" causes the build system to launch a shell and
  5389. places you in the right location so that you can manually resolve the
  5390. conflicts.
  5391. Set this variable in your ``local.conf`` file.
  5392. :term:`PATCHTOOL`
  5393. Specifies the utility used to apply patches for a recipe during the
  5394. :ref:`ref-tasks-patch` task. You can specify one of
  5395. three utilities: "patch", "quilt", or "git". The default utility used
  5396. is "quilt" except for the quilt-native recipe itself. Because the
  5397. quilt tool is not available at the time quilt-native is being
  5398. patched, it uses "patch".
  5399. If you wish to use an alternative patching tool, set the variable in
  5400. the recipe using one of the following::
  5401. PATCHTOOL = "patch"
  5402. PATCHTOOL = "quilt"
  5403. PATCHTOOL = "git"
  5404. :term:`PE`
  5405. The epoch of the recipe. By default, this variable is unset. The
  5406. variable is used to make upgrades possible when the versioning scheme
  5407. changes in some backwards incompatible way.
  5408. :term:`PE` is the default value of the :term:`PKGE` variable.
  5409. :term:`PEP517_WHEEL_PATH`
  5410. When used by recipes that inherit the :ref:`ref-classes-python_pep517`
  5411. class, denotes the path to ``dist/`` (short for distribution) where the
  5412. binary archive ``wheel`` is built.
  5413. :term:`PERSISTENT_DIR`
  5414. See :term:`bitbake:PERSISTENT_DIR` in the BitBake manual.
  5415. :term:`PF`
  5416. Specifies the recipe or package name and includes all version and
  5417. revision numbers (i.e. ``glibc-2.13-r20+svnr15508/`` and
  5418. ``bash-4.2-r1/``). This variable is comprised of the following:
  5419. ${:term:`PN`}-${:term:`EXTENDPE`}${:term:`PV`}-${:term:`PR`}
  5420. :term:`PIXBUF_PACKAGES`
  5421. When inheriting the :ref:`ref-classes-pixbufcache`
  5422. class, this variable identifies packages that contain the pixbuf
  5423. loaders used with ``gdk-pixbuf``. By default, the
  5424. :ref:`ref-classes-pixbufcache` class assumes that
  5425. the loaders are in the recipe's main package (i.e.
  5426. ``${``\ :term:`PN`\ ``}``). Use this variable if the
  5427. loaders you need are in a package other than that main package.
  5428. :term:`PKG`
  5429. The name of the resulting package created by the OpenEmbedded build
  5430. system.
  5431. .. note::
  5432. When using the :term:`PKG` variable, you must use a package name override.
  5433. For example, when the :ref:`ref-classes-debian` class renames the output
  5434. package, it does so by setting ``PKG:packagename``.
  5435. :term:`PKG_CONFIG_PATH`
  5436. The path to ``pkg-config`` files for the current build context.
  5437. ``pkg-config`` reads this variable from the environment.
  5438. :term:`PKGD`
  5439. Points to the destination directory for files to be packaged before
  5440. they are split into individual packages. This directory defaults to
  5441. the following::
  5442. ${WORKDIR}/package
  5443. Do not change this default.
  5444. :term:`PKGDATA_DIR`
  5445. Points to a shared, global-state directory that holds data generated
  5446. during the packaging process. During the packaging process, the
  5447. :ref:`ref-tasks-packagedata` task packages data
  5448. for each recipe and installs it into this temporary, shared area.
  5449. This directory defaults to the following, which you should not
  5450. change::
  5451. ${STAGING_DIR_HOST}/pkgdata
  5452. For examples of how this data is used, see the
  5453. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5454. section in the Yocto Project Overview and Concepts Manual and the
  5455. ":ref:`dev-manual/debugging:viewing package information with ``oe-pkgdata-util```"
  5456. section in the Yocto Project Development Tasks Manual. For more
  5457. information on the shared, global-state directory, see
  5458. :term:`STAGING_DIR_HOST`.
  5459. :term:`PKGDEST`
  5460. Points to the parent directory for files to be packaged after they
  5461. have been split into individual packages. This directory defaults to
  5462. the following::
  5463. ${WORKDIR}/packages-split
  5464. Under this directory, the build system creates directories for each
  5465. package specified in :term:`PACKAGES`. Do not change
  5466. this default.
  5467. :term:`PKGDESTWORK`
  5468. Points to a temporary work area where the
  5469. :ref:`ref-tasks-package` task saves package metadata.
  5470. The :term:`PKGDESTWORK` location defaults to the following::
  5471. ${WORKDIR}/pkgdata
  5472. Do not change this default.
  5473. The :ref:`ref-tasks-packagedata` task copies the
  5474. package metadata from :term:`PKGDESTWORK` to
  5475. :term:`PKGDATA_DIR` to make it available globally.
  5476. :term:`PKGE`
  5477. The epoch of the package(s) built by the recipe. By default, :term:`PKGE`
  5478. is set to :term:`PE`.
  5479. :term:`PKGR`
  5480. The revision of the package(s) built by the recipe. By default,
  5481. :term:`PKGR` is set to :term:`PR`.
  5482. :term:`PKGV`
  5483. The version of the package(s) built by the recipe. By default,
  5484. :term:`PKGV` is set to :term:`PV`.
  5485. If :term:`PV` contains the ``+`` sign, source control information will be
  5486. included in :term:`PKGV` later in the packaging phase. For more
  5487. information, see the :doc:`/dev-manual/external-scm` section of the Yocto
  5488. Project Development Tasks Manual.
  5489. .. warning::
  5490. Since source control information is included in a late stage by the
  5491. :ref:`ref-classes-package` class, it cannot be seen from the BitBake
  5492. environment with ``bitbake -e`` or ``bitbake-getvar``. Instead, after
  5493. the package is built, the version information can be retrieved with
  5494. ``oe-pkgdata-util package-info <package name>``. See the
  5495. :ref:`dev-manual/debugging:Viewing Package Information with
  5496. ``oe-pkgdata-util``` section of the Yocto Project Development Tasks
  5497. Manual for more information on ``oe-pkgdata-util``.
  5498. :term:`PN`
  5499. This variable can have two separate functions depending on the
  5500. context: a recipe name or a resulting package name.
  5501. :term:`PN` refers to a recipe name in the context of a file used by the
  5502. OpenEmbedded build system as input to create a package. The name is
  5503. normally extracted from the recipe file name. For example, if the
  5504. recipe is named ``expat_2.0.1.bb``, then the default value of :term:`PN`
  5505. will be "expat".
  5506. The variable refers to a package name in the context of a file
  5507. created or produced by the OpenEmbedded build system.
  5508. If applicable, the :term:`PN` variable also contains any special suffix
  5509. or prefix. For example, using ``bash`` to build packages for the
  5510. native machine, :term:`PN` is ``bash-native``. Using ``bash`` to build
  5511. packages for the target and for Multilib, :term:`PN` would be ``bash``
  5512. and ``lib64-bash``, respectively.
  5513. :term:`POPULATE_SDK_POST_HOST_COMMAND`
  5514. Specifies a list of functions to call once the OpenEmbedded build
  5515. system has created the host part of the SDK. You can specify
  5516. functions separated by spaces::
  5517. POPULATE_SDK_POST_HOST_COMMAND += "function"
  5518. If you need to pass the SDK path to a command within a function, you
  5519. can use ``${SDK_DIR}``, which points to the parent directory used by
  5520. the OpenEmbedded build system when creating SDK output. See the
  5521. :term:`SDK_DIR` variable for more information.
  5522. :term:`POPULATE_SDK_POST_TARGET_COMMAND`
  5523. Specifies a list of functions to call once the OpenEmbedded build
  5524. system has created the target part of the SDK. You can specify
  5525. functions separated by spaces::
  5526. POPULATE_SDK_POST_TARGET_COMMAND += "function"
  5527. If you need to pass the SDK path to a command within a function, you
  5528. can use ``${SDK_DIR}``, which points to the parent directory used by
  5529. the OpenEmbedded build system when creating SDK output. See the
  5530. :term:`SDK_DIR` variable for more information.
  5531. :term:`PR`
  5532. The revision of the recipe. The default value for this variable is
  5533. "r0". Subsequent revisions of the recipe conventionally have the
  5534. values "r1", "r2", and so forth. When :term:`PV` increases,
  5535. :term:`PR` is conventionally reset to "r0".
  5536. .. note::
  5537. The OpenEmbedded build system does not need the aid of :term:`PR`
  5538. to know when to rebuild a recipe. The build system uses the task
  5539. :ref:`input checksums <overview-manual/concepts:checksums (signatures)>` along with the
  5540. :ref:`stamp <structure-build-tmp-stamps>` and
  5541. :ref:`overview-manual/concepts:shared state cache`
  5542. mechanisms.
  5543. The :term:`PR` variable primarily becomes significant when a package
  5544. manager dynamically installs packages on an already built image. In
  5545. this case, :term:`PR`, which is the default value of
  5546. :term:`PKGR`, helps the package manager distinguish which
  5547. package is the most recent one in cases where many packages have the
  5548. same :term:`PV` (i.e. :term:`PKGV`). A component having many packages with
  5549. the same :term:`PV` usually means that the packages all install the same
  5550. upstream version, but with later (:term:`PR`) version packages including
  5551. packaging fixes.
  5552. .. note::
  5553. :term:`PR` does not need to be increased for changes that do not change the
  5554. package contents or metadata.
  5555. Because manually managing :term:`PR` can be cumbersome and error-prone,
  5556. an automated solution exists. See the
  5557. ":ref:`dev-manual/packages:working with a pr service`" section
  5558. in the Yocto Project Development Tasks Manual for more information.
  5559. :term:`PREFERRED_PROVIDER`
  5560. If multiple recipes provide the same item, this variable determines
  5561. which recipe is preferred and thus provides the item (i.e. the
  5562. preferred provider). You should always suffix this variable with the
  5563. name of the provided item. And, you should define the variable using
  5564. the preferred recipe's name (:term:`PN`). Here is a common
  5565. example::
  5566. PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
  5567. In the previous example, multiple recipes are providing "virtual/kernel".
  5568. The :term:`PREFERRED_PROVIDER` variable is set with the name (:term:`PN`) of
  5569. the recipe you prefer to provide "virtual/kernel".
  5570. Here are more examples::
  5571. PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86"
  5572. PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
  5573. For more
  5574. information, see the ":ref:`dev-manual/new-recipe:using virtual providers`"
  5575. section in the Yocto Project Development Tasks Manual.
  5576. .. note::
  5577. If you use a ``virtual/\*`` item with :term:`PREFERRED_PROVIDER`, then any
  5578. recipe that :term:`PROVIDES` that item but is not selected (defined)
  5579. by :term:`PREFERRED_PROVIDER` is prevented from building, which is usually
  5580. desirable since this mechanism is designed to select between mutually
  5581. exclusive alternative providers.
  5582. :term:`PREFERRED_PROVIDERS`
  5583. See :term:`bitbake:PREFERRED_PROVIDERS` in the BitBake manual.
  5584. :term:`PREFERRED_RPROVIDER`
  5585. The :term:`PREFERRED_RPROVIDER` variable works like the
  5586. :term:`PREFERRED_PROVIDER` variable, but it denotes packages that provide a
  5587. *runtime* component. Runtime providers are declared in recipes that set
  5588. the :term:`RPROVIDES` variable for a specific package.
  5589. For example::
  5590. PREFERRED_RPROVIDER_virtual-x-terminal-emulator = "rxvt-unicode"
  5591. This statement sets the runtime provider for the X terminal emulator to
  5592. ``rxvt-unicode``. The ``rxvt-unicode`` package is a runtime provider of
  5593. this component because the ``rxvt-unicode`` recipe set the following
  5594. :term:`RPROVIDES` definition for the ``rxvt-unicode`` (``${PN}``)
  5595. package::
  5596. RPROVIDES:${PN} = "virtual-x-terminal-emulator"
  5597. For more information on virtual providers, see the
  5598. ":ref:`dev-manual/new-recipe:using virtual providers`" section in the
  5599. Yocto Project Development Tasks Manual.
  5600. :term:`PREFERRED_TOOLCHAIN`
  5601. The :term:`PREFERRED_TOOLCHAIN` variable selects the toolchain to use for
  5602. compiling recipes. This variable is not meant to be overridden globally.
  5603. Instead, the values of :term:`PREFERRED_TOOLCHAIN_TARGET`,
  5604. :term:`PREFERRED_TOOLCHAIN_NATIVE` and :term:`PREFERRED_TOOLCHAIN_SDK`
  5605. should be overridden.
  5606. :term:`PREFERRED_TOOLCHAIN_NATIVE`
  5607. This variable controls the toolchain used for compiling
  5608. :ref:`ref-classes-native` recipes.
  5609. This variable should be set globally from a :term:`configuration file`.
  5610. See :term:`PREFERRED_TOOLCHAIN_TARGET` for more details on the possible
  5611. values for this variable.
  5612. A recipe that does not support the toolchain specified by
  5613. :term:`PREFERRED_TOOLCHAIN_NATIVE` can override it locally with
  5614. :term:`TOOLCHAIN_NATIVE`.
  5615. :term:`PREFERRED_TOOLCHAIN_SDK`
  5616. This variable controls the toolchain used for compiling
  5617. :ref:`ref-classes-nativesdk` recipes.
  5618. This variable should be set globally from a :term:`configuration file`.
  5619. See :term:`PREFERRED_TOOLCHAIN_TARGET` for more details on the possible
  5620. values for this variable.
  5621. :term:`PREFERRED_TOOLCHAIN_TARGET`
  5622. This variable controls the toolchain used for compiling recipes in the
  5623. architecture of the target :term:`MACHINE`.
  5624. There are two possible values for this variable at the moment:
  5625. - :ref:`gcc <ref-classes-toolchain-gcc>` (default): the GCC/Binutils toolchain.
  5626. - :ref:`clang <ref-classes-toolchain-clang>`: the Clang/LLVM toolchain.
  5627. :term:`PREFERRED_TOOLCHAIN_TARGET` will make the :ref:`ref-classes-base`
  5628. class inherit one of the toolchain classes defined in
  5629. :oe_git:`meta/classes/toolchain
  5630. </openembedded-core/tree/meta/classes/toolchain>`. As a consequence, this
  5631. variable should be set globally from a :term:`configuration file`.
  5632. These classes define commands used for cross-compiling such as :term:`CC`,
  5633. :term:`CXX`, :term:`LD` and so on.
  5634. A recipe that does not support the toolchain specified by
  5635. :term:`PREFERRED_TOOLCHAIN_TARGET` can override it locally with
  5636. :term:`TOOLCHAIN`.
  5637. :term:`PREFERRED_VERSION`
  5638. If there are multiple versions of a recipe available, this variable
  5639. determines which version should be given preference. You must always
  5640. suffix the variable with the :term:`PN` you want to select (`python` in
  5641. the first example below), and you should specify the :term:`PV`
  5642. accordingly (`3.4.0` in the example).
  5643. The :term:`PREFERRED_VERSION` variable supports limited wildcard use
  5644. through the "``%``" character. You can use the character to match any
  5645. number of characters, which can be useful when specifying versions
  5646. that contain long revision numbers that potentially change. Here are
  5647. two examples::
  5648. PREFERRED_VERSION_python = "3.4.0"
  5649. PREFERRED_VERSION_linux-yocto = "5.0%"
  5650. .. note::
  5651. The use of the "%" character is limited in that it only works at the end of the
  5652. string. You cannot use the wildcard character in any other
  5653. location of the string.
  5654. The specified version is matched against :term:`PV`, which does not
  5655. necessarily match the version part of the recipe's filename.
  5656. If you want to select a recipe named ``foo_git.bb`` which has :term:`PV`
  5657. set to ``1.2.3+git``, you can do so by setting ```PREFERRED_VERSION_foo``
  5658. to ``1.2.3%`` (i.e. simply setting ``PREFERRED_VERSION_foo`` to ``git``
  5659. will not work as the name of the recipe isn't used, but rather its
  5660. :term:`PV` definition).
  5661. Sometimes the :term:`PREFERRED_VERSION` variable can be set by
  5662. configuration files in a way that is hard to change. You can use
  5663. :term:`OVERRIDES` to set a machine-specific
  5664. override. Here is an example::
  5665. PREFERRED_VERSION_linux-yocto:qemux86 = "5.0%"
  5666. Although not recommended, worst case, you can also use the
  5667. "forcevariable" override, which is the strongest override possible.
  5668. Here is an example::
  5669. PREFERRED_VERSION_linux-yocto:forcevariable = "5.0%"
  5670. .. note::
  5671. The ``:forcevariable`` override is not handled specially. This override
  5672. only works because the default value of :term:`OVERRIDES` includes "forcevariable".
  5673. If a recipe with the specified version is not available, a warning
  5674. message will be shown. See :term:`REQUIRED_VERSION` if you want this
  5675. to be an error instead.
  5676. :term:`PREMIRRORS`
  5677. Specifies additional paths from which the OpenEmbedded build system
  5678. gets source code. When the build system searches for source code, it
  5679. first tries the local download directory. If that location fails, the
  5680. build system tries locations defined by :term:`PREMIRRORS`, the upstream
  5681. source, and then locations specified by
  5682. :term:`MIRRORS` in that order.
  5683. The default value for :term:`PREMIRRORS` is defined in the
  5684. ``meta/classes-global/mirrors.bbclass`` file in the core metadata layer.
  5685. Typically, you could add a specific server for the build system to
  5686. attempt before any others by adding something like the following to
  5687. the ``local.conf`` configuration file in the
  5688. :term:`Build Directory`::
  5689. PREMIRRORS:prepend = "\
  5690. git://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5691. ftp://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5692. http://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5693. https://.*/.* &YOCTO_DL_URL;/mirror/sources/"
  5694. These changes cause the
  5695. build system to intercept Git, FTP, HTTP, and HTTPS requests and
  5696. direct them to the ``http://`` sources mirror. You can use
  5697. ``file://`` URLs to point to local directories or network shares as
  5698. well.
  5699. :term:`PRIORITY`
  5700. Indicates the importance of a package.
  5701. :term:`PRIORITY` is considered to be part of the distribution policy
  5702. because the importance of any given recipe depends on the purpose for
  5703. which the distribution is being produced. Thus, :term:`PRIORITY` is not
  5704. normally set within recipes.
  5705. You can set :term:`PRIORITY` to "required", "standard", "extra", and
  5706. "optional", which is the default.
  5707. :term:`PRIVATE_LIBS`
  5708. Specifies libraries installed within a recipe that should be ignored
  5709. by the OpenEmbedded build system's shared library resolver. This
  5710. variable is typically used when software being built by a recipe has
  5711. its own private versions of a library normally provided by another
  5712. recipe. In this case, you would not want the package containing the
  5713. private libraries to be set as a dependency on other unrelated
  5714. packages that should instead depend on the package providing the
  5715. standard version of the library.
  5716. Libraries specified in this variable should be specified by their
  5717. file name. For example, from the Firefox recipe in meta-browser::
  5718. PRIVATE_LIBS = "libmozjs.so \
  5719. libxpcom.so \
  5720. libnspr4.so \
  5721. libxul.so \
  5722. libmozalloc.so \
  5723. libplc4.so \
  5724. libplds4.so"
  5725. For more information, see the
  5726. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5727. section in the Yocto Project Overview and Concepts Manual.
  5728. :term:`PROVIDES`
  5729. A list of aliases by which a particular recipe can be known. By
  5730. default, a recipe's own :term:`PN` is implicitly already in its
  5731. :term:`PROVIDES` list and therefore does not need to mention that it
  5732. provides itself. If a recipe uses :term:`PROVIDES`, the additional
  5733. aliases are synonyms for the recipe and can be useful for satisfying
  5734. dependencies of other recipes during the build as specified by
  5735. :term:`DEPENDS`.
  5736. Consider the following example :term:`PROVIDES` statement from the recipe
  5737. file ``eudev_3.2.9.bb``::
  5738. PROVIDES += "udev"
  5739. The :term:`PROVIDES` statement
  5740. results in the "eudev" recipe also being available as simply "udev".
  5741. .. note::
  5742. A recipe's own recipe name (:term:`PN`) is always implicitly prepended
  5743. to :term:`PROVIDES`, so while using "+=" in the above example may not be
  5744. strictly necessary it is recommended to avoid confusion.
  5745. In addition to providing recipes under alternate names, the
  5746. :term:`PROVIDES` mechanism is also used to implement virtual targets. A
  5747. virtual target is a name that corresponds to some particular
  5748. functionality (e.g. a Linux kernel). Recipes that provide the
  5749. functionality in question list the virtual target in :term:`PROVIDES`.
  5750. Recipes that depend on the functionality in question can include the
  5751. virtual target in :term:`DEPENDS` to leave the choice of provider open.
  5752. Conventionally, virtual targets have names on the form
  5753. "virtual/function" (e.g. "virtual/kernel"). The slash is simply part
  5754. of the name and has no syntactical significance.
  5755. The :term:`PREFERRED_PROVIDER` variable is
  5756. used to select which particular recipe provides a virtual target.
  5757. .. note::
  5758. A corresponding mechanism for virtual runtime dependencies (packages)
  5759. exists. However, the mechanism does not depend on any special
  5760. functionality beyond ordinary variable assignments. For example,
  5761. :term:`VIRTUAL-RUNTIME_dev_manager <VIRTUAL-RUNTIME>` refers to the
  5762. package of the component that manages the ``/dev`` directory.
  5763. Setting the "preferred provider" for runtime dependencies is as
  5764. simple as using the following assignment in a configuration file::
  5765. VIRTUAL-RUNTIME_dev_manager = "udev"
  5766. :term:`PRSERV_HOST`
  5767. The network based :term:`PR` service host and port.
  5768. The ``conf/templates/default/local.conf.sample.extended`` configuration
  5769. file in the :term:`Source Directory` shows how the :term:`PRSERV_HOST`
  5770. variable is set::
  5771. PRSERV_HOST = "localhost:0"
  5772. You must
  5773. set the variable if you want to automatically start a local :ref:`PR
  5774. service <dev-manual/packages:working with a pr service>`. You can
  5775. set :term:`PRSERV_HOST` to other values to use a remote PR service.
  5776. :term:`PRSERV_UPSTREAM`
  5777. This variable can be used to specify an upstream PR server for the local
  5778. PR server to connect to, in the form of ``host:port``.
  5779. This makes it possible to implement local fixes to an upstream package.
  5780. :term:`PSEUDO_IGNORE_PATHS`
  5781. A comma-separated (without spaces) list of path prefixes that should be ignored
  5782. by pseudo when monitoring and recording file operations, in order to avoid
  5783. problems with files being written to outside of the pseudo context and
  5784. reduce pseudo's overhead. A path is ignored if it matches any prefix in the list
  5785. and can include partial directory (or file) names.
  5786. :term:`PSEUDO_INCLUDE_PATHS`
  5787. A comma-separated (without spaces) list of path prefixes that should be included
  5788. by pseudo when monitoring and recording file operations, in order to avoid
  5789. problems with files being written to outside of the pseudo context and
  5790. reduce :ref:`pseudo <overview-manual/concepts:Fakeroot and Pseudo>`'s overhead.
  5791. A path is included if it matches any prefix in the list and can include
  5792. partial directory (or file) names.
  5793. :term:`PTEST_ENABLED`
  5794. Specifies whether or not :ref:`Package
  5795. Test <test-manual/ptest:testing packages with ptest>` (ptest)
  5796. functionality is enabled when building a recipe. You should not set
  5797. this variable directly. Enabling and disabling building Package Tests
  5798. at build time should be done by adding "ptest" to (or removing it
  5799. from) :term:`DISTRO_FEATURES`.
  5800. :term:`PTEST_PYTEST_DIR`
  5801. Within the :ref:`ref-classes-ptest-python-pytest` class, the
  5802. :term:`PTEST_PYTEST_DIR` variable represents the path within the source
  5803. tree of a Python package holding the unit tests to be run with the
  5804. `pytest <https://docs.pytest.org>`__ framework. The default value for this
  5805. variable is ``tests``.
  5806. For more information, see
  5807. the :ref:`ref-classes-ptest-python-pytest` class documentation.
  5808. :term:`PV`
  5809. The version of the recipe. The version is normally extracted from the
  5810. recipe filename. For example, if the recipe is named
  5811. ``expat_2.0.1.bb``, then the default value of :term:`PV` will be "2.0.1".
  5812. :term:`PV` is generally not overridden within a recipe unless it is
  5813. building an unstable (i.e. development) version from a source code
  5814. repository (e.g. Git or Subversion).
  5815. :term:`PV` is the default value of the :term:`PKGV` variable.
  5816. :term:`PYPI_PACKAGE`
  5817. When inheriting the :ref:`ref-classes-pypi` class, specifies the
  5818. `PyPI <https://pypi.org/>`__ package name to be built. The default value
  5819. is set based upon :term:`BPN` (stripping any "python-" or "python3-"
  5820. prefix off if present), however for some packages it will need to be set
  5821. explicitly if that will not match the package name (e.g. where the
  5822. package name has a prefix, underscores, uppercase letters etc.)
  5823. :term:`PYPI_PACKAGE_EXT`
  5824. When inheriting the :ref:`ref-classes-pypi` class, specifies the
  5825. file extension to use when fetching a package from `PyPI
  5826. <https://pypi.org/>`__. Default is ``tar.gz``.
  5827. :term:`PYPI_SRC_URI`
  5828. When inheriting the :ref:`ref-classes-pypi` class, specifies the
  5829. full `pythonhosted <https://files.pythonhosted.org/>`__ URI for
  5830. fetching the package to be built. The default value is constructed
  5831. based upon :term:`PYPI_PACKAGE`, :term:`PYPI_PACKAGE_EXT`, and
  5832. :term:`PV`. Most recipes will not need to set this variable unless
  5833. they are building an unstable (i.e. development) version.
  5834. :term:`PYTHON_ABI`
  5835. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  5836. class, denotes the Application Binary Interface (ABI) currently in use
  5837. for Python. By default, the ABI is "m". You do not have to set this
  5838. variable as the OpenEmbedded build system sets it for you.
  5839. The OpenEmbedded build system uses the ABI to construct directory
  5840. names used when installing the Python headers and libraries in
  5841. sysroot (e.g. ``.../python3.3m/...``).
  5842. :term:`QA_EMPTY_DIRS`
  5843. Specifies a list of directories that are expected to be empty when
  5844. packaging; if ``empty-dirs`` appears in :term:`ERROR_QA` or
  5845. :term:`WARN_QA` these will be checked and an error or warning
  5846. (respectively) will be produced.
  5847. The default :term:`QA_EMPTY_DIRS` value is set in
  5848. :ref:`insane.bbclass <ref-classes-insane>`.
  5849. :term:`QA_EMPTY_DIRS_RECOMMENDATION`
  5850. Specifies a recommendation for why a directory must be empty,
  5851. which will be included in the error message if a specific directory
  5852. is found to contain files. Must be overridden with the directory
  5853. path to match on.
  5854. If no recommendation is specified for a directory, then the default
  5855. "but it is expected to be empty" will be used.
  5856. An example message shows if files were present in '/dev'::
  5857. QA_EMPTY_DIRS_RECOMMENDATION:/dev = "but all devices must be created at runtime"
  5858. :term:`RANLIB`
  5859. The minimal command and arguments to run :manpage:`ranlib <ranlib(1)>`.
  5860. :term:`RCONFLICTS`
  5861. The list of packages that conflict with packages. Note that packages
  5862. will not be installed if conflicting packages are not first removed.
  5863. Like all package-controlling variables, you must always use them in
  5864. conjunction with a package name override. Here is an example::
  5865. RCONFLICTS:${PN} = "another_conflicting_package_name"
  5866. BitBake, which the OpenEmbedded build system uses, supports
  5867. specifying versioned dependencies. Although the syntax varies
  5868. depending on the packaging format, BitBake hides these differences
  5869. from you. Here is the general syntax to specify versions with the
  5870. :term:`RCONFLICTS` variable::
  5871. RCONFLICTS:${PN} = "package (operator version)"
  5872. For ``operator``, you can specify the following:
  5873. - =
  5874. - <
  5875. - >
  5876. - <=
  5877. - >=
  5878. For example, the following sets up a dependency on version 1.2 or
  5879. greater of the package ``foo``::
  5880. RCONFLICTS:${PN} = "foo (>= 1.2)"
  5881. :term:`RDEPENDS`
  5882. Lists runtime dependencies of a package. These dependencies are other
  5883. packages that must be installed in order for the package to function
  5884. correctly. As an example, the following assignment declares that the
  5885. package ``foo`` needs the packages ``bar`` and ``baz`` to be
  5886. installed::
  5887. RDEPENDS:foo = "bar baz"
  5888. The most common types of package
  5889. runtime dependencies are automatically detected and added. Therefore,
  5890. most recipes do not need to set :term:`RDEPENDS`. For more information,
  5891. see the
  5892. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5893. section in the Yocto Project Overview and Concepts Manual.
  5894. The practical effect of the above :term:`RDEPENDS` assignment is that
  5895. ``bar`` and ``baz`` will be declared as dependencies inside the
  5896. package ``foo`` when it is written out by one of the
  5897. :ref:`do_package_write_* <ref-tasks-package_write_deb>` tasks.
  5898. Exactly how this is done depends on which package format is used,
  5899. which is determined by
  5900. :term:`PACKAGE_CLASSES`. When the
  5901. corresponding package manager installs the package, it will know to
  5902. also install the packages on which it depends.
  5903. To ensure that the packages ``bar`` and ``baz`` get built, the
  5904. previous :term:`RDEPENDS` assignment also causes a task dependency to be
  5905. added. This dependency is from the recipe's
  5906. :ref:`ref-tasks-build` (not to be confused with
  5907. :ref:`ref-tasks-compile`) task to the
  5908. :ref:`do_package_write_* <ref-tasks-package_write_deb>` task of the recipes that build ``bar`` and
  5909. ``baz``.
  5910. The names of the packages you list within :term:`RDEPENDS` must be the
  5911. names of other packages --- they cannot be recipe names. Although
  5912. package names and recipe names usually match, the important point
  5913. here is that you are providing package names within the :term:`RDEPENDS`
  5914. variable. For an example of the default list of packages created from
  5915. a recipe, see the :term:`PACKAGES` variable.
  5916. Because the :term:`RDEPENDS` variable applies to packages being built,
  5917. you should always use the variable in a form with an attached package
  5918. name (remember that a single recipe can build multiple packages). For
  5919. example, suppose you are building a development package that depends
  5920. on the ``perl`` package. In this case, you would use the following
  5921. :term:`RDEPENDS` statement::
  5922. RDEPENDS:${PN}-dev += "perl"
  5923. In the example,
  5924. the development package depends on the ``perl`` package. Thus, the
  5925. :term:`RDEPENDS` variable has the ``${PN}-dev`` package name as part of
  5926. the variable.
  5927. .. note::
  5928. ``RDEPENDS:${PN}-dev`` includes ``${``\ :term:`PN`\ ``}``
  5929. by default. This default is set in the BitBake configuration file
  5930. (``meta/conf/bitbake.conf``). Be careful not to accidentally remove
  5931. ``${PN}`` when modifying ``RDEPENDS:${PN}-dev``. Use the "+=" operator
  5932. rather than the "=" operator.
  5933. The package names you use with :term:`RDEPENDS` must appear as they would
  5934. in the :term:`PACKAGES` variable. The :term:`PKG` variable
  5935. allows a different name to be used for the final package (e.g. the
  5936. :ref:`ref-classes-debian` class uses this to rename
  5937. packages), but this final package name cannot be used with
  5938. :term:`RDEPENDS`, which makes sense as :term:`RDEPENDS` is meant to be
  5939. independent of the package format used.
  5940. BitBake, which the OpenEmbedded build system uses, supports
  5941. specifying versioned dependencies. Although the syntax varies
  5942. depending on the packaging format, BitBake hides these differences
  5943. from you. Here is the general syntax to specify versions with the
  5944. :term:`RDEPENDS` variable::
  5945. RDEPENDS:${PN} = "package (operator version)"
  5946. For ``operator``, you can specify the following:
  5947. - =
  5948. - <
  5949. - >
  5950. - <=
  5951. - >=
  5952. For version, provide the version number.
  5953. .. note::
  5954. You can use :term:`EXTENDPKGV` to provide a full package version
  5955. specification.
  5956. For example, the following sets up a dependency on version 1.2 or
  5957. greater of the package ``foo``::
  5958. RDEPENDS:${PN} = "foo (>= 1.2)"
  5959. For information on build-time dependencies, see the :term:`DEPENDS`
  5960. variable. You can also see the
  5961. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:tasks`" and
  5962. ":ref:`bitbake-user-manual/bitbake-user-manual-execution:dependencies`" sections in the
  5963. BitBake User Manual for additional information on tasks and dependencies.
  5964. :term:`READELF`
  5965. The minimal command and arguments to run :manpage:`readelf <readelf(1)>`.
  5966. :term:`RECIPE_MAINTAINER`
  5967. This variable defines the name and e-mail address of the maintainer of a
  5968. recipe. Such information can be used by human users submitted changes,
  5969. and by automated tools to send notifications, for example about
  5970. vulnerabilities or source updates.
  5971. The variable can be defined in a global distribution :oe_git:`maintainers.inc
  5972. </openembedded-core/tree/meta/conf/distro/include/maintainers.inc>` file::
  5973. meta/conf/distro/include/maintainers.inc:RECIPE_MAINTAINER:pn-sysvinit = "Ross Burton <ross.burton@arm.com>"
  5974. It can also be directly defined in a recipe,
  5975. for example in the ``libgpiod`` one::
  5976. RECIPE_MAINTAINER = "Bartosz Golaszewski <brgl@bgdev.pl>"
  5977. :term:`RECIPE_NO_UPDATE_REASON`
  5978. If a recipe should not be replaced by a more recent upstream version,
  5979. putting the reason why in this variable in a recipe allows
  5980. ``devtool check-upgrade-status`` command to display it, as explained
  5981. in the ":ref:`ref-manual/devtool-reference:checking on the upgrade status of a recipe`"
  5982. section.
  5983. :term:`RECIPE_SYSROOT`
  5984. This variable points to the directory that holds all files populated from
  5985. recipes specified in :term:`DEPENDS`. As the name indicates,
  5986. think of this variable as a custom root (``/``) for the recipe that will be
  5987. used by the compiler in order to find headers and other files needed to complete
  5988. its job.
  5989. This variable is related to :term:`STAGING_DIR_HOST` or :term:`STAGING_DIR_TARGET`
  5990. according to the type of the recipe and the build target.
  5991. To better understand this variable, consider the following examples:
  5992. - For ``#include <header.h>``, ``header.h`` should be in ``"${RECIPE_SYSROOT}/usr/include"``
  5993. - For ``-lexample``, ``libexample.so`` should be in ``"${RECIPE_SYSROOT}/lib"``
  5994. or other library sysroot directories.
  5995. The default value is ``"${WORKDIR}/recipe-sysroot"``.
  5996. Do not modify it.
  5997. :term:`RECIPE_SYSROOT_NATIVE`
  5998. This is similar to :term:`RECIPE_SYSROOT` but the populated files are from
  5999. ``-native`` recipes. This allows a recipe built for the target machine to
  6000. use ``native`` tools.
  6001. This variable is related to :term:`STAGING_DIR_NATIVE`.
  6002. The default value is ``"${WORKDIR}/recipe-sysroot-native"``.
  6003. Do not modify it.
  6004. :term:`RECIPE_UPGRADE_EXTRA_TASKS`
  6005. When upgrading a recipe with ``devtool upgrade``, the variable
  6006. :term:`RECIPE_UPGRADE_EXTRA_TASKS` specifies a space-delimited list of
  6007. tasks to run after the new sources have been unpacked.
  6008. For some recipes, after the new source has been unpacked, additional tasks
  6009. may need to be run during an upgrade. A good example of this is recipes
  6010. which inherit :ref:`ref-classes-cargo-update-recipe-crates`, where the
  6011. `do_update_crates` task needs to be run whenever Cargo.toml/Cargo.lock have
  6012. changed in the source.
  6013. :term:`REPODIR`
  6014. See :term:`bitbake:REPODIR` in the BitBake manual.
  6015. :term:`REQUIRED_DISTRO_FEATURES`
  6016. When inheriting the :ref:`ref-classes-features_check`
  6017. class, this variable identifies distribution features that must exist
  6018. in the current configuration in order for the OpenEmbedded build
  6019. system to build the recipe. In other words, if the
  6020. :term:`REQUIRED_DISTRO_FEATURES` variable lists a feature that does not
  6021. appear in :term:`DISTRO_FEATURES` within the current configuration, then
  6022. the recipe will be skipped, and if the build system attempts to build
  6023. the recipe then an error will be triggered.
  6024. :term:`REQUIRED_VERSION`
  6025. If there are multiple versions of a recipe available, this variable
  6026. determines which version should be given preference.
  6027. :term:`REQUIRED_VERSION` works in exactly the same manner as
  6028. :term:`PREFERRED_VERSION`, except that if the specified version is not
  6029. available then an error message is shown and the build fails
  6030. immediately.
  6031. If both :term:`REQUIRED_VERSION` and :term:`PREFERRED_VERSION` are set
  6032. for the same recipe, the :term:`REQUIRED_VERSION` value applies.
  6033. :term:`RETAIN_DIRS_ALWAYS`
  6034. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  6035. space-separated recipe-specific directories to always save in a tarball
  6036. whether the recipe build has failed or not.
  6037. :term:`RETAIN_DIRS_FAILURE`
  6038. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  6039. space-separated recipe-specific directories to save in a tarball on
  6040. failure of the recipe's build.
  6041. :term:`RETAIN_DIRS_GLOBAL_ALWAYS`
  6042. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  6043. space-separated directories that are not specific to a recipe to save in a
  6044. tarball whether the build has failed or not.
  6045. :term:`RETAIN_DIRS_GLOBAL_FAILURE`
  6046. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  6047. space-separated directories that are not specific to a recipe to save in a
  6048. tarball on build failure.
  6049. :term:`RETAIN_ENABLED`
  6050. Disables the creation of a tarball of the work directory done by the
  6051. :ref:`ref-classes-retain` class. Can be set to specific recipes to disable
  6052. the class when the class was inherited globally with :term:`INHERIT`.
  6053. :term:`RETAIN_OUTDIR`
  6054. When inheriting the :ref:`ref-classes-retain` class, this variable
  6055. specifies the directory where to save the tarball of the work directory.
  6056. The default directory is ``${TMPDIR}/retain``.
  6057. :term:`RETAIN_TARBALL_SUFFIX`
  6058. When inheriting the :ref:`ref-classes-retain` class, this variable
  6059. specifies the suffix of the tarball of the work directory. The default
  6060. suffix is ``${DATETIME}.tar.gz``.
  6061. :term:`RM_WORK_EXCLUDE`
  6062. With :ref:`ref-classes-rm-work` enabled, this variable
  6063. specifies a list of recipes whose work directories should not be removed.
  6064. See the ":ref:`ref-classes-rm-work`" section for more details.
  6065. :term:`ROOT_HOME`
  6066. Defines the root home directory. By default, this directory is set as
  6067. follows in the BitBake configuration file::
  6068. ROOT_HOME ??= "/home/root"
  6069. .. note::
  6070. This default value is likely used because some embedded solutions
  6071. prefer to have a read-only root filesystem and prefer to keep
  6072. writeable data in one place.
  6073. When setting ``INIT_MANAGER = systemd``, the default will be set to::
  6074. ROOT_HOME ?= "/root"
  6075. You can also override the default by setting the variable in your distro
  6076. configuration or in the ``local.conf`` file.
  6077. :term:`ROOTFS`
  6078. Indicates a filesystem image to include as the root filesystem.
  6079. The :term:`ROOTFS` variable is an optional variable used with the
  6080. :ref:`ref-classes-image-live` class.
  6081. :term:`ROOTFS_POSTINSTALL_COMMAND`
  6082. Specifies a list of functions to call after the OpenEmbedded build
  6083. system has installed packages. You can specify functions separated by
  6084. spaces::
  6085. ROOTFS_POSTINSTALL_COMMAND += "function"
  6086. If you need to pass the root filesystem path to a command within a
  6087. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  6088. directory that becomes the root filesystem image. See the
  6089. :term:`IMAGE_ROOTFS` variable for more
  6090. information.
  6091. :term:`ROOTFS_POSTPROCESS_COMMAND`
  6092. Specifies a list of functions to call once the OpenEmbedded build
  6093. system has created the root filesystem. You can specify functions
  6094. separated by spaces::
  6095. ROOTFS_POSTPROCESS_COMMAND += "function"
  6096. If you need to pass the root filesystem path to a command within a
  6097. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  6098. directory that becomes the root filesystem image. See the
  6099. :term:`IMAGE_ROOTFS` variable for more
  6100. information.
  6101. :term:`ROOTFS_POSTUNINSTALL_COMMAND`
  6102. Specifies a list of functions to call after the OpenEmbedded build
  6103. system has removed unnecessary packages. When runtime package
  6104. management is disabled in the image, several packages are removed
  6105. including ``base-passwd``, ``shadow``, and ``update-alternatives``.
  6106. You can specify functions separated by spaces::
  6107. ROOTFS_POSTUNINSTALL_COMMAND += "function"
  6108. If you need to pass the root filesystem path to a command within a
  6109. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  6110. directory that becomes the root filesystem image. See the
  6111. :term:`IMAGE_ROOTFS` variable for more
  6112. information.
  6113. :term:`ROOTFS_PREPROCESS_COMMAND`
  6114. Specifies a list of functions to call before the OpenEmbedded build
  6115. system has created the root filesystem. You can specify functions
  6116. separated by spaces::
  6117. ROOTFS_PREPROCESS_COMMAND += "function"
  6118. If you need to pass the root filesystem path to a command within a
  6119. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  6120. directory that becomes the root filesystem image. See the
  6121. :term:`IMAGE_ROOTFS` variable for more
  6122. information.
  6123. :term:`RPMBUILD_EXTRA_PARAMS`
  6124. Specifies extra user-defined parameters for the ``rpmbuild`` command.
  6125. :term:`RPROVIDES`
  6126. A list of package name aliases that a package also provides. These
  6127. aliases are useful for satisfying runtime dependencies of other
  6128. packages both during the build and on the target (as specified by
  6129. :term:`RDEPENDS`).
  6130. .. note::
  6131. A package's own name is implicitly already in its :term:`RPROVIDES` list.
  6132. As with all package-controlling variables, you must always use the
  6133. variable in conjunction with a package name override. Here is an
  6134. example::
  6135. RPROVIDES:${PN} = "widget-abi-2"
  6136. :term:`RRECOMMENDS`
  6137. A list of packages that extends the usability of a package being
  6138. built. The package being built does not depend on this list of
  6139. packages in order to successfully build, but rather uses them for
  6140. extended usability. To specify runtime dependencies for packages, see
  6141. the :term:`RDEPENDS` variable.
  6142. The package manager will automatically install the :term:`RRECOMMENDS`
  6143. list of packages when installing the built package. However, you can
  6144. prevent listed packages from being installed by using the
  6145. :term:`BAD_RECOMMENDATIONS`,
  6146. :term:`NO_RECOMMENDATIONS`, and
  6147. :term:`PACKAGE_EXCLUDE` variables.
  6148. Packages specified in :term:`RRECOMMENDS` need not actually be produced.
  6149. However, there must be a recipe providing each package, either
  6150. through the :term:`PACKAGES` or
  6151. :term:`PACKAGES_DYNAMIC` variables or the
  6152. :term:`RPROVIDES` variable, or an error will occur
  6153. during the build. If such a recipe does exist and the package is not
  6154. produced, the build continues without error.
  6155. Because the :term:`RRECOMMENDS` variable applies to packages being built,
  6156. you should always attach an override to the variable to specify the
  6157. particular package whose usability is being extended. For example,
  6158. suppose you are building a development package that is extended to
  6159. support wireless functionality. In this case, you would use the
  6160. following::
  6161. RRECOMMENDS:${PN}-dev += "wireless_package_name"
  6162. In the
  6163. example, the package name (``${PN}-dev``) must appear as it would in
  6164. the :term:`PACKAGES` namespace before any renaming of the output package
  6165. by classes such as :ref:`ref-classes-debian`.
  6166. BitBake, which the OpenEmbedded build system uses, supports
  6167. specifying versioned recommends. Although the syntax varies depending
  6168. on the packaging format, BitBake hides these differences from you.
  6169. Here is the general syntax to specify versions with the
  6170. :term:`RRECOMMENDS` variable::
  6171. RRECOMMENDS:${PN} = "package (operator version)"
  6172. For ``operator``, you can specify the following:
  6173. - =
  6174. - <
  6175. - >
  6176. - <=
  6177. - >=
  6178. For example, the following sets up a recommend on version 1.2 or
  6179. greater of the package ``foo``::
  6180. RRECOMMENDS:${PN} = "foo (>= 1.2)"
  6181. :term:`RREPLACES`
  6182. A list of packages replaced by a package. The package manager uses
  6183. this variable to determine which package should be installed to
  6184. replace other package(s) during an upgrade. In order to also have the
  6185. other package(s) removed at the same time, you must add the name of
  6186. the other package to the :term:`RCONFLICTS` variable.
  6187. As with all package-controlling variables, you must use this variable
  6188. in conjunction with a package name override. Here is an example::
  6189. RREPLACES:${PN} = "other_package_being_replaced"
  6190. BitBake, which the OpenEmbedded build system uses, supports
  6191. specifying versioned replacements. Although the syntax varies
  6192. depending on the packaging format, BitBake hides these differences
  6193. from you. Here is the general syntax to specify versions with the
  6194. :term:`RREPLACES` variable::
  6195. RREPLACES:${PN} = "package (operator version)"
  6196. For ``operator``, you can specify the following:
  6197. - =
  6198. - <
  6199. - >
  6200. - <=
  6201. - >=
  6202. For example, the following sets up a replacement using version 1.2
  6203. or greater of the package ``foo``::
  6204. RREPLACES:${PN} = "foo (>= 1.2)"
  6205. :term:`RSUGGESTS`
  6206. A list of additional packages that you can suggest for installation
  6207. by the package manager at the time a package is installed. Not all
  6208. package managers support this functionality.
  6209. As with all package-controlling variables, you must always use this
  6210. variable in conjunction with a package name override. Here is an
  6211. example::
  6212. RSUGGESTS:${PN} = "useful_package another_package"
  6213. :term:`RUST_CHANNEL`
  6214. Specifies which version of Rust to build - "stable", "beta" or "nightly".
  6215. The default value is "stable". Set this at your own risk, as values other
  6216. than "stable" are not guaranteed to work at a given time.
  6217. :term:`S`
  6218. The location in the :term:`Build Directory` where
  6219. unpacked recipe source code resides. By default, this directory is
  6220. ``${``\ :term:`UNPACKDIR`\ ``}/${``\ :term:`BPN`\ ``}-${``\ :term:`PV`\ ``}``,
  6221. where ``${BPN}`` is the base recipe name and ``${PV}`` is the recipe
  6222. version. If the source tarball extracts the code to a directory named
  6223. anything other than ``${BPN}-${PV}``, or if the source code is
  6224. fetched from an SCM such as Git or Subversion, then you must set
  6225. :term:`S` in the recipe so that the OpenEmbedded build system knows where
  6226. to find the unpacked source.
  6227. As an example, assume a :term:`Source Directory`
  6228. top-level folder named ``poky`` and a default :term:`Build Directory` at
  6229. ``poky/build``. In this case, the work directory the build system
  6230. uses to keep the unpacked recipe for ``db`` is the following::
  6231. poky/build/tmp/work/qemux86-poky-linux/db/5.1.19-r3/sources/db-5.1.19
  6232. The unpacked source code resides in the ``db-5.1.19`` folder.
  6233. :term:`SANITY_REQUIRED_UTILITIES`
  6234. Specifies a list of command-line utilities that should be checked for
  6235. during the initial sanity checking process when running BitBake. If
  6236. any of the utilities are not installed on the build host, then
  6237. BitBake immediately exits with an error.
  6238. :term:`SANITY_TESTED_DISTROS`
  6239. A list of the host distribution identifiers that the build system has
  6240. been tested against. Identifiers consist of the host distributor ID
  6241. followed by the release, as reported by the ``lsb_release`` tool or
  6242. as read from ``/etc/lsb-release``. Separate the list items with
  6243. explicit newline characters (``\n``). If :term:`SANITY_TESTED_DISTROS` is
  6244. not empty and the current value of
  6245. :term:`NATIVELSBSTRING` does not appear in the
  6246. list, then the build system reports a warning that indicates the
  6247. current host distribution has not been tested as a build host.
  6248. :term:`SDK_ARCH`
  6249. The target architecture for the SDK. Typically, you do not directly
  6250. set this variable. Instead, use :term:`SDKMACHINE`.
  6251. :term:`SDK_ARCHIVE_TYPE`
  6252. Specifies the type of archive to create for the SDK. Valid values:
  6253. - ``tar.xz`` (default)
  6254. - ``tar.zst``
  6255. - ``7zip``
  6256. - ``zip``
  6257. Only one archive type can be specified.
  6258. :term:`SDK_AS_ARCH`
  6259. Specifies architecture-specific assembler flags when building
  6260. :ref:`ref-classes-nativesdk` recipes. By default, the value of
  6261. :term:`SDK_AS_ARCH` equals the one of :term:`BUILD_AS_ARCH`.
  6262. :term:`SDK_BUILDINFO_FILE`
  6263. When using the :ref:`ref-classes-image-buildinfo` class,
  6264. specifies the file in the SDK to write the build information into. The
  6265. default value is "``/buildinfo``".
  6266. :term:`SDK_CC_ARCH`
  6267. Specifies the architecture-specific C compiler flags when building
  6268. :ref:`ref-classes-nativesdk` recipes. By default, the value of
  6269. :term:`SDK_CC_ARCH` equals the one of :term:`BUILD_CC_ARCH`.
  6270. :term:`SDK_CUSTOM_TEMPLATECONF`
  6271. When building the extensible SDK, if :term:`SDK_CUSTOM_TEMPLATECONF` is set to
  6272. "1" and a ``conf/templateconf.cfg`` file exists in the :term:`Build Directory`
  6273. (:term:`TOPDIR`) then this will be copied into the SDK.
  6274. :term:`SDK_DEPLOY`
  6275. The directory set up and used by the
  6276. :ref:`populate_sdk_base <ref-classes-populate-sdk>` class to which the
  6277. SDK is deployed. The :ref:`populate_sdk_base <ref-classes-populate-sdk>`
  6278. class defines :term:`SDK_DEPLOY` as follows::
  6279. SDK_DEPLOY = "${TMPDIR}/deploy/sdk"
  6280. :term:`SDK_DIR`
  6281. The parent directory used by the OpenEmbedded build system when
  6282. creating SDK output. The
  6283. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class defines
  6284. the variable as follows::
  6285. SDK_DIR = "${WORKDIR}/sdk"
  6286. .. note::
  6287. The :term:`SDK_DIR` directory is a temporary directory as it is part of
  6288. :term:`WORKDIR`. The final output directory is :term:`SDK_DEPLOY`.
  6289. :term:`SDK_EXT_TYPE`
  6290. Controls whether or not shared state artifacts are copied into the
  6291. extensible SDK. The default value of "full" copies all of the
  6292. required shared state artifacts into the extensible SDK. The value
  6293. "minimal" leaves these artifacts out of the SDK.
  6294. .. note::
  6295. If you set the variable to "minimal", you need to ensure
  6296. :term:`SSTATE_MIRRORS` is set in the SDK's configuration to enable the
  6297. artifacts to be fetched as needed.
  6298. :term:`SDK_HOST_MANIFEST`
  6299. The manifest file for the host part of the SDK. This file lists all
  6300. the installed packages that make up the host part of the SDK. The
  6301. file contains package information on a line-per-package basis as
  6302. follows::
  6303. packagename packagearch version
  6304. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  6305. defines the manifest file as follows::
  6306. SDK_HOST_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.host.manifest"
  6307. The location is derived using the :term:`SDK_DEPLOY` and
  6308. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  6309. :term:`SDK_INCLUDE_PKGDATA`
  6310. When set to "1", specifies to include the packagedata for all recipes
  6311. in the "world" target in the extensible SDK. Including this data
  6312. allows the ``devtool search`` command to find these recipes in search
  6313. results, as well as allows the ``devtool add`` command to map
  6314. dependencies more effectively.
  6315. .. note::
  6316. Enabling the :term:`SDK_INCLUDE_PKGDATA`
  6317. variable significantly increases build time because all of world
  6318. needs to be built. Enabling the variable also slightly increases
  6319. the size of the extensible SDK.
  6320. :term:`SDK_INCLUDE_TOOLCHAIN`
  6321. When set to "1", specifies to include the toolchain in the extensible
  6322. SDK. Including the toolchain is useful particularly when
  6323. :term:`SDK_EXT_TYPE` is set to "minimal" to keep
  6324. the SDK reasonably small but you still want to provide a usable
  6325. toolchain. For example, suppose you want to use the toolchain from an
  6326. IDE or from other tools and you do not want to perform additional
  6327. steps to install the toolchain.
  6328. The :term:`SDK_INCLUDE_TOOLCHAIN` variable defaults to "0" if
  6329. :term:`SDK_EXT_TYPE` is set to "minimal", and defaults to "1" if
  6330. :term:`SDK_EXT_TYPE` is set to "full".
  6331. :term:`SDK_LD_ARCH`
  6332. Specifies architecture-specific linker flags when building
  6333. :ref:`ref-classes-nativesdk` recipes. By default, the value of
  6334. :term:`SDK_LD_ARCH` equals the one of :term:`BUILD_LD_ARCH`.
  6335. :term:`SDK_NAME`
  6336. The base name for SDK output files. The default value (as set in
  6337. ``meta-poky/conf/distro/poky.conf``) is derived from the
  6338. :term:`DISTRO`,
  6339. :term:`TCLIBC`,
  6340. :term:`SDKMACHINE`,
  6341. :term:`IMAGE_BASENAME`,
  6342. :term:`TUNE_PKGARCH`, and
  6343. :term:`MACHINE` variables::
  6344. SDK_NAME = "${DISTRO}-${TCLIBC}-${SDKMACHINE}-${IMAGE_BASENAME}-${TUNE_PKGARCH}-${MACHINE}"
  6345. :term:`SDK_OS`
  6346. Specifies the operating system for which the SDK will be built. The
  6347. default value is the value of :term:`BUILD_OS`.
  6348. :term:`SDK_OUTPUT`
  6349. The location used by the OpenEmbedded build system when creating SDK
  6350. output. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>`
  6351. class defines the variable as follows::
  6352. SDK_DIR = "${WORKDIR}/sdk"
  6353. SDK_OUTPUT = "${SDK_DIR}/image"
  6354. SDK_DEPLOY = "${DEPLOY_DIR}/sdk"
  6355. .. note::
  6356. The :term:`SDK_OUTPUT` directory is a temporary directory as it is part of
  6357. :term:`WORKDIR` by way of :term:`SDK_DIR`. The final output directory is
  6358. :term:`SDK_DEPLOY`.
  6359. :term:`SDK_PACKAGE_ARCHS`
  6360. Specifies a list of architectures compatible with the SDK machine.
  6361. This variable is set automatically and should not normally be
  6362. hand-edited. Entries are separated using spaces and listed in order
  6363. of priority. The default value for :term:`SDK_PACKAGE_ARCHS` is "all any
  6364. noarch ${SDK_ARCH}-${SDKPKGSUFFIX}".
  6365. :term:`SDK_POSTPROCESS_COMMAND`
  6366. Specifies a list of functions to call once the OpenEmbedded build
  6367. system creates the SDK. You can specify functions separated by
  6368. spaces:
  6369. SDK_POSTPROCESS_COMMAND += "function"
  6370. If you need to pass an SDK path to a command within a function, you
  6371. can use ``${SDK_DIR}``, which points to the parent directory used by
  6372. the OpenEmbedded build system when creating SDK output. See the
  6373. :term:`SDK_DIR` variable for more information.
  6374. :term:`SDK_PREFIX`
  6375. The toolchain binary prefix used for
  6376. :ref:`ref-classes-nativesdk` recipes. The
  6377. OpenEmbedded build system uses the :term:`SDK_PREFIX` value to set the
  6378. :term:`TARGET_PREFIX` when building
  6379. ``nativesdk`` recipes. The default value is "${SDK_SYS}-".
  6380. :term:`SDK_RECRDEP_TASKS`
  6381. A list of shared state tasks added to the extensible SDK. By default,
  6382. the following tasks are added:
  6383. - :ref:`ref-tasks-populate_lic`
  6384. - :ref:`ref-tasks-package_qa`
  6385. - :ref:`ref-tasks-populate_sysroot`
  6386. - :ref:`ref-tasks-deploy`
  6387. Despite the default value of "" for the
  6388. :term:`SDK_RECRDEP_TASKS` variable, the above four tasks are always added
  6389. to the SDK. To specify tasks beyond these four, you need to use the
  6390. :term:`SDK_RECRDEP_TASKS` variable (e.g. you are defining additional
  6391. tasks that are needed in order to build
  6392. :term:`SDK_TARGETS`).
  6393. :term:`SDK_SYS`
  6394. Specifies the system, including the architecture and the operating
  6395. system, for which the SDK will be built.
  6396. The OpenEmbedded build system automatically sets this variable based
  6397. on :term:`SDK_ARCH`,
  6398. :term:`SDK_VENDOR`, and
  6399. :term:`SDK_OS`. You do not need to set the :term:`SDK_SYS`
  6400. variable yourself.
  6401. :term:`SDK_TARGET_MANIFEST`
  6402. The manifest file for the target part of the SDK. This file lists all
  6403. the installed packages that make up the target part of the SDK. The
  6404. file contains package information on a line-per-package basis as
  6405. follows::
  6406. packagename packagearch version
  6407. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  6408. defines the manifest file as follows::
  6409. SDK_TARGET_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.target.manifest"
  6410. The location is derived using the :term:`SDK_DEPLOY` and
  6411. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  6412. :term:`SDK_TARGETS`
  6413. A list of targets to install from shared state as part of the
  6414. standard or extensible SDK installation. The default value is "${PN}"
  6415. (i.e. the image from which the SDK is built).
  6416. The :term:`SDK_TARGETS` variable is an internal variable and typically
  6417. would not be changed.
  6418. :term:`SDK_TITLE`
  6419. The title to be printed when running the SDK installer. By default,
  6420. this title is based on the :term:`DISTRO_NAME` or
  6421. :term:`DISTRO` variable and is set in the
  6422. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  6423. follows::
  6424. SDK_TITLE ??= "${@d.getVar('DISTRO_NAME') or d.getVar('DISTRO')} SDK"
  6425. For the default distribution "poky",
  6426. :term:`SDK_TITLE` is set to "Poky (Yocto Project Reference Distro)".
  6427. For information on how to change this default title, see the
  6428. ":ref:`sdk-manual/appendix-customizing:changing the extensible sdk installer title`"
  6429. section in the Yocto Project Application Development and the
  6430. Extensible Software Development Kit (eSDK) manual.
  6431. :term:`SDK_TOOLCHAIN_LANGS`
  6432. Specifies programming languages to support in the SDK, as a
  6433. space-separated list. Currently supported items are ``rust`` and ``go``.
  6434. :term:`SDK_UPDATE_URL`
  6435. An optional URL for an update server for the extensible SDK. If set,
  6436. the value is used as the default update server when running
  6437. ``devtool sdk-update`` within the extensible SDK.
  6438. :term:`SDK_VENDOR`
  6439. Specifies the name of the SDK vendor.
  6440. :term:`SDK_VERSION`
  6441. Specifies the version of the SDK. The Poky distribution configuration file
  6442. (``/meta-poky/conf/distro/poky.conf``) sets the default
  6443. :term:`SDK_VERSION` as follows::
  6444. SDK_VERSION = "${@d.getVar('DISTRO_VERSION').replace('snapshot-${METADATA_REVISION}', 'snapshot')}"
  6445. For additional information, see the
  6446. :term:`DISTRO_VERSION` and
  6447. :term:`METADATA_REVISION` variables.
  6448. :term:`SDK_ZIP_OPTIONS`
  6449. Specifies extra options to pass to the ``zip`` command when zipping the SDK
  6450. (i.e. when :term:`SDK_ARCHIVE_TYPE` is set to "zip"). The default value is
  6451. "-y".
  6452. :term:`SDKEXTPATH`
  6453. The default installation directory for the Extensible SDK. By
  6454. default, this directory is based on the :term:`DISTRO`
  6455. variable and is set in the
  6456. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  6457. follows::
  6458. SDKEXTPATH ??= "~/${@d.getVar('DISTRO')}_sdk"
  6459. For the
  6460. default distribution "poky", the :term:`SDKEXTPATH` is set to "poky_sdk".
  6461. For information on how to change this default directory, see the
  6462. ":ref:`sdk-manual/appendix-customizing:changing the default sdk installation directory`"
  6463. section in the Yocto Project Application Development and the
  6464. Extensible Software Development Kit (eSDK) manual.
  6465. :term:`SDKIMAGE_FEATURES`
  6466. Equivalent to :term:`IMAGE_FEATURES`. However, this variable applies to
  6467. the SDK generated from an image using the following command::
  6468. $ bitbake -c populate_sdk imagename
  6469. :term:`SDKMACHINE`
  6470. The machine for which the SDK is built. In other words, the SDK is built
  6471. such that it runs on the target you specify with the :term:`SDKMACHINE`
  6472. value. The value points to a corresponding ``.conf`` file under
  6473. ``conf/machine-sdk/`` in the enabled layers, for example ``aarch64``,
  6474. ``i586``, ``i686``, ``ppc64``, ``ppc64le``, and ``x86_64`` are
  6475. :oe_git:`available in OpenEmbedded-Core </openembedded-core/tree/meta/conf/machine-sdk>`.
  6476. The variable defaults to :term:`BUILD_ARCH` so that SDKs are built for the
  6477. architecture of the build machine.
  6478. .. note::
  6479. You cannot set the :term:`SDKMACHINE`
  6480. variable in your distribution configuration file. If you do, the
  6481. configuration will not take effect.
  6482. :term:`SDKPATH`
  6483. Defines the path used to collect the SDK components and build the
  6484. installer.
  6485. :term:`SDKPATHINSTALL`
  6486. Defines the path offered to the user for installation of the SDK that
  6487. is generated by the OpenEmbedded build system. The path appears as
  6488. the default location for installing the SDK when you run the SDK's
  6489. installation script. You can override the offered path when you run
  6490. the script.
  6491. :term:`SDKTARGETSYSROOT`
  6492. The full path to the sysroot used for cross-compilation within an SDK
  6493. as it will be when installed into the default
  6494. :term:`SDKPATHINSTALL`.
  6495. :term:`SECTION`
  6496. The section in which packages should be categorized. Package
  6497. management utilities can make use of this variable.
  6498. :term:`SELECTED_OPTIMIZATION`
  6499. Specifies the optimization flags passed to the C compiler when
  6500. building for the target. The flags are passed through the default
  6501. value of the :term:`TARGET_CFLAGS` variable.
  6502. The :term:`SELECTED_OPTIMIZATION` variable takes the value of
  6503. :term:`FULL_OPTIMIZATION` unless :term:`DEBUG_BUILD` = "1", in which
  6504. case the value of :term:`DEBUG_OPTIMIZATION` is used.
  6505. :term:`SERIAL_CONSOLES`
  6506. Defines a serial console (TTY) to enable using
  6507. :wikipedia:`getty <Getty_(Unix)>`. Provide a value that specifies the
  6508. baud rate followed by the TTY device name separated by a semicolon.
  6509. Use spaces to separate multiple devices::
  6510. SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1"
  6511. :term:`SETUPTOOLS_BUILD_ARGS`
  6512. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  6513. class, this variable can be used to specify additional arguments to be
  6514. passed to ``setup.py build`` in the ``setuptools3_do_compile()`` task.
  6515. :term:`SETUPTOOLS_SETUP_PATH`
  6516. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  6517. class, this variable should be used to specify the directory in which
  6518. the ``setup.py`` file is located if it is not at the root of the source
  6519. tree (as specified by :term:`S`). For example, in a recipe where the
  6520. sources are fetched from a Git repository and ``setup.py`` is in a
  6521. ``python/pythonmodule`` subdirectory, you would have this::
  6522. SETUPTOOLS_SETUP_PATH = "${S}/python/pythonmodule"
  6523. :term:`SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS`
  6524. A list of recipe dependencies that should not be used to determine
  6525. signatures of tasks from one recipe when they depend on tasks from
  6526. another recipe. For example::
  6527. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "intone->mplayer2"
  6528. In the previous example, ``intone`` depends on ``mplayer2``.
  6529. You can use the special token ``"*"`` on the left-hand side of the
  6530. dependency to match all recipes except the one on the right-hand
  6531. side. Here is an example::
  6532. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "*->quilt-native"
  6533. In the previous example, all recipes except ``quilt-native`` ignore
  6534. task signatures from the ``quilt-native`` recipe when determining
  6535. their task signatures.
  6536. Use of this variable is one mechanism to remove dependencies that
  6537. affect task signatures and thus force rebuilds when a recipe changes.
  6538. .. note::
  6539. If you add an inappropriate dependency for a recipe relationship,
  6540. the software might break during runtime if the interface of the
  6541. second recipe was changed after the first recipe had been built.
  6542. :term:`SIGGEN_EXCLUDERECIPES_ABISAFE`
  6543. A list of recipes that are completely stable and will never change.
  6544. The ABI for the recipes in the list are presented by output from the
  6545. tasks run to build the recipe. Use of this variable is one way to
  6546. remove dependencies from one recipe on another that affect task
  6547. signatures and thus force rebuilds when the recipe changes.
  6548. .. note::
  6549. If you add an inappropriate variable to this list, the software
  6550. might break at runtime if the interface of the recipe was changed
  6551. after the other had been built.
  6552. :term:`SIGGEN_LOCKEDSIGS`
  6553. The list of locked tasks, with the form::
  6554. SIGGEN_LOCKEDSIGS += "<package>:<task>:<signature>"
  6555. If ``<signature>`` exists for the specified ``<task>`` and ``<package>``
  6556. in the sstate cache, BitBake will use the cached output instead of
  6557. rebuilding the ``<task>``. If it does not exist, BitBake will build the
  6558. ``<task>`` and the sstate cache will be used next time.
  6559. Example::
  6560. SIGGEN_LOCKEDSIGS += "bc:do_compile:09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0"
  6561. You can obtain the signature of all the tasks for the recipe ``bc`` using::
  6562. bitbake -S none bc
  6563. Then you can look at files in ``build/tmp/stamps/<arch>/bc`` and look for
  6564. files like: ``<PV>.do_compile.sigdata.09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0``.
  6565. Alternatively, you can also use :doc:`bblock </dev-manual/bblock>` to
  6566. generate this line for you.
  6567. :term:`SIGGEN_LOCKEDSIGS_TASKSIG_CHECK`
  6568. Specifies the debug level of task signature check. 3 levels are supported:
  6569. * ``info``: displays a "Note" message to remind the user that a task is locked
  6570. and the current signature matches the locked one.
  6571. * ``warn``: displays a "Warning" message if a task is locked and the current
  6572. signature does not match the locked one.
  6573. * ``error``: same as warn but displays an "Error" message and aborts.
  6574. :term:`SIGGEN_LOCKEDSIGS_TYPES`
  6575. Allowed overrides for :term:`SIGGEN_LOCKEDSIGS`. This is mainly used
  6576. for architecture specific locks. A common value for
  6577. :term:`SIGGEN_LOCKEDSIGS_TYPES` is ``${PACKAGE_ARCHS}``::
  6578. SIGGEN_LOCKEDSIGS_TYPES += "${PACKAGE_ARCHS}"
  6579. SIGGEN_LOCKEDSIGS_core2-64 += "bc:do_compile:09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0"
  6580. SIGGEN_LOCKEDSIGS_cortexa57 += "bc:do_compile:12178eb6d55ef602a8fe638e49862fd247e07b228f0f08967697b655bfe4bb61"
  6581. Here, the ``do_compile`` task from ``bc`` will be locked only for
  6582. ``core2-64`` and ``cortexa57`` but not for other architectures such as
  6583. ``mips32r2``.
  6584. :term:`SITEINFO_BITS`
  6585. Specifies the number of bits for the target system CPU. The value
  6586. should be either "32" or "64".
  6587. :term:`SITEINFO_ENDIANNESS`
  6588. Specifies the endian byte order of the target system. The value
  6589. should be either "le" for little-endian or "be" for big-endian.
  6590. :term:`SKIP_FILEDEPS`
  6591. Enables removal of all files from the "Provides" section of an RPM
  6592. package. Removal of these files is required for packages containing
  6593. prebuilt binaries and libraries such as ``libstdc++`` and ``glibc``.
  6594. To enable file removal, set the variable to "1" in your
  6595. ``conf/local.conf`` configuration file in your:
  6596. :term:`Build Directory`::
  6597. SKIP_FILEDEPS = "1"
  6598. :term:`SKIP_RECIPE`
  6599. Used to prevent the OpenEmbedded build system from building a given
  6600. recipe. Specify the :term:`PN` value as a variable flag (``varflag``)
  6601. and provide a reason, which will be reported when attempting to
  6602. build the recipe.
  6603. To prevent a recipe from being built, use the :term:`SKIP_RECIPE`
  6604. variable in your ``local.conf`` file or distribution configuration.
  6605. Here is an example which prevents ``myrecipe`` from being built::
  6606. SKIP_RECIPE[myrecipe] = "Not supported by our organization."
  6607. :term:`SOC_FAMILY`
  6608. A colon-separated list grouping together machines based upon the same
  6609. family of SoC (System On Chip). You typically set this variable in a
  6610. common ``.inc`` file that you include in the configuration files of all
  6611. the machines.
  6612. .. note::
  6613. You must include ``conf/machine/include/soc-family.inc`` for this
  6614. variable to appear in :term:`MACHINEOVERRIDES`.
  6615. :term:`SOLIBS`
  6616. Defines the suffix for shared libraries used on the target platform.
  6617. By default, this suffix is ".so.*" for all Linux-based systems and is
  6618. defined in the ``meta/conf/bitbake.conf`` configuration file.
  6619. You will see this variable referenced in the default values of
  6620. ``FILES:${PN}``.
  6621. :term:`SOLIBSDEV`
  6622. Defines the suffix for the development symbolic link (symlink) for
  6623. shared libraries on the target platform. By default, this suffix is
  6624. ".so" for Linux-based systems and is defined in the
  6625. ``meta/conf/bitbake.conf`` configuration file.
  6626. You will see this variable referenced in the default values of
  6627. ``FILES:${PN}-dev``.
  6628. :term:`SOURCE_DATE_EPOCH`
  6629. This defines a date expressed in number of seconds since
  6630. the UNIX EPOCH (01 Jan 1970 00:00:00 UTC), which is used by
  6631. multiple build systems to force a timestamp in built binaries.
  6632. Many upstream projects already support this variable.
  6633. You will find more details in the `official specifications
  6634. <https://reproducible-builds.org/specs/source-date-epoch/>`__.
  6635. A value for each recipe is computed from the sources by
  6636. :oe_git:`meta/lib/oe/reproducible.py </openembedded-core/tree/meta/lib/oe/reproducible.py>`.
  6637. If a recipe wishes to override the default behavior, it should set its
  6638. own :term:`SOURCE_DATE_EPOCH` value::
  6639. SOURCE_DATE_EPOCH = "1613559011"
  6640. :term:`SOURCE_MIRROR_FETCH`
  6641. When you are fetching files to create a mirror of sources (i.e.
  6642. creating a source mirror), setting :term:`SOURCE_MIRROR_FETCH` to "1" in
  6643. your ``local.conf`` configuration file ensures the source for all
  6644. recipes are fetched regardless of whether or not a recipe is
  6645. compatible with the configuration. A recipe is considered
  6646. incompatible with the currently configured machine when either or
  6647. both the :term:`COMPATIBLE_MACHINE`
  6648. variable and :term:`COMPATIBLE_HOST` variables
  6649. specify compatibility with a machine other than that of the current
  6650. machine or host.
  6651. .. note::
  6652. Do not set the :term:`SOURCE_MIRROR_FETCH`
  6653. variable unless you are creating a source mirror. In other words,
  6654. do not set the variable during a normal build.
  6655. :term:`SOURCE_MIRROR_URL`
  6656. Defines your own :term:`PREMIRRORS` from which to
  6657. first fetch source before attempting to fetch from the upstream
  6658. specified in :term:`SRC_URI`.
  6659. To use this variable, you must globally inherit the
  6660. :ref:`ref-classes-own-mirrors` class and then provide
  6661. the URL to your mirrors. Here is the general syntax::
  6662. INHERIT += "own-mirrors"
  6663. SOURCE_MIRROR_URL = "http://example.com/my_source_mirror"
  6664. .. note::
  6665. You can specify only a single URL in :term:`SOURCE_MIRROR_URL`.
  6666. .. note::
  6667. If the mirror is protected behind a username and password, the
  6668. :term:`build host` needs to be configured so the :term:`build system
  6669. <OpenEmbedded Build System>` is able to fetch from the mirror.
  6670. The recommended way to do that is by setting the following parameters
  6671. in ``$HOME/.netrc`` (``$HOME`` being the :term:`build host` home
  6672. directory)::
  6673. machine example.com
  6674. login <user>
  6675. password <password>
  6676. This file requires permissions set to ``400`` or ``600`` to prevent
  6677. other users from reading the file::
  6678. chmod 600 "$HOME/.netrc"
  6679. Another method to configure the username and password is from the URL
  6680. in :term:`SOURCE_MIRROR_URL` directly, with the ``user`` and ``pswd``
  6681. parameters::
  6682. SOURCE_MIRROR_URL = "http://example.com/my_source_mirror;user=<user>;pswd=<password>"
  6683. :term:`SPDX_ARCHIVE_PACKAGED`
  6684. This option allows to add to :term:`SPDX` output compressed archives
  6685. of the files in the generated target packages.
  6686. Such archives are available in
  6687. ``tmp/deploy/spdx/MACHINE/packages/packagename.tar.zst``
  6688. under the :term:`Build Directory`.
  6689. Enable this option as follows::
  6690. SPDX_ARCHIVE_PACKAGED = "1"
  6691. According to our tests on release 4.1 "langdale", building
  6692. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling this
  6693. option multiplied the size of the ``tmp/deploy/spdx`` directory by a
  6694. factor of 13 (+1.6 GiB for this image), compared to just using the
  6695. :ref:`ref-classes-create-spdx` class with no option.
  6696. Note that this option doesn't increase the size of :term:`SPDX`
  6697. files in ``tmp/deploy/images/MACHINE``.
  6698. :term:`SPDX_ARCHIVE_SOURCES`
  6699. This option allows to add to :term:`SPDX` output compressed archives
  6700. of the sources for packages installed on the target. It currently
  6701. only works when :term:`SPDX_INCLUDE_SOURCES` is set.
  6702. This is one way of fulfilling "source code access" license
  6703. requirements.
  6704. Such source archives are available in
  6705. ``tmp/deploy/spdx/MACHINE/recipes/recipe-packagename.tar.zst``
  6706. under the :term:`Build Directory`.
  6707. Enable this option as follows::
  6708. SPDX_INCLUDE_SOURCES = "1"
  6709. SPDX_ARCHIVE_SOURCES = "1"
  6710. According to our tests on release 4.1 "langdale", building
  6711. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling
  6712. these options multiplied the size of the ``tmp/deploy/spdx``
  6713. directory by a factor of 11 (+1.4 GiB for this image),
  6714. compared to just using the :ref:`ref-classes-create-spdx`
  6715. class with no option.
  6716. Note that using this option only marginally increases the size
  6717. of the :term:`SPDX` output in ``tmp/deploy/images/MACHINE/``
  6718. (+ 0.07\% with the tested image), compared to just enabling
  6719. :term:`SPDX_INCLUDE_SOURCES`.
  6720. :term:`SPDX_CUSTOM_ANNOTATION_VARS`
  6721. This option allows to associate `SPDX annotations
  6722. <https://spdx.github.io/spdx-spec/v2.3/annotations/>`__ to a recipe,
  6723. using the values of variables in the recipe::
  6724. ANNOTATION1 = "First annotation for recipe"
  6725. ANNOTATION2 = "Second annotation for recipe"
  6726. SPDX_CUSTOM_ANNOTATION_VARS = "ANNOTATION1 ANNOTATION2"
  6727. This will add a new block to the recipe ``.sdpx.json`` output::
  6728. "annotations": [
  6729. {
  6730. "annotationDate": "2023-04-18T08:32:12Z",
  6731. "annotationType": "OTHER",
  6732. "annotator": "Tool: oe-spdx-creator - 1.0",
  6733. "comment": "ANNOTATION1=First annotation for recipe"
  6734. },
  6735. {
  6736. "annotationDate": "2023-04-18T08:32:12Z",
  6737. "annotationType": "OTHER",
  6738. "annotator": "Tool: oe-spdx-creator - 1.0",
  6739. "comment": "ANNOTATION2=Second annotation for recipe"
  6740. }
  6741. ],
  6742. :term:`SPDX_INCLUDE_SOURCES`
  6743. This option allows to add a description of the source files used to build
  6744. the host tools and the target packages, to the ``spdx.json`` files in
  6745. ``tmp/deploy/spdx/MACHINE/recipes/`` under the :term:`Build Directory`.
  6746. As a consequence, the ``spdx.json`` files under the ``by-namespace`` and
  6747. ``packages`` subdirectories in ``tmp/deploy/spdx/MACHINE`` are also
  6748. modified to include references to such source file descriptions.
  6749. Enable this option as follows::
  6750. SPDX_INCLUDE_SOURCES = "1"
  6751. According to our tests on release 4.1 "langdale", building
  6752. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling
  6753. this option multiplied the total size of the ``tmp/deploy/spdx``
  6754. directory by a factor of 3 (+291 MiB for this image),
  6755. and the size of the ``IMAGE-MACHINE.spdx.tar.zst`` in
  6756. ``tmp/deploy/images/MACHINE`` by a factor of 130 (+15 MiB for this
  6757. image), compared to just using the :ref:`ref-classes-create-spdx` class
  6758. with no option.
  6759. :term:`SPDX_INCLUDE_COMPILED_SOURCES`
  6760. This option allows the same as :term:`SPDX_INCLUDE_SOURCES` but including
  6761. only the sources used to compile the host tools and the target packages.
  6762. While :term:`SPDX_INCLUDE_SOURCES` includes all files in the source
  6763. directory as source file descriptions, :term:`SPDX_INCLUDE_COMPILED_SOURCES`
  6764. includes only the sources that are used to produce the binaries delivered
  6765. as packages. The source files that are not used during compilation are not
  6766. included in the SBOM. It uses debugsource information generated during
  6767. ``do_package`` to filter out source files.
  6768. This enables an external tool to use the SPDX information to disregard
  6769. vulnerabilities that are not compiled in the packages.
  6770. Enable this option as follows::
  6771. SPDX_INCLUDE_COMPILED_SOURCES = "1"
  6772. According to our tests, building ``core-image-minimal`` for the
  6773. ``qemux86-64`` machine, enabling this option compared with the
  6774. :term:`SPDX_INCLUDE_SOURCES` reduces the size of the ``tmp/deploy/spdx``
  6775. directory from 2GB to 1.6GB.
  6776. :term:`SPDX_NAMESPACE_PREFIX`
  6777. This option could be used in order to change the prefix of ``spdxDocument``
  6778. and the prefix of ``documentNamespace``. It is set by default to
  6779. ``http://spdx.org/spdxdoc``.
  6780. :term:`SPDX_PACKAGE_VERSION`
  6781. This variable controls the package version as seen in the SPDX 3.0 JSON
  6782. output (``software_packageVersion``). The default value for this variable
  6783. is :term:`PV`.
  6784. :term:`SPDX_PACKAGE_URL`
  6785. Provides a place for the SPDX data creator to record the package URL
  6786. string (``software_packageUrl``, in accordance with the Package URL
  6787. specification) for a software Package. The default value of this variable
  6788. is an empty string.
  6789. :term:`SPDX_PRETTY`
  6790. This option makes the SPDX output more human-readable, using
  6791. identation and newlines, instead of the default output in a
  6792. single line::
  6793. SPDX_PRETTY = "1"
  6794. The generated SPDX files are approximately 20% bigger, but
  6795. this option is recommended if you want to inspect the SPDX
  6796. output files with a text editor.
  6797. :term:`SPDXLICENSEMAP`
  6798. Maps commonly used license names to their SPDX counterparts found in
  6799. ``meta/files/common-licenses/``. For the default :term:`SPDXLICENSEMAP`
  6800. mappings, see the ``meta/conf/licenses.conf`` file.
  6801. For additional information, see the :term:`LICENSE`
  6802. variable.
  6803. :term:`SPECIAL_PKGSUFFIX`
  6804. A list of prefixes for :term:`PN` used by the OpenEmbedded
  6805. build system to create variants of recipes or packages. The list
  6806. specifies the prefixes to strip off during certain circumstances such
  6807. as the generation of the :term:`BPN` variable.
  6808. :term:`SPL_BINARY`
  6809. The file type for the Secondary Program Loader (SPL). Some devices
  6810. use an SPL from which to boot (e.g. the BeagleBone development
  6811. board). For such cases, you can declare the file type of the SPL
  6812. binary in the ``u-boot.inc`` include file, which is used in the
  6813. U-Boot recipe.
  6814. The SPL file type is set to "null" by default in the ``u-boot.inc``
  6815. file as follows::
  6816. # Some versions of u-boot build an SPL (Second Program Loader) image that
  6817. # should be packaged along with the u-boot binary as well as placed in the
  6818. # deploy directory. For those versions they can set the following variables
  6819. # to allow packaging the SPL.
  6820. SPL_BINARY ?= ""
  6821. SPL_BINARYNAME ?= "${@os.path.basename(d.getVar("SPL_BINARY"))}"
  6822. SPL_IMAGE ?= "${SPL_BINARYNAME}-${MACHINE}-${PV}-${PR}"
  6823. SPL_SYMLINK ?= "${SPL_BINARYNAME}-${MACHINE}"
  6824. The :term:`SPL_BINARY` variable helps form
  6825. various ``SPL_*`` variables used by the OpenEmbedded build system.
  6826. See the BeagleBone machine configuration example in the
  6827. ":ref:`dev-manual/layers:adding a layer using the \`\`bitbake-layers\`\` script`"
  6828. section in the Yocto Project Board Support Package Developer's Guide
  6829. for additional information.
  6830. :term:`SPL_DTB_BINARY`
  6831. When inheriting the :ref:`ref-classes-uboot-sign` class, the
  6832. :term:`SPL_DTB_BINARY` variable contains the name of the SPL binary to be
  6833. compiled.
  6834. :term:`SPL_MKIMAGE_DTCOPTS`
  6835. Options for the device tree compiler passed to ``mkimage -D`` feature
  6836. while creating a FIT image with the :ref:`ref-classes-uboot-sign`
  6837. class. If :term:`SPL_MKIMAGE_DTCOPTS` is not set then the
  6838. :ref:`ref-classes-uboot-sign` class will not pass the ``-D`` option
  6839. to ``mkimage``.
  6840. The default value is set to "" by the :ref:`ref-classes-uboot-config`
  6841. class.
  6842. :term:`SPL_SIGN_ENABLE`
  6843. Enable signing of the U-Boot FIT image. The default value is "0".
  6844. This variable is used by the :ref:`ref-classes-uboot-sign` class.
  6845. :term:`SPL_SIGN_KEYDIR`
  6846. Location of the directory containing the RSA key and certificate used for
  6847. signing the U-Boot FIT image, used by the :ref:`ref-classes-uboot-sign`
  6848. class.
  6849. :term:`SPL_SIGN_KEYNAME`
  6850. The name of keys used by the :ref:`ref-classes-uboot-sign` class
  6851. for signing U-Boot FIT image stored in the :term:`SPL_SIGN_KEYDIR`
  6852. directory. If we have for example a ``dev.key`` key and a ``dev.crt``
  6853. certificate stored in the :term:`SPL_SIGN_KEYDIR` directory, you will
  6854. have to set :term:`SPL_SIGN_KEYNAME` to ``dev``.
  6855. :term:`SPLASH`
  6856. This variable, used by the :ref:`ref-classes-image` class, allows
  6857. to choose splashscreen applications. Set it to the names of packages
  6858. for such applications to use. This variable is set by default to
  6859. ``psplash``.
  6860. :term:`SPLASH_IMAGES`
  6861. This variable, used by the ``psplash`` recipe, allows to customize
  6862. the default splashscreen image.
  6863. Specified images in PNG format are converted to ``.h`` files by the recipe,
  6864. and are included in the ``psplash`` binary, so you won't find them in
  6865. the root filesystem.
  6866. To make such a change, it is recommended to customize the
  6867. ``psplash`` recipe in a custom layer. Here is an example structure for
  6868. an ``ACME`` board::
  6869. meta-acme/recipes-core/psplash
  6870. ├── files
  6871. │   └── logo-acme.png
  6872. └── psplash_%.bbappend
  6873. And here are the contents of the ``psplash_%.bbappend`` file in
  6874. this example::
  6875. SPLASH_IMAGES = "file://logo-acme.png;outsuffix=default"
  6876. FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  6877. You could even add specific configuration options for ``psplash``,
  6878. for example::
  6879. EXTRA_OECONF += "--disable-startup-msg --enable-img-fullscreen"
  6880. For information on append files, see the
  6881. ":ref:`dev-manual/layers:appending other layers metadata with your layer`"
  6882. section.
  6883. :term:`SRCREV_FORMAT`
  6884. See :term:`bitbake:SRCREV_FORMAT` in the BitBake manual.
  6885. :term:`SRC_URI`
  6886. See the BitBake manual for the initial description for this variable:
  6887. :term:`bitbake:SRC_URI`.
  6888. The following features are added by OpenEmbedded and the Yocto Project.
  6889. There are standard and recipe-specific options. Here are standard ones:
  6890. - ``apply`` --- whether to apply the patch or not. The default
  6891. action is to apply the patch.
  6892. - ``striplevel`` --- which striplevel to use when applying the
  6893. patch. The default level is 1.
  6894. - ``patchdir`` --- specifies the directory in which the patch should
  6895. be applied. The default is ``${``\ :term:`S`\ ``}``.
  6896. Here are options specific to recipes building code from a revision
  6897. control system:
  6898. - ``mindate`` --- apply the patch only if
  6899. :term:`SRCDATE` is equal to or greater than
  6900. ``mindate``.
  6901. - ``maxdate`` --- apply the patch only if :term:`SRCDATE` is not later
  6902. than ``maxdate``.
  6903. - ``minrev`` --- apply the patch only if :term:`SRCREV` is equal to or
  6904. greater than ``minrev``.
  6905. - ``maxrev`` --- apply the patch only if :term:`SRCREV` is not later
  6906. than ``maxrev``.
  6907. - ``rev`` --- apply the patch only if :term:`SRCREV` is equal to
  6908. ``rev``.
  6909. - ``notrev`` --- apply the patch only if :term:`SRCREV` is not equal to
  6910. ``rev``.
  6911. .. note::
  6912. If you want the build system to pick up files specified through
  6913. a :term:`SRC_URI` statement from your append file, you need to be
  6914. sure to extend the :term:`FILESPATH` variable by also using the
  6915. :term:`FILESEXTRAPATHS` variable from within your append file.
  6916. :term:`SRC_URI_OVERRIDES_PACKAGE_ARCH`
  6917. By default, the OpenEmbedded build system automatically detects
  6918. whether :term:`SRC_URI` contains files that are machine-specific. If so,
  6919. the build system automatically changes :term:`PACKAGE_ARCH`. Setting this
  6920. variable to "0" disables this behavior.
  6921. :term:`SRCDATE`
  6922. The date of the source code used to build the package. This variable
  6923. applies only if the source was fetched from a Source Code Manager
  6924. (SCM).
  6925. :term:`SRCPV`
  6926. The variable :term:`SRCPV` is deprecated. It was previously used to
  6927. include source control information in :term:`PV` for :term:`bitbake` to
  6928. work correctly but this is no longer a requirement. Source control
  6929. information will be automatically included by :term:`bitbake` in the
  6930. variable :term:`PKGV` during packaging if the ``+`` sign is present in
  6931. :term:`PV`.
  6932. .. note::
  6933. The :term:`SRCPV` variable used to be defined in the
  6934. ``meta/conf/bitbake.conf`` configuration file in the :term:`Source
  6935. Directory` as follows::
  6936. SRCPV = "${@bb.fetch2.get_srcrev(d)}"
  6937. The ``get_srcrev`` function can still be used to include source control
  6938. information in variables manually.
  6939. :term:`SRCREV`
  6940. The revision of the source code used to build the package. This
  6941. variable applies to Subversion, Git, Mercurial, and Bazaar only. Note
  6942. that if you want to build a fixed revision and you want to avoid
  6943. performing a query on the remote repository every time BitBake parses
  6944. your recipe, you should specify a :term:`SRCREV` that is a full revision
  6945. identifier (e.g. the full SHA hash in git) and not just a tag.
  6946. .. note::
  6947. For information on limitations when inheriting the latest revision
  6948. of software using :term:`SRCREV`, see the :term:`AUTOREV` variable
  6949. description and the
  6950. ":ref:`dev-manual/packages:automatically incrementing a package version number`"
  6951. section, which is in the Yocto Project Development Tasks Manual.
  6952. :term:`SRCTREECOVEREDTASKS`
  6953. A list of tasks that are typically not relevant (and therefore skipped)
  6954. when building using the :ref:`ref-classes-externalsrc`
  6955. class. The default value as set in that class file is the set of tasks
  6956. that are rarely needed when using external source::
  6957. SRCTREECOVEREDTASKS ?= "do_patch do_unpack do_fetch"
  6958. The notable exception is when processing external kernel source as
  6959. defined in the :ref:`ref-classes-kernel-yocto` class file (formatted for
  6960. aesthetics)::
  6961. SRCTREECOVEREDTASKS += "\
  6962. do_validate_branches \
  6963. do_kernel_configcheck \
  6964. do_kernel_checkout \
  6965. do_fetch \
  6966. do_unpack \
  6967. do_patch \
  6968. "
  6969. See the associated :term:`EXTERNALSRC` and :term:`EXTERNALSRC_BUILD`
  6970. variables for more information.
  6971. :term:`SSTATE_DIR`
  6972. The directory for the shared state cache.
  6973. :term:`SSTATE_EXCLUDEDEPS_SYSROOT`
  6974. This variable allows to specify indirect dependencies to exclude
  6975. from sysroots, for example to avoid the situations when a dependency on
  6976. any ``-native`` recipe will pull in all dependencies of that recipe
  6977. in the recipe sysroot. This behaviour might not always be wanted,
  6978. for example when that ``-native`` recipe depends on build tools
  6979. that are not relevant for the current recipe.
  6980. This way, irrelevant dependencies are ignored, which could have
  6981. prevented the reuse of prebuilt artifacts stored in the Shared
  6982. State Cache.
  6983. :term:`SSTATE_EXCLUDEDEPS_SYSROOT` is evaluated as two regular
  6984. expressions of recipe and dependency to ignore. An example
  6985. is the rule in :oe_git:`meta/conf/layer.conf </openembedded-core/tree/meta/conf/layer.conf>`::
  6986. # Nothing needs to depend on libc-initial
  6987. # base-passwd/shadow-sysroot don't need their dependencies
  6988. SSTATE_EXCLUDEDEPS_SYSROOT += "\
  6989. .*->.*-initial.* \
  6990. .*(base-passwd|shadow-sysroot)->.* \
  6991. "
  6992. The ``->`` substring represents the dependency between
  6993. the two regular expressions.
  6994. :term:`SSTATE_MIRROR_ALLOW_NETWORK`
  6995. If set to "1", allows fetches from mirrors that are specified in
  6996. :term:`SSTATE_MIRRORS` to work even when
  6997. fetching from the network is disabled by setting :term:`BB_NO_NETWORK` to
  6998. "1". Using the :term:`SSTATE_MIRROR_ALLOW_NETWORK` variable is useful if
  6999. you have set :term:`SSTATE_MIRRORS` to point to an internal server for
  7000. your shared state cache, but you want to disable any other fetching
  7001. from the network.
  7002. :term:`SSTATE_MIRRORS`
  7003. Configures the OpenEmbedded build system to search other mirror
  7004. locations for prebuilt cache data objects before building out the
  7005. data. This variable works like fetcher :term:`MIRRORS`
  7006. and :term:`PREMIRRORS` and points to the cache
  7007. locations to check for the shared state (sstate) objects.
  7008. You can specify a filesystem directory or a remote URL such as HTTP
  7009. or FTP. The locations you specify need to contain the shared state
  7010. cache (sstate-cache) results from previous builds. The sstate-cache
  7011. you point to can also be from builds on other machines.
  7012. When pointing to sstate build artifacts on another machine that uses
  7013. a different GCC version for native builds, you must configure
  7014. :term:`SSTATE_MIRRORS` with a regular expression that maps local search
  7015. paths to server paths. The paths need to take into account
  7016. :term:`NATIVELSBSTRING` set by the :ref:`ref-classes-uninative` class.
  7017. For example, the following maps the local search path ``universal-4.9``
  7018. to the server-provided path server_url_sstate_path::
  7019. SSTATE_MIRRORS ?= "file://universal-4.9/(.*) https://server_url_sstate_path/universal-4.8/\1"
  7020. If a mirror uses the same structure as
  7021. :term:`SSTATE_DIR`, you need to add "PATH" at the
  7022. end as shown in the examples below. The build system substitutes the
  7023. correct path within the directory structure::
  7024. SSTATE_MIRRORS ?= "\
  7025. file://.* https://someserver.tld/share/sstate/PATH;downloadfilename=PATH \
  7026. file://.* file:///some-local-dir/sstate/PATH"
  7027. .. note::
  7028. If the mirror is protected behind a username and password, the
  7029. :term:`build host` needs to be configured so the :term:`build system
  7030. <OpenEmbedded Build System>` is able to download the sstate cache using
  7031. authentication.
  7032. The recommended way to do that is by setting the following parameters
  7033. in ``$HOME/.netrc`` (``$HOME`` being the :term:`build host` home
  7034. directory)::
  7035. machine someserver.tld
  7036. login <user>
  7037. password <password>
  7038. This file requires permissions set to ``400`` or ``600`` to prevent
  7039. other users from reading the file::
  7040. chmod 600 "$HOME/.netrc"
  7041. Another method to configure the username and password is from the
  7042. URL in :term:`SSTATE_MIRRORS` directly, with the ``user`` and ``pswd``
  7043. parameters::
  7044. SSTATE_MIRRORS ?= "\
  7045. file://.* https://someserver.tld/share/sstate/PATH;user=<user>;pswd=<password>;downloadfilename=PATH \
  7046. "
  7047. The Yocto Project actually shares the cache data objects built by its
  7048. autobuilder::
  7049. SSTATE_MIRRORS ?= "file://.* http://sstate.yoctoproject.org/all/PATH;downloadfilename=PATH"
  7050. As such binary artifacts are built for the generic QEMU machines
  7051. supported by the various Poky releases, they are less likely to be
  7052. reusable in real projects building binaries optimized for a specific
  7053. CPU family.
  7054. :term:`SSTATE_SCAN_FILES`
  7055. Controls the list of files the OpenEmbedded build system scans for
  7056. hardcoded installation paths. The variable uses a space-separated
  7057. list of filenames (not paths) with standard wildcard characters
  7058. allowed.
  7059. During a build, the OpenEmbedded build system creates a shared state
  7060. (sstate) object during the first stage of preparing the sysroots.
  7061. That object is scanned for hardcoded paths for original installation
  7062. locations. The list of files that are scanned for paths is controlled
  7063. by the :term:`SSTATE_SCAN_FILES` variable. Typically, recipes add files
  7064. they want to be scanned to the value of :term:`SSTATE_SCAN_FILES` rather
  7065. than the variable being comprehensively set. The
  7066. :ref:`ref-classes-sstate` class specifies the default list of files.
  7067. For details on the process, see the :ref:`ref-classes-staging` class.
  7068. :term:`SSTATE_SKIP_CREATION`
  7069. The :term:`SSTATE_SKIP_CREATION` variable can be used to skip the
  7070. creation of :ref:`shared state <overview-manual/concepts:shared state cache>`
  7071. tarball files. It makes sense e.g. for image creation tasks as tarring images
  7072. and keeping them in sstate would consume a lot of disk space.
  7073. In general it is not recommended to use this variable as missing sstate
  7074. artefacts adversely impact the build, particularly for entries in the
  7075. middle of dependency chains. The case it can make sense is where the
  7076. size and time costs of the artefact are similar to just running the
  7077. tasks. This generally only applies to end artefact output like images.
  7078. The syntax to disable it for one task is::
  7079. SSTATE_SKIP_CREATION:task-image-complete = "1"
  7080. The syntax to disable it for the whole recipe is::
  7081. SSTATE_SKIP_CREATION = "1"
  7082. :term:`STAGING_BASE_LIBDIR_NATIVE`
  7083. Specifies the path to the ``/lib`` subdirectory of the sysroot
  7084. directory for the build host.
  7085. :term:`STAGING_BASELIBDIR`
  7086. Specifies the path to the ``/lib`` subdirectory of the sysroot
  7087. directory for the target for which the current recipe is being built
  7088. (:term:`STAGING_DIR_HOST`).
  7089. :term:`STAGING_BINDIR`
  7090. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  7091. directory for the target for which the current recipe is being built
  7092. (:term:`STAGING_DIR_HOST`).
  7093. :term:`STAGING_BINDIR_CROSS`
  7094. Specifies the path to the directory containing binary configuration
  7095. scripts. These scripts provide configuration information for other
  7096. software that wants to make use of libraries or include files
  7097. provided by the software associated with the script.
  7098. .. note::
  7099. This style of build configuration has been largely replaced by
  7100. ``pkg-config``. Consequently, if ``pkg-config`` is supported by the
  7101. library to which you are linking, it is recommended you use
  7102. ``pkg-config`` instead of a provided configuration script.
  7103. :term:`STAGING_BINDIR_NATIVE`
  7104. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  7105. directory for the build host.
  7106. :term:`STAGING_DATADIR`
  7107. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  7108. directory for the target for which the current recipe is being built
  7109. (:term:`STAGING_DIR_HOST`).
  7110. :term:`STAGING_DATADIR_NATIVE`
  7111. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  7112. directory for the build host.
  7113. :term:`STAGING_DIR`
  7114. Helps construct the ``recipe-sysroots`` directory, which is used
  7115. during packaging.
  7116. For information on how staging for recipe-specific sysroots occurs,
  7117. see the :ref:`ref-tasks-populate_sysroot`
  7118. task, the ":ref:`dev-manual/devtool:sharing files between recipes`"
  7119. section in the Yocto Project Development Tasks Manual, the
  7120. ":ref:`overview-manual/concepts:configuration, compilation, and staging`"
  7121. section in the Yocto Project Overview and Concepts Manual, and the
  7122. :term:`SYSROOT_DIRS` variable.
  7123. .. note::
  7124. Recipes should never write files directly under the :term:`STAGING_DIR`
  7125. directory because the OpenEmbedded build system manages the
  7126. directory automatically. Instead, files should be installed to
  7127. ``${``\ :term:`D`\ ``}`` within your recipe's :ref:`ref-tasks-install`
  7128. task and then the OpenEmbedded build system will stage a subset of
  7129. those files into the sysroot.
  7130. :term:`STAGING_DIR_HOST`
  7131. Specifies the path to the sysroot directory for the system on which
  7132. the component is built to run (the system that hosts the component).
  7133. For most recipes, this sysroot is the one in which that recipe's
  7134. :ref:`ref-tasks-populate_sysroot` task copies
  7135. files. Exceptions include ``-native`` recipes, where the
  7136. :ref:`ref-tasks-populate_sysroot` task instead uses
  7137. :term:`STAGING_DIR_NATIVE`. Depending on
  7138. the type of recipe and the build target, :term:`STAGING_DIR_HOST` can
  7139. have the following values:
  7140. - For recipes building for the target machine, the value is
  7141. "${:term:`STAGING_DIR`}/${:term:`MACHINE`}".
  7142. - For native recipes building for the build host, the value is empty
  7143. given the assumption that when building for the build host, the
  7144. build host's own directories should be used.
  7145. .. note::
  7146. ``-native`` recipes are not installed into host paths like such
  7147. as ``/usr``. Rather, these recipes are installed into
  7148. :term:`STAGING_DIR_NATIVE`. When compiling ``-native`` recipes,
  7149. standard build environment variables such as
  7150. :term:`CPPFLAGS` and
  7151. :term:`CFLAGS` are set up so that both host paths
  7152. and :term:`STAGING_DIR_NATIVE` are searched for libraries and
  7153. headers using, for example, GCC's ``-isystem`` option.
  7154. Thus, the emphasis is that the ``STAGING_DIR*`` variables
  7155. should be viewed as input variables by tasks such as
  7156. :ref:`ref-tasks-configure`,
  7157. :ref:`ref-tasks-compile`, and
  7158. :ref:`ref-tasks-install`. Having the real system
  7159. root correspond to :term:`STAGING_DIR_HOST` makes conceptual sense
  7160. for ``-native`` recipes, as they make use of host headers and
  7161. libraries.
  7162. Check :term:`RECIPE_SYSROOT` and :term:`RECIPE_SYSROOT_NATIVE`.
  7163. :term:`STAGING_DIR_NATIVE`
  7164. Specifies the path to the sysroot directory used when building
  7165. components that run on the build host itself.
  7166. The default value is ``"${RECIPE_SYSROOT_NATIVE}"``,
  7167. check :term:`RECIPE_SYSROOT_NATIVE`.
  7168. :term:`STAGING_DIR_TARGET`
  7169. Specifies the path to the sysroot used for the system for which the
  7170. component generates code. For components that do not generate code,
  7171. which is the majority, :term:`STAGING_DIR_TARGET` is set to match
  7172. :term:`STAGING_DIR_HOST`.
  7173. Some recipes build binaries that can run on the target system but those
  7174. binaries in turn generate code for another different system (e.g.
  7175. :ref:`ref-classes-cross-canadian` recipes). Using terminology from GNU,
  7176. the primary system is referred to as the "HOST" and the secondary, or
  7177. different, system is referred to as the "TARGET". Thus, the binaries
  7178. run on the "HOST" system and generate binaries for the "TARGET"
  7179. system. The :term:`STAGING_DIR_HOST` variable points to the sysroot used
  7180. for the "HOST" system, while :term:`STAGING_DIR_TARGET` points to the
  7181. sysroot used for the "TARGET" system.
  7182. :term:`STAGING_ETCDIR_NATIVE`
  7183. Specifies the path to the ``/etc`` subdirectory of the sysroot
  7184. directory for the build host.
  7185. :term:`STAGING_EXECPREFIXDIR`
  7186. Specifies the path to the ``/usr`` subdirectory of the sysroot
  7187. directory for the target for which the current recipe is being built
  7188. (:term:`STAGING_DIR_HOST`).
  7189. :term:`STAGING_INCDIR`
  7190. Specifies the path to the ``/usr/include`` subdirectory of the
  7191. sysroot directory for the target for which the current recipe being
  7192. built (:term:`STAGING_DIR_HOST`).
  7193. :term:`STAGING_INCDIR_NATIVE`
  7194. Specifies the path to the ``/usr/include`` subdirectory of the
  7195. sysroot directory for the build host.
  7196. :term:`STAGING_KERNEL_BUILDDIR`
  7197. Points to the directory containing the kernel build artifacts.
  7198. Recipes building software that needs to access kernel build artifacts
  7199. (e.g. ``systemtap-uprobes``) can look in the directory specified with
  7200. the :term:`STAGING_KERNEL_BUILDDIR` variable to find these artifacts
  7201. after the kernel has been built.
  7202. :term:`STAGING_KERNEL_DIR`
  7203. The directory with kernel headers that are required to build
  7204. out-of-tree modules.
  7205. :term:`STAGING_LIBDIR`
  7206. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  7207. directory for the target for which the current recipe is being built
  7208. (:term:`STAGING_DIR_HOST`).
  7209. :term:`STAGING_LIBDIR_NATIVE`
  7210. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  7211. directory for the build host.
  7212. :term:`STAMP`
  7213. Specifies the base path used to create recipe stamp files. The path
  7214. to an actual stamp file is constructed by evaluating this string and
  7215. then appending additional information. Currently, the default
  7216. assignment for :term:`STAMP` as set in the ``meta/conf/bitbake.conf``
  7217. file is::
  7218. STAMP = "${STAMPS_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}"
  7219. For information on how BitBake uses stamp files to determine if a
  7220. task should be rerun, see the
  7221. ":ref:`overview-manual/concepts:stamp files and the rerunning of tasks`"
  7222. section in the Yocto Project Overview and Concepts Manual.
  7223. See :term:`STAMPS_DIR`,
  7224. :term:`MULTIMACH_TARGET_SYS`,
  7225. :term:`PN`, :term:`EXTENDPE`,
  7226. :term:`PV`, and :term:`PR` for related variable
  7227. information.
  7228. :term:`STAMPCLEAN`
  7229. See :term:`bitbake:STAMPCLEAN` in the BitBake manual.
  7230. :term:`STAMPS_DIR`
  7231. Specifies the base directory in which the OpenEmbedded build system
  7232. places stamps. The default directory is ``${TMPDIR}/stamps``.
  7233. :term:`STRIP`
  7234. The minimal command and arguments to run :manpage:`strip <strip(1)>`,
  7235. which is used to strip symbols.
  7236. :term:`SUMMARY`
  7237. The short (72 characters or less) summary of the binary package for
  7238. packaging systems such as ``opkg``, ``rpm``, or ``dpkg``. By default,
  7239. :term:`SUMMARY` is used to define the
  7240. :term:`DESCRIPTION` variable if :term:`DESCRIPTION` is
  7241. not set in the recipe.
  7242. :term:`SVNDIR`
  7243. The directory in which files checked out of a Subversion system are
  7244. stored.
  7245. :term:`SYSLINUX_DEFAULT_CONSOLE`
  7246. Specifies the kernel boot default console. If you want to use a
  7247. console other than the default, set this variable in your recipe as
  7248. follows where "X" is the console number you want to use::
  7249. SYSLINUX_DEFAULT_CONSOLE = "console=ttyX"
  7250. The :ref:`ref-classes-syslinux` class initially sets
  7251. this variable to null but then checks for a value later.
  7252. :term:`SYSLINUX_OPTS`
  7253. Lists additional options to add to the syslinux file. You need to set
  7254. this variable in your recipe. If you want to list multiple options,
  7255. separate the options with a semicolon character (``;``).
  7256. The :ref:`ref-classes-syslinux` class uses this variable
  7257. to create a set of options.
  7258. :term:`SYSLINUX_SERIAL`
  7259. Specifies the alternate serial port or turns it off. To turn off
  7260. serial, set this variable to an empty string in your recipe. The
  7261. variable's default value is set in the
  7262. :ref:`ref-classes-syslinux` class as follows::
  7263. SYSLINUX_SERIAL ?= "0 115200"
  7264. The class checks for and uses the variable as needed.
  7265. :term:`SYSLINUX_SERIAL_TTY`
  7266. Specifies the alternate console=tty... kernel boot argument. The
  7267. variable's default value is set in the :ref:`ref-classes-syslinux`
  7268. class as follows::
  7269. SYSLINUX_SERIAL_TTY ?= "console=ttyS0,115200"
  7270. The class checks for and uses the variable as needed.
  7271. :term:`SYSLINUX_SPLASH`
  7272. An ``.LSS`` file used as the background for the VGA boot menu when
  7273. you use the boot menu. You need to set this variable in your recipe.
  7274. The :ref:`ref-classes-syslinux` class checks for this
  7275. variable and if found, the OpenEmbedded build system installs the
  7276. splash screen.
  7277. :term:`SYSROOT_DESTDIR`
  7278. Points to the temporary directory under the work directory (default
  7279. "``${``\ :term:`WORKDIR`\ ``}/sysroot-destdir``")
  7280. where the files populated into the sysroot are assembled during the
  7281. :ref:`ref-tasks-populate_sysroot` task.
  7282. :term:`SYSROOT_DIRS`
  7283. Directories that are staged into the sysroot by the
  7284. :ref:`ref-tasks-populate_sysroot` task. By
  7285. default, the following directories are staged::
  7286. SYSROOT_DIRS = " \
  7287. ${includedir} \
  7288. ${libdir} \
  7289. ${base_libdir} \
  7290. ${nonarch_base_libdir} \
  7291. ${datadir} \
  7292. /sysroot-only \
  7293. "
  7294. Consider the following example in which you need to manipulate this variable.
  7295. Assume you have a recipe ``A`` that provides a shared library ``.so.*`` that is
  7296. installed into a custom folder other than "``${libdir}``"
  7297. or "``${base_libdir}``", let's say "``/opt/lib``".
  7298. .. note::
  7299. This is not a recommended way to deal with shared libraries, but this
  7300. is just to show the usefulness of setting :term:`SYSROOT_DIRS`.
  7301. When a recipe ``B`` :term:`DEPENDS` on ``A``, it means what is in
  7302. :term:`SYSROOT_DIRS` will be copied from :term:`D` of the recipe ``A``
  7303. into ``B``'s :term:`SYSROOT_DESTDIR` that is "``${WORKDIR}/sysroot-destdir``".
  7304. Now, since ``/opt/lib`` is not in :term:`SYSROOT_DIRS`, it will never be copied to
  7305. ``A``'s :term:`RECIPE_SYSROOT`, which is "``${WORKDIR}/recipe-sysroot``". So,
  7306. the linking process will fail.
  7307. To fix this, you need to add ``/opt/lib`` to :term:`SYSROOT_DIRS`::
  7308. SYSROOT_DIRS:append = " /opt/lib"
  7309. .. note::
  7310. Even after setting ``/opt/lib`` to :term:`SYSROOT_DIRS`, the linking process will still fail
  7311. because the linker does not know that location, since :term:`TARGET_LDFLAGS`
  7312. doesn't contain it (if your recipe is for the target). Therefore, so you should add::
  7313. TARGET_LDFLAGS:append = " -L${RECIPE_SYSROOT}/opt/lib"
  7314. :term:`SYSROOT_DIRS_IGNORE`
  7315. Directories that are not staged into the sysroot by the
  7316. :ref:`ref-tasks-populate_sysroot` task. You
  7317. can use this variable to exclude certain subdirectories of
  7318. directories listed in :term:`SYSROOT_DIRS` from
  7319. staging. By default, the following directories are not staged::
  7320. SYSROOT_DIRS_IGNORE = " \
  7321. ${mandir} \
  7322. ${docdir} \
  7323. ${infodir} \
  7324. ${datadir}/X11/locale \
  7325. ${datadir}/applications \
  7326. ${datadir}/bash-completion \
  7327. ${datadir}/fonts \
  7328. ${datadir}/gtk-doc/html \
  7329. ${datadir}/installed-tests \
  7330. ${datadir}/locale \
  7331. ${datadir}/pixmaps \
  7332. ${datadir}/terminfo \
  7333. ${libdir}/${BPN}/ptest \
  7334. "
  7335. :term:`SYSROOT_DIRS_NATIVE`
  7336. Extra directories staged into the sysroot by the
  7337. :ref:`ref-tasks-populate_sysroot` task for
  7338. ``-native`` recipes, in addition to those specified in
  7339. :term:`SYSROOT_DIRS`. By default, the following
  7340. extra directories are staged::
  7341. SYSROOT_DIRS_NATIVE = " \
  7342. ${bindir} \
  7343. ${sbindir} \
  7344. ${base_bindir} \
  7345. ${base_sbindir} \
  7346. ${libexecdir} \
  7347. ${sysconfdir} \
  7348. ${localstatedir} \
  7349. "
  7350. .. note::
  7351. Programs built by ``-native`` recipes run directly from the sysroot
  7352. (:term:`STAGING_DIR_NATIVE`), which is why additional directories
  7353. containing program executables and supporting files need to be staged.
  7354. :term:`SYSROOT_PREPROCESS_FUNCS`
  7355. A list of functions to execute after files are staged into the
  7356. sysroot. These functions are usually used to apply additional
  7357. processing on the staged files, or to stage additional files.
  7358. :term:`SYSTEMD_AUTO_ENABLE`
  7359. When inheriting the :ref:`ref-classes-systemd` class,
  7360. this variable specifies whether the specified service in
  7361. :term:`SYSTEMD_SERVICE` should start
  7362. automatically or not. By default, the service is enabled to
  7363. automatically start at boot time. The default setting is in the
  7364. :ref:`ref-classes-systemd` class as follows::
  7365. SYSTEMD_AUTO_ENABLE ??= "enable"
  7366. You can disable the service by setting the variable to "disable".
  7367. :term:`SYSTEMD_BOOT_CFG`
  7368. When :term:`EFI_PROVIDER` is set to
  7369. "systemd-boot", the :term:`SYSTEMD_BOOT_CFG` variable specifies the
  7370. configuration file that should be used. By default, the
  7371. :ref:`ref-classes-systemd-boot` class sets the
  7372. :term:`SYSTEMD_BOOT_CFG` as follows::
  7373. SYSTEMD_BOOT_CFG ?= "${S}/loader.conf"
  7374. For information on Systemd-boot, see the `Systemd-boot
  7375. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  7376. :term:`SYSTEMD_BOOT_ENTRIES`
  7377. When :term:`EFI_PROVIDER` is set to
  7378. "systemd-boot", the :term:`SYSTEMD_BOOT_ENTRIES` variable specifies a
  7379. list of entry files (``*.conf``) to install that contain one boot
  7380. entry per file. By default, the :ref:`ref-classes-systemd-boot` class
  7381. sets the :term:`SYSTEMD_BOOT_ENTRIES` as follows::
  7382. SYSTEMD_BOOT_ENTRIES ?= ""
  7383. For information on Systemd-boot, see the `Systemd-boot
  7384. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  7385. :term:`SYSTEMD_BOOT_TIMEOUT`
  7386. When :term:`EFI_PROVIDER` is set to
  7387. "systemd-boot", the :term:`SYSTEMD_BOOT_TIMEOUT` variable specifies the
  7388. boot menu timeout in seconds. By default, the
  7389. :ref:`ref-classes-systemd-boot` class sets the
  7390. :term:`SYSTEMD_BOOT_TIMEOUT` as follows::
  7391. SYSTEMD_BOOT_TIMEOUT ?= "10"
  7392. For information on Systemd-boot, see the `Systemd-boot
  7393. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  7394. :term:`SYSTEMD_DEFAULT_TARGET`
  7395. This variable allows to set the default unit that systemd starts at bootup.
  7396. Usually, this is either ``multi-user.target`` or ``graphical.target``.
  7397. This works by creating a ``default.target`` symbolic link to the chosen systemd
  7398. target file.
  7399. See `systemd's documentation
  7400. <https://www.freedesktop.org/software/systemd/man/systemd.special.html>`__
  7401. for details.
  7402. For example, this variable is used in the :oe_git:`core-image-minimal-xfce.bb
  7403. </meta-openembedded/tree/meta-xfce/recipes-core/images/core-image-minimal-xfce.bb>`
  7404. recipe::
  7405. SYSTEMD_DEFAULT_TARGET = "graphical.target"
  7406. :term:`SYSTEMD_PACKAGES`
  7407. When inheriting the :ref:`ref-classes-systemd` class,
  7408. this variable locates the systemd unit files when they are not found
  7409. in the main recipe's package. By default, the :term:`SYSTEMD_PACKAGES`
  7410. variable is set such that the systemd unit files are assumed to
  7411. reside in the recipes main package::
  7412. SYSTEMD_PACKAGES ?= "${PN}"
  7413. If these unit files are not in this recipe's main package, you need
  7414. to use :term:`SYSTEMD_PACKAGES` to list the package or packages in which
  7415. the build system can find the systemd unit files.
  7416. :term:`SYSTEMD_SERVICE`
  7417. When inheriting the :ref:`ref-classes-systemd` class,
  7418. this variable specifies the systemd service name for a package.
  7419. Multiple services can be specified, each one separated by a space.
  7420. When you specify this file in your recipe, use a package name
  7421. override to indicate the package to which the value applies. Here is
  7422. an example from the connman recipe::
  7423. SYSTEMD_SERVICE:${PN} = "connman.service"
  7424. The package overrides that can be specified are directly related to the value of
  7425. :term:`SYSTEMD_PACKAGES`. Overrides not included in :term:`SYSTEMD_PACKAGES`
  7426. will be silently ignored.
  7427. :term:`SYSVINIT_ENABLED_GETTYS`
  7428. When using :ref:`SysVinit <dev-manual/new-recipe:enabling system services>`,
  7429. specifies a space-separated list of the virtual terminals that should
  7430. run a :wikipedia:`getty <Getty_(Unix)>` (allowing login), assuming
  7431. :term:`USE_VT` is not set to "0".
  7432. The default value for :term:`SYSVINIT_ENABLED_GETTYS` is "1" (i.e. only
  7433. run a getty on the first virtual terminal).
  7434. :term:`T`
  7435. This variable points to a directory were BitBake places temporary
  7436. files, which consist mostly of task logs and scripts, when building a
  7437. particular recipe. The variable is typically set as follows::
  7438. T = "${WORKDIR}/temp"
  7439. The :term:`WORKDIR` is the directory into which
  7440. BitBake unpacks and builds the recipe. The default ``bitbake.conf``
  7441. file sets this variable.
  7442. The :term:`T` variable is not to be confused with the
  7443. :term:`TMPDIR` variable, which points to the root of
  7444. the directory tree where BitBake places the output of an entire
  7445. build.
  7446. :term:`TARGET_ARCH`
  7447. The target machine's architecture. The OpenEmbedded build system
  7448. supports many architectures. Here is an example list of architectures
  7449. supported. This list is by no means complete as the architecture is
  7450. configurable:
  7451. - arm
  7452. - i586
  7453. - x86_64
  7454. - powerpc
  7455. - powerpc64
  7456. - mips
  7457. - mipsel
  7458. For additional information on machine architectures, see the
  7459. :term:`TUNE_ARCH` variable.
  7460. :term:`TARGET_AS_ARCH`
  7461. Specifies architecture-specific assembler flags for the target
  7462. system. :term:`TARGET_AS_ARCH` is initialized from
  7463. :term:`TUNE_ASARGS` by default in the BitBake
  7464. configuration file (``meta/conf/bitbake.conf``)::
  7465. TARGET_AS_ARCH = "${TUNE_ASARGS}"
  7466. :term:`TARGET_CC_ARCH`
  7467. Specifies architecture-specific C compiler flags for the target
  7468. system. :term:`TARGET_CC_ARCH` is initialized from
  7469. :term:`TUNE_CCARGS` by default.
  7470. .. note::
  7471. It is a common workaround to append :term:`LDFLAGS` to
  7472. :term:`TARGET_CC_ARCH` in recipes that build software for the target that
  7473. would not otherwise respect the exported :term:`LDFLAGS` variable.
  7474. :term:`TARGET_CC_KERNEL_ARCH`
  7475. This is a specific kernel compiler flag for a CPU or Application
  7476. Binary Interface (ABI) tune. The flag is used rarely and only for
  7477. cases where a userspace :term:`TUNE_CCARGS` is not
  7478. compatible with the kernel compilation. The :term:`TARGET_CC_KERNEL_ARCH`
  7479. variable allows the kernel (and associated modules) to use a
  7480. different configuration. See the
  7481. ``meta/conf/machine/include/arm/feature-arm-thumb.inc`` file in the
  7482. :term:`Source Directory` for an example.
  7483. :term:`TARGET_CFLAGS`
  7484. Specifies the flags to pass to the C compiler when building for the
  7485. target. When building in the target context,
  7486. :term:`CFLAGS` is set to the value of this variable by
  7487. default.
  7488. Additionally, the SDK's environment setup script sets the :term:`CFLAGS`
  7489. variable in the environment to the :term:`TARGET_CFLAGS` value so that
  7490. executables built using the SDK also have the flags applied.
  7491. :term:`TARGET_CPPFLAGS`
  7492. Specifies the flags to pass to the C pre-processor (i.e. to both the
  7493. C and the C++ compilers) when building for the target. When building
  7494. in the target context, :term:`CPPFLAGS` is set to the
  7495. value of this variable by default.
  7496. Additionally, the SDK's environment setup script sets the
  7497. :term:`CPPFLAGS` variable in the environment to the :term:`TARGET_CPPFLAGS`
  7498. value so that executables built using the SDK also have the flags
  7499. applied.
  7500. :term:`TARGET_CXXFLAGS`
  7501. Specifies the flags to pass to the C++ compiler when building for the
  7502. target. When building in the target context,
  7503. :term:`CXXFLAGS` is set to the value of this variable
  7504. by default.
  7505. Additionally, the SDK's environment setup script sets the
  7506. :term:`CXXFLAGS` variable in the environment to the :term:`TARGET_CXXFLAGS`
  7507. value so that executables built using the SDK also have the flags
  7508. applied.
  7509. :term:`TARGET_DBGSRC_DIR`
  7510. Specifies the target path to debug source files. The default is
  7511. ``/usr/src/debug/${PN}/${PV}``.
  7512. :term:`TARGET_FPU`
  7513. Specifies the method for handling FPU code. For FPU-less targets,
  7514. which include most ARM CPUs, the variable must be set to "soft". If
  7515. not, the kernel emulation gets used, which results in a performance
  7516. penalty.
  7517. :term:`TARGET_LD_ARCH`
  7518. Specifies architecture-specific linker flags for the target system.
  7519. :term:`TARGET_LD_ARCH` is initialized from
  7520. :term:`TUNE_LDARGS` by default in the BitBake
  7521. configuration file (``meta/conf/bitbake.conf``)::
  7522. TARGET_LD_ARCH = "${TUNE_LDARGS}"
  7523. :term:`TARGET_LDFLAGS`
  7524. Specifies the flags to pass to the linker when building for the
  7525. target. When building in the target context,
  7526. :term:`LDFLAGS` is set to the value of this variable
  7527. by default.
  7528. Additionally, the SDK's environment setup script sets the
  7529. :term:`LDFLAGS` variable in the environment to the
  7530. :term:`TARGET_LDFLAGS` value so that executables built using the SDK also
  7531. have the flags applied.
  7532. :term:`TARGET_OS`
  7533. Specifies the target's operating system. The variable can be set to
  7534. "linux" for glibc-based systems (GNU C Library) and to "linux-musl"
  7535. for musl libc. For ARM/EABI targets, the possible values are
  7536. "linux-gnueabi" and "linux-musleabi".
  7537. :term:`TARGET_PREFIX`
  7538. Specifies the prefix used for the toolchain binary target tools.
  7539. Depending on the type of recipe and the build target,
  7540. :term:`TARGET_PREFIX` is set as follows:
  7541. - For recipes building for the target machine, the value is
  7542. "${:term:`TARGET_SYS`}-".
  7543. - For native recipes, the build system sets the variable to the
  7544. value of :term:`BUILD_PREFIX`.
  7545. - For native SDK recipes (:ref:`ref-classes-nativesdk`),
  7546. the build system sets the variable to the value of :term:`SDK_PREFIX`.
  7547. :term:`TARGET_SYS`
  7548. Specifies the system, including the architecture and the operating
  7549. system, for which the build is occurring in the context of the
  7550. current recipe.
  7551. The OpenEmbedded build system automatically sets this variable based
  7552. on :term:`TARGET_ARCH`,
  7553. :term:`TARGET_VENDOR`, and
  7554. :term:`TARGET_OS` variables.
  7555. .. note::
  7556. You do not need to set the :term:`TARGET_SYS` variable yourself.
  7557. Consider these two examples:
  7558. - Given a native recipe on a 32-bit, x86 machine running Linux, the
  7559. value is "i686-linux".
  7560. - Given a recipe being built for a little-endian, MIPS target
  7561. running Linux, the value might be "mipsel-linux".
  7562. :term:`TARGET_VENDOR`
  7563. Specifies the name of the target vendor.
  7564. :term:`TCLIBC`
  7565. Specifies the GNU standard C library (``libc``) variant to use during
  7566. the build process.
  7567. You can select "glibc", "musl", "newlib", or "baremetal".
  7568. :term:`TCMODE`
  7569. Specifies the toolchain selector. :term:`TCMODE` controls the
  7570. characteristics of the generated packages and images by telling the
  7571. OpenEmbedded build system which toolchain profile to use. By default,
  7572. the OpenEmbedded build system builds its own internal toolchain. The
  7573. variable's default value is "default", which uses that internal
  7574. toolchain.
  7575. .. note::
  7576. If :term:`TCMODE` is set to a value other than "default", then it is your
  7577. responsibility to ensure that the toolchain is compatible with the
  7578. default toolchain. Using older or newer versions of these
  7579. components might cause build problems. See
  7580. :doc:`Release Information </migration-guides/index>` for your
  7581. version of the Yocto Project, to find the specific components with
  7582. which the toolchain must be compatible.
  7583. The :term:`TCMODE` variable is similar to :term:`TCLIBC`,
  7584. which controls the variant of the GNU standard C library (``libc``)
  7585. used during the build process: ``glibc`` or ``musl``.
  7586. With additional layers, it is possible to use a pre-compiled external
  7587. toolchain. One example is the Sourcery G++ Toolchain. The support for
  7588. this toolchain resides in the separate Mentor Graphics
  7589. ``meta-sourcery`` layer at
  7590. https://github.com/MentorEmbedded/meta-sourcery/.
  7591. The layer's ``README`` file contains information on how to use the
  7592. Sourcery G++ Toolchain as an external toolchain. You will have to
  7593. add the layer to your ``bblayers.conf`` file and then set the
  7594. :term:`EXTERNAL_TOOLCHAIN` variable in your ``local.conf`` file to
  7595. the location of the toolchain.
  7596. The fundamentals used for this example apply to any external
  7597. toolchain. You can use ``meta-sourcery`` as a template for adding
  7598. support for other external toolchains.
  7599. In addition to toolchain configuration, you will also need a
  7600. corresponding toolchain recipe file. This recipe file needs to package
  7601. up any pre-built objects in the toolchain such as ``libgcc``,
  7602. ``libstdcc++``, any locales, and ``libc``.
  7603. :term:`TC_CXX_RUNTIME`
  7604. Specifies the C/C++ STL and runtime variant to use during
  7605. the build process. Default value is 'gnu'
  7606. You can select "gnu", "llvm", or "android".
  7607. :term:`TEMPLATECONF`
  7608. Specifies the directory used by the build system to find templates
  7609. from which to build the ``bblayers.conf`` and ``local.conf`` files.
  7610. Use this variable if you wish to customize such files, and the default
  7611. BitBake targets shown when sourcing the ``oe-init-build-env`` script.
  7612. For details, see the
  7613. :ref:`dev-manual/custom-template-configuration-directory:creating a custom template configuration directory`
  7614. section in the Yocto Project Development Tasks manual.
  7615. .. note::
  7616. You must set this variable in the external environment in order
  7617. for it to work.
  7618. :term:`TEST_EXPORT_DIR`
  7619. The location the OpenEmbedded build system uses to export tests when
  7620. the :term:`TEST_EXPORT_ONLY` variable is set
  7621. to "1".
  7622. The :term:`TEST_EXPORT_DIR` variable defaults to
  7623. ``"${TMPDIR}/testimage/${PN}"``.
  7624. :term:`TEST_EXPORT_ONLY`
  7625. Specifies to export the tests only. Set this variable to "1" if you
  7626. do not want to run the tests but you want them to be exported in a
  7627. manner that you to run them outside of the build system.
  7628. :term:`TEST_LOG_DIR`
  7629. Holds the SSH log and the boot log for QEMU machines. The
  7630. :term:`TEST_LOG_DIR` variable defaults to ``"${WORKDIR}/testimage"``.
  7631. .. note::
  7632. Actual test results reside in the task log (``log.do_testimage``),
  7633. which is in the ``${WORKDIR}/temp/`` directory.
  7634. :term:`TEST_POWERCONTROL_CMD`
  7635. For automated hardware testing, specifies the command to use to
  7636. control the power of the target machine under test. Typically, this
  7637. command would point to a script that performs the appropriate action
  7638. (e.g. interacting with a web-enabled power strip). The specified
  7639. command should expect to receive as the last argument "off", "on" or
  7640. "cycle" specifying to power off, on, or cycle (power off and then
  7641. power on) the device, respectively.
  7642. :term:`TEST_POWERCONTROL_EXTRA_ARGS`
  7643. For automated hardware testing, specifies additional arguments to
  7644. pass through to the command specified in
  7645. :term:`TEST_POWERCONTROL_CMD`. Setting
  7646. :term:`TEST_POWERCONTROL_EXTRA_ARGS` is optional. You can use it if you
  7647. wish, for example, to separate the machine-specific and
  7648. non-machine-specific parts of the arguments.
  7649. :term:`TEST_QEMUBOOT_TIMEOUT`
  7650. The time in seconds allowed for an image to boot before automated
  7651. runtime tests begin to run against an image. The default timeout
  7652. period to allow the boot process to reach the login prompt is 500
  7653. seconds. You can specify a different value in the ``local.conf``
  7654. file.
  7655. For more information on testing images, see the
  7656. ":ref:`test-manual/runtime-testing:performing automated runtime testing`"
  7657. section in the Yocto Project Test Environment Manual.
  7658. :term:`TEST_SERIALCONTROL_CMD`
  7659. For automated hardware testing, specifies the command to use to
  7660. connect to the serial console of the target machine under test. This
  7661. command simply needs to connect to the serial console and forward
  7662. that connection to standard input and output as any normal terminal
  7663. program does.
  7664. For example, to use the Picocom terminal program on serial device
  7665. ``/dev/ttyUSB0`` at 115200bps, you would set the variable as follows::
  7666. TEST_SERIALCONTROL_CMD = "picocom /dev/ttyUSB0 -b 115200"
  7667. :term:`TEST_SERIALCONTROL_EXTRA_ARGS`
  7668. For automated hardware testing, specifies additional arguments to
  7669. pass through to the command specified in
  7670. :term:`TEST_SERIALCONTROL_CMD`. Setting
  7671. :term:`TEST_SERIALCONTROL_EXTRA_ARGS` is optional. You can use it if you
  7672. wish, for example, to separate the machine-specific and
  7673. non-machine-specific parts of the command.
  7674. :term:`TEST_SERVER_IP`
  7675. The IP address of the build machine (host machine). This IP address
  7676. is usually automatically detected. However, if detection fails, this
  7677. variable needs to be set to the IP address of the build machine (i.e.
  7678. where the build is taking place).
  7679. .. note::
  7680. The :term:`TEST_SERVER_IP` variable is only used for a small number of
  7681. tests such as the "dnf" test suite, which needs to download packages
  7682. from ``WORKDIR/oe-rootfs-repo``.
  7683. :term:`TEST_SUITES`
  7684. An ordered list of tests (modules) to run against an image when
  7685. performing automated runtime testing.
  7686. The OpenEmbedded build system provides a core set of tests that can
  7687. be used against images.
  7688. .. note::
  7689. Currently, there is only support for running these tests under
  7690. QEMU.
  7691. Tests include ``ping``, ``ssh``, ``df`` among others. You can add
  7692. your own tests to the list of tests by appending :term:`TEST_SUITES` as
  7693. follows::
  7694. TEST_SUITES:append = " mytest"
  7695. Alternatively, you can
  7696. provide the "auto" option to have all applicable tests run against
  7697. the image::
  7698. TEST_SUITES:append = " auto"
  7699. Using this option causes the
  7700. build system to automatically run tests that are applicable to the
  7701. image. Tests that are not applicable are skipped.
  7702. The order in which tests are run is important. Tests that depend on
  7703. another test must appear later in the list than the test on which
  7704. they depend. For example, if you append the list of tests with two
  7705. tests (``test_A`` and ``test_B``) where ``test_B`` is dependent on
  7706. ``test_A``, then you must order the tests as follows::
  7707. TEST_SUITES = "test_A test_B"
  7708. For more information on testing images, see the
  7709. ":ref:`test-manual/runtime-testing:performing automated runtime testing`"
  7710. section in the Yocto Project Test Environment Manual.
  7711. :term:`TEST_TARGET`
  7712. Specifies the target controller to use when running tests against a
  7713. test image. The default controller to use is "qemu"::
  7714. TEST_TARGET = "qemu"
  7715. A target controller is a class that defines how an image gets
  7716. deployed on a target and how a target is started. A layer can extend
  7717. the controllers by adding a module in the layer's
  7718. ``/lib/oeqa/controllers`` directory and by inheriting the
  7719. ``BaseTarget`` class, which is an abstract class that cannot be used
  7720. as a value of :term:`TEST_TARGET`.
  7721. You can provide the following arguments with :term:`TEST_TARGET`:
  7722. - *"qemu":* Boots a QEMU image and runs the tests. See the
  7723. ":ref:`test-manual/runtime-testing:enabling runtime tests on qemu`" section
  7724. in the Yocto Project Test Environment Manual for more
  7725. information.
  7726. - *"simpleremote":* Runs the tests on target hardware that is
  7727. already up and running. The hardware can be on the network or it
  7728. can be a device running an image on QEMU. You must also set
  7729. :term:`TEST_TARGET_IP` when you use
  7730. "simpleremote".
  7731. .. note::
  7732. This argument is defined in
  7733. ``meta/lib/oeqa/controllers/simpleremote.py``.
  7734. For information on running tests on hardware, see the
  7735. ":ref:`test-manual/runtime-testing:enabling runtime tests on hardware`"
  7736. section in the Yocto Project Test Environment Manual.
  7737. :term:`TEST_TARGET_IP`
  7738. The IP address of your hardware under test. The :term:`TEST_TARGET_IP`
  7739. variable has no effect when :term:`TEST_TARGET` is
  7740. set to "qemu".
  7741. When you specify the IP address, you can also include a port. Here is
  7742. an example::
  7743. TEST_TARGET_IP = "192.168.1.4:2201"
  7744. Specifying a port is
  7745. useful when SSH is started on a non-standard port or in cases when
  7746. your hardware under test is behind a firewall or network that is not
  7747. directly accessible from your host and you need to do port address
  7748. translation.
  7749. :term:`TESTIMAGE_AUTO`
  7750. Automatically runs the series of automated tests for images when an
  7751. image is successfully built. Setting :term:`TESTIMAGE_AUTO` to "1" causes
  7752. any image that successfully builds to automatically boot under QEMU.
  7753. Using the variable also adds in dependencies so that any SDK for
  7754. which testing is requested is automatically built first.
  7755. These tests are written in Python making use of the ``unittest``
  7756. module, and the majority of them run commands on the target system
  7757. over ``ssh``. You can set this variable to "1" in your ``local.conf``
  7758. file in the :term:`Build Directory` to have the
  7759. OpenEmbedded build system automatically run these tests after an
  7760. image successfully builds:
  7761. TESTIMAGE_AUTO = "1"
  7762. For more information
  7763. on enabling, running, and writing these tests, see the
  7764. ":ref:`test-manual/runtime-testing:performing automated runtime testing`"
  7765. section in the Yocto Project Test Environment Manual and the
  7766. ":ref:`ref-classes-testimage`" section.
  7767. :term:`TESTIMAGE_FAILED_QA_ARTIFACTS`
  7768. When using the :ref:`ref-classes-testimage` class, the variable
  7769. :term:`TESTIMAGE_FAILED_QA_ARTIFACTS` lists space-separated paths on the
  7770. target to retrieve onto the host.
  7771. :term:`TESTSDK_SUITES`
  7772. When using the :ref:`ref-classes-testsdk` class, the
  7773. :term:`TESTSDK_SUITES` variable can be used to control the list of test
  7774. modules to run. The default value for this variable is an empty string
  7775. and all test modules that can be found are run.
  7776. :term:`THISDIR`
  7777. The directory in which the file BitBake is currently parsing is
  7778. located. Do not manually set this variable.
  7779. :term:`TIME`
  7780. The time the build was started. Times appear using the hour, minute,
  7781. and second (HMS) format (e.g. "140159" for one minute and fifty-nine
  7782. seconds past 1400 hours).
  7783. :term:`TMPDIR`
  7784. This variable is the base directory the OpenEmbedded build system
  7785. uses for all build output and intermediate files (other than the
  7786. shared state cache). By default, the :term:`TMPDIR` variable points to
  7787. ``tmp`` within the :term:`Build Directory`.
  7788. If you want to establish this directory in a location other than the
  7789. default, you can uncomment and edit the following statement in the
  7790. ``conf/local.conf`` file in the :term:`Source Directory`::
  7791. #TMPDIR = "${TOPDIR}/tmp"
  7792. An example use for this scenario is to set :term:`TMPDIR` to a local disk,
  7793. which does not use NFS, while having the :term:`Build Directory` use NFS.
  7794. The filesystem used by :term:`TMPDIR` must have standard filesystem
  7795. semantics (i.e. mixed-case files are unique, POSIX file locking, and
  7796. persistent inodes). Due to various issues with NFS and bugs in some
  7797. implementations, NFS does not meet this minimum requirement.
  7798. Consequently, :term:`TMPDIR` cannot be on NFS.
  7799. :term:`TOOLCHAIN`
  7800. The :term:`TOOLCHAIN` variable can be used to override the toolchain used
  7801. by a recipe.
  7802. The default value for this variable is the value of
  7803. :term:`PREFERRED_TOOLCHAIN`. See the description of
  7804. :term:`PREFERRED_TOOLCHAIN` to know the list of possible values for
  7805. :term:`TOOLCHAIN`.
  7806. It is possible to override the value of this variable from a recipe if
  7807. this recipe is known to support only a specific toolchain. For example,
  7808. the :oe_git:`Pseudo </openembedded-core/tree/meta/recipes-devtools/pseudo/pseudo_git.bb>`
  7809. recipe overrides this variable to "gcc", because Pseudo uses GCC compiler
  7810. built-ins options that the Clang/LLVM compiler does not provide.
  7811. :term:`TOOLCHAIN_HOST_TASK`
  7812. This variable lists packages the OpenEmbedded build system uses when
  7813. building an SDK, which contains a cross-development environment. The
  7814. packages specified by this variable are part of the toolchain set
  7815. that runs on the :term:`SDKMACHINE`, and each
  7816. package should usually have the prefix ``nativesdk-``. For example,
  7817. consider the following command when building an SDK::
  7818. $ bitbake -c populate_sdk imagename
  7819. In this case, a default list of packages is
  7820. set in this variable, but you can add additional packages to the
  7821. list. See the
  7822. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  7823. in the Yocto Project Application Development and the Extensible
  7824. Software Development Kit (eSDK) manual for more information.
  7825. For background information on cross-development toolchains in the
  7826. Yocto Project development environment, see the
  7827. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  7828. section in the Yocto Project Overview and Concepts Manual. For
  7829. information on setting up a cross-development environment, see the
  7830. :doc:`/sdk-manual/index` manual.
  7831. Note that this variable applies to building an SDK, not an eSDK,
  7832. in which case the :term:`TOOLCHAIN_HOST_TASK_ESDK` setting should be
  7833. used instead.
  7834. :term:`TOOLCHAIN_HOST_TASK_ESDK`
  7835. This variable allows to extend what is installed in the host
  7836. portion of an eSDK. This is similar to :term:`TOOLCHAIN_HOST_TASK`
  7837. applying to SDKs.
  7838. :term:`TOOLCHAIN_OPTIONS`
  7839. This variable holds extra options passed to the compiler and the linker
  7840. for non ``-native`` recipes as they have to point to their custom
  7841. ``sysroot`` folder pointed to by :term:`RECIPE_SYSROOT`::
  7842. TOOLCHAIN_OPTIONS = " --sysroot=${RECIPE_SYSROOT}"
  7843. Native recipes don't need this variable to be set, as they are
  7844. built for the host machine with the native compiler.
  7845. :term:`TOOLCHAIN_OUTPUTNAME`
  7846. This variable defines the name used for the toolchain output. The
  7847. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class sets
  7848. the :term:`TOOLCHAIN_OUTPUTNAME` variable as follows::
  7849. TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${SDK_VERSION}"
  7850. See
  7851. the :term:`SDK_NAME` and
  7852. :term:`SDK_VERSION` variables for additional
  7853. information.
  7854. :term:`TOOLCHAIN_NATIVE`
  7855. The :term:`TOOLCHAIN_NATIVE` variable can be used to override the
  7856. toolchain used by a :ref:`ref-classes-native` recipe.
  7857. The default value for this variable is the value of
  7858. :term:`PREFERRED_TOOLCHAIN` (in :ref:`ref-classes-native` contexts). See
  7859. the description of :term:`PREFERRED_TOOLCHAIN` to know the list of
  7860. possible values for :term:`TOOLCHAIN_NATIVE`.
  7861. It is possible to override the value of this variable from a recipe if
  7862. this recipe is known to support only a specific toolchain.
  7863. :term:`TOOLCHAIN_TARGET_TASK`
  7864. This variable lists packages the OpenEmbedded build system uses when
  7865. it creates the target part of an SDK (i.e. the part built for the
  7866. target hardware), which includes libraries and headers. Use this
  7867. variable to add individual packages to the part of the SDK that runs
  7868. on the target. See the
  7869. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  7870. in the Yocto Project Application Development and the Extensible
  7871. Software Development Kit (eSDK) manual for more information.
  7872. For background information on cross-development toolchains in the
  7873. Yocto Project development environment, see the
  7874. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  7875. section in the Yocto Project Overview and Concepts Manual. For
  7876. information on setting up a cross-development environment, see the
  7877. :doc:`/sdk-manual/index` manual.
  7878. :term:`TOPDIR`
  7879. See :term:`bitbake:TOPDIR` in the BitBake manual.
  7880. :term:`TRANSLATED_TARGET_ARCH`
  7881. A sanitized version of :term:`TARGET_ARCH`. This
  7882. variable is used where the architecture is needed in a value where
  7883. underscores are not allowed, for example within package filenames. In
  7884. this case, dash characters replace any underscore characters used in
  7885. :term:`TARGET_ARCH`.
  7886. Do not edit this variable.
  7887. :term:`TUNE_ARCH`
  7888. The GNU canonical architecture for a specific architecture (i.e.
  7889. ``arm``, ``armeb``, ``mips``, ``mips64``, and so forth). BitBake uses
  7890. this value to setup configuration.
  7891. :term:`TUNE_ARCH` definitions are specific to a given architecture. The
  7892. definitions can be a single static definition, or can be dynamically
  7893. adjusted. You can see details for a given CPU family by looking at
  7894. the architecture's ``README`` file. For example, the
  7895. ``meta/conf/machine/include/mips/README`` file in the
  7896. :term:`Source Directory` provides information for
  7897. :term:`TUNE_ARCH` specific to the ``mips`` architecture.
  7898. :term:`TUNE_ARCH` is tied closely to
  7899. :term:`TARGET_ARCH`, which defines the target
  7900. machine's architecture. The BitBake configuration file
  7901. (``meta/conf/bitbake.conf``) sets :term:`TARGET_ARCH` as follows::
  7902. TARGET_ARCH = "${TUNE_ARCH}"
  7903. The following list, which is by no means complete since architectures
  7904. are configurable, shows supported machine architectures:
  7905. - arm
  7906. - i586
  7907. - x86_64
  7908. - powerpc
  7909. - powerpc64
  7910. - mips
  7911. - mipsel
  7912. :term:`TUNE_ASARGS`
  7913. Specifies architecture-specific assembler flags for the target
  7914. system. The set of flags is based on the selected tune features.
  7915. :term:`TUNE_ASARGS` is set using the tune include files, which are
  7916. typically under ``meta/conf/machine/include/`` and are influenced
  7917. through :term:`TUNE_FEATURES`. For example, the
  7918. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  7919. for the x86 architecture as follows::
  7920. TUNE_ASARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-x32", "", d)}"
  7921. .. note::
  7922. Board Support Packages (BSPs) select the tune. The selected tune,
  7923. in turn, affects the tune variables themselves (i.e. the tune can
  7924. supply its own set of flags).
  7925. :term:`TUNE_CCARGS`
  7926. Specifies architecture-specific C compiler flags for the target
  7927. system. The set of flags is based on the selected tune features.
  7928. :term:`TUNE_CCARGS` is set using the tune include files, which are
  7929. typically under ``meta/conf/machine/include/`` and are influenced
  7930. through :term:`TUNE_FEATURES`.
  7931. .. note::
  7932. Board Support Packages (BSPs) select the tune. The selected tune,
  7933. in turn, affects the tune variables themselves (i.e. the tune can
  7934. supply its own set of flags).
  7935. :term:`TUNE_FEATURES`
  7936. Features used to "tune" a compiler for optimal use given a specific
  7937. processor. The features are defined within the tune files and allow
  7938. arguments (i.e. ``TUNE_*ARGS``) to be dynamically generated based on
  7939. the features.
  7940. The OpenEmbedded build system verifies the features to be sure they
  7941. are not conflicting and that they are supported.
  7942. The BitBake configuration file (``meta/conf/bitbake.conf``) defines
  7943. :term:`TUNE_FEATURES` as follows::
  7944. TUNE_FEATURES ??= "${TUNE_FEATURES:tune-${DEFAULTTUNE}}"
  7945. See the :term:`DEFAULTTUNE` variable for more information.
  7946. :term:`TUNE_LDARGS`
  7947. Specifies architecture-specific linker flags for the target system.
  7948. The set of flags is based on the selected tune features.
  7949. :term:`TUNE_LDARGS` is set using the tune include files, which are
  7950. typically under ``meta/conf/machine/include/`` and are influenced
  7951. through :term:`TUNE_FEATURES`. For example, the
  7952. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  7953. for the x86 architecture as follows::
  7954. TUNE_LDARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-m elf32_x86_64", "", d)}"
  7955. .. note::
  7956. Board Support Packages (BSPs) select the tune. The selected tune,
  7957. in turn, affects the tune variables themselves (i.e. the tune can
  7958. supply its own set of flags).
  7959. :term:`TUNE_PKGARCH`
  7960. The package architecture understood by the packaging system to define
  7961. the architecture, ABI, and tuning of output packages. The specific
  7962. tune is defined using the "_tune" override as follows::
  7963. TUNE_PKGARCH:tune-tune = "tune"
  7964. These tune-specific package architectures are defined in the machine
  7965. include files. Here is an example of the "core2-32" tuning as used in
  7966. the ``meta/conf/machine/include/x86/tune-core2.inc`` file::
  7967. TUNE_PKGARCH:tune-core2-32 = "core2-32"
  7968. :term:`TUNECONFLICTS[feature]`
  7969. Specifies CPU or Application Binary Interface (ABI) tuning features
  7970. that conflict with feature.
  7971. Known tuning conflicts are specified in the machine include files in
  7972. the :term:`Source Directory`. Here is an example from
  7973. the ``meta/conf/machine/include/mips/arch-mips.inc`` include file
  7974. that lists the "o32" and "n64" features as conflicting with the "n32"
  7975. feature::
  7976. TUNECONFLICTS[n32] = "o32 n64"
  7977. :term:`TUNEVALID[feature]`
  7978. Specifies a valid CPU or Application Binary Interface (ABI) tuning
  7979. feature. The specified feature is stored as a flag. Valid features
  7980. are specified in the machine include files (e.g.
  7981. ``meta/conf/machine/include/arm/arch-arm.inc``). Here is an example
  7982. from that file::
  7983. TUNEVALID[bigendian] = "Enable big-endian mode."
  7984. See the machine include files in the :term:`Source Directory`
  7985. for these features.
  7986. :term:`UBOOT_BINARY`
  7987. Specifies the name of the binary build by U-Boot.
  7988. :term:`UBOOT_CONFIG`
  7989. Configures one or more U-Boot configurations to build. Each
  7990. configuration can define the :term:`UBOOT_MACHINE` and optionally the
  7991. :term:`IMAGE_FSTYPES` and the :term:`UBOOT_BINARY`.
  7992. Here is an example from the ``meta-freescale`` layer. ::
  7993. UBOOT_CONFIG ??= "sdcard-ifc-secure-boot sdcard-ifc sdcard-qspi lpuart qspi secure-boot nor"
  7994. UBOOT_CONFIG[nor] = "ls1021atwr_nor_defconfig"
  7995. UBOOT_CONFIG[sdcard-ifc] = "ls1021atwr_sdcard_ifc_defconfig,,u-boot-with-spl-pbl.bin"
  7996. UBOOT_CONFIG[sdcard-qspi] = "ls1021atwr_sdcard_qspi_defconfig,,u-boot-with-spl-pbl.bin"
  7997. UBOOT_CONFIG[lpuart] = "ls1021atwr_nor_lpuart_defconfig"
  7998. UBOOT_CONFIG[qspi] = "ls1021atwr_qspi_defconfig"
  7999. UBOOT_CONFIG[secure-boot] = "ls1021atwr_nor_SECURE_BOOT_defconfig"
  8000. UBOOT_CONFIG[sdcard-ifc-secure-boot] = "ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig,,u-boot-with-spl-pbl.bin"
  8001. In this example, all possible seven configurations are selected. Each
  8002. configuration specifies "..._defconfig" as :term:`UBOOT_MACHINE`, and
  8003. the "sd..." configurations define an individual name for
  8004. :term:`UBOOT_BINARY`. No configuration defines a second parameter for
  8005. :term:`IMAGE_FSTYPES` to use for the U-Boot image.
  8006. For more information on how the :term:`UBOOT_CONFIG` is handled, see the
  8007. :ref:`ref-classes-uboot-config` class.
  8008. :term:`UBOOT_DTB_LOADADDRESS`
  8009. Specifies the load address for the dtb image used by U-Boot. During FIT
  8010. image creation, the :term:`UBOOT_DTB_LOADADDRESS` variable is used in
  8011. :ref:`ref-classes-kernel-fit-image` class to specify the load address to be
  8012. used in creating the dtb sections of Image Tree Source for the FIT image.
  8013. :term:`UBOOT_DTBO_LOADADDRESS`
  8014. Specifies the load address for the dtbo image used by U-Boot. During FIT
  8015. image creation, the :term:`UBOOT_DTBO_LOADADDRESS` variable is used in
  8016. :ref:`ref-classes-kernel-fit-image` class to specify the load address to be
  8017. used in creating the dtbo sections of Image Tree Source for the FIT image.
  8018. :term:`UBOOT_ENTRYPOINT`
  8019. Specifies the entry point for the U-Boot image. During U-Boot image
  8020. creation, the :term:`UBOOT_ENTRYPOINT` variable is passed as a
  8021. command-line parameter to the ``uboot-mkimage`` utility.
  8022. To pass a 64 bit address for FIT image creation, you will need to set:
  8023. - The :term:`FIT_ADDRESS_CELLS` variable for FIT image creation.
  8024. - The :term:`UBOOT_FIT_ADDRESS_CELLS` variable for U-Boot FIT image creation.
  8025. This variable is used by the :ref:`ref-classes-kernel-fit-image`,
  8026. :ref:`ref-classes-kernel-uimage`, :ref:`ref-classes-kernel`,
  8027. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  8028. classes.
  8029. :term:`UBOOT_ENV`
  8030. This variable allows to add additional environment variables or a script
  8031. to be installed together with U-Boot.
  8032. This file, typically ``uEnv.txt`` or ``boot.cmd``, is installed in
  8033. ``/boot`` as well as copied to the :term:`DEPLOYDIR` directory.
  8034. For machine configurations needing one of these files a ``.bbappend``
  8035. file should include it in the :term:`SRC_URI` of the U-Boot recipe.
  8036. If the variable :term:`UBOOT_ENV_SUFFIX` is set to ``scr`` the script is
  8037. packaged as a uImage (``mkimage -T script..``) otherwise it gets
  8038. installed verbatim.
  8039. Some examples:
  8040. - Adding a script ``boot.cmd`` as a uImage to ``/boot``::
  8041. UBOOT_ENV = "boot"
  8042. UBOOT_ENV_SUFFIX = "scr"
  8043. SRC_URI += "file://${UBOOT_ENV_SRC}"
  8044. - Adding a script ``uEnv.txt`` as a plain text file to ``/boot``::
  8045. UBOOT_ENV = "uEnv"
  8046. UBOOT_ENV_SUFFIX = "txt"
  8047. SRC_URI += "file://${UBOOT_ENV_BINARY}"
  8048. :term:`UBOOT_ENV_SRC_SUFFIX`
  8049. If :term:`UBOOT_ENV_SUFFIX` is set to ``scr`` this is the suffix of the
  8050. plain text script file as it is specified in the :term:`SRC_URI` of the
  8051. U-Boot recipe. It defaults to ``cmd``.
  8052. :term:`UBOOT_ENV_SUFFIX`
  8053. If this variable is set to ``scr`` the script referred to by
  8054. :term:`UBOOT_ENV` gets packaged as a uImage before it gets installed.
  8055. The default is ``txt`` which means the script is installed as-is, with
  8056. no modification.
  8057. :term:`UBOOT_FIT_ADDRESS_CELLS`
  8058. Specifies the value of the ``#address-cells`` value for the
  8059. description of the U-Boot FIT image.
  8060. The default value is set to "1" by the :ref:`ref-classes-uboot-sign`
  8061. class, which corresponds to 32 bit addresses.
  8062. For platforms that need to set 64 bit addresses in
  8063. :term:`UBOOT_LOADADDRESS` and :term:`UBOOT_ENTRYPOINT`, you need to
  8064. set this value to "2", as two 32 bit values (cells) will be needed
  8065. to represent such addresses.
  8066. Here is an example setting "0x400000000" as a load address::
  8067. UBOOT_FIT_ADDRESS_CELLS = "2"
  8068. UBOOT_LOADADDRESS= "0x04 0x00000000"
  8069. See `more details about #address-cells <https://elinux.org/Device_Tree_Usage#How_Addressing_Works>`__.
  8070. :term:`UBOOT_FIT_ARM_TRUSTED_FIRMWARE`
  8071. `Trusted Firmware-A (TF-A) <https://www.trustedfirmware.org/projects/tf-a>`__
  8072. is a reference implementation of secure world software for Arm A-Profile
  8073. architectures (Armv8-A and Armv7-A), including an Exception Level 3 (EL3)
  8074. Secure Monitor. This variable enables the generation of a U-Boot FIT
  8075. image with a Trusted Firmware-A (TF-A) binary.
  8076. Its default value is "0", so set it to "1" to enable this functionality::
  8077. UBOOT_FIT_ARM_TRUSTED_FIRMWARE = "1"
  8078. :term:`UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE`
  8079. Specifies the path to the Trusted Firmware-A (TF-A) binary. Its default
  8080. value is "bl31.bin"::
  8081. UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE ?= "bl31.bin"
  8082. If a relative path is provided, the file is expected to be relative to
  8083. U-Boot's :term:`B` directory. An absolute path can be provided too,
  8084. e.g.::
  8085. UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE ?= "${DEPLOY_DIR_IMAGE}/bl31.bin"
  8086. If the Trusted Firmware-A (TF-A) binary is built in a separate recipe,
  8087. you must add the necessary dependency in a U-Boot ``.bbappend`` file. The
  8088. recipe name for Trusted Firmware-A (TF-A) binary is
  8089. ``trusted-firmware-a``, which comes from the
  8090. :yocto_git:`meta-arm </meta-arm>` layer::
  8091. do_compile[depends] += "trusted-firmware-a:do_deploy"
  8092. :term:`UBOOT_FIT_CONF_FIRMWARE`
  8093. Adds one image to the ``firmware`` property of the configuration node of
  8094. the U-Boot Image Tree Source (ITS). Sets the ``firmware`` property to
  8095. select the image to boot first::
  8096. UBOOT_FIT_CONF_FIRMWARE = "fwa"
  8097. If not set, the first entry in "loadables" is used to boot instead.
  8098. :term:`UBOOT_FIT_CONF_USER_LOADABLES`
  8099. Adds one or more user-defined images to the ``loadables`` property of the
  8100. configuration node of the U-Boot Image Tree Source (ITS). This variable
  8101. is handled by the local shell in the recipe so appropriate escaping
  8102. should be done, e.g. escaping quotes.::
  8103. UBOOT_FIT_CONF_USER_LOADABLES = '\"fwa\", \"fwb\"'
  8104. :term:`UBOOT_FIT_DESC`
  8105. Specifies the description string encoded into a U-Boot fitImage. The default
  8106. value is set by the :ref:`ref-classes-uboot-sign` class as follows::
  8107. UBOOT_FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
  8108. :term:`UBOOT_FIT_GENERATE_KEYS`
  8109. Decides whether to generate the keys for signing the U-Boot fitImage if
  8110. they don't already exist. The keys are created in :term:`SPL_SIGN_KEYDIR`.
  8111. The default value is "0".
  8112. Enable this as follows::
  8113. UBOOT_FIT_GENERATE_KEYS = "1"
  8114. This variable is used in the :ref:`ref-classes-uboot-sign` class.
  8115. :term:`UBOOT_FIT_HASH_ALG`
  8116. Specifies the hash algorithm used in creating the U-Boot FIT Image.
  8117. It is set by default to ``sha256`` by the :ref:`ref-classes-uboot-sign`
  8118. class.
  8119. :term:`UBOOT_FIT_KEY_GENRSA_ARGS`
  8120. Arguments to ``openssl genrsa`` for generating a RSA private key for
  8121. signing the U-Boot FIT image. The default value of this variable
  8122. is set to "-F4" by the :ref:`ref-classes-uboot-sign` class.
  8123. :term:`UBOOT_FIT_KEY_REQ_ARGS`
  8124. Arguments to ``openssl req`` for generating a certificate for signing
  8125. the U-Boot FIT image. The default value is "-batch -new" by the
  8126. :ref:`ref-classes-uboot-sign` class, "batch" for
  8127. non interactive mode and "new" for generating new keys.
  8128. :term:`UBOOT_FIT_KEY_SIGN_PKCS`
  8129. Format for the public key certificate used for signing the U-Boot FIT
  8130. image. The default value is set to "x509" by the
  8131. :ref:`ref-classes-uboot-sign` class.
  8132. :term:`UBOOT_FIT_SIGN_ALG`
  8133. Specifies the signature algorithm used in creating the U-Boot FIT Image.
  8134. This variable is set by default to "rsa2048" by the
  8135. :ref:`ref-classes-uboot-sign` class.
  8136. :term:`UBOOT_FIT_SIGN_NUMBITS`
  8137. Size of the private key used in signing the U-Boot FIT image, in number
  8138. of bits. The default value for this variable is set to "2048"
  8139. by the :ref:`ref-classes-uboot-sign` class.
  8140. :term:`UBOOT_FIT_TEE`
  8141. A Trusted Execution Environment (TEE) is a secure environment for
  8142. executing code, ensuring high levels of trust in asset management within
  8143. the surrounding system. This variable enables the generation of a U-Boot
  8144. FIT image with a Trusted Execution Environment (TEE) binary.
  8145. Its default value is "0", so set it to "1" to enable this functionality::
  8146. UBOOT_FIT_TEE = "1"
  8147. :term:`UBOOT_FIT_TEE_IMAGE`
  8148. Specifies the path to the Trusted Execution Environment (TEE) binary. Its
  8149. default value is "tee-raw.bin"::
  8150. UBOOT_FIT_TEE_IMAGE ?= "tee-raw.bin"
  8151. If a relative path is provided, the file is expected to be relative to
  8152. U-Boot's :term:`B` directory. An absolute path can be provided too,
  8153. e.g.::
  8154. UBOOT_FIT_TEE_IMAGE ?= "${DEPLOY_DIR_IMAGE}/tee-raw.bin"
  8155. If the Trusted Execution Environment (TEE) binary is built in a separate
  8156. recipe, you must add the necessary dependency in a U-Boot ``.bbappend``
  8157. file. The recipe name for Trusted Execution Environment (TEE) binary is
  8158. ``optee-os``, which comes from the :yocto_git:`meta-arm </meta-arm>`
  8159. layer::
  8160. do_compile[depends] += "optee-os:do_deploy"
  8161. :term:`UBOOT_FIT_USER_SETTINGS`
  8162. Add a user-specific snippet to the U-Boot Image Tree Source (ITS). This
  8163. variable allows the user to add one or more user-defined ``/images`` node
  8164. to the U-Boot Image Tree Source (ITS). For more details, please refer to
  8165. https://fitspec.osfw.foundation/\ .
  8166. The original content of the U-Boot Image Tree Source (ITS) is as
  8167. follows::
  8168. images {
  8169. uboot {
  8170. description = "U-Boot image";
  8171. data = /incbin/("u-boot-nodtb.bin");
  8172. type = "standalone";
  8173. os = "u-boot";
  8174. arch = "";
  8175. compression = "none";
  8176. load = <0x80000000>;
  8177. entry = <0x80000000>;
  8178. };
  8179. };
  8180. Users can include their custom ITS snippet in this variable, e.g.::
  8181. UBOOT_FIT_FWA_ITS = '\
  8182. fwa {\n\
  8183. description = \"FW A\";\n\
  8184. data = /incbin/(\"fwa.bin\");\n\
  8185. type = \"firmware\";\n\
  8186. arch = \"\";\n\
  8187. os = \"\";\n\
  8188. load = <0xb2000000>;\n\
  8189. entry = <0xb2000000>;\n\
  8190. compression = \"none\";\n\
  8191. };\n\
  8192. '
  8193. UBOOT_FIT_USER_SETTINGS = "${UBOOT_FIT_FWA_ITS}"
  8194. This variable is handled by the local shell in the recipe so appropriate
  8195. escaping should be done, e.g. escaping quotes and adding newlines with
  8196. ``\n``.
  8197. The generated content of the U-Boot Image Tree Source (ITS) is as
  8198. follows::
  8199. images {
  8200. uboot {
  8201. description = "U-Boot image";
  8202. data = /incbin/("u-boot-nodtb.bin");
  8203. type = "standalone";
  8204. os = "u-boot";
  8205. arch = "";
  8206. compression = "none";
  8207. load = <0x80000000>;
  8208. entry = <0x80000000>;
  8209. };
  8210. fwa {
  8211. description = "FW A";
  8212. data = /incbin/("fwa.bin");
  8213. type = "firmware";
  8214. arch = "";
  8215. os = "";
  8216. load = <0xb2000000>;
  8217. entry = <0xb2000000>;
  8218. compression = "none";
  8219. };
  8220. };
  8221. :term:`UBOOT_FITIMAGE_ENABLE`
  8222. This variable allows to generate a FIT image for U-Boot, which is one
  8223. of the ways to implement a verified boot process.
  8224. Its default value is "0", so set it to "1" to enable this functionality::
  8225. UBOOT_FITIMAGE_ENABLE = "1"
  8226. See the :ref:`ref-classes-uboot-sign` class for details.
  8227. :term:`UBOOT_LOADADDRESS`
  8228. Specifies the load address for the U-Boot image. During U-Boot image
  8229. creation, the :term:`UBOOT_LOADADDRESS` variable is passed as a
  8230. command-line parameter to the ``uboot-mkimage`` utility.
  8231. To pass a 64 bit address, you will also need to set:
  8232. - The :term:`FIT_ADDRESS_CELLS` variable for FIT image creation.
  8233. - The :term:`UBOOT_FIT_ADDRESS_CELLS` variable for U-Boot FIT image creation.
  8234. This variable is used by the :ref:`ref-classes-kernel-fit-image`,
  8235. :ref:`ref-classes-kernel-uimage`, :ref:`ref-classes-kernel`,
  8236. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  8237. classes.
  8238. :term:`UBOOT_LOCALVERSION`
  8239. Appends a string to the name of the local version of the U-Boot
  8240. image. For example, assuming the version of the U-Boot image built
  8241. was "2013.10", the full version string reported by U-Boot would be
  8242. "2013.10-yocto" given the following statement::
  8243. UBOOT_LOCALVERSION = "-yocto"
  8244. :term:`UBOOT_MACHINE`
  8245. Specifies the value passed on the ``make`` command line when building
  8246. a U-Boot image. The value indicates the target platform
  8247. configuration. You typically set this variable from the machine
  8248. configuration file (i.e. ``conf/machine/machine_name.conf``).
  8249. Please see the "Selection of Processor Architecture and Board Type"
  8250. section in the U-Boot README for valid values for this variable.
  8251. :term:`UBOOT_MAKE_TARGET`
  8252. Specifies the target called in the ``Makefile``. The default target
  8253. is "all".
  8254. :term:`UBOOT_MKIMAGE`
  8255. Specifies the name of the mkimage command as used by the
  8256. :ref:`ref-classes-kernel-fit-image` class to assemble
  8257. the FIT image. This can be used to substitute an alternative command, wrapper
  8258. script or function if desired. The default is "uboot-mkimage".
  8259. :term:`UBOOT_MKIMAGE_DTCOPTS`
  8260. Options for the device tree compiler passed to ``mkimage -D`` feature
  8261. while creating a FIT image with the :ref:`ref-classes-kernel-fit-image`
  8262. class. If :term:`UBOOT_MKIMAGE_DTCOPTS` is not set then the
  8263. :ref:`ref-classes-kernel-fit-image` class will not pass the ``-D`` option
  8264. to ``mkimage``.
  8265. This variable is also used by the :ref:`ref-classes-uboot-sign` class.
  8266. :term:`UBOOT_MKIMAGE_KERNEL_TYPE`
  8267. Specifies the type argument for the kernel as passed to ``uboot-mkimage``.
  8268. The default value is "kernel".
  8269. :term:`UBOOT_MKIMAGE_SIGN`
  8270. Specifies the name of the mkimage command as used by the
  8271. :ref:`ref-classes-kernel-fit-image` class to sign
  8272. the FIT image after it has been assembled (if enabled). This can be used
  8273. to substitute an alternative command, wrapper script or function if
  8274. desired. The default is "${:term:`UBOOT_MKIMAGE`}".
  8275. :term:`UBOOT_MKIMAGE_SIGN_ARGS`
  8276. Optionally specifies additional arguments for the
  8277. :ref:`ref-classes-kernel-fit-image` class to pass to the
  8278. mkimage command when signing the FIT image.
  8279. :term:`UBOOT_RD_ENTRYPOINT`
  8280. Specifies the entrypoint for the RAM disk image. During FIT image
  8281. creation, the :term:`UBOOT_RD_ENTRYPOINT` variable is used in
  8282. :ref:`ref-classes-kernel-fit-image` class to specify the entrypoint to be
  8283. used in creating the Image Tree Source for the FIT image.
  8284. :term:`UBOOT_RD_LOADADDRESS`
  8285. Specifies the load address for the RAM disk image. During FIT image
  8286. creation, the :term:`UBOOT_RD_LOADADDRESS` variable is used in
  8287. :ref:`ref-classes-kernel-fit-image` class to specify the load address to
  8288. be used in creating the Image Tree Source for the FIT image.
  8289. :term:`UBOOT_SIGN_ENABLE`
  8290. Enable signing of FIT image. The default value is "0".
  8291. This variable is used by the :ref:`ref-classes-kernel-fit-image`,
  8292. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  8293. classes.
  8294. :term:`UBOOT_SIGN_KEYDIR`
  8295. Location of the directory containing the RSA key and certificate used for
  8296. signing FIT image, used by the :ref:`ref-classes-kernel-fit-image` and
  8297. :ref:`ref-classes-uboot-sign` classes.
  8298. :term:`UBOOT_SIGN_KEYNAME`
  8299. The name of keys used by the :ref:`ref-classes-kernel-fit-image` class
  8300. for signing U-Boot FIT image stored in the :term:`UBOOT_SIGN_KEYDIR`
  8301. directory. If we have for example a ``dev.key`` key and a ``dev.crt``
  8302. certificate stored in the :term:`UBOOT_SIGN_KEYDIR` directory, you will
  8303. have to set :term:`UBOOT_SIGN_KEYNAME` to ``dev``.
  8304. :term:`UBOOT_SUFFIX`
  8305. Points to the generated U-Boot extension. For example, ``u-boot.sb``
  8306. has a ``.sb`` extension.
  8307. The default U-Boot extension is ``.bin``
  8308. :term:`UBOOT_TARGET`
  8309. Specifies the target used for building U-Boot. The target is passed
  8310. directly as part of the "make" command (e.g. SPL and AIS). If you do
  8311. not specifically set this variable, the OpenEmbedded build process
  8312. passes and uses "all" for the target during the U-Boot building
  8313. process.
  8314. :term:`UBOOT_VERSION`
  8315. When naming the files that are installed and deployed, the package version
  8316. (:term:`PV`) and revision (:term:`PR`) are part of the filename. The
  8317. :term:`UBOOT_VERSION` variable contains this information, but can be
  8318. overridden if desired.
  8319. :term:`UKIFY_CMD`
  8320. When inheriting the :ref:`ref-classes-uki` class,
  8321. `ukify <https://www.freedesktop.org/software/systemd/man/latest/ukify.html>`__ command to build
  8322. `Unified Kernel Image (UKI) <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  8323. Defaults to ``ukify build``.
  8324. :term:`UKI_CMDLINE`
  8325. When inheriting the :ref:`ref-classes-uki` class, the kernel command line
  8326. to use when booting the `Unified Kernel Image (UKI)
  8327. <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  8328. Defaults to ``rootwait root=LABEL=root console=${KERNEL_CONSOLE}``.
  8329. :term:`UKI_CONFIG_FILE`
  8330. When inheriting the :ref:`ref-classes-uki` class, an optional config
  8331. file for the `ukify
  8332. <https://www.freedesktop.org/software/systemd/man/latest/ukify.html>`__
  8333. command.
  8334. :term:`UKI_FILENAME`
  8335. When inheriting the :ref:`ref-classes-uki` class, the output file name
  8336. for the generated `Unified Kernel Image (UKI)
  8337. <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  8338. Defaults to ``uki.efi``.
  8339. :term:`UKI_KERNEL_FILENAME`
  8340. When inheriting the :ref:`ref-classes-uki` class, the kernel image file
  8341. name to use as input. Defaults to :term:`KERNEL_IMAGETYPE`.
  8342. :term:`UKI_SB_CERT`
  8343. When inheriting the :ref:`ref-classes-uki` class, optional UEFI
  8344. secureboot certificate matching the private key in :term:`UKI_SB_KEY`.
  8345. :term:`UKI_SB_KEY`
  8346. When inheriting the :ref:`ref-classes-uki` class, optional UEFI
  8347. secureboot private key to sign the `Unified Kernel Image (UKI)
  8348. <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  8349. :term:`UNKNOWN_CONFIGURE_OPT_IGNORE`
  8350. Specifies a list of options that, if reported by the configure script
  8351. as being invalid, should not generate a warning during the
  8352. :ref:`ref-tasks-configure` task. Normally, invalid
  8353. configure options are simply not passed to the configure script (e.g.
  8354. should be removed from :term:`EXTRA_OECONF` or
  8355. :term:`PACKAGECONFIG_CONFARGS`).
  8356. However, there are common options that are passed to all
  8357. configure scripts at a class level, but might not be valid for some
  8358. configure scripts. Therefore warnings about these options are useless.
  8359. For these cases, the options are added to :term:`UNKNOWN_CONFIGURE_OPT_IGNORE`.
  8360. The configure arguments check that uses
  8361. :term:`UNKNOWN_CONFIGURE_OPT_IGNORE` is part of the
  8362. :ref:`ref-classes-insane` class and is only enabled if the
  8363. recipe inherits the :ref:`ref-classes-autotools` class.
  8364. :term:`UNPACKDIR`
  8365. This variable, used by the :ref:`ref-classes-base` class,
  8366. specifies where fetches sources should be unpacked by the
  8367. :ref:`ref-tasks-unpack` task.
  8368. :term:`UPDATERCPN`
  8369. For recipes inheriting the
  8370. :ref:`ref-classes-update-rc.d` class, :term:`UPDATERCPN`
  8371. specifies the package that contains the initscript that is enabled.
  8372. The default value is "${PN}". Given that almost all recipes that
  8373. install initscripts package them in the main package for the recipe,
  8374. you rarely need to set this variable in individual recipes.
  8375. :term:`UPSTREAM_CHECK_COMMITS`
  8376. You can perform a per-recipe check for what the latest upstream
  8377. source code version is by calling ``devtool latest-version recipe``. If
  8378. the recipe source code is provided from Git repositories, but
  8379. releases are not identified by Git tags, set :term:`UPSTREAM_CHECK_COMMITS`
  8380. to ``1`` in the recipe, and the OpenEmbedded build system
  8381. will compare the latest commit with the one currently specified
  8382. by the recipe (:term:`SRCREV`)::
  8383. UPSTREAM_CHECK_COMMITS = "1"
  8384. :term:`UPSTREAM_CHECK_GITTAGREGEX`
  8385. You can perform a per-recipe check for what the latest upstream
  8386. source code version is by calling ``devtool latest-version recipe``. If
  8387. the recipe source code is provided from Git repositories, the
  8388. OpenEmbedded build system determines the latest upstream version by
  8389. picking the latest tag from the list of all repository tags.
  8390. You can use the :term:`UPSTREAM_CHECK_GITTAGREGEX` variable to provide a
  8391. regular expression to filter only the relevant tags should the
  8392. default filter not work correctly::
  8393. UPSTREAM_CHECK_GITTAGREGEX = "git_tag_regex"
  8394. :term:`UPSTREAM_CHECK_REGEX`
  8395. Use the :term:`UPSTREAM_CHECK_REGEX` variable to specify a different
  8396. regular expression instead of the default one when the package
  8397. checking system is parsing the page found using
  8398. :term:`UPSTREAM_CHECK_URI`::
  8399. UPSTREAM_CHECK_REGEX = "package_regex"
  8400. :term:`UPSTREAM_CHECK_URI`
  8401. You can perform a per-recipe check for what the latest upstream
  8402. source code version is by calling ``devtool latest-version recipe``. If
  8403. the source code is provided from tarballs, the latest version is
  8404. determined by fetching the directory listing where the tarball is and
  8405. attempting to find a later tarball. When this approach does not work,
  8406. you can use :term:`UPSTREAM_CHECK_URI` to provide a different URI that
  8407. contains the link to the latest tarball::
  8408. UPSTREAM_CHECK_URI = "recipe_url"
  8409. :term:`UPSTREAM_VERSION_UNKNOWN`
  8410. You can perform a per-recipe check for what the latest upstream
  8411. source code version is by calling ``devtool latest-version recipe``.
  8412. If no combination of the :term:`UPSTREAM_CHECK_URI`, :term:`UPSTREAM_CHECK_REGEX`,
  8413. :term:`UPSTREAM_CHECK_GITTAGREGEX` and :term:`UPSTREAM_CHECK_COMMITS` variables in
  8414. the recipe allows to determine what the latest upstream version is,
  8415. you can set :term:`UPSTREAM_VERSION_UNKNOWN` to ``1`` in the recipe
  8416. to acknowledge that the check cannot be performed::
  8417. UPSTREAM_VERSION_UNKNOWN = "1"
  8418. :term:`USE_DEVFS`
  8419. Determines if ``devtmpfs`` is used for ``/dev`` population. The
  8420. default value used for :term:`USE_DEVFS` is "1" when no value is
  8421. specifically set. Typically, you would set :term:`USE_DEVFS` to "0" for a
  8422. statically populated ``/dev`` directory.
  8423. See the ":ref:`dev-manual/device-manager:selecting a device manager`" section in
  8424. the Yocto Project Development Tasks Manual for information on how to
  8425. use this variable.
  8426. :term:`USE_VT`
  8427. When using
  8428. :ref:`SysVinit <dev-manual/new-recipe:enabling system services>`,
  8429. determines whether or not to run a :wikipedia:`getty <Getty_(Unix)>`
  8430. on any virtual terminals in order to enable logging in through those
  8431. terminals.
  8432. The default value used for :term:`USE_VT` is "1" when no default value is
  8433. specifically set. Typically, you would set :term:`USE_VT` to "0" in the
  8434. machine configuration file for machines that do not have a graphical
  8435. display attached and therefore do not need virtual terminal
  8436. functionality.
  8437. :term:`USER_CLASSES`
  8438. A list of classes to globally inherit. These classes are used by the
  8439. OpenEmbedded build system to enable extra features.
  8440. Classes inherited using :term:`USER_CLASSES` must be located in the
  8441. ``classes-global/`` or ``classes/`` subdirectories.
  8442. The default list is set in your ``local.conf`` file::
  8443. USER_CLASSES ?= "buildstats"
  8444. For more information, see
  8445. ``meta-poky/conf/templates/default/local.conf.sample`` in the
  8446. :term:`Source Directory`.
  8447. :term:`USERADD_DEPENDS`
  8448. Specifies a list of recipes that create users / groups (via
  8449. :term:`USERADD_PARAM` / :term:`GROUPADD_PARAM`) which a recipe
  8450. depends upon. This ensures that those users / groups are available
  8451. when building a recipe.
  8452. :term:`USERADD_ERROR_DYNAMIC`
  8453. If set to ``error``, forces the OpenEmbedded build system to produce
  8454. an error if the user identification (``uid``) and group
  8455. identification (``gid``) values are not defined in any of the files
  8456. listed in :term:`USERADD_UID_TABLES` and
  8457. :term:`USERADD_GID_TABLES`. If set to
  8458. ``warn``, a warning will be issued instead.
  8459. The default behavior for the build system is to dynamically apply
  8460. ``uid`` and ``gid`` values. Consequently, the
  8461. :term:`USERADD_ERROR_DYNAMIC` variable is by default not set. If you plan
  8462. on using statically assigned ``gid`` and ``uid`` values, you should
  8463. set the :term:`USERADD_ERROR_DYNAMIC` variable in your ``local.conf``
  8464. file as follows::
  8465. USERADD_ERROR_DYNAMIC = "error"
  8466. Overriding the
  8467. default behavior implies you are going to also take steps to set
  8468. static ``uid`` and ``gid`` values through use of the
  8469. :term:`USERADDEXTENSION`,
  8470. :term:`USERADD_UID_TABLES`, and
  8471. :term:`USERADD_GID_TABLES` variables.
  8472. .. note::
  8473. There is a difference in behavior between setting
  8474. :term:`USERADD_ERROR_DYNAMIC` to ``error`` and setting it to ``warn``.
  8475. When it is set to ``warn``, the build system will report a warning for
  8476. every undefined ``uid`` and ``gid`` in any recipe. But when it is set
  8477. to ``error``, it will only report errors for recipes that are actually
  8478. built.
  8479. This saves you from having to add static IDs for recipes that you
  8480. know will never be built.
  8481. :term:`USERADD_GID_TABLES`
  8482. Specifies a password file to use for obtaining static group
  8483. identification (``gid``) values when the OpenEmbedded build system
  8484. adds a group to the system during package installation.
  8485. When applying static group identification (``gid``) values, the
  8486. OpenEmbedded build system looks in :term:`BBPATH` for a
  8487. ``files/group`` file and then applies those ``uid`` values. Set the
  8488. variable as follows in your ``local.conf`` file::
  8489. USERADD_GID_TABLES = "files/group"
  8490. .. note::
  8491. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  8492. causes the build system to use static ``gid`` values.
  8493. :term:`USERADD_PACKAGES`
  8494. When inheriting the :ref:`ref-classes-useradd` class,
  8495. this variable specifies the individual packages within the recipe
  8496. that require users and/or groups to be added.
  8497. You must set this variable if the recipe inherits the class. For
  8498. example, the following enables adding a user for the main package in
  8499. a recipe::
  8500. USERADD_PACKAGES = "${PN}"
  8501. .. note::
  8502. It follows that if you are going to use the :term:`USERADD_PACKAGES`
  8503. variable, you need to set one or more of the :term:`USERADD_PARAM`,
  8504. :term:`GROUPADD_PARAM`, or :term:`GROUPMEMS_PARAM` variables.
  8505. :term:`USERADD_PARAM`
  8506. When inheriting the :ref:`ref-classes-useradd` class,
  8507. this variable specifies for a package what parameters should pass to
  8508. the ``useradd`` command if you add a user to the system when the
  8509. package is installed.
  8510. Here is an example from the ``dbus`` recipe::
  8511. USERADD_PARAM:${PN} = "--system --home ${localstatedir}/lib/dbus \
  8512. --no-create-home --shell /bin/false \
  8513. --user-group messagebus"
  8514. For information on the
  8515. standard Linux shell command ``useradd``, see
  8516. https://linux.die.net/man/8/useradd.
  8517. :term:`USERADD_UID_TABLES`
  8518. Specifies a password file to use for obtaining static user
  8519. identification (``uid``) values when the OpenEmbedded build system
  8520. adds a user to the system during package installation.
  8521. When applying static user identification (``uid``) values, the
  8522. OpenEmbedded build system looks in :term:`BBPATH` for a
  8523. ``files/passwd`` file and then applies those ``uid`` values. Set the
  8524. variable as follows in your ``local.conf`` file::
  8525. USERADD_UID_TABLES = "files/passwd"
  8526. .. note::
  8527. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  8528. causes the build system to use static ``uid`` values.
  8529. :term:`USERADDEXTENSION`
  8530. When set to "useradd-staticids", causes the OpenEmbedded build system
  8531. to base all user and group additions on a static ``passwd`` and
  8532. ``group`` files found in :term:`BBPATH`.
  8533. To use static user identification (``uid``) and group identification
  8534. (``gid``) values, set the variable as follows in your ``local.conf``
  8535. file: USERADDEXTENSION = "useradd-staticids"
  8536. .. note::
  8537. Setting this variable to use static ``uid`` and ``gid``
  8538. values causes the OpenEmbedded build system to employ the
  8539. :ref:`ref-classes-useradd` class.
  8540. If you use static ``uid`` and ``gid`` information, you must also
  8541. specify the ``files/passwd`` and ``files/group`` files by setting the
  8542. :term:`USERADD_UID_TABLES` and
  8543. :term:`USERADD_GID_TABLES` variables.
  8544. Additionally, you should also set the
  8545. :term:`USERADD_ERROR_DYNAMIC` variable.
  8546. :term:`VIRTUAL-RUNTIME`
  8547. :term:`VIRTUAL-RUNTIME` is a commonly used prefix for defining virtual
  8548. packages for runtime usage, typically for use in :term:`RDEPENDS`
  8549. or in image definitions.
  8550. An example is ``VIRTUAL-RUNTIME_base-utils`` that makes it possible
  8551. to either use BusyBox based utilities::
  8552. VIRTUAL-RUNTIME_base-utils = "busybox"
  8553. or their full featured implementations from GNU Coreutils
  8554. and other projects::
  8555. VIRTUAL-RUNTIME_base-utils = "packagegroup-core-base-utils"
  8556. Here are two examples using this virtual runtime package. The
  8557. first one is in :yocto_git:`initramfs-framework_1.0.bb
  8558. </poky/tree/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb?h=scarthgap>`::
  8559. RDEPENDS:${PN} += "${VIRTUAL-RUNTIME_base-utils}"
  8560. The second example is in the :yocto_git:`core-image-initramfs-boot
  8561. </poky/tree/meta/recipes-core/images/core-image-initramfs-boot.bb?h=scarthgap>`
  8562. image definition::
  8563. PACKAGE_INSTALL = "${INITRAMFS_SCRIPTS} ${VIRTUAL-RUNTIME_base-utils} base-passwd"
  8564. :term:`WARN_QA`
  8565. Specifies the quality assurance checks whose failures are reported as
  8566. warnings by the OpenEmbedded build system. You set this variable in
  8567. your distribution configuration file. For a list of the checks you
  8568. can control with this variable, see the
  8569. ":ref:`ref-classes-insane`" section.
  8570. :term:`WATCHDOG_RUNTIME_SEC`
  8571. For the ``systemd`` recipe, this controls the value of the
  8572. ``RuntimeWatchdogSec`` option in ``/etc/systemd/system.conf``. The default
  8573. value is an empty string.
  8574. :term:`WATCHDOG_TIMEOUT`
  8575. Specifies the timeout in seconds used by the ``watchdog-config`` recipe
  8576. and also by ``systemd`` during reboot. The default is 60 seconds.
  8577. :term:`WIC_CREATE_EXTRA_ARGS`
  8578. If the :term:`IMAGE_FSTYPES` variable contains "wic", the build
  8579. will generate a
  8580. :ref:`Wic image <dev-manual/wic:creating partitioned images using wic>`
  8581. automatically when BitBake builds an image recipe. As part of
  8582. this process BitBake will invoke the "`wic create`" command. The
  8583. :term:`WIC_CREATE_EXTRA_ARGS` variable is placed at the end of this
  8584. command which allows the user to supply additional arguments.
  8585. One such useful purpose for this mechanism is to add the ``-D`` (or
  8586. ``--debug``) argument to the "`wic create`" command. This increases the
  8587. amount of debugging information written out to the Wic log during the
  8588. Wic creation process.
  8589. :term:`WIC_SECTOR_SIZE`
  8590. The variable :term:`WIC_SECTOR_SIZE` controls the sector size of Wic
  8591. images. In the background, this controls the value of the
  8592. ``PARTED_SECTOR_SIZE`` environment variable passed to the ``parted``
  8593. command-line utility, used to generated the images. The default value is
  8594. ``512``.
  8595. For more information on how to create Wic images, see the
  8596. ":ref:`dev-manual/wic:creating partitioned images using wic`" section in
  8597. the Yocto Project Development Tasks Manual.
  8598. :term:`WIRELESS_DAEMON`
  8599. For ``connman`` and ``packagegroup-base``, specifies the wireless
  8600. daemon to use. The default is "wpa-supplicant" (note that the value
  8601. uses a dash and not an underscore).
  8602. :term:`WKS_FILE`
  8603. Specifies the location of the Wic kickstart file that is used by the
  8604. OpenEmbedded build system to create a partitioned image
  8605. (``image.wic``). For information on how to create a partitioned
  8606. image, see the
  8607. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  8608. section in the Yocto Project Development Tasks Manual. For details on
  8609. the kickstart file format, see the ":doc:`/ref-manual/kickstart`" Chapter.
  8610. :term:`WKS_FILE_DEPENDS`
  8611. When placed in the recipe that builds your image, this variable lists
  8612. build-time dependencies. The :term:`WKS_FILE_DEPENDS` variable is only
  8613. applicable when Wic images are active (i.e. when
  8614. :term:`IMAGE_FSTYPES` contains entries related
  8615. to Wic). If your recipe does not create Wic images, the variable has
  8616. no effect.
  8617. The :term:`WKS_FILE_DEPENDS` variable is similar to the
  8618. :term:`DEPENDS` variable. When you use the variable in
  8619. your recipe that builds the Wic image, dependencies you list in the
  8620. :term:`WKS_FILE_DEPENDS` variable are added to the :term:`DEPENDS` variable.
  8621. With the :term:`WKS_FILE_DEPENDS` variable, you have the possibility to
  8622. specify a list of additional dependencies (e.g. native tools,
  8623. bootloaders, and so forth), that are required to build Wic images.
  8624. Here is an example::
  8625. WKS_FILE_DEPENDS = "some-native-tool"
  8626. In the
  8627. previous example, some-native-tool would be replaced with an actual
  8628. native tool on which the build would depend.
  8629. :term:`WKS_FILES`
  8630. Specifies a list of candidate Wic kickstart files to be used by the
  8631. OpenEmbedded build system to create a partitioned image. Only the
  8632. first one that is found, from left to right, will be used.
  8633. This is only useful when there are multiple ``.wks`` files that can be
  8634. used to produce an image. A typical case is when multiple layers are
  8635. used for different hardware platforms, each supplying a different
  8636. ``.wks`` file. In this case, you specify all possible ones through
  8637. :term:`WKS_FILES`.
  8638. If only one ``.wks`` file is used, set :term:`WKS_FILE` instead.
  8639. :term:`WORKDIR`
  8640. The pathname of the work directory in which the OpenEmbedded build
  8641. system builds a recipe. This directory is located within the
  8642. :term:`TMPDIR` directory structure and is specific to
  8643. the recipe being built and the system for which it is being built.
  8644. The :term:`WORKDIR` directory is defined as follows::
  8645. ${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}
  8646. The actual directory depends on several things:
  8647. - :term:`TMPDIR`: The top-level build output directory
  8648. - :term:`MULTIMACH_TARGET_SYS`: The target system identifier
  8649. - :term:`PN`: The recipe name
  8650. - :term:`EXTENDPE`: The epoch --- if :term:`PE` is not specified, which
  8651. is usually the case for most recipes, then :term:`EXTENDPE` is blank.
  8652. - :term:`PV`: The recipe version
  8653. - :term:`PR`: The recipe revision
  8654. As an example, assume a Source Directory top-level folder name
  8655. ``poky``, a default :term:`Build Directory` at ``poky/build``, and a
  8656. ``qemux86-poky-linux`` machine target system. Furthermore, suppose
  8657. your recipe is named ``foo_1.3.0-r0.bb``. In this case, the work
  8658. directory the build system uses to build the package would be as
  8659. follows::
  8660. poky/build/tmp/work/qemux86-poky-linux/foo/1.3.0-r0
  8661. :term:`XSERVER`
  8662. Specifies the packages that should be installed to provide an X
  8663. server and drivers for the current machine, assuming your image
  8664. directly includes ``packagegroup-core-x11-xserver`` or, perhaps
  8665. indirectly, includes "x11-base" in
  8666. :term:`IMAGE_FEATURES`.
  8667. The default value of :term:`XSERVER`, if not specified in the machine
  8668. configuration, is "xserver-xorg xf86-video-fbdev xf86-input-evdev".
  8669. :term:`XZ_THREADS`
  8670. Specifies the number of parallel threads that should be used when
  8671. using xz compression.
  8672. By default this scales with core count, but is never set less than 2
  8673. to ensure that multi-threaded mode is always used so that the output
  8674. file contents are deterministic. Builds will work with a value of 1
  8675. but the output will differ compared to the output from the compression
  8676. generated when more than one thread is used.
  8677. On systems where many tasks run in parallel, setting a limit to this
  8678. can be helpful in controlling system resource usage.
  8679. :term:`XZ_MEMLIMIT`
  8680. Specifies the maximum memory the xz compression should use as a percentage
  8681. of system memory. If unconstrained the xz compressor can use large amounts of
  8682. memory and become problematic with parallelism elsewhere in the build.
  8683. "50%" has been found to be a good value.
  8684. :term:`ZSTD_COMPRESSION_LEVEL`
  8685. Specifies the compression level to be used with ZStandard compression
  8686. (from ``1`` to ``19``, set to ``3`` by default, following upstream choice).
  8687. Higher levels produce smaller files, but take longer to complete.
  8688. :term:`ZSTD_THREADS`
  8689. Specifies the number of parallel threads that should be used when
  8690. using ZStandard compression.
  8691. By default this scales with core count, but is never set less than 2
  8692. to ensure that multi-threaded mode is always used so that the output
  8693. file contents are deterministic. Builds will work with a value of 1
  8694. but the output will differ compared to the output from the compression
  8695. generated when more than one thread is used.
  8696. On systems where many tasks run in parallel, setting a limit to this
  8697. can be helpful in controlling system resource usage.