variables.rst 462 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802
  1. .. SPDX-License-Identifier: CC-BY-SA-2.0-UK
  2. ******************
  3. Variables Glossary
  4. ******************
  5. This chapter lists common variables used in the OpenEmbedded build
  6. system and gives an overview of their function and contents.
  7. :term:`A <ABIEXTENSION>` :term:`B` :term:`C <CACHE>`
  8. :term:`D` :term:`E <EFI_PROVIDER>` :term:`F <FAKEROOT>`
  9. :term:`G <GCCPIE>` :term:`H <HGDIR>` :term:`I <ICECC_CLASS_DISABLE>`
  10. :term:`K <KARCH>` :term:`L <LABELS>` :term:`M <MACHINE>`
  11. :term:`N <NATIVELSBSTRING>` :term:`O <OBJCOPY>` :term:`P`
  12. :term:`Q <QA_EMPTY_DIRS>` :term:`R <RANLIB>` :term:`S` :term:`T`
  13. :term:`U <UBOOT_BINARY>` :term:`V <VIRTUAL-RUNTIME>`
  14. :term:`W <WARN_QA>` :term:`X <XSERVER>` :term:`Z <ZSTD_THREADS>`
  15. .. glossary::
  16. :sorted:
  17. :term:`ABIEXTENSION`
  18. Extension to the Application Binary Interface (ABI) field of the GNU
  19. canonical architecture name (e.g. "eabi").
  20. ABI extensions are set in the machine include files. For example, the
  21. ``meta/conf/machine/include/arm/arch-arm.inc`` file sets the
  22. following extension::
  23. ABIEXTENSION = "eabi"
  24. :term:`ALLOW_EMPTY`
  25. Specifies whether to produce an output package even if it is empty.
  26. By default, BitBake does not produce empty packages. This default
  27. behavior can cause issues when there is an
  28. :term:`RDEPENDS` or some other hard runtime
  29. requirement on the existence of the package.
  30. Like all package-controlling variables, you must always use them in
  31. conjunction with a package name override, as in::
  32. ALLOW_EMPTY:${PN} = "1"
  33. ALLOW_EMPTY:${PN}-dev = "1"
  34. ALLOW_EMPTY:${PN}-staticdev = "1"
  35. :term:`ALTERNATIVE`
  36. Lists commands in a package that need an alternative binary naming
  37. scheme. Sometimes the same command is provided in multiple packages.
  38. When this occurs, the OpenEmbedded build system needs to use the
  39. alternatives system to create a different binary naming scheme so the
  40. commands can co-exist.
  41. To use the variable, list out the package's commands that are also
  42. provided by another package. For example, if the ``busybox`` package
  43. has four such commands, you identify them as follows::
  44. ALTERNATIVE:busybox = "sh sed test bracket"
  45. For more information on the alternatives system, see the
  46. ":ref:`ref-classes-update-alternatives`"
  47. section.
  48. :term:`ALTERNATIVE_LINK_NAME`
  49. Used by the alternatives system to map duplicated commands to actual
  50. locations. For example, if the ``bracket`` command provided by the
  51. ``busybox`` package is duplicated through another package, you must
  52. use the :term:`ALTERNATIVE_LINK_NAME` variable to specify the actual
  53. location::
  54. ALTERNATIVE_LINK_NAME[bracket] = "/usr/bin/["
  55. In this example, the binary for the ``bracket`` command (i.e. ``[``)
  56. from the ``busybox`` package resides in ``/usr/bin/``.
  57. .. note::
  58. If :term:`ALTERNATIVE_LINK_NAME` is not defined, it defaults to ``${bindir}/name``.
  59. For more information on the alternatives system, see the
  60. ":ref:`ref-classes-update-alternatives`"
  61. section.
  62. :term:`ALTERNATIVE_PRIORITY`
  63. Used by the alternatives system to create default priorities for
  64. duplicated commands. You can use the variable to create a single
  65. default regardless of the command name or package, a default for
  66. specific duplicated commands regardless of the package, or a default
  67. for specific commands tied to particular packages. Here are the
  68. available syntax forms::
  69. ALTERNATIVE_PRIORITY = "priority"
  70. ALTERNATIVE_PRIORITY[name] = "priority"
  71. ALTERNATIVE_PRIORITY_pkg[name] = "priority"
  72. For more information on the alternatives system, see the
  73. ":ref:`ref-classes-update-alternatives`"
  74. section.
  75. :term:`ALTERNATIVE_TARGET`
  76. Used by the alternatives system to create default link locations for
  77. duplicated commands. You can use the variable to create a single
  78. default location for all duplicated commands regardless of the
  79. command name or package, a default for specific duplicated commands
  80. regardless of the package, or a default for specific commands tied to
  81. particular packages. Here are the available syntax forms::
  82. ALTERNATIVE_TARGET = "target"
  83. ALTERNATIVE_TARGET[name] = "target"
  84. ALTERNATIVE_TARGET_pkg[name] = "target"
  85. .. note::
  86. If :term:`ALTERNATIVE_TARGET` is not defined, it inherits the value
  87. from the :term:`ALTERNATIVE_LINK_NAME` variable.
  88. If :term:`ALTERNATIVE_LINK_NAME` and :term:`ALTERNATIVE_TARGET` are the
  89. same, the target for :term:`ALTERNATIVE_TARGET` has "``.{BPN}``"
  90. appended to it.
  91. Finally, if the file referenced has not been renamed, the
  92. alternatives system will rename it to avoid the need to rename
  93. alternative files in the :ref:`ref-tasks-install`
  94. task while retaining support for the command if necessary.
  95. For more information on the alternatives system, see the
  96. ":ref:`ref-classes-update-alternatives`" section.
  97. :term:`ANY_OF_DISTRO_FEATURES`
  98. When inheriting the :ref:`ref-classes-features_check`
  99. class, this variable identifies a list of distribution features where
  100. at least one must be enabled in the current configuration in order
  101. for the OpenEmbedded build system to build the recipe. In other words,
  102. if none of the features listed in :term:`ANY_OF_DISTRO_FEATURES`
  103. appear in :term:`DISTRO_FEATURES` within the current configuration, then
  104. the recipe will be skipped, and if the build system attempts to build
  105. the recipe then an error will be triggered.
  106. :term:`APPEND`
  107. An override list of append strings for each target specified with
  108. :term:`LABELS`.
  109. See the :ref:`ref-classes-grub-efi` class for more
  110. information on how this variable is used.
  111. :term:`AR`
  112. The minimal command and arguments used to run ``ar``.
  113. :term:`ARCHIVER_MODE`
  114. When used with the :ref:`ref-classes-archiver` class,
  115. determines the type of information used to create a released archive.
  116. You can use this variable to create archives of patched source,
  117. original source, configured source, and so forth by employing the
  118. following variable flags (varflags)::
  119. ARCHIVER_MODE[src] = "original" # Uses original (unpacked) source files.
  120. ARCHIVER_MODE[src] = "patched" # Uses patched source files. This is the default.
  121. ARCHIVER_MODE[src] = "configured" # Uses configured source files.
  122. ARCHIVER_MODE[diff] = "1" # Uses patches between do_unpack and do_patch.
  123. ARCHIVER_MODE[diff-exclude] ?= "file file ..." # Lists files and directories to exclude from diff.
  124. ARCHIVER_MODE[dumpdata] = "1" # Uses environment data.
  125. ARCHIVER_MODE[recipe] = "1" # Uses recipe and include files.
  126. ARCHIVER_MODE[srpm] = "1" # Uses RPM package files.
  127. For information on how the variable works, see the
  128. ``meta/classes/archiver.bbclass`` file in the :term:`Source Directory`.
  129. :term:`AS`
  130. Minimal command and arguments needed to run the assembler.
  131. :term:`ASSUME_PROVIDED`
  132. Lists recipe names (:term:`PN` values) BitBake does not
  133. attempt to build. Instead, BitBake assumes these recipes have already
  134. been built.
  135. In OpenEmbedded-Core, :term:`ASSUME_PROVIDED` mostly specifies native
  136. tools that should not be built. An example is ``git-native``, which
  137. when specified, allows for the Git binary from the host to be used
  138. rather than building ``git-native``.
  139. :term:`ASSUME_SHLIBS`
  140. Provides additional ``shlibs`` provider mapping information, which
  141. adds to or overwrites the information provided automatically by the
  142. system. Separate multiple entries using spaces.
  143. As an example, use the following form to add an ``shlib`` provider of
  144. shlibname in packagename with the optional version::
  145. shlibname:packagename[_version]
  146. Here is an example that adds a shared library named ``libEGL.so.1``
  147. as being provided by the ``libegl-implementation`` package::
  148. ASSUME_SHLIBS = "libEGL.so.1:libegl-implementation"
  149. :term:`AUTO_LIBNAME_PKGS`
  150. When the :ref:`ref-classes-debian` class is inherited,
  151. which is the default behavior, :term:`AUTO_LIBNAME_PKGS` specifies which
  152. packages should be checked for libraries and renamed according to
  153. Debian library package naming.
  154. The default value is "${PACKAGES}", which causes the
  155. :ref:`ref-classes-debian` class to act on all packages that are
  156. explicitly generated by the recipe.
  157. :term:`AUTOREV`
  158. When :term:`SRCREV` is set to the value of this variable, it specifies to
  159. use the latest source revision in the repository. Here is an example::
  160. SRCREV = "${AUTOREV}"
  161. If you use the previous statement to retrieve the latest version of
  162. software, you need to make sure :term:`PV` contains the ``+`` sign so
  163. :term:`bitbake` includes source control information to :term:`PKGV` when
  164. packaging the recipe. For example::
  165. PV = "6.10.y+git"
  166. For more information see the
  167. ":ref:`dev-manual/packages:automatically incrementing a package version number`"
  168. section in the Yocto Project Development Tasks Manual.
  169. :term:`AUTO_SYSLINUXMENU`
  170. Enables creating an automatic menu for the syslinux bootloader. You
  171. must set this variable in your recipe. The
  172. :ref:`ref-classes-syslinux` class checks this variable.
  173. :term:`AUTOTOOLS_SCRIPT_PATH`
  174. When using the :ref:`ref-classes-autotools` class, the
  175. :term:`AUTOTOOLS_SCRIPT_PATH` variable stores the location of the
  176. different scripts used by the Autotools build system. The default
  177. value for this variable is :term:`S`.
  178. :term:`AVAILTUNES`
  179. The list of defined CPU and Application Binary Interface (ABI)
  180. tunings (i.e. "tunes") available for use by the OpenEmbedded build
  181. system.
  182. The list simply presents the tunes that are available. Not all tunes
  183. may be compatible with a particular machine configuration, or with
  184. each other in a
  185. :ref:`Multilib <dev-manual/libraries:combining multiple versions of library files into one image>`
  186. configuration.
  187. To add a tune to the list, be sure to append it with spaces using the
  188. "+=" BitBake operator. Do not simply replace the list by using the
  189. "=" operator. See the
  190. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:basic syntax`" section in the BitBake
  191. User Manual for more information.
  192. :term:`AZ_SAS`
  193. Azure Storage Shared Access Signature, when using the
  194. :ref:`Azure Storage fetcher (az://) <bitbake-user-manual/bitbake-user-manual-fetching:fetchers>`
  195. This variable can be defined to be used by the fetcher to authenticate
  196. and gain access to non-public artifacts::
  197. AZ_SAS = ""se=2021-01-01&sp=r&sv=2018-11-09&sr=c&skoid=<skoid>&sig=<signature>""
  198. For more information see Microsoft's Azure Storage documentation at
  199. https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview
  200. :term:`B`
  201. The directory within the :term:`Build Directory` in which the
  202. OpenEmbedded build system places generated objects during a recipe's
  203. build process. By default, this directory is the same as the
  204. :term:`S` directory, which is defined as::
  205. S = "${WORKDIR}/${BP}"
  206. You can separate the (:term:`S`) directory and the directory pointed to
  207. by the :term:`B` variable. Most Autotools-based recipes support
  208. separating these directories. The build system defaults to using
  209. separate directories for ``gcc`` and some kernel recipes.
  210. :term:`BAD_RECOMMENDATIONS`
  211. Lists "recommended-only" packages to not install. Recommended-only
  212. packages are packages installed only through the
  213. :term:`RRECOMMENDS` variable. You can prevent any
  214. of these "recommended" packages from being installed by listing them
  215. with the :term:`BAD_RECOMMENDATIONS` variable::
  216. BAD_RECOMMENDATIONS = "package_name package_name package_name ..."
  217. You can set this variable globally in your ``local.conf`` file or you
  218. can attach it to a specific image recipe by using the recipe name
  219. override::
  220. BAD_RECOMMENDATIONS:pn-target_image = "package_name"
  221. It is important to realize that if you choose to not install packages
  222. using this variable and some other packages are dependent on them
  223. (i.e. listed in a recipe's :term:`RDEPENDS`
  224. variable), the OpenEmbedded build system ignores your request and
  225. will install the packages to avoid dependency errors.
  226. This variable is supported only when using the IPK and RPM
  227. packaging backends. DEB is not supported.
  228. See the :term:`NO_RECOMMENDATIONS` and the
  229. :term:`PACKAGE_EXCLUDE` variables for related
  230. information.
  231. :term:`BAREBOX_BINARY`
  232. When using the :ref:`ref-classes-barebox` class, this variable allows you
  233. to specify a particular binary that should be deployed and installed.
  234. The barebox build system can build multiple barebox binaries at once.
  235. By default, all built binaries will be deployed and installed under their
  236. original name.
  237. Here is an example usage of this variable::
  238. BAREBOX_BINARY = "barebox-boundarydevices-imx6dl-nitrogen6x-1g.img"
  239. :term:`BAREBOX_CONFIG`
  240. When using the :ref:`ref-classes-barebox` class, this variable allows you
  241. to specify the name of the barebox defconfig to build.
  242. The name must be a defconfig file known to the barebox build environment.
  243. This variable is mainly useful for generic use cases where a dedicated
  244. configuration is not required.
  245. The :ref:`ref-classes-barebox` class itself already sets it for some QEMU
  246. machines::
  247. BAREBOX_CONFIG:qemuarm = "multi_v7_defconfig"
  248. BAREBOX_CONFIG:qemuarm64 = "multi_v8_defconfig"
  249. BAREBOX_CONFIG:qemux86-64 = "efi_defconfig"
  250. Except for these, the default value of :term:`BAREBOX_CONFIG` is empty.
  251. For more information on how to provide a barebox configuration, see the
  252. :ref:`ref-classes-barebox` class.
  253. :term:`BASE_LIB`
  254. The library directory name for the CPU or Application Binary
  255. Interface (ABI) tune. The :term:`BASE_LIB` applies only in the Multilib
  256. context. See the ":ref:`dev-manual/libraries:combining multiple versions of library files into one image`"
  257. section in the Yocto Project Development Tasks Manual for information
  258. on Multilib.
  259. The :term:`BASE_LIB` variable is defined in the machine include files in
  260. the :term:`Source Directory`. If Multilib is not
  261. being used, the value defaults to "lib".
  262. :term:`BASE_WORKDIR`
  263. Points to the base of the work directory for all recipes. The default
  264. value is "${TMPDIR}/work".
  265. :term:`BB_ALLOWED_NETWORKS`
  266. Specifies a space-delimited list of hosts that the fetcher is allowed
  267. to use to obtain the required source code. Here are
  268. considerations surrounding this variable:
  269. - This host list is only used if :term:`BB_NO_NETWORK` is either not set
  270. or set to "0".
  271. - There is limited support for wildcard matching against the beginning of
  272. host names. For example, the following setting matches
  273. ``git.gnu.org``, ``ftp.gnu.org``, and ``foo.git.gnu.org``::
  274. BB_ALLOWED_NETWORKS = "*.gnu.org"
  275. .. note::
  276. The use of the "``*``" character only works at the beginning of
  277. a host name and it must be isolated from the remainder of the
  278. host name. You cannot use the wildcard character in any other
  279. location of the name or combined with the front part of the
  280. name.
  281. For example, ``*.foo.bar`` is supported, while ``*aa.foo.bar``
  282. is not.
  283. - Mirrors not in the host list are skipped and logged in debug.
  284. - Attempts to access networks not in the host list cause a failure.
  285. Using :term:`BB_ALLOWED_NETWORKS` in conjunction with
  286. :term:`PREMIRRORS` is very useful. Adding the host
  287. you want to use to :term:`PREMIRRORS` results in the source code being
  288. fetched from an allowed location and avoids raising an error when a
  289. host that is not allowed is in a :term:`SRC_URI`
  290. statement. This is because the fetcher does not attempt to use the
  291. host listed in :term:`SRC_URI` after a successful fetch from the
  292. :term:`PREMIRRORS` occurs.
  293. :term:`BB_BASEHASH_IGNORE_VARS`
  294. See :term:`bitbake:BB_BASEHASH_IGNORE_VARS` in the BitBake manual.
  295. :term:`BB_CACHEDIR`
  296. See :term:`bitbake:BB_CACHEDIR` in the BitBake manual.
  297. :term:`BB_CHECK_SSL_CERTS`
  298. See :term:`bitbake:BB_CHECK_SSL_CERTS` in the BitBake manual.
  299. :term:`BB_CONSOLELOG`
  300. See :term:`bitbake:BB_CONSOLELOG` in the BitBake manual.
  301. :term:`BB_CURRENTTASK`
  302. See :term:`bitbake:BB_CURRENTTASK` in the BitBake manual.
  303. :term:`BB_CURRENT_MC`
  304. See :term:`bitbake:BB_CURRENT_MC` in the BitBake manual.
  305. :term:`BB_DEFAULT_TASK`
  306. See :term:`bitbake:BB_DEFAULT_TASK` in the BitBake manual.
  307. :term:`BB_DEFAULT_UMASK`
  308. See :term:`bitbake:BB_DEFAULT_UMASK` in the BitBake manual.
  309. :term:`BB_DISKMON_DIRS`
  310. Monitors disk space and available inodes during the build and allows
  311. you to control the build based on these parameters.
  312. Disk space monitoring is disabled by default. To enable monitoring,
  313. add the :term:`BB_DISKMON_DIRS` variable to your ``conf/local.conf`` file
  314. found in the :term:`Build Directory`. Use the
  315. following form:
  316. .. code-block:: none
  317. BB_DISKMON_DIRS = "action,dir,threshold [...]"
  318. where:
  319. action is:
  320. ABORT: Immediately stop the build when
  321. a threshold is broken.
  322. STOPTASKS: Stop the build after the currently
  323. executing tasks have finished when
  324. a threshold is broken.
  325. WARN: Issue a warning but continue the
  326. build when a threshold is broken.
  327. Subsequent warnings are issued as
  328. defined by the BB_DISKMON_WARNINTERVAL
  329. variable, which must be defined in
  330. the conf/local.conf file.
  331. dir is:
  332. Any directory you choose. You can specify one or
  333. more directories to monitor by separating the
  334. groupings with a space. If two directories are
  335. on the same device, only the first directory
  336. is monitored.
  337. threshold is:
  338. Either the minimum available disk space,
  339. the minimum number of free inodes, or
  340. both. You must specify at least one. To
  341. omit one or the other, simply omit the value.
  342. Specify the threshold using G, M, K for Gbytes,
  343. Mbytes, and Kbytes, respectively. If you do
  344. not specify G, M, or K, Kbytes is assumed by
  345. default. Do not use GB, MB, or KB.
  346. Here are some examples::
  347. BB_DISKMON_DIRS = "ABORT,${TMPDIR},1G,100K WARN,${SSTATE_DIR},1G,100K"
  348. BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},1G"
  349. BB_DISKMON_DIRS = "ABORT,${TMPDIR},,100K"
  350. The first example works only if you also provide the
  351. :term:`BB_DISKMON_WARNINTERVAL`
  352. variable in the ``conf/local.conf``. This example causes the build
  353. system to immediately stop when either the disk space in
  354. ``${TMPDIR}`` drops below 1 Gbyte or the available free inodes drops
  355. below 100 Kbytes. Because two directories are provided with the
  356. variable, the build system also issue a warning when the disk space
  357. in the ``${SSTATE_DIR}`` directory drops below 1 Gbyte or the number
  358. of free inodes drops below 100 Kbytes. Subsequent warnings are issued
  359. during intervals as defined by the :term:`BB_DISKMON_WARNINTERVAL`
  360. variable.
  361. The second example stops the build after all currently executing
  362. tasks complete when the minimum disk space in the ``${TMPDIR}``
  363. directory drops below 1 Gbyte. No disk monitoring occurs for the free
  364. inodes in this case.
  365. The final example immediately stops the build when the number of
  366. free inodes in the ``${TMPDIR}`` directory drops below 100 Kbytes. No
  367. disk space monitoring for the directory itself occurs in this case.
  368. :term:`BB_DISKMON_WARNINTERVAL`
  369. Defines the disk space and free inode warning intervals. To set these
  370. intervals, define the variable in your ``conf/local.conf`` file in
  371. the :term:`Build Directory`.
  372. If you are going to use the :term:`BB_DISKMON_WARNINTERVAL` variable, you
  373. must also use the :term:`BB_DISKMON_DIRS`
  374. variable and define its action as "WARN". During the build,
  375. subsequent warnings are issued each time disk space or number of free
  376. inodes further reduces by the respective interval.
  377. If you do not provide a :term:`BB_DISKMON_WARNINTERVAL` variable and you
  378. do use :term:`BB_DISKMON_DIRS` with the "WARN" action, the disk
  379. monitoring interval defaults to the following::
  380. BB_DISKMON_WARNINTERVAL = "50M,5K"
  381. When specifying the variable in your configuration file, use the
  382. following form:
  383. .. code-block:: none
  384. BB_DISKMON_WARNINTERVAL = "disk_space_interval,disk_inode_interval"
  385. where:
  386. disk_space_interval is:
  387. An interval of memory expressed in either
  388. G, M, or K for Gbytes, Mbytes, or Kbytes,
  389. respectively. You cannot use GB, MB, or KB.
  390. disk_inode_interval is:
  391. An interval of free inodes expressed in either
  392. G, M, or K for Gbytes, Mbytes, or Kbytes,
  393. respectively. You cannot use GB, MB, or KB.
  394. Here is an example::
  395. BB_DISKMON_DIRS = "WARN,${SSTATE_DIR},1G,100K"
  396. BB_DISKMON_WARNINTERVAL = "50M,5K"
  397. These variables cause the
  398. OpenEmbedded build system to issue subsequent warnings each time the
  399. available disk space further reduces by 50 Mbytes or the number of
  400. free inodes further reduces by 5 Kbytes in the ``${SSTATE_DIR}``
  401. directory. Subsequent warnings based on the interval occur each time
  402. a respective interval is reached beyond the initial warning (i.e. 1
  403. Gbytes and 100 Kbytes).
  404. :term:`BB_ENV_PASSTHROUGH`
  405. See :term:`bitbake:BB_ENV_PASSTHROUGH` in the BitBake manual.
  406. :term:`BB_ENV_PASSTHROUGH_ADDITIONS`
  407. See :term:`bitbake:BB_ENV_PASSTHROUGH_ADDITIONS` in the BitBake manual.
  408. :term:`BB_FETCH_PREMIRRORONLY`
  409. See :term:`bitbake:BB_FETCH_PREMIRRORONLY` in the BitBake manual.
  410. :term:`BB_FILENAME`
  411. See :term:`bitbake:BB_FILENAME` in the BitBake manual.
  412. :term:`BB_GENERATE_MIRROR_TARBALLS`
  413. Causes tarballs of the source control repositories (e.g. Git
  414. repositories), including metadata, to be placed in the
  415. :term:`DL_DIR` directory.
  416. For performance reasons, creating and placing tarballs of these
  417. repositories is not the default action by the OpenEmbedded build
  418. system::
  419. BB_GENERATE_MIRROR_TARBALLS = "1"
  420. Set this variable in your
  421. ``local.conf`` file in the :term:`Build Directory`.
  422. Once you have the tarballs containing your source files, you can
  423. clean up your :term:`DL_DIR` directory by deleting any Git or other
  424. source control work directories.
  425. :term:`BB_GENERATE_SHALLOW_TARBALLS`
  426. See :term:`bitbake:BB_GENERATE_SHALLOW_TARBALLS` in the BitBake manual.
  427. :term:`BB_GIT_SHALLOW`
  428. See :term:`bitbake:BB_GIT_SHALLOW` in the BitBake manual.
  429. :term:`BB_GIT_SHALLOW_DEPTH`
  430. See :term:`bitbake:BB_GIT_SHALLOW_DEPTH` in the BitBake manual.
  431. :term:`BB_HASHCHECK_FUNCTION`
  432. See :term:`bitbake:BB_HASHCHECK_FUNCTION` in the BitBake manual.
  433. :term:`BB_HASHCONFIG_IGNORE_VARS`
  434. See :term:`bitbake:BB_HASHCONFIG_IGNORE_VARS` in the BitBake manual.
  435. :term:`BB_HASHSERVE`
  436. See :term:`bitbake:BB_HASHSERVE` in the BitBake manual.
  437. :term:`BB_HASHSERVE_UPSTREAM`
  438. See :term:`bitbake:BB_HASHSERVE_UPSTREAM` in the BitBake manual.
  439. :term:`BB_INVALIDCONF`
  440. See :term:`bitbake:BB_INVALIDCONF` in the BitBake manual.
  441. :term:`BB_LOADFACTOR_MAX`
  442. The system load threshold above which BitBake will stop runnig extra
  443. tasks.
  444. :term:`BB_LOGCONFIG`
  445. See :term:`bitbake:BB_LOGCONFIG` in the BitBake manual.
  446. :term:`BB_LOGFMT`
  447. See :term:`bitbake:BB_LOGFMT` in the BitBake manual.
  448. :term:`BB_MULTI_PROVIDER_ALLOWED`
  449. See :term:`bitbake:BB_MULTI_PROVIDER_ALLOWED` in the BitBake manual.
  450. :term:`BB_NICE_LEVEL`
  451. See :term:`bitbake:BB_NICE_LEVEL` in the BitBake manual.
  452. :term:`BB_NO_NETWORK`
  453. See :term:`bitbake:BB_NO_NETWORK` in the BitBake manual.
  454. :term:`BB_NUMBER_PARSE_THREADS`
  455. See :term:`bitbake:BB_NUMBER_PARSE_THREADS` in the BitBake manual.
  456. :term:`BB_NUMBER_THREADS`
  457. The maximum number of tasks BitBake should run in parallel at any one
  458. time. The OpenEmbedded build system automatically configures this
  459. variable to be equal to the number of cores on the build system. For
  460. example, a system with a dual core processor that also uses
  461. hyper-threading causes the :term:`BB_NUMBER_THREADS` variable to default
  462. to "4".
  463. For single socket systems (i.e. one CPU), you should not have to
  464. override this variable to gain optimal parallelism during builds.
  465. However, if you have very large systems that employ multiple physical
  466. CPUs, you might want to make sure the :term:`BB_NUMBER_THREADS` variable
  467. is not set higher than "20".
  468. For more information on speeding up builds, see the
  469. ":ref:`dev-manual/speeding-up-build:speeding up a build`"
  470. section in the Yocto Project Development Tasks Manual.
  471. On the other hand, if your goal is to limit the amount of system
  472. resources consumed by BitBake tasks, setting :term:`BB_NUMBER_THREADS`
  473. to a number lower than the number of CPU threads in your machine
  474. won't be sufficient. That's because each package will still be built
  475. and installed through a number of parallel jobs specified by the
  476. :term:`PARALLEL_MAKE` variable, which is by default the number of CPU
  477. threads in your system, and is not impacted by the
  478. :term:`BB_NUMBER_THREADS` value.
  479. So, if you set :term:`BB_NUMBER_THREADS` to "1" but don't set
  480. :term:`PARALLEL_MAKE`, most of your system resources will be consumed
  481. anyway.
  482. Therefore, if you intend to reduce the load of your build system by
  483. setting :term:`BB_NUMBER_THREADS` to a relatively low value compared
  484. to the number of CPU threads on your system, you should also set
  485. :term:`PARALLEL_MAKE` to a similarly low value.
  486. An alternative to using :term:`BB_NUMBER_THREADS` to keep the usage
  487. of build system resources under control is to use the smarter
  488. :term:`BB_PRESSURE_MAX_CPU`, :term:`BB_PRESSURE_MAX_IO` or
  489. :term:`BB_PRESSURE_MAX_MEMORY` controls. They will prevent BitBake
  490. from starting new tasks as long as thresholds are exceeded. Anyway,
  491. as with :term:`BB_NUMBER_THREADS`, such controls won't prevent the
  492. tasks already being run from using all CPU threads on the system
  493. if :term:`PARALLEL_MAKE` is not set to a low value.
  494. :term:`BB_ORIGENV`
  495. See :term:`bitbake:BB_ORIGENV` in the BitBake manual.
  496. :term:`BB_PRESERVE_ENV`
  497. See :term:`bitbake:BB_PRESERVE_ENV` in the BitBake manual.
  498. :term:`BB_PRESSURE_MAX_CPU`
  499. See :term:`bitbake:BB_PRESSURE_MAX_CPU` in the BitBake manual.
  500. :term:`BB_PRESSURE_MAX_IO`
  501. See :term:`bitbake:BB_PRESSURE_MAX_IO` in the BitBake manual.
  502. :term:`BB_PRESSURE_MAX_MEMORY`
  503. See :term:`bitbake:BB_PRESSURE_MAX_MEMORY` in the BitBake manual.
  504. :term:`BB_RUNFMT`
  505. See :term:`bitbake:BB_RUNFMT` in the BitBake manual.
  506. :term:`BB_RUNTASK`
  507. See :term:`bitbake:BB_RUNTASK` in the BitBake manual.
  508. :term:`BB_SCHEDULER`
  509. See :term:`bitbake:BB_SCHEDULER` in the BitBake manual.
  510. :term:`BB_SCHEDULERS`
  511. See :term:`bitbake:BB_SCHEDULERS` in the BitBake manual.
  512. :term:`BB_SERVER_TIMEOUT`
  513. Specifies the time (in seconds) after which to unload the BitBake
  514. server due to inactivity. Set :term:`BB_SERVER_TIMEOUT` to determine how
  515. long the BitBake server stays resident between invocations.
  516. For example, the following statement in your ``local.conf`` file
  517. instructs the server to be unloaded after 20 seconds of inactivity::
  518. BB_SERVER_TIMEOUT = "20"
  519. If you want the server to never be unloaded,
  520. set :term:`BB_SERVER_TIMEOUT` to "-1".
  521. :term:`BB_SETSCENE_DEPVALID`
  522. See :term:`bitbake:BB_SETSCENE_DEPVALID` in the BitBake manual.
  523. :term:`BB_SIGNATURE_EXCLUDE_FLAGS`
  524. See :term:`bitbake:BB_SIGNATURE_EXCLUDE_FLAGS` in the BitBake manual.
  525. :term:`BB_SIGNATURE_HANDLER`
  526. See :term:`bitbake:BB_SIGNATURE_HANDLER` in the BitBake manual.
  527. :term:`BB_SRCREV_POLICY`
  528. See :term:`bitbake:BB_SRCREV_POLICY` in the BitBake manual.
  529. :term:`BB_STRICT_CHECKSUM`
  530. See :term:`bitbake:BB_STRICT_CHECKSUM` in the BitBake manual.
  531. :term:`BB_TASK_IONICE_LEVEL`
  532. See :term:`bitbake:BB_TASK_IONICE_LEVEL` in the BitBake manual.
  533. :term:`BB_TASK_NICE_LEVEL`
  534. See :term:`bitbake:BB_TASK_NICE_LEVEL` in the BitBake manual.
  535. :term:`BB_TASKHASH`
  536. See :term:`bitbake:BB_TASKHASH` in the BitBake manual.
  537. :term:`BB_USE_HOME_NPMRC`
  538. See :term:`bitbake:BB_USE_HOME_NPMRC` in the BitBake manual.
  539. :term:`BB_VERBOSE_LOGS`
  540. See :term:`bitbake:BB_VERBOSE_LOGS` in the BitBake manual.
  541. :term:`BB_WORKERCONTEXT`
  542. See :term:`bitbake:BB_WORKERCONTEXT` in the BitBake manual.
  543. :term:`BBCLASSEXTEND`
  544. Allows you to extend a recipe so that it builds variants of the
  545. software. There are common variants for recipes as "natives" like
  546. ``quilt-native``, which is a copy of Quilt built to run on the build
  547. system; "crosses" such as ``gcc-cross``, which is a compiler built to
  548. run on the build machine but produces binaries that run on the target
  549. :term:`MACHINE`; ":ref:`ref-classes-nativesdk`", which
  550. targets the SDK machine instead of :term:`MACHINE`; and "mulitlibs" in
  551. the form "``multilib:``\ multilib_name".
  552. To build a different variant of the recipe with a minimal amount of
  553. code, it usually is as simple as adding the following to your recipe::
  554. BBCLASSEXTEND =+ "native nativesdk"
  555. BBCLASSEXTEND =+ "multilib:multilib_name"
  556. .. note::
  557. Internally, the :term:`BBCLASSEXTEND` mechanism generates recipe
  558. variants by rewriting variable values and applying overrides such
  559. as ``:class-native``. For example, to generate a native version of
  560. a recipe, a :term:`DEPENDS` on "foo" is rewritten
  561. to a :term:`DEPENDS` on "foo-native".
  562. Even when using :term:`BBCLASSEXTEND`, the recipe is only parsed once.
  563. Parsing once adds some limitations. For example, it is not
  564. possible to include a different file depending on the variant,
  565. since ``include`` statements are processed when the recipe is
  566. parsed.
  567. :term:`BBDEBUG`
  568. See :term:`bitbake:BBDEBUG` in the BitBake manual.
  569. :term:`BBFILE_COLLECTIONS`
  570. Lists the names of configured layers. These names are used to find
  571. the other ``BBFILE_*`` variables. Typically, each layer will append
  572. its name to this variable in its ``conf/layer.conf`` file.
  573. :term:`BBFILE_PATTERN`
  574. Variable that expands to match files from
  575. :term:`BBFILES` in a particular layer. This variable
  576. is used in the ``conf/layer.conf`` file and must be suffixed with the
  577. name of the specific layer (e.g. ``BBFILE_PATTERN_emenlow``).
  578. :term:`BBFILE_PRIORITY`
  579. Assigns the priority for recipe files in each layer.
  580. This variable is useful in situations where the same recipe appears
  581. in more than one layer. Setting this variable allows you to
  582. prioritize a layer against other layers that contain the same recipe
  583. --- effectively letting you control the precedence for the multiple
  584. layers. The precedence established through this variable stands
  585. regardless of a recipe's version (:term:`PV` variable). For
  586. example, a layer that has a recipe with a higher :term:`PV` value but for
  587. which the :term:`BBFILE_PRIORITY` is set to have a lower precedence still
  588. has a lower precedence.
  589. A larger value for the :term:`BBFILE_PRIORITY` variable results in a
  590. higher precedence. For example, the value 6 has a higher precedence
  591. than the value 5. If not specified, the :term:`BBFILE_PRIORITY` variable
  592. is set based on layer dependencies (see the :term:`LAYERDEPENDS` variable
  593. for more information. The default priority, if unspecified for a
  594. layer with no dependencies, is the lowest defined priority + 1 (or 1
  595. if no priorities are defined).
  596. .. tip::
  597. You can use the command ``bitbake-layers show-layers``
  598. to list all configured layers along with their priorities.
  599. :term:`BBFILES`
  600. A space-separated list of recipe files BitBake uses to build
  601. software.
  602. When specifying recipe files, you can pattern match using Python's
  603. `glob <https://docs.python.org/3/library/glob.html>`__ syntax.
  604. For details on the syntax, see the documentation by following the
  605. previous link.
  606. :term:`BBFILES_DYNAMIC`
  607. Activates content when identified layers are present. You identify
  608. the layers by the collections that the layers define.
  609. Use the :term:`BBFILES_DYNAMIC` variable to avoid ``.bbappend`` files
  610. whose corresponding ``.bb`` file is in a layer that attempts to
  611. modify other layers through ``.bbappend`` but does not want to
  612. introduce a hard dependency on those other layers.
  613. Use the following form for :term:`BBFILES_DYNAMIC`:
  614. ``collection_name:filename_pattern``.
  615. The following example identifies two collection names and two
  616. filename patterns::
  617. BBFILES_DYNAMIC += " \
  618. clang-layer:${LAYERDIR}/bbappends/meta-clang/*/*/*.bbappend \
  619. core:${LAYERDIR}/bbappends/openembedded-core/meta/*/*/*.bbappend \
  620. "
  621. This next example shows an error message that occurs because invalid
  622. entries are found, which cause parsing to fail:
  623. .. code-block:: none
  624. ERROR: BBFILES_DYNAMIC entries must be of the form <collection name>:<filename pattern>, not:
  625. /work/my-layer/bbappends/meta-security-isafw/*/*/*.bbappend
  626. /work/my-layer/bbappends/openembedded-core/meta/*/*/*.bbappend
  627. :term:`BBINCLUDED`
  628. See :term:`bitbake:BBINCLUDED` in the BitBake manual.
  629. :term:`BBINCLUDELOGS`
  630. Variable that controls how BitBake displays logs on build failure.
  631. :term:`BBINCLUDELOGS_LINES`
  632. If :term:`BBINCLUDELOGS` is set, specifies the
  633. maximum number of lines from the task log file to print when
  634. reporting a failed task. If you do not set :term:`BBINCLUDELOGS_LINES`,
  635. the entire log is printed.
  636. :term:`BBLAYERS`
  637. Lists the layers to enable during the build. This variable is defined
  638. in the ``bblayers.conf`` configuration file in the :term:`Build Directory`.
  639. Here is an example::
  640. BBLAYERS = " \
  641. /home/scottrif/poky/meta \
  642. /home/scottrif/poky/meta-poky \
  643. /home/scottrif/poky/meta-yocto-bsp \
  644. /home/scottrif/poky/meta-mykernel \
  645. "
  646. This example enables four layers, one of which is a custom,
  647. user-defined layer named ``meta-mykernel``.
  648. :term:`BBLAYERS_FETCH_DIR`
  649. See :term:`bitbake:BBLAYERS_FETCH_DIR` in the BitBake manual.
  650. :term:`BBMASK`
  651. Prevents BitBake from processing recipes and recipe append files.
  652. You can use the :term:`BBMASK` variable to "hide" these ``.bb`` and
  653. ``.bbappend`` files. BitBake ignores any recipe or recipe append
  654. files that match any of the expressions. It is as if BitBake does not
  655. see them at all. Consequently, matching files are not parsed or
  656. otherwise used by BitBake.
  657. The values you provide are passed to Python's regular expression
  658. compiler. Consequently, the syntax follows Python's Regular
  659. Expression (re) syntax. The expressions are compared against the full
  660. paths to the files. For complete syntax information, see Python's
  661. documentation at https://docs.python.org/3/library/re.html#regular-expression-syntax.
  662. The following example uses a complete regular expression to tell
  663. BitBake to ignore all recipe and recipe append files in the
  664. ``meta-ti/recipes-misc/`` directory::
  665. BBMASK = "meta-ti/recipes-misc/"
  666. If you want to mask out multiple directories or recipes, you can
  667. specify multiple regular expression fragments. This next example
  668. masks out multiple directories and individual recipes::
  669. BBMASK += "/meta-ti/recipes-misc/ meta-ti/recipes-ti/packagegroup/"
  670. BBMASK += "/meta-oe/recipes-support/"
  671. BBMASK += "/meta-foo/.*/openldap"
  672. BBMASK += "opencv.*\.bbappend"
  673. BBMASK += "lzma"
  674. .. note::
  675. When specifying a directory name, use the trailing slash character
  676. to ensure you match just that directory name.
  677. :term:`BBMULTICONFIG`
  678. Specifies each additional separate configuration when you are
  679. building targets with multiple configurations. Use this variable in
  680. your ``conf/local.conf`` configuration file. Specify a
  681. multiconfigname for each configuration file you are using. For
  682. example, the following line specifies three configuration files::
  683. BBMULTICONFIG = "configA configB configC"
  684. Each configuration file you use must reside in a ``multiconfig``
  685. subdirectory of a configuration directory within a layer, or
  686. within the :term:`Build Directory` (e.g.
  687. ``build_directory/conf/multiconfig/configA.conf`` or
  688. ``mylayer/conf/multiconfig/configB.conf``).
  689. For information on how to use :term:`BBMULTICONFIG` in an environment
  690. that supports building targets with multiple configurations, see the
  691. ":ref:`dev-manual/building:building images for multiple targets using multiple configurations`"
  692. section in the Yocto Project Development Tasks Manual.
  693. :term:`BBPATH`
  694. See :term:`bitbake:BBPATH` in the BitBake manual.
  695. :term:`BBSERVER`
  696. If defined in the BitBake environment, :term:`BBSERVER` points to the
  697. BitBake remote server.
  698. Use the following format to export the variable to the BitBake
  699. environment::
  700. export BBSERVER=localhost:$port
  701. By default, :term:`BBSERVER` also appears in :term:`BB_BASEHASH_IGNORE_VARS`.
  702. Consequently, :term:`BBSERVER` is excluded from checksum and dependency
  703. data.
  704. :term:`BBTARGETS`
  705. See :term:`bitbake:BBTARGETS` in the BitBake manual.
  706. :term:`BINCONFIG`
  707. When inheriting the :ref:`ref-classes-binconfig-disabled` class, this
  708. variable specifies binary configuration scripts to disable in favor of
  709. using ``pkg-config`` to query the information. The
  710. :ref:`ref-classes-binconfig-disabled` class will modify the specified
  711. scripts to return an error so that calls to them can be easily found
  712. and replaced.
  713. To add multiple scripts, separate them by spaces. Here is an example
  714. from the ``libpng`` recipe::
  715. BINCONFIG = "${bindir}/libpng-config ${bindir}/libpng16-config"
  716. :term:`BINCONFIG_GLOB`
  717. When inheriting the :ref:`ref-classes-binconfig` class,
  718. this variable specifies a wildcard for configuration scripts that
  719. need editing. The scripts are edited to correct any paths that have
  720. been set up during compilation so that they are correct for use when
  721. installed into the sysroot and called by the build processes of other
  722. recipes.
  723. .. note::
  724. The :term:`BINCONFIG_GLOB` variable uses
  725. `shell globbing <https://tldp.org/LDP/abs/html/globbingref.html>`__,
  726. which is recognition and expansion of wildcards during pattern
  727. matching. Shell globbing is very similar to
  728. `fnmatch <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__
  729. and `glob <https://docs.python.org/3/library/glob.html>`__.
  730. For more information on how this variable works, see
  731. ``meta/classes-recipe/binconfig.bbclass`` in the :term:`Source Directory`.
  732. You can also find general
  733. information on the class in the
  734. ":ref:`ref-classes-binconfig`" section.
  735. :term:`BITBAKE_UI`
  736. See :term:`bitbake:BITBAKE_UI` in the BitBake manual.
  737. :term:`BP`
  738. The base recipe name and version but without any special recipe name
  739. suffix (i.e. ``-native``, ``lib64-``, and so forth). :term:`BP` is
  740. comprised of the following::
  741. ${BPN}-${PV}
  742. :term:`BPN`
  743. This variable is a version of the :term:`PN` variable with
  744. common prefixes and suffixes removed, such as ``nativesdk-``,
  745. ``-cross``, ``-native``, and multilib's ``lib64-`` and ``lib32-``.
  746. The exact lists of prefixes and suffixes removed are specified by the
  747. :term:`MLPREFIX` and
  748. :term:`SPECIAL_PKGSUFFIX` variables,
  749. respectively.
  750. :term:`BUGTRACKER`
  751. Specifies a URL for an upstream bug tracking website for a recipe.
  752. The OpenEmbedded build system does not use this variable. Rather, the
  753. variable is a useful pointer in case a bug in the software being
  754. built needs to be manually reported.
  755. :term:`BUILD_ARCH`
  756. Specifies the architecture of the build host (e.g. ``i686``). The
  757. OpenEmbedded build system sets the value of :term:`BUILD_ARCH` from the
  758. machine name reported by the ``uname`` command.
  759. :term:`BUILD_AS_ARCH`
  760. Specifies the architecture-specific assembler flags for the build
  761. host. By default, the value of :term:`BUILD_AS_ARCH` is empty.
  762. :term:`BUILD_CC_ARCH`
  763. Specifies the architecture-specific C compiler flags for the build
  764. host. By default, the value of :term:`BUILD_CC_ARCH` is empty.
  765. :term:`BUILD_CCLD`
  766. Specifies the linker command to be used for the build host when the C
  767. compiler is being used as the linker. By default, :term:`BUILD_CCLD`
  768. points to GCC and passes as arguments the value of
  769. :term:`BUILD_CC_ARCH`, assuming
  770. :term:`BUILD_CC_ARCH` is set.
  771. :term:`BUILD_CFLAGS`
  772. Specifies the flags to pass to the C compiler when building for the
  773. build host. When building in the ``-native`` context,
  774. :term:`CFLAGS` is set to the value of this variable by
  775. default.
  776. :term:`BUILD_CPPFLAGS`
  777. Specifies the flags to pass to the C preprocessor (i.e. to both the C
  778. and the C++ compilers) when building for the build host. When
  779. building in the ``-native`` context, :term:`CPPFLAGS`
  780. is set to the value of this variable by default.
  781. :term:`BUILD_CXXFLAGS`
  782. Specifies the flags to pass to the C++ compiler when building for the
  783. build host. When building in the ``-native`` context,
  784. :term:`CXXFLAGS` is set to the value of this variable
  785. by default.
  786. :term:`BUILD_FC`
  787. Specifies the Fortran compiler command for the build host. By
  788. default, :term:`BUILD_FC` points to Gfortran and passes as arguments the
  789. value of :term:`BUILD_CC_ARCH`, assuming
  790. :term:`BUILD_CC_ARCH` is set.
  791. :term:`BUILD_LD`
  792. Specifies the linker command for the build host. By default,
  793. :term:`BUILD_LD` points to the GNU linker (ld) and passes as arguments
  794. the value of :term:`BUILD_LD_ARCH`, assuming
  795. :term:`BUILD_LD_ARCH` is set.
  796. :term:`BUILD_LD_ARCH`
  797. Specifies architecture-specific linker flags for the build host. By
  798. default, the value of :term:`BUILD_LD_ARCH` is empty.
  799. :term:`BUILD_LDFLAGS`
  800. Specifies the flags to pass to the linker when building for the build
  801. host. When building in the ``-native`` context,
  802. :term:`LDFLAGS` is set to the value of this variable
  803. by default.
  804. :term:`BUILD_OPTIMIZATION`
  805. Specifies the optimization flags passed to the C compiler when
  806. building for the build host or the SDK. The flags are passed through
  807. the :term:`BUILD_CFLAGS` and
  808. :term:`BUILDSDK_CFLAGS` default values.
  809. The default value of the :term:`BUILD_OPTIMIZATION` variable is "-O2
  810. -pipe".
  811. :term:`BUILD_OS`
  812. Specifies the operating system in use on the build host (e.g.
  813. "linux"). The OpenEmbedded build system sets the value of
  814. :term:`BUILD_OS` from the OS reported by the ``uname`` command --- the
  815. first word, converted to lower-case characters.
  816. :term:`BUILD_PREFIX`
  817. The toolchain binary prefix used for native recipes. The OpenEmbedded
  818. build system uses the :term:`BUILD_PREFIX` value to set the
  819. :term:`TARGET_PREFIX` when building for :ref:`ref-classes-native` recipes.
  820. :term:`BUILD_STRIP`
  821. Specifies the command to be used to strip debugging symbols from
  822. binaries produced for the build host. By default, :term:`BUILD_STRIP`
  823. points to
  824. ``${``\ :term:`BUILD_PREFIX`\ ``}strip``.
  825. :term:`BUILD_SYS`
  826. Specifies the system, including the architecture and the operating
  827. system, to use when building for the build host (i.e. when building
  828. :ref:`ref-classes-native` recipes).
  829. The OpenEmbedded build system automatically sets this variable based
  830. on :term:`BUILD_ARCH`,
  831. :term:`BUILD_VENDOR`, and
  832. :term:`BUILD_OS`. You do not need to set the
  833. :term:`BUILD_SYS` variable yourself.
  834. :term:`BUILD_VENDOR`
  835. Specifies the vendor name to use when building for the build host.
  836. The default value is an empty string ("").
  837. :term:`BUILDDIR`
  838. Points to the location of the :term:`Build Directory`. You can define
  839. this directory indirectly through the :ref:`structure-core-script` script
  840. by passing in a :term:`Build Directory` path when you run the script. If
  841. you run the script and do not provide a :term:`Build Directory` path, the
  842. :term:`BUILDDIR` defaults to ``build`` in the current directory.
  843. :term:`BUILDHISTORY_COMMIT`
  844. When inheriting the :ref:`ref-classes-buildhistory` class, this variable
  845. specifies whether or not to commit the build history output in a local
  846. Git repository. If set to "1", this local repository will be maintained
  847. automatically by the :ref:`ref-classes-buildhistory` class and a commit
  848. will be created on every build for changes to each top-level subdirectory
  849. of the build history output (images, packages, and sdk). If you want to
  850. track changes to build history over time, you should set this value to
  851. "1".
  852. By default, the :ref:`ref-classes-buildhistory` class
  853. enables committing the buildhistory output in a local Git repository::
  854. BUILDHISTORY_COMMIT ?= "1"
  855. :term:`BUILDHISTORY_COMMIT_AUTHOR`
  856. When inheriting the :ref:`ref-classes-buildhistory`
  857. class, this variable specifies the author to use for each Git commit.
  858. In order for the :term:`BUILDHISTORY_COMMIT_AUTHOR` variable to work, the
  859. :term:`BUILDHISTORY_COMMIT` variable must
  860. be set to "1".
  861. Git requires that the value you provide for the
  862. :term:`BUILDHISTORY_COMMIT_AUTHOR` variable takes the form of "name
  863. email@host". Providing an email address or host that is not valid
  864. does not produce an error.
  865. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  866. as follows::
  867. BUILDHISTORY_COMMIT_AUTHOR ?= "buildhistory <buildhistory@${DISTRO}>"
  868. :term:`BUILDHISTORY_DIR`
  869. When inheriting the :ref:`ref-classes-buildhistory`
  870. class, this variable specifies the directory in which build history
  871. information is kept. For more information on how the variable works,
  872. see the :ref:`ref-classes-buildhistory` class.
  873. By default, the :ref:`ref-classes-buildhistory` class sets the directory
  874. as follows::
  875. BUILDHISTORY_DIR ?= "${TOPDIR}/buildhistory"
  876. :term:`BUILDHISTORY_FEATURES`
  877. When inheriting the :ref:`ref-classes-buildhistory`
  878. class, this variable specifies the build history features to be
  879. enabled. For more information on how build history works, see the
  880. ":ref:`dev-manual/build-quality:maintaining build output quality`"
  881. section in the Yocto Project Development Tasks Manual.
  882. You can specify these features in the form of a space-separated list:
  883. - *image:* Analysis of the contents of images, which includes the
  884. list of installed packages among other things.
  885. - *package:* Analysis of the contents of individual packages.
  886. - *sdk:* Analysis of the contents of the software development kit
  887. (SDK).
  888. - *task:* Save output file signatures for
  889. :ref:`shared state <overview-manual/concepts:shared state cache>`
  890. (sstate) tasks.
  891. This saves one file per task and lists the SHA-256 checksums for
  892. each file staged (i.e. the output of the task).
  893. By default, the :ref:`ref-classes-buildhistory` class enables the
  894. following features::
  895. BUILDHISTORY_FEATURES ?= "image package sdk"
  896. :term:`BUILDHISTORY_IMAGE_FILES`
  897. When inheriting the :ref:`ref-classes-buildhistory`
  898. class, this variable specifies a list of paths to files copied from
  899. the image contents into the build history directory under an
  900. "image-files" directory in the directory for the image, so that you
  901. can track the contents of each file. The default is to copy
  902. ``/etc/passwd`` and ``/etc/group``, which allows you to monitor for
  903. changes in user and group entries. You can modify the list to include
  904. any file. Specifying an invalid path does not produce an error.
  905. Consequently, you can include files that might not always be present.
  906. By default, the :ref:`ref-classes-buildhistory` class provides paths to
  907. the following files::
  908. BUILDHISTORY_IMAGE_FILES ?= "/etc/passwd /etc/group"
  909. :term:`BUILDHISTORY_PATH_PREFIX_STRIP`
  910. When inheriting the :ref:`ref-classes-buildhistory`
  911. class, this variable specifies a common path prefix that should be
  912. stripped off the beginning of paths in the task signature list when the
  913. ``task`` feature is active in :term:`BUILDHISTORY_FEATURES`. This can be
  914. useful when build history is populated from multiple sources that may not
  915. all use the same top level directory.
  916. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  917. as follows::
  918. BUILDHISTORY_PATH_PREFIX_STRIP ?= ""
  919. In this case, no prefixes will be stripped.
  920. :term:`BUILDHISTORY_PUSH_REPO`
  921. When inheriting the :ref:`ref-classes-buildhistory` class, this variable
  922. optionally specifies a remote repository to which build history pushes
  923. Git changes. In order for :term:`BUILDHISTORY_PUSH_REPO` to work,
  924. :term:`BUILDHISTORY_COMMIT` must be set to "1".
  925. The repository should correspond to a remote address that specifies a
  926. repository as understood by Git, or alternatively to a remote name
  927. that you have set up manually using ``git remote`` within the local
  928. repository.
  929. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  930. as follows::
  931. BUILDHISTORY_PUSH_REPO ?= ""
  932. :term:`BUILDNAME`
  933. See :term:`bitbake:BUILDNAME` in the BitBake manual.
  934. :term:`BUILDSDK_CFLAGS`
  935. Specifies the flags to pass to the C compiler when building for the
  936. SDK. When building in the ``nativesdk-`` context,
  937. :term:`CFLAGS` is set to the value of this variable by
  938. default.
  939. :term:`BUILDSDK_CPPFLAGS`
  940. Specifies the flags to pass to the C pre-processor (i.e. to both the
  941. C and the C++ compilers) when building for the SDK. When building in
  942. the ``nativesdk-`` context, :term:`CPPFLAGS` is set
  943. to the value of this variable by default.
  944. :term:`BUILDSDK_CXXFLAGS`
  945. Specifies the flags to pass to the C++ compiler when building for the
  946. SDK. When building in the ``nativesdk-`` context,
  947. :term:`CXXFLAGS` is set to the value of this variable
  948. by default.
  949. :term:`BUILDSDK_LDFLAGS`
  950. Specifies the flags to pass to the linker when building for the SDK.
  951. When building in the ``nativesdk-`` context,
  952. :term:`LDFLAGS` is set to the value of this variable
  953. by default.
  954. :term:`BUILDSTATS_BASE`
  955. Points to the location of the directory that holds build statistics
  956. when you use and enable the :ref:`ref-classes-buildstats` class. The
  957. :term:`BUILDSTATS_BASE` directory defaults to
  958. ``${``\ :term:`TMPDIR`\ ``}/buildstats/``.
  959. :term:`BUSYBOX_SPLIT_SUID`
  960. For the BusyBox recipe, specifies whether to split the output
  961. executable file into two parts: one for features that require
  962. ``setuid root``, and one for the remaining features (i.e. those that
  963. do not require ``setuid root``).
  964. The :term:`BUSYBOX_SPLIT_SUID` variable defaults to "1", which results in
  965. splitting the output executable file. Set the variable to "0" to get
  966. a single output executable file.
  967. :term:`BZRDIR`
  968. See :term:`bitbake:BZRDIR` in the BitBake manual.
  969. :term:`CACHE`
  970. Specifies the directory BitBake uses to store a cache of the
  971. :term:`Metadata` so it does not need to be parsed every time
  972. BitBake is started.
  973. :term:`CARGO_INSTALL_LIBRARIES`
  974. When inheriting the :ref:`ref-classes-cargo` class, the variable
  975. :term:`CARGO_INSTALL_LIBRARIES` can be set to a non-empty value by
  976. individual recipes to enable the installation of the libraries the
  977. recipe has built in ``${B}/target/${CARGO_TARGET_SUBDIR}`` (files ending
  978. with ``.so`` or ``.rlib``). By default this variable is not defined and
  979. libraries are not installed, to replicate the behavior of the ``cargo
  980. install`` command.
  981. :term:`CC`
  982. The minimal command and arguments used to run the C compiler.
  983. :term:`CFLAGS`
  984. Specifies the flags to pass to the C compiler. This variable is
  985. exported to an environment variable and thus made visible to the
  986. software being built during the compilation step.
  987. Default initialization for :term:`CFLAGS` varies depending on what is
  988. being built:
  989. - :term:`TARGET_CFLAGS` when building for the
  990. target
  991. - :term:`BUILD_CFLAGS` when building for the
  992. build host (i.e. ``-native``)
  993. - :term:`BUILDSDK_CFLAGS` when building for
  994. an SDK (i.e. ``nativesdk-``)
  995. :term:`CHECKLAYER_REQUIRED_TESTS`
  996. The :term:`CHECKLAYER_REQUIRED_TESTS` variable lists the QA tests that are
  997. required to be enabled to pass the Yocto Project Compatible status for a
  998. layer. It is meant to be a read-only variable and any change to the
  999. variable may be done with the approval of the :oe_wiki:`Technical Steering
  1000. Committee (TSC) </TSC>`.
  1001. For more information on the Yocto Project Compatible status, see
  1002. the :ref:`dev-manual/layers:Making Sure Your Layer is Compatible With
  1003. Yocto Project` section of the Yocto Project Development Manual.
  1004. :term:`CLASSOVERRIDE`
  1005. An internal variable specifying the special class override that
  1006. should currently apply (e.g. "class-target", "class-native", and so
  1007. forth). The classes that use this variable (e.g.
  1008. :ref:`ref-classes-native`, :ref:`ref-classes-nativesdk`, and so forth)
  1009. set the variable to appropriate values.
  1010. .. note::
  1011. :term:`CLASSOVERRIDE` gets its default "class-target" value from the
  1012. ``bitbake.conf`` file.
  1013. As an example, the following override allows you to install extra
  1014. files, but only when building for the target::
  1015. do_install:append:class-target() {
  1016. install my-extra-file ${D}${sysconfdir}
  1017. }
  1018. Here is an example where ``FOO`` is set to
  1019. "native" when building for the build host, and to "other" when not
  1020. building for the build host::
  1021. FOO:class-native = "native"
  1022. FOO = "other"
  1023. The underlying mechanism behind :term:`CLASSOVERRIDE` is simply
  1024. that it is included in the default value of
  1025. :term:`OVERRIDES`.
  1026. :term:`CLEANBROKEN`
  1027. If set to "1" within a recipe, :term:`CLEANBROKEN` specifies that the
  1028. ``make clean`` command does not work for the software being built.
  1029. Consequently, the OpenEmbedded build system will not try to run
  1030. ``make clean`` during the :ref:`ref-tasks-configure`
  1031. task, which is the default behavior.
  1032. :term:`COMBINED_FEATURES`
  1033. Provides a list of hardware features that are enabled in both
  1034. :term:`MACHINE_FEATURES` and
  1035. :term:`DISTRO_FEATURES`. This select list of
  1036. features contains features that make sense to be controlled both at
  1037. the machine and distribution configuration level. For example, the
  1038. "bluetooth" feature requires hardware support but should also be
  1039. optional at the distribution level, in case the hardware supports
  1040. Bluetooth but you do not ever intend to use it.
  1041. :term:`COMMERCIAL_AUDIO_PLUGINS`
  1042. This variable is specific to the :yocto_git:`GStreamer recipes
  1043. </poky/tree/meta/recipes-multimedia/gstreamer/gstreamer1.0-meta-base.bb>`.
  1044. It allows to build the GStreamer `"ugly"
  1045. <https://github.com/GStreamer/gst-plugins-ugly>`__ and
  1046. `"bad" <https://github.com/GStreamer/gst-plugins-bad>`__ audio plugins.
  1047. See the :ref:`dev-manual/licenses:other variables related to commercial licenses`
  1048. section for usage details.
  1049. :term:`COMMERCIAL_VIDEO_PLUGINS`
  1050. This variable is specific to the :yocto_git:`GStreamer recipes
  1051. </poky/tree/meta/recipes-multimedia/gstreamer/gstreamer1.0-meta-base.bb>`.
  1052. It allows to build the GStreamer `"ugly"
  1053. <https://github.com/GStreamer/gst-plugins-ugly>`__ and
  1054. `"bad" <https://github.com/GStreamer/gst-plugins-bad>`__ video plugins.
  1055. See the :ref:`dev-manual/licenses:other variables related to commercial licenses`
  1056. section for usage details.
  1057. :term:`COMMON_LICENSE_DIR`
  1058. Points to ``meta/files/common-licenses`` in the
  1059. :term:`Source Directory`, which is where generic license
  1060. files reside.
  1061. :term:`COMPATIBLE_HOST`
  1062. A regular expression that resolves to one or more hosts (when the
  1063. recipe is native) or one or more targets (when the recipe is
  1064. non-native) with which a recipe is compatible. The regular expression
  1065. is matched against :term:`HOST_SYS`. You can use the
  1066. variable to stop recipes from being built for classes of systems with
  1067. which the recipes are not compatible. Stopping these builds is
  1068. particularly useful with kernels. The variable also helps to increase
  1069. parsing speed since the build system skips parsing recipes not
  1070. compatible with the current system.
  1071. :term:`COMPATIBLE_MACHINE`
  1072. A regular expression that resolves to one or more target machines
  1073. with which a recipe is compatible. The regular expression is matched
  1074. against :term:`MACHINEOVERRIDES`. You can use
  1075. the variable to stop recipes from being built for machines with which
  1076. the recipes are not compatible. Stopping these builds is particularly
  1077. useful with kernels. The variable also helps to increase parsing
  1078. speed since the build system skips parsing recipes not compatible
  1079. with the current machine.
  1080. If one wants to have a recipe only available for some architectures
  1081. (here ``aarch64`` and ``mips64``), the following can be used::
  1082. COMPATIBLE_MACHINE = "^$"
  1083. COMPATIBLE_MACHINE:arch64 = "^(aarch64)$"
  1084. COMPATIBLE_MACHINE:mips64 = "^(mips64)$"
  1085. The first line means "match all machines whose :term:`MACHINEOVERRIDES`
  1086. contains the empty string", which will always be none.
  1087. The second is for matching all machines whose :term:`MACHINEOVERRIDES`
  1088. contains one override which is exactly ``aarch64``.
  1089. The third is for matching all machines whose :term:`MACHINEOVERRIDES`
  1090. contains one override which is exactly ``mips64``.
  1091. The same could be achieved with::
  1092. COMPATIBLE_MACHINE = "^(aarch64|mips64)$"
  1093. .. note::
  1094. When :term:`COMPATIBLE_MACHINE` is set in a recipe inherits from
  1095. native, the recipe is always skipped. All native recipes must be
  1096. entirely target independent and should not rely on :term:`MACHINE`.
  1097. :term:`COMPLEMENTARY_GLOB`
  1098. Defines wildcards to match when installing a list of complementary
  1099. packages for all the packages explicitly (or implicitly) installed in
  1100. an image.
  1101. The :term:`COMPLEMENTARY_GLOB` variable uses Unix filename pattern matching
  1102. (`fnmatch <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__),
  1103. which is similar to the Unix style pathname pattern expansion
  1104. (`glob <https://docs.python.org/3/library/glob.html>`__).
  1105. The resulting list of complementary packages is associated with an
  1106. item that can be added to
  1107. :term:`IMAGE_FEATURES`. An example usage of
  1108. this is the "dev-pkgs" item that when added to :term:`IMAGE_FEATURES`
  1109. will install -dev packages (containing headers and other development
  1110. files) for every package in the image.
  1111. To add a new feature item pointing to a wildcard, use a variable flag
  1112. to specify the feature item name and use the value to specify the
  1113. wildcard. Here is an example::
  1114. COMPLEMENTARY_GLOB[dev-pkgs] = '*-dev'
  1115. .. note::
  1116. When installing complementary packages, recommends relationships
  1117. (set via :term:`RRECOMMENDS`) are always ignored.
  1118. :term:`COMPONENTS_DIR`
  1119. Stores sysroot components for each recipe. The OpenEmbedded build
  1120. system uses :term:`COMPONENTS_DIR` when constructing recipe-specific
  1121. sysroots for other recipes.
  1122. The default is
  1123. "``${``\ :term:`STAGING_DIR`\ ``}-components``."
  1124. (i.e.
  1125. "``${``\ :term:`TMPDIR`\ ``}/sysroots-components``").
  1126. :term:`CONF_VERSION`
  1127. Tracks the version of the local configuration file (i.e.
  1128. ``local.conf``). The value for :term:`CONF_VERSION` increments each time
  1129. ``build/conf/`` compatibility changes.
  1130. :term:`CONFFILES`
  1131. Identifies editable or configurable files that are part of a package.
  1132. If the Package Management System (PMS) is being used to update
  1133. packages on the target system, it is possible that configuration
  1134. files you have changed after the original installation and that you
  1135. now want to remain unchanged are overwritten. In other words,
  1136. editable files might exist in the package that you do not want reset
  1137. as part of the package update process. You can use the :term:`CONFFILES`
  1138. variable to list the files in the package that you wish to prevent
  1139. the PMS from overwriting during this update process.
  1140. To use the :term:`CONFFILES` variable, provide a package name override
  1141. that identifies the resulting package. Then, provide a
  1142. space-separated list of files. Here is an example::
  1143. CONFFILES:${PN} += "${sysconfdir}/file1 \
  1144. ${sysconfdir}/file2 ${sysconfdir}/file3"
  1145. There is a relationship between the :term:`CONFFILES` and :term:`FILES`
  1146. variables. The files listed within :term:`CONFFILES` must be a subset of
  1147. the files listed within :term:`FILES`. Because the configuration files
  1148. you provide with :term:`CONFFILES` are simply being identified so that
  1149. the PMS will not overwrite them, it makes sense that the files must
  1150. already be included as part of the package through the :term:`FILES`
  1151. variable.
  1152. .. note::
  1153. When specifying paths as part of the :term:`CONFFILES` variable, it is
  1154. good practice to use appropriate path variables.
  1155. For example, ``${sysconfdir}`` rather than ``/etc`` or ``${bindir}``
  1156. rather than ``/usr/bin``. You can find a list of these variables at
  1157. the top of the ``meta/conf/bitbake.conf`` file in the
  1158. :term:`Source Directory`.
  1159. :term:`CONFIG_INITRAMFS_SOURCE`
  1160. Identifies the initial RAM filesystem (:term:`Initramfs`) source files. The
  1161. OpenEmbedded build system receives and uses this kernel Kconfig
  1162. variable as an environment variable. By default, the variable is set
  1163. to null ("").
  1164. The :term:`CONFIG_INITRAMFS_SOURCE` can be either a single cpio archive
  1165. with a ``.cpio`` suffix or a space-separated list of directories and
  1166. files for building the :term:`Initramfs` image. A cpio archive should contain
  1167. a filesystem archive to be used as an :term:`Initramfs` image. Directories
  1168. should contain a filesystem layout to be included in the :term:`Initramfs`
  1169. image. Files should contain entries according to the format described
  1170. by the ``usr/gen_init_cpio`` program in the kernel tree.
  1171. If you specify multiple directories and files, the :term:`Initramfs` image
  1172. will be the aggregate of all of them.
  1173. For information on creating an :term:`Initramfs`, see the
  1174. ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  1175. in the Yocto Project Development Tasks Manual.
  1176. :term:`CONFIG_SITE`
  1177. A list of files that contains ``autoconf`` test results relevant to
  1178. the current build. This variable is used by the Autotools utilities
  1179. when running ``configure``.
  1180. :term:`CONFIGURE_FLAGS`
  1181. The minimal arguments for GNU configure.
  1182. :term:`CONFIGURE_SCRIPT`
  1183. When using the :ref:`ref-classes-autotools` class, the
  1184. :term:`CONFIGURE_SCRIPT` variable stores the location of the ``configure``
  1185. script for the Autotools build system. The default definition for this
  1186. variable is::
  1187. CONFIGURE_SCRIPT ?= "${AUTOTOOLS_SCRIPT_PATH}/configure"
  1188. Where :term:`AUTOTOOLS_SCRIPT_PATH` is the location of the of the
  1189. Autotools build system scripts, which defaults to :term:`S`.
  1190. :term:`CONFLICT_DISTRO_FEATURES`
  1191. When inheriting the :ref:`ref-classes-features_check`
  1192. class, this variable identifies distribution features that would be
  1193. in conflict should the recipe be built. In other words, if the
  1194. :term:`CONFLICT_DISTRO_FEATURES` variable lists a feature that also
  1195. appears in :term:`DISTRO_FEATURES` within the current configuration, then
  1196. the recipe will be skipped, and if the build system attempts to build
  1197. the recipe then an error will be triggered.
  1198. :term:`CONVERSION_CMD`
  1199. This variable is used for storing image conversion commands.
  1200. Image conversion can convert an image into different objects like:
  1201. - Compressed version of the image
  1202. - Checksums for the image
  1203. An example of :term:`CONVERSION_CMD` from :ref:`ref-classes-image_types`
  1204. class is::
  1205. CONVERSION_CMD:lzo = "lzop -9 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
  1206. :term:`COPY_LIC_DIRS`
  1207. If set to "1" along with the
  1208. :term:`COPY_LIC_MANIFEST` variable, the
  1209. OpenEmbedded build system copies into the image the license files,
  1210. which are located in ``/usr/share/common-licenses``, for each
  1211. package. The license files are placed in directories within the image
  1212. itself during build time.
  1213. .. note::
  1214. The :term:`COPY_LIC_DIRS` does not offer a path for adding licenses for
  1215. newly installed packages to an image, which might be most suitable for
  1216. read-only filesystems that cannot be upgraded. See the
  1217. :term:`LICENSE_CREATE_PACKAGE` variable for additional information.
  1218. You can also reference the ":ref:`dev-manual/licenses:providing license text`"
  1219. section in the Yocto Project Development Tasks Manual for
  1220. information on providing license text.
  1221. :term:`COPY_LIC_MANIFEST`
  1222. If set to "1", the OpenEmbedded build system copies the license
  1223. manifest for the image to
  1224. ``/usr/share/common-licenses/license.manifest`` within the image
  1225. itself during build time.
  1226. .. note::
  1227. The :term:`COPY_LIC_MANIFEST` does not offer a path for adding licenses for
  1228. newly installed packages to an image, which might be most suitable for
  1229. read-only filesystems that cannot be upgraded. See the
  1230. :term:`LICENSE_CREATE_PACKAGE` variable for additional information.
  1231. You can also reference the ":ref:`dev-manual/licenses:providing license text`"
  1232. section in the Yocto Project Development Tasks Manual for
  1233. information on providing license text.
  1234. :term:`COPYLEFT_LICENSE_EXCLUDE`
  1235. A space-separated list of licenses to exclude from the source archived by
  1236. the :ref:`ref-classes-archiver` class. In other words, if a license in a
  1237. recipe's :term:`LICENSE` value is in the value of
  1238. :term:`COPYLEFT_LICENSE_EXCLUDE`, then its source is not archived by the
  1239. class.
  1240. .. note::
  1241. The :term:`COPYLEFT_LICENSE_EXCLUDE` variable takes precedence over the
  1242. :term:`COPYLEFT_LICENSE_INCLUDE` variable.
  1243. The default value, which is "CLOSED Proprietary", for
  1244. :term:`COPYLEFT_LICENSE_EXCLUDE` is set by the
  1245. :ref:`ref-classes-copyleft_filter` class, which
  1246. is inherited by the :ref:`ref-classes-archiver` class.
  1247. :term:`COPYLEFT_LICENSE_INCLUDE`
  1248. A space-separated list of licenses to include in the source archived
  1249. by the :ref:`ref-classes-archiver` class. In other
  1250. words, if a license in a recipe's :term:`LICENSE`
  1251. value is in the value of :term:`COPYLEFT_LICENSE_INCLUDE`, then its
  1252. source is archived by the class.
  1253. The default value is set by the :ref:`ref-classes-copyleft_filter` class,
  1254. which is inherited by the :ref:`ref-classes-archiver` class. The default
  1255. value includes "GPL*", "LGPL*", and "AGPL*".
  1256. :term:`COPYLEFT_PN_EXCLUDE`
  1257. A list of recipes to exclude in the source archived by the
  1258. :ref:`ref-classes-archiver` class. The :term:`COPYLEFT_PN_EXCLUDE`
  1259. variable overrides the license inclusion and exclusion caused through the
  1260. :term:`COPYLEFT_LICENSE_INCLUDE` and :term:`COPYLEFT_LICENSE_EXCLUDE`
  1261. variables, respectively.
  1262. The default value, which is "" indicating to not explicitly exclude
  1263. any recipes by name, for :term:`COPYLEFT_PN_EXCLUDE` is set by the
  1264. :ref:`ref-classes-copyleft_filter` class, which is inherited by the
  1265. :ref:`ref-classes-archiver` class.
  1266. :term:`COPYLEFT_PN_INCLUDE`
  1267. A list of recipes to include in the source archived by the
  1268. :ref:`ref-classes-archiver` class. The :term:`COPYLEFT_PN_INCLUDE`
  1269. variable overrides the license inclusion and exclusion caused through the
  1270. :term:`COPYLEFT_LICENSE_INCLUDE` and :term:`COPYLEFT_LICENSE_EXCLUDE`
  1271. variables, respectively.
  1272. The default value, which is "" indicating to not explicitly include
  1273. any recipes by name, for :term:`COPYLEFT_PN_INCLUDE` is set by the
  1274. :ref:`ref-classes-copyleft_filter` class, which is inherited by the
  1275. :ref:`ref-classes-archiver` class.
  1276. :term:`COPYLEFT_RECIPE_TYPES`
  1277. A space-separated list of recipe types to include in the source
  1278. archived by the :ref:`archiver <ref-classes-archiver>` class.
  1279. Recipe types are ``target``, :ref:`ref-classes-native`,
  1280. :ref:`ref-classes-nativesdk`, :ref:`ref-classes-cross`,
  1281. :ref:`ref-classes-crosssdk`, and :ref:`ref-classes-cross-canadian`.
  1282. The default value, which is "target*", for :term:`COPYLEFT_RECIPE_TYPES`
  1283. is set by the :ref:`ref-classes-copyleft_filter` class, which is
  1284. inherited by the :ref:`ref-classes-archiver` class.
  1285. :term:`CORE_IMAGE_EXTRA_INSTALL`
  1286. Specifies the list of packages to be added to the image. You should
  1287. only set this variable in the ``local.conf`` configuration file found
  1288. in the :term:`Build Directory`.
  1289. This variable replaces ``POKY_EXTRA_INSTALL``, which is no longer
  1290. supported.
  1291. :term:`COREBASE`
  1292. Specifies the parent directory of the OpenEmbedded-Core Metadata
  1293. layer (i.e. ``meta``).
  1294. It is an important distinction that :term:`COREBASE` points to the parent
  1295. of this layer and not the layer itself. Consider an example where you
  1296. have cloned the Poky Git repository and retained the ``poky`` name
  1297. for your local copy of the repository. In this case, :term:`COREBASE`
  1298. points to the ``poky`` folder because it is the parent directory of
  1299. the ``poky/meta`` layer.
  1300. :term:`COREBASE_FILES`
  1301. Lists files from the :term:`COREBASE` directory that
  1302. should be copied other than the layers listed in the
  1303. ``bblayers.conf`` file. The :term:`COREBASE_FILES` variable allows
  1304. to copy metadata from the OpenEmbedded build system
  1305. into the extensible SDK.
  1306. Explicitly listing files in :term:`COREBASE` is needed because it
  1307. typically contains build directories and other files that should not
  1308. normally be copied into the extensible SDK. Consequently, the value
  1309. of :term:`COREBASE_FILES` is used in order to only copy the files that
  1310. are actually needed.
  1311. :term:`CPP`
  1312. The minimal command and arguments used to run the C preprocessor.
  1313. :term:`CPPFLAGS`
  1314. Specifies the flags to pass to the C pre-processor (i.e. to both the
  1315. C and the C++ compilers). This variable is exported to an environment
  1316. variable and thus made visible to the software being built during the
  1317. compilation step.
  1318. Default initialization for :term:`CPPFLAGS` varies depending on what is
  1319. being built:
  1320. - :term:`TARGET_CPPFLAGS` when building for
  1321. the target
  1322. - :term:`BUILD_CPPFLAGS` when building for the
  1323. build host (i.e. ``-native``)
  1324. - :term:`BUILDSDK_CPPFLAGS` when building
  1325. for an SDK (i.e. ``nativesdk-``)
  1326. :term:`CROSS_COMPILE`
  1327. The toolchain binary prefix for the target tools. The
  1328. :term:`CROSS_COMPILE` variable is the same as the
  1329. :term:`TARGET_PREFIX` variable.
  1330. .. note::
  1331. The OpenEmbedded build system sets the :term:`CROSS_COMPILE`
  1332. variable only in certain contexts (e.g. when building for kernel
  1333. and kernel module recipes).
  1334. :term:`CVE_CHECK_CREATE_MANIFEST`
  1335. Specifies whether to create a CVE manifest to place in the deploy
  1336. directory. The default is "1".
  1337. :term:`CVE_CHECK_IGNORE`
  1338. This variable is deprecated and should be replaced by :term:`CVE_STATUS`.
  1339. :term:`CVE_CHECK_MANIFEST_JSON`
  1340. Specifies the path to the CVE manifest in JSON format. See
  1341. :term:`CVE_CHECK_CREATE_MANIFEST`.
  1342. :term:`CVE_CHECK_MANIFEST_JSON_SUFFIX`
  1343. Allows to modify the JSON manifest suffix. See
  1344. :term:`CVE_CHECK_MANIFEST_JSON`.
  1345. :term:`CVE_CHECK_REPORT_PATCHED`
  1346. Specifies whether or not the :ref:`ref-classes-cve-check`
  1347. class should report patched or ignored CVEs. The default is "1", but you
  1348. may wish to set it to "0" if you do not need patched or ignored CVEs in
  1349. the logs.
  1350. :term:`CVE_CHECK_SHOW_WARNINGS`
  1351. Specifies whether or not the :ref:`ref-classes-cve-check`
  1352. class should generate warning messages on the console when unpatched
  1353. CVEs are found. The default is "1", but you may wish to set it to "0" if
  1354. you are already examining/processing the logs after the build has
  1355. completed and thus do not need the warning messages.
  1356. :term:`CVE_CHECK_SKIP_RECIPE`
  1357. The list of package names (:term:`PN`) for which
  1358. CVEs (Common Vulnerabilities and Exposures) are ignored.
  1359. :term:`CVE_DB_INCR_UPDATE_AGE_THRES`
  1360. Specifies the maximum age of the CVE database in seconds for an
  1361. incremental update (instead of a full-download). Use "0" to force a
  1362. full-download.
  1363. :term:`CVE_DB_UPDATE_INTERVAL`
  1364. Specifies the CVE database update interval in seconds, as used by
  1365. ``cve-update-db-native``. The default value is "86400" i.e. once a day
  1366. (24*60*60). If the value is set to "0" then the update will be forced
  1367. every time. Alternatively, a negative value e.g. "-1" will disable
  1368. updates entirely.
  1369. :term:`CVE_PRODUCT`
  1370. In a recipe, defines the name used to match the recipe name
  1371. against the name in the upstream `NIST CVE database <https://nvd.nist.gov/>`__.
  1372. The default is ${:term:`BPN`} (except for recipes that inherit the
  1373. :ref:`ref-classes-pypi` class where it is set based upon
  1374. :term:`PYPI_PACKAGE`). If it does not match the name in the NIST CVE
  1375. database or matches with multiple entries in the database, the default
  1376. value needs to be changed.
  1377. Here is an example from the :oe_layerindex:`Berkeley DB recipe </layerindex/recipe/544>`::
  1378. CVE_PRODUCT = "oracle_berkeley_db berkeley_db"
  1379. Sometimes the product name is not specific enough, for example
  1380. "tar" has been matching CVEs for the GNU ``tar`` package and also
  1381. the ``node-tar`` node.js extension. To avoid this problem, use the
  1382. vendor name as a prefix. The syntax for this is::
  1383. CVE_PRODUCT = "vendor:package"
  1384. :term:`CVE_STATUS`
  1385. The CVE ID which is patched or should be ignored. Here is
  1386. an example from the :oe_layerindex:`Python3 recipe</layerindex/recipe/23823>`::
  1387. CVE_STATUS[CVE-2020-15523] = "not-applicable-platform: Issue only applies on Windows"
  1388. It has the format "reason: description" and the description is optional.
  1389. The Reason is mapped to the final CVE state by mapping via
  1390. :term:`CVE_CHECK_STATUSMAP`. See :ref:`dev-manual/vulnerabilities:fixing vulnerabilities in recipes`
  1391. for details.
  1392. :term:`CVE_STATUS_GROUPS`
  1393. If there are many CVEs with the same status and reason, they can by simplified by using this
  1394. variable instead of many similar lines with :term:`CVE_STATUS`::
  1395. CVE_STATUS_GROUPS = "CVE_STATUS_WIN CVE_STATUS_PATCHED"
  1396. CVE_STATUS_WIN = "CVE-1234-0001 CVE-1234-0002"
  1397. CVE_STATUS_WIN[status] = "not-applicable-platform: Issue only applies on Windows"
  1398. CVE_STATUS_PATCHED = "CVE-1234-0003 CVE-1234-0004"
  1399. CVE_STATUS_PATCHED[status] = "fixed-version: Fixed externally"
  1400. :term:`CVE_CHECK_STATUSMAP`
  1401. Mapping variable for all possible reasons of :term:`CVE_STATUS`:
  1402. ``Patched``, ``Unpatched`` and ``Ignored``.
  1403. See :ref:`ref-classes-cve-check` or ``meta/conf/cve-check-map.conf`` for more details::
  1404. CVE_CHECK_STATUSMAP[cpe-incorrect] = "Ignored"
  1405. :term:`CVE_VERSION`
  1406. In a recipe, defines the version used to match the recipe version
  1407. against the version in the `NIST CVE database <https://nvd.nist.gov/>`__
  1408. when usign :ref:`ref-classes-cve-check`.
  1409. The default is ${:term:`PV`} but if recipes use custom version numbers
  1410. which do not map to upstream software component release versions and the versions
  1411. used in the CVE database, then this variable can be used to set the
  1412. version number for :ref:`ref-classes-cve-check`. Example::
  1413. CVE_VERSION = "2.39"
  1414. :term:`CVSDIR`
  1415. The directory in which files checked out under the CVS system are
  1416. stored.
  1417. :term:`CXX`
  1418. The minimal command and arguments used to run the C++ compiler.
  1419. :term:`CXXFLAGS`
  1420. Specifies the flags to pass to the C++ compiler. This variable is
  1421. exported to an environment variable and thus made visible to the
  1422. software being built during the compilation step.
  1423. Default initialization for :term:`CXXFLAGS` varies depending on what is
  1424. being built:
  1425. - :term:`TARGET_CXXFLAGS` when building for
  1426. the target
  1427. - :term:`BUILD_CXXFLAGS` when building for the
  1428. build host (i.e. ``-native``)
  1429. - :term:`BUILDSDK_CXXFLAGS` when building
  1430. for an SDK (i.e. ``nativesdk-``)
  1431. :term:`D`
  1432. The destination directory. The location in the :term:`Build Directory`
  1433. where components are installed by the
  1434. :ref:`ref-tasks-install` task. This location defaults
  1435. to::
  1436. ${WORKDIR}/image
  1437. .. note::
  1438. Tasks that read from or write to this directory should run under
  1439. :ref:`fakeroot <overview-manual/concepts:fakeroot and pseudo>`.
  1440. :term:`DATE`
  1441. The date the build was started. Dates appear using the year, month,
  1442. and day (YMD) format (e.g. "20150209" for February 9th, 2015).
  1443. :term:`DATETIME`
  1444. The date and time on which the current build started. The format is
  1445. suitable for timestamps.
  1446. :term:`DEBIAN_NOAUTONAME`
  1447. When the :ref:`ref-classes-debian` class is inherited,
  1448. which is the default behavior, :term:`DEBIAN_NOAUTONAME` specifies a
  1449. particular package should not be renamed according to Debian library
  1450. package naming. You must use the package name as an override when you
  1451. set this variable. Here is an example from the ``fontconfig`` recipe::
  1452. DEBIAN_NOAUTONAME:fontconfig-utils = "1"
  1453. :term:`DEBIANNAME`
  1454. When the :ref:`ref-classes-debian` class is inherited,
  1455. which is the default behavior, :term:`DEBIANNAME` allows you to override
  1456. the library name for an individual package. Overriding the library
  1457. name in these cases is rare. You must use the package name as an
  1458. override when you set this variable. Here is an example from the
  1459. ``dbus`` recipe::
  1460. DEBIANNAME:${PN} = "dbus-1"
  1461. :term:`DEBUG_BUILD`
  1462. Specifies to build packages with debugging information. This
  1463. influences the value of the :term:`SELECTED_OPTIMIZATION` variable.
  1464. :term:`DEBUG_OPTIMIZATION`
  1465. The options to pass in :term:`TARGET_CFLAGS` and :term:`CFLAGS` when
  1466. compiling a system for debugging. This variable defaults to "-O
  1467. -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe".
  1468. :term:`DEBUG_PREFIX_MAP`
  1469. Allows to set C compiler options, such as ``-fdebug-prefix-map``,
  1470. ``-fmacro-prefix-map``, and ``-ffile-prefix-map``, which allow to
  1471. replace build-time paths by install-time ones in the debugging sections
  1472. of binaries. This makes compiler output files location independent,
  1473. at the cost of having to pass an extra command to tell the debugger
  1474. where source files are.
  1475. This is used by the Yocto Project to guarantee
  1476. :doc:`/test-manual/reproducible-builds` even when the source code of
  1477. a package uses the ``__FILE__`` or ``assert()`` macros. See the
  1478. `reproducible-builds.org <https://reproducible-builds.org/docs/build-path/>`__
  1479. website for details.
  1480. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  1481. not intended to be user-configurable.
  1482. :term:`DEFAULT_PREFERENCE`
  1483. Specifies a weak bias for recipe selection priority.
  1484. The most common usage of this is variable is to set it to "-1" within
  1485. a recipe for a development version of a piece of software. Using the
  1486. variable in this way causes the stable version of the recipe to build
  1487. by default in the absence of :term:`PREFERRED_VERSION` being used to
  1488. build the development version.
  1489. .. note::
  1490. The bias provided by :term:`DEFAULT_PREFERENCE` is weak and is overridden
  1491. by :term:`BBFILE_PRIORITY` if that variable is different between two
  1492. layers that contain different versions of the same recipe.
  1493. :term:`DEFAULT_TIMEZONE`
  1494. Specifies the time zone set in the image.
  1495. This variable causes the ``tzdata`` package to configure
  1496. ``${sysconfdir}/localtime`` accordingly. Valid values are all files
  1497. found in ``/usr/share/zoneinfo`` like ``CET`` or ``Asia/Baku``.
  1498. :term:`DEFAULTTUNE`
  1499. The default CPU and Application Binary Interface (ABI) tunings (i.e.
  1500. the "tune") used by the OpenEmbedded build system. The
  1501. :term:`DEFAULTTUNE` helps define
  1502. :term:`TUNE_FEATURES`.
  1503. The default tune is either implicitly or explicitly set by the
  1504. machine (:term:`MACHINE`). However, you can override
  1505. the setting using available tunes as defined with
  1506. :term:`AVAILTUNES`.
  1507. :term:`DEPENDS`
  1508. Lists a recipe's build-time dependencies. These are dependencies on
  1509. other recipes whose contents (e.g. headers and shared libraries) are
  1510. needed by the recipe at build time.
  1511. As an example, consider a recipe ``foo`` that contains the following
  1512. assignment::
  1513. DEPENDS = "bar"
  1514. The practical effect of the previous assignment is that all files
  1515. installed by bar will be available in the appropriate staging sysroot,
  1516. given by the :term:`STAGING_DIR* <STAGING_DIR>` variables, by the time
  1517. the :ref:`ref-tasks-configure` task for ``foo`` runs. This mechanism is
  1518. implemented by having :ref:`ref-tasks-configure` depend on the
  1519. :ref:`ref-tasks-populate_sysroot` task of each recipe listed in
  1520. :term:`DEPENDS`, through a
  1521. ``[``\ :ref:`deptask <bitbake-user-manual/bitbake-user-manual-metadata:variable flags>`\ ``]``
  1522. declaration in the :ref:`ref-classes-base` class.
  1523. .. note::
  1524. It seldom is necessary to reference, for example, :term:`STAGING_DIR_HOST`
  1525. explicitly. The standard classes and build-related variables are
  1526. configured to automatically use the appropriate staging sysroots.
  1527. As another example, :term:`DEPENDS` can also be used to add utilities
  1528. that run on the build machine during the build. For example, a recipe
  1529. that makes use of a code generator built by the recipe ``codegen``
  1530. might have the following::
  1531. DEPENDS = "codegen-native"
  1532. For more
  1533. information, see the :ref:`ref-classes-native` class and
  1534. the :term:`EXTRANATIVEPATH` variable.
  1535. .. note::
  1536. - :term:`DEPENDS` is a list of recipe names. Or, to be more precise,
  1537. it is a list of :term:`PROVIDES` names, which
  1538. usually match recipe names. Putting a package name such as
  1539. "foo-dev" in :term:`DEPENDS` does not make sense. Use "foo"
  1540. instead, as this will put files from all the packages that make
  1541. up ``foo``, which includes those from ``foo-dev``, into the
  1542. sysroot.
  1543. - One recipe having another recipe in :term:`DEPENDS` does not by
  1544. itself add any runtime dependencies between the packages
  1545. produced by the two recipes. However, as explained in the
  1546. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  1547. section in the Yocto Project Overview and Concepts Manual,
  1548. runtime dependencies will often be added automatically, meaning
  1549. :term:`DEPENDS` alone is sufficient for most recipes.
  1550. - Counterintuitively, :term:`DEPENDS` is often necessary even for
  1551. recipes that install precompiled components. For example, if
  1552. ``libfoo`` is a precompiled library that links against
  1553. ``libbar``, then linking against ``libfoo`` requires both
  1554. ``libfoo`` and ``libbar`` to be available in the sysroot.
  1555. Without a :term:`DEPENDS` from the recipe that installs ``libfoo``
  1556. to the recipe that installs ``libbar``, other recipes might
  1557. fail to link against ``libfoo``.
  1558. For information on runtime dependencies, see the :term:`RDEPENDS`
  1559. variable. You can also see the
  1560. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:tasks`" and
  1561. ":ref:`bitbake-user-manual/bitbake-user-manual-execution:dependencies`"
  1562. sections in the BitBake User Manual for additional information on tasks
  1563. and dependencies.
  1564. :term:`DEPLOY_DIR`
  1565. Points to the general area that the OpenEmbedded build system uses to
  1566. place images, packages, SDKs, and other output files that are ready
  1567. to be used outside of the build system. By default, this directory
  1568. resides within the :term:`Build Directory` as ``${TMPDIR}/deploy``.
  1569. For more information on the structure of the Build Directory, see
  1570. ":ref:`ref-manual/structure:the build directory --- \`\`build/\`\``" section.
  1571. For more detail on the contents of the ``deploy`` directory, see the
  1572. ":ref:`overview-manual/concepts:images`",
  1573. ":ref:`overview-manual/concepts:package feeds`", and
  1574. ":ref:`overview-manual/concepts:application development sdk`" sections all in the
  1575. Yocto Project Overview and Concepts Manual.
  1576. :term:`DEPLOY_DIR_DEB`
  1577. Points to the area that the OpenEmbedded build system uses to place
  1578. Debian packages that are ready to be used outside of the build
  1579. system. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1580. ":ref:`ref-classes-package_deb`".
  1581. The BitBake configuration file initially defines the
  1582. :term:`DEPLOY_DIR_DEB` variable as a sub-folder of
  1583. :term:`DEPLOY_DIR`::
  1584. DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb"
  1585. The :ref:`ref-classes-package_deb` class uses the
  1586. :term:`DEPLOY_DIR_DEB` variable to make sure the
  1587. :ref:`ref-tasks-package_write_deb` task
  1588. writes Debian packages into the appropriate folder. For more
  1589. information on how packaging works, see the
  1590. ":ref:`overview-manual/concepts:package feeds`" section
  1591. in the Yocto Project Overview and Concepts Manual.
  1592. :term:`DEPLOY_DIR_IMAGE`
  1593. Points to the area that the OpenEmbedded build system uses to place
  1594. images and other associated output files that are ready to be
  1595. deployed onto the target machine. The directory is machine-specific
  1596. as it contains the ``${MACHINE}`` name. By default, this directory
  1597. resides within the :term:`Build Directory` as
  1598. ``${DEPLOY_DIR}/images/${MACHINE}/``.
  1599. It must not be used directly in recipes when deploying files. Instead,
  1600. it's only useful when a recipe needs to "read" a file already deployed
  1601. by a dependency. So, it should be filled with the contents of
  1602. :term:`DEPLOYDIR` by the :ref:`ref-classes-deploy` class or with the
  1603. contents of :term:`IMGDEPLOYDIR` by the :ref:`ref-classes-image` class.
  1604. For more information on the structure of the :term:`Build Directory`, see
  1605. ":ref:`ref-manual/structure:the build directory --- \`\`build/\`\``" section.
  1606. For more detail on the contents of the ``deploy`` directory, see the
  1607. ":ref:`overview-manual/concepts:images`" and
  1608. ":ref:`overview-manual/concepts:application development sdk`" sections both in
  1609. the Yocto Project Overview and Concepts Manual.
  1610. :term:`DEPLOY_DIR_IPK`
  1611. Points to the area that the OpenEmbedded build system uses to place
  1612. IPK packages that are ready to be used outside of the build system.
  1613. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1614. ":ref:`ref-classes-package_ipk`".
  1615. The BitBake configuration file initially defines this variable as a
  1616. sub-folder of :term:`DEPLOY_DIR`::
  1617. DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk"
  1618. The :ref:`ref-classes-package_ipk` class uses the :term:`DEPLOY_DIR_IPK`
  1619. variable to make sure the :ref:`ref-tasks-package_write_ipk` task
  1620. writes IPK packages into the appropriate folder. For more information
  1621. on how packaging works, see the
  1622. ":ref:`overview-manual/concepts:package feeds`" section
  1623. in the Yocto Project Overview and Concepts Manual.
  1624. :term:`DEPLOY_DIR_RPM`
  1625. Points to the area that the OpenEmbedded build system uses to place
  1626. RPM packages that are ready to be used outside of the build system.
  1627. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1628. ":ref:`ref-classes-package_rpm`".
  1629. The BitBake configuration file initially defines this variable as a
  1630. sub-folder of :term:`DEPLOY_DIR`::
  1631. DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm"
  1632. The :ref:`ref-classes-package_rpm` class uses the
  1633. :term:`DEPLOY_DIR_RPM` variable to make sure the
  1634. :ref:`ref-tasks-package_write_rpm` task
  1635. writes RPM packages into the appropriate folder. For more information
  1636. on how packaging works, see the
  1637. ":ref:`overview-manual/concepts:package feeds`" section
  1638. in the Yocto Project Overview and Concepts Manual.
  1639. :term:`DEPLOYDIR`
  1640. When inheriting the :ref:`ref-classes-deploy` class, the
  1641. :term:`DEPLOYDIR` points to a temporary work area for deployed files that
  1642. is set in the :ref:`ref-classes-deploy` class as follows::
  1643. DEPLOYDIR = "${WORKDIR}/deploy-${PN}"
  1644. Recipes inheriting the :ref:`ref-classes-deploy` class should copy files to be
  1645. deployed into :term:`DEPLOYDIR`, and the class will take care of copying
  1646. them into :term:`DEPLOY_DIR_IMAGE`
  1647. afterwards.
  1648. :term:`DESCRIPTION`
  1649. The package description used by package managers. If not set,
  1650. :term:`DESCRIPTION` takes the value of the :term:`SUMMARY`
  1651. variable.
  1652. :term:`DEV_PKG_DEPENDENCY`
  1653. Provides an easy way for recipes to disable or adjust the runtime recommendation
  1654. (:term:`RRECOMMENDS`) of the ``${PN}-dev`` package on the main
  1655. (``${PN}``) package.
  1656. :term:`DISABLE_STATIC`
  1657. Used in order to disable static linking by default (in order to save
  1658. space, since static libraries are often unused in embedded systems.)
  1659. The default value is " --disable-static", however it can be set to ""
  1660. in order to enable static linking if desired. Certain recipes do this
  1661. individually, and also there is a
  1662. ``meta/conf/distro/include/no-static-libs.inc`` include file that
  1663. disables static linking for a number of recipes. Some software
  1664. packages or build tools (such as CMake) have explicit support for
  1665. enabling / disabling static linking, and in those cases
  1666. :term:`DISABLE_STATIC` is not used.
  1667. :term:`DISTRO`
  1668. The short name of the distribution. For information on the long name
  1669. of the distribution, see the :term:`DISTRO_NAME`
  1670. variable.
  1671. The :term:`DISTRO` variable corresponds to a distribution configuration
  1672. file whose root name is the same as the variable's argument and whose
  1673. filename extension is ``.conf``. For example, the distribution
  1674. configuration file for the Poky distribution is named ``poky.conf``
  1675. and resides in the ``meta-poky/conf/distro`` directory of the
  1676. :term:`Source Directory`.
  1677. Within that ``poky.conf`` file, the :term:`DISTRO` variable is set as
  1678. follows::
  1679. DISTRO = "poky"
  1680. Distribution configuration files are located in a ``conf/distro``
  1681. directory within the :term:`Metadata` that contains the
  1682. distribution configuration. The value for :term:`DISTRO` must not contain
  1683. spaces, and is typically all lower-case.
  1684. .. note::
  1685. If the :term:`DISTRO` variable is blank, a set of default configurations
  1686. are used, which are specified within
  1687. ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.
  1688. :term:`DISTRO_CODENAME`
  1689. Specifies a codename for the distribution being built.
  1690. :term:`DISTRO_EXTRA_RDEPENDS`
  1691. Specifies a list of distro-specific packages to add to all images.
  1692. This variable takes effect through ``packagegroup-base`` so the
  1693. variable only really applies to the more full-featured images that
  1694. include ``packagegroup-base``. You can use this variable to keep
  1695. distro policy out of generic images. As with all other distro
  1696. variables, you set this variable in the distro ``.conf`` file.
  1697. :term:`DISTRO_EXTRA_RRECOMMENDS`
  1698. Specifies a list of distro-specific packages to add to all images if
  1699. the packages exist. The packages might not exist or be empty (e.g.
  1700. kernel modules). The list of packages are automatically installed but
  1701. you can remove them.
  1702. :term:`DISTRO_FEATURES`
  1703. The software support you want in your distribution for various
  1704. features. You define your distribution features in the distribution
  1705. configuration file.
  1706. In most cases, the presence or absence of a feature in
  1707. :term:`DISTRO_FEATURES` is translated to the appropriate option supplied
  1708. to the configure script during the
  1709. :ref:`ref-tasks-configure` task for recipes that
  1710. optionally support the feature. For example, specifying "x11" in
  1711. :term:`DISTRO_FEATURES`, causes every piece of software built for the
  1712. target that can optionally support X11 to have its X11 support
  1713. enabled.
  1714. .. note::
  1715. Just enabling :term:`DISTRO_FEATURES` alone doesn't
  1716. enable feature support for packages. Mechanisms such as making
  1717. :term:`PACKAGECONFIG` track :term:`DISTRO_FEATURES` are used
  1718. to enable/disable package features.
  1719. Two more examples are Bluetooth and NFS support. For a more complete
  1720. list of features that ships with the Yocto Project and that you can
  1721. provide with this variable, see the ":ref:`ref-features-distro`" section.
  1722. :term:`DISTRO_FEATURES_BACKFILL`
  1723. A space-separated list of features to be added to :term:`DISTRO_FEATURES`
  1724. if not also present in :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`.
  1725. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  1726. not intended to be user-configurable. It is best to just reference
  1727. the variable to see which distro features are being
  1728. :ref:`backfilled <ref-features-backfill>` for all distro configurations.
  1729. :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`
  1730. A space-separated list of features from :term:`DISTRO_FEATURES_BACKFILL`
  1731. that should not be :ref:`backfilled <ref-features-backfill>` (i.e. added
  1732. to :term:`DISTRO_FEATURES`) during the build.
  1733. This corresponds to an opt-out mechanism. When new default distro
  1734. features are introduced, distribution maintainers can review (`consider`)
  1735. them and decide to exclude them from the
  1736. :ref:`backfilled <ref-features-backfill>` features. Therefore, the
  1737. combination of :term:`DISTRO_FEATURES_BACKFILL` and
  1738. :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED` makes it possible to
  1739. add new default features without breaking existing distributions.
  1740. :term:`DISTRO_FEATURES_DEFAULT`
  1741. A convenience variable that gives you the default list of distro
  1742. features with the exception of any features specific to the C library
  1743. (``libc``).
  1744. When creating a custom distribution, you might find it useful to be
  1745. able to reuse the default
  1746. :term:`DISTRO_FEATURES` options without the
  1747. need to write out the full set. Here is an example that uses
  1748. :term:`DISTRO_FEATURES_DEFAULT` from a custom distro configuration file::
  1749. DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} myfeature"
  1750. :term:`DISTRO_FEATURES_FILTER_NATIVE`
  1751. Specifies a list of features that if present in the target
  1752. :term:`DISTRO_FEATURES` value should be
  1753. included in :term:`DISTRO_FEATURES` when building native recipes. This
  1754. variable is used in addition to the features filtered using the
  1755. :term:`DISTRO_FEATURES_NATIVE`
  1756. variable.
  1757. :term:`DISTRO_FEATURES_FILTER_NATIVESDK`
  1758. Specifies a list of features that if present in the target
  1759. :term:`DISTRO_FEATURES` value should be included in
  1760. :term:`DISTRO_FEATURES` when building :ref:`ref-classes-nativesdk`
  1761. recipes. This variable is used in addition to the features filtered using
  1762. the :term:`DISTRO_FEATURES_NATIVESDK` variable.
  1763. :term:`DISTRO_FEATURES_NATIVE`
  1764. Specifies a list of features that should be included in
  1765. :term:`DISTRO_FEATURES` when building native
  1766. recipes. This variable is used in addition to the features filtered
  1767. using the
  1768. :term:`DISTRO_FEATURES_FILTER_NATIVE`
  1769. variable.
  1770. :term:`DISTRO_FEATURES_NATIVESDK`
  1771. Specifies a list of features that should be included in
  1772. :term:`DISTRO_FEATURES` when building
  1773. :ref:`ref-classes-nativesdk` recipes. This variable is used
  1774. in addition to the features filtered using the
  1775. :term:`DISTRO_FEATURES_FILTER_NATIVESDK` variable.
  1776. :term:`DISTRO_NAME`
  1777. The long name of the distribution. For information on the short name
  1778. of the distribution, see the :term:`DISTRO` variable.
  1779. The :term:`DISTRO_NAME` variable corresponds to a distribution
  1780. configuration file whose root name is the same as the variable's
  1781. argument and whose filename extension is ``.conf``. For example, the
  1782. distribution configuration file for the Poky distribution is named
  1783. ``poky.conf`` and resides in the ``meta-poky/conf/distro`` directory
  1784. of the :term:`Source Directory`.
  1785. Within that ``poky.conf`` file, the :term:`DISTRO_NAME` variable is set
  1786. as follows::
  1787. DISTRO_NAME = "Poky (Yocto Project Reference Distro)"
  1788. Distribution configuration files are located in a ``conf/distro``
  1789. directory within the :term:`Metadata` that contains the
  1790. distribution configuration.
  1791. .. note::
  1792. If the :term:`DISTRO_NAME` variable is blank, a set of default
  1793. configurations are used, which are specified within
  1794. ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.
  1795. :term:`DISTRO_VERSION`
  1796. The version of the distribution.
  1797. :term:`DISTROOVERRIDES`
  1798. A colon-separated list of overrides specific to the current
  1799. distribution. By default, this list includes the value of
  1800. :term:`DISTRO`.
  1801. You can extend :term:`DISTROOVERRIDES` to add extra overrides that should
  1802. apply to the distribution.
  1803. The underlying mechanism behind :term:`DISTROOVERRIDES` is simply that it
  1804. is included in the default value of
  1805. :term:`OVERRIDES`.
  1806. Here is an example from :yocto_git:`meta-poky/conf/distro/poky-tiny.conf
  1807. </poky/tree/meta-poky/conf/distro/poky-tiny.conf>`::
  1808. DISTROOVERRIDES = "poky:poky-tiny"
  1809. :term:`DL_DIR`
  1810. The central download directory used by the build process to store
  1811. downloads. By default, :term:`DL_DIR` gets files suitable for mirroring
  1812. for everything except Git repositories. If you want tarballs of Git
  1813. repositories, use the
  1814. :term:`BB_GENERATE_MIRROR_TARBALLS`
  1815. variable.
  1816. You can set this directory by defining the :term:`DL_DIR` variable in the
  1817. ``conf/local.conf`` file. This directory is self-maintaining and you
  1818. should not have to touch it. By default, the directory is
  1819. ``downloads`` in the :term:`Build Directory`::
  1820. #DL_DIR ?= "${TOPDIR}/downloads"
  1821. To specify a different download directory,
  1822. simply remove the comment from the line and provide your directory.
  1823. During a first build, the system downloads many different source code
  1824. tarballs from various upstream projects. Downloading can take a
  1825. while, particularly if your network connection is slow. Tarballs are
  1826. all stored in the directory defined by :term:`DL_DIR` and the build
  1827. system looks there first to find source tarballs.
  1828. .. note::
  1829. When wiping and rebuilding, you can preserve this directory to
  1830. speed up this part of subsequent builds.
  1831. You can safely share this directory between multiple builds on the
  1832. same development machine. For additional information on how the build
  1833. process gets source files when working behind a firewall or proxy
  1834. server, see this specific question in the ":doc:`faq`"
  1835. chapter. You can also refer to the
  1836. ":yocto_wiki:`Working Behind a Network Proxy </Working_Behind_a_Network_Proxy>`"
  1837. Wiki page.
  1838. :term:`DOC_COMPRESS`
  1839. When inheriting the :ref:`ref-classes-compress_doc`
  1840. class, this variable sets the compression policy used when the
  1841. OpenEmbedded build system compresses manual and info pages. By
  1842. default, the compression method used is gz (gzip). Other policies
  1843. available are xz and bz2.
  1844. For information on policies and on how to use this variable, see the
  1845. comments in the ``meta/classes-recipe/compress_doc.bbclass`` file.
  1846. :term:`DT_FILES`
  1847. Space-separated list of device tree source files to compile using
  1848. a recipe that inherits the :ref:`ref-classes-devicetree` class. These
  1849. are relative to the :term:`DT_FILES_PATH`.
  1850. For convenience, both ``.dts`` and ``.dtb`` extensions can be used.
  1851. Use an empty string (default) to build all device tree sources within
  1852. the :term:`DT_FILES_PATH` directory.
  1853. :term:`DT_FILES_PATH`
  1854. When compiling out-of-tree device tree sources using a recipe that
  1855. inherits the :ref:`ref-classes-devicetree` class, this variable specifies
  1856. the path to the directory containing dts files to build.
  1857. Defaults to the :term:`S` directory.
  1858. :term:`DT_PADDING_SIZE`
  1859. When inheriting the :ref:`ref-classes-devicetree` class, this variable
  1860. specifies the size of padding appended to the device tree blob, used as
  1861. extra space typically for additional properties during boot.
  1862. :term:`EFI_ARCH`
  1863. The CPU architecture name within EFI standard. Set in
  1864. :oe_git:`meta/conf/image-uefi.conf
  1865. <openembedded-core/tree/meta/conf/image-uefi.conf>`.
  1866. :term:`EFI_PROVIDER`
  1867. When building bootable images (i.e. where ``hddimg``, ``iso``, or
  1868. ``wic.vmdk`` is in :term:`IMAGE_FSTYPES`), the
  1869. :term:`EFI_PROVIDER` variable specifies the EFI bootloader to use. The
  1870. default is "grub-efi", but "systemd-boot" can be used instead.
  1871. See the :ref:`ref-classes-systemd-boot` and :ref:`ref-classes-image-live`
  1872. classes for more information.
  1873. :term:`EFI_UKI_DIR`
  1874. The primary place for the UKI image inside the EFI System Partition.
  1875. :term:`EFI_UKI_PATH`
  1876. The path for the UKI image inside the root filesystem.
  1877. :term:`ENABLE_BINARY_LOCALE_GENERATION`
  1878. Variable that controls which locales for ``glibc`` are generated
  1879. during the build (useful if the target device has 64Mbytes of RAM or
  1880. less).
  1881. :term:`ERR_REPORT_DIR`
  1882. When used with the :ref:`ref-classes-report-error` class, specifies the
  1883. path used for storing the debug files created by the :ref:`error reporting
  1884. tool <dev-manual/error-reporting-tool:using the error reporting tool>`,
  1885. which allows you to submit build errors you encounter to a central
  1886. database. By default, the value of this variable is
  1887. ``${``\ :term:`LOG_DIR`\ ``}/error-report``.
  1888. You can set :term:`ERR_REPORT_DIR` to the path you want the error
  1889. reporting tool to store the debug files as follows in your
  1890. ``local.conf`` file::
  1891. ERR_REPORT_DIR = "path"
  1892. :term:`ERROR_QA`
  1893. Specifies the quality assurance checks whose failures are reported as
  1894. errors by the OpenEmbedded build system. You set this variable in
  1895. your distribution configuration file. For a list of the checks you
  1896. can control with this variable, see the
  1897. ":ref:`ref-classes-insane`" section.
  1898. :term:`ESDK_CLASS_INHERIT_DISABLE`
  1899. A list of classes to remove from the :term:`INHERIT`
  1900. value globally within the extensible SDK configuration. The
  1901. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class sets the
  1902. default value::
  1903. ESDK_CLASS_INHERIT_DISABLE ?= "buildhistory icecc"
  1904. Some classes are not generally applicable within the extensible SDK
  1905. context. You can use this variable to disable those classes.
  1906. For additional information on how to customize the extensible SDK's
  1907. configuration, see the
  1908. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  1909. section in the Yocto Project Application Development and the
  1910. Extensible Software Development Kit (eSDK) manual.
  1911. :term:`ESDK_LOCALCONF_ALLOW`
  1912. A list of variables allowed through from the OpenEmbedded build
  1913. system configuration into the extensible SDK configuration. By
  1914. default, the list of variables is empty and is set in the
  1915. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class.
  1916. This list overrides the variables specified using the
  1917. :term:`ESDK_LOCALCONF_REMOVE` variable as well as
  1918. other variables automatically added due to the "/" character
  1919. being found at the start of the
  1920. value, which is usually indicative of being a path and thus might not
  1921. be valid on the system where the SDK is installed.
  1922. For additional information on how to customize the extensible SDK's
  1923. configuration, see the
  1924. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  1925. section in the Yocto Project Application Development and the
  1926. Extensible Software Development Kit (eSDK) manual.
  1927. :term:`ESDK_LOCALCONF_REMOVE`
  1928. A list of variables not allowed through from the OpenEmbedded build
  1929. system configuration into the extensible SDK configuration. Usually,
  1930. these are variables that are specific to the machine on which the
  1931. build system is running and thus would be potentially problematic
  1932. within the extensible SDK.
  1933. By default, :term:`ESDK_LOCALCONF_REMOVE` is set in the
  1934. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class and
  1935. excludes the following variables:
  1936. - :term:`CONF_VERSION`
  1937. - :term:`BB_NUMBER_THREADS`
  1938. - :term:`BB_NUMBER_PARSE_THREADS`
  1939. - :term:`PARALLEL_MAKE`
  1940. - :term:`PRSERV_HOST`
  1941. - :term:`SSTATE_MIRRORS` :term:`DL_DIR`
  1942. - :term:`SSTATE_DIR` :term:`TMPDIR`
  1943. - :term:`BB_SERVER_TIMEOUT`
  1944. For additional information on how to customize the extensible SDK's
  1945. configuration, see the
  1946. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  1947. section in the Yocto Project Application Development and the
  1948. Extensible Software Development Kit (eSDK) manual.
  1949. :term:`EXCLUDE_FROM_SHLIBS`
  1950. Triggers the OpenEmbedded build system's shared libraries resolver to
  1951. exclude an entire package when scanning for shared libraries.
  1952. .. note::
  1953. The shared libraries resolver's functionality results in part from
  1954. the internal function ``package_do_shlibs``, which is part of the
  1955. :ref:`ref-tasks-package` task. You should be aware that the shared
  1956. libraries resolver might implicitly define some dependencies between
  1957. packages.
  1958. The :term:`EXCLUDE_FROM_SHLIBS` variable is similar to the
  1959. :term:`PRIVATE_LIBS` variable, which excludes a
  1960. package's particular libraries only and not the whole package.
  1961. Use the :term:`EXCLUDE_FROM_SHLIBS` variable by setting it to "1" for a
  1962. particular package::
  1963. EXCLUDE_FROM_SHLIBS = "1"
  1964. :term:`EXCLUDE_FROM_WORLD`
  1965. Directs BitBake to exclude a recipe from world builds (i.e.
  1966. ``bitbake world``). During world builds, BitBake locates, parses and
  1967. builds all recipes found in every layer exposed in the
  1968. ``bblayers.conf`` configuration file.
  1969. To exclude a recipe from a world build using this variable, set the
  1970. variable to "1" in the recipe.
  1971. .. note::
  1972. Recipes added to :term:`EXCLUDE_FROM_WORLD` may still be built during a
  1973. world build in order to satisfy dependencies of other recipes. Adding
  1974. a recipe to :term:`EXCLUDE_FROM_WORLD` only ensures that the recipe is not
  1975. explicitly added to the list of build targets in a world build.
  1976. :term:`EXTENDPE`
  1977. Used with file and pathnames to create a prefix for a recipe's
  1978. version based on the recipe's :term:`PE` value. If :term:`PE`
  1979. is set and greater than zero for a recipe, :term:`EXTENDPE` becomes that
  1980. value (e.g if :term:`PE` is equal to "1" then :term:`EXTENDPE` becomes "1").
  1981. If a recipe's :term:`PE` is not set (the default) or is equal to zero,
  1982. :term:`EXTENDPE` becomes "".
  1983. See the :term:`STAMP` variable for an example.
  1984. :term:`EXTENDPKGV`
  1985. The full package version specification as it appears on the final
  1986. packages produced by a recipe. The variable's value is normally used
  1987. to fix a runtime dependency to the exact same version of another
  1988. package in the same recipe::
  1989. RDEPENDS:${PN}-additional-module = "${PN} (= ${EXTENDPKGV})"
  1990. The dependency relationships are intended to force the package
  1991. manager to upgrade these types of packages in lock-step.
  1992. :term:`EXTERNAL_KERNEL_TOOLS`
  1993. When set, the :term:`EXTERNAL_KERNEL_TOOLS` variable indicates that these
  1994. tools are not in the source tree.
  1995. When kernel tools are available in the tree, they are preferred over
  1996. any externally installed tools. Setting the :term:`EXTERNAL_KERNEL_TOOLS`
  1997. variable tells the OpenEmbedded build system to prefer the installed
  1998. external tools. See the :ref:`ref-classes-kernel-yocto` class in
  1999. ``meta/classes-recipe`` to see how the variable is used.
  2000. :term:`EXTERNAL_KERNEL_DEVICETREE`
  2001. When inheriting :ref:`ref-classes-kernel-fitimage` and a
  2002. :term:`PREFERRED_PROVIDER` for ``virtual/dtb`` set to ``devicetree``, the
  2003. variable :term:`EXTERNAL_KERNEL_DEVICETREE` can be used to specify a
  2004. directory containing one or more compiled device tree or device tree
  2005. overlays to use.
  2006. :term:`KERNEL_LOCALVERSION`
  2007. This variable allows to append a string to the version
  2008. of the kernel image. This corresponds to the ``CONFIG_LOCALVERSION``
  2009. kernel configuration parameter.
  2010. Using this variable is only useful when you are using a kernel recipe
  2011. inheriting the :ref:`ref-classes-kernel` class, and which doesn't
  2012. already set a local version. Therefore, setting this variable has no
  2013. impact on ``linux-yocto`` kernels.
  2014. :term:`EXTERNAL_TOOLCHAIN`
  2015. When you intend to use an
  2016. :ref:`external toolchain <dev-manual/external-toolchain:optionally using an external toolchain>`,
  2017. this variable allows to specify the directory where this toolchain was
  2018. installed.
  2019. :term:`EXTERNALSRC`
  2020. When inheriting the :ref:`ref-classes-externalsrc`
  2021. class, this variable points to the source tree, which is outside of
  2022. the OpenEmbedded build system. When set, this variable sets the
  2023. :term:`S` variable, which is what the OpenEmbedded build
  2024. system uses to locate unpacked recipe source code.
  2025. See the ":ref:`ref-classes-externalsrc`" section for details. You
  2026. can also find information on how to use this variable in the
  2027. ":ref:`dev-manual/building:building software from an external source`"
  2028. section in the Yocto Project Development Tasks Manual.
  2029. :term:`EXTERNALSRC_BUILD`
  2030. When inheriting the :ref:`ref-classes-externalsrc`
  2031. class, this variable points to the directory in which the recipe's
  2032. source code is built, which is outside of the OpenEmbedded build
  2033. system. When set, this variable sets the :term:`B` variable,
  2034. which is what the OpenEmbedded build system uses to locate the
  2035. :term:`Build Directory`.
  2036. See the ":ref:`ref-classes-externalsrc`" section for details. You
  2037. can also find information on how to use this variable in the
  2038. ":ref:`dev-manual/building:building software from an external source`"
  2039. section in the Yocto Project Development Tasks Manual.
  2040. :term:`EXTRA_AUTORECONF`
  2041. For recipes inheriting the :ref:`ref-classes-autotools`
  2042. class, you can use :term:`EXTRA_AUTORECONF` to specify extra options to
  2043. pass to the ``autoreconf`` command that is executed during the
  2044. :ref:`ref-tasks-configure` task.
  2045. The default value is "--exclude=autopoint".
  2046. :term:`EXTRA_IMAGE_FEATURES`
  2047. A list of additional features to include in an image. When listing
  2048. more than one feature, separate them with a space.
  2049. Typically, you configure this variable in your ``local.conf`` file,
  2050. which is found in the :term:`Build Directory`. Although you can use this
  2051. variable from within a recipe, best practices dictate that you do not.
  2052. .. note::
  2053. To enable primary features from within the image recipe, use the
  2054. :term:`IMAGE_FEATURES` variable.
  2055. Here are some examples of features you can add:
  2056. - "dbg-pkgs" --- adds -dbg packages for all installed packages including
  2057. symbol information for debugging and profiling.
  2058. - "empty-root-password" --- This feature can be used if you want to
  2059. allow root login with an empty password.
  2060. - "allow-empty-password" --- Allows Dropbear and OpenSSH to accept
  2061. logins from accounts having an empty password string.
  2062. - "allow-root-login" --- Allows Dropbear and OpenSSH to accept root logins.
  2063. - "post-install-logging" --- Enables logging postinstall script runs to
  2064. the ``/var/log/postinstall.log`` file on first boot of the image on
  2065. the target system.
  2066. - "dev-pkgs" --- adds -dev packages for all installed packages. This is
  2067. useful if you want to develop against the libraries in the image.
  2068. - "read-only-rootfs" --- creates an image whose root filesystem is
  2069. read-only. See the
  2070. ":ref:`dev-manual/read-only-rootfs:creating a read-only root filesystem`"
  2071. section in the Yocto Project Development Tasks Manual for more
  2072. information
  2073. - "tools-debug" --- adds debugging tools such as gdb and strace.
  2074. - "tools-sdk" --- adds development tools such as gcc, make,
  2075. pkgconfig and so forth.
  2076. - "tools-testapps" --- adds useful testing tools
  2077. such as ts_print, aplay, arecord and so forth.
  2078. For a complete list of image features that ships with the Yocto
  2079. Project, see the ":ref:`ref-features-image`" section.
  2080. For an example that shows how to customize your image by using this
  2081. variable, see the ":ref:`dev-manual/customizing-images:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  2082. section in the Yocto Project Development Tasks Manual.
  2083. :term:`EXTRA_IMAGECMD`
  2084. Specifies additional options for the image creation command that has
  2085. been specified in :term:`IMAGE_CMD`. When setting
  2086. this variable, use an override for the associated image type. Here is
  2087. an example::
  2088. EXTRA_IMAGECMD:ext3 ?= "-i 4096"
  2089. :term:`EXTRA_IMAGEDEPENDS`
  2090. A list of recipes to build that do not provide packages for
  2091. installing into the root filesystem.
  2092. Sometimes a recipe is required to build the final image but is not
  2093. needed in the root filesystem. You can use the :term:`EXTRA_IMAGEDEPENDS`
  2094. variable to list these recipes and thus specify the dependencies. A
  2095. typical example is a required bootloader in a machine configuration.
  2096. .. note::
  2097. To add packages to the root filesystem, see the various
  2098. :term:`RDEPENDS` and :term:`RRECOMMENDS` variables.
  2099. :term:`EXTRA_OECMAKE`
  2100. Additional `CMake <https://cmake.org/overview/>`__ options. See the
  2101. :ref:`ref-classes-cmake` class for additional information.
  2102. :term:`EXTRA_OECONF`
  2103. Additional ``configure`` script options. See
  2104. :term:`PACKAGECONFIG_CONFARGS` for
  2105. additional information on passing configure script options.
  2106. :term:`EXTRA_OEMAKE`
  2107. Additional GNU ``make`` options.
  2108. Because the :term:`EXTRA_OEMAKE` defaults to "", you need to set the
  2109. variable to specify any required GNU options.
  2110. :term:`PARALLEL_MAKE` and
  2111. :term:`PARALLEL_MAKEINST` also make use of
  2112. :term:`EXTRA_OEMAKE` to pass the required flags.
  2113. :term:`EXTRA_OESCONS`
  2114. When inheriting the :ref:`ref-classes-scons` class, this
  2115. variable specifies additional configuration options you want to pass
  2116. to the ``scons`` command line.
  2117. :term:`EXTRA_OEMESON`
  2118. Additional `Meson <https://mesonbuild.com/>`__ options. See the
  2119. :ref:`ref-classes-meson` class for additional information.
  2120. In addition to standard Meson options, such options correspond to
  2121. `Meson build options <https://mesonbuild.com/Build-options.html>`__
  2122. defined in the ``meson_options.txt`` file in the sources to build.
  2123. Here is an example::
  2124. EXTRA_OEMESON = "-Dpython=disabled -Dvalgrind=disabled"
  2125. Note that any custom value for the Meson ``--buildtype`` option
  2126. should be set through the :term:`MESON_BUILDTYPE` variable.
  2127. :term:`EXTRA_USERS_PARAMS`
  2128. When inheriting the :ref:`ref-classes-extrausers`
  2129. class, this variable provides image level user and group operations.
  2130. This is a more global method of providing user and group
  2131. configuration as compared to using the
  2132. :ref:`ref-classes-useradd` class, which ties user and
  2133. group configurations to a specific recipe.
  2134. The set list of commands you can configure using the
  2135. :term:`EXTRA_USERS_PARAMS` is shown in the
  2136. :ref:`ref-classes-extrausers` class. These commands map to the normal
  2137. Unix commands of the same names::
  2138. # EXTRA_USERS_PARAMS = "\
  2139. # useradd -p '' tester; \
  2140. # groupadd developers; \
  2141. # userdel nobody; \
  2142. # groupdel -g video; \
  2143. # groupmod -g 1020 developers; \
  2144. # usermod -s /bin/sh tester; \
  2145. # "
  2146. Hardcoded passwords are supported via the ``-p`` parameters for
  2147. ``useradd`` or ``usermod``, but only hashed.
  2148. Here is an example that adds two users named "tester-jim" and "tester-sue" and assigns
  2149. passwords. First on host, create the (escaped) password hash::
  2150. printf "%q" $(mkpasswd -m sha256crypt tester01)
  2151. The resulting hash is set to a variable and used in ``useradd`` command parameters::
  2152. inherit extrausers
  2153. PASSWD = "\$X\$ABC123\$A-Long-Hash"
  2154. EXTRA_USERS_PARAMS = "\
  2155. useradd -p '${PASSWD}' tester-jim; \
  2156. useradd -p '${PASSWD}' tester-sue; \
  2157. "
  2158. Finally, here is an example that sets the root password::
  2159. inherit extrausers
  2160. EXTRA_USERS_PARAMS = "\
  2161. usermod -p '${PASSWD}' root; \
  2162. "
  2163. .. note::
  2164. From a security perspective, hardcoding a default password is not
  2165. generally a good idea or even legal in some jurisdictions. It is
  2166. recommended that you do not do this if you are building a production
  2167. image.
  2168. Additionally there is a special ``passwd-expire`` command that will
  2169. cause the password for a user to be expired and thus force changing it
  2170. on first login, for example::
  2171. EXTRA_USERS_PARAMS += " useradd myuser; passwd-expire myuser;"
  2172. .. note::
  2173. At present, ``passwd-expire`` may only work for remote logins when
  2174. using OpenSSH and not dropbear as an SSH server.
  2175. :term:`EXTRANATIVEPATH`
  2176. A list of subdirectories of
  2177. ``${``\ :term:`STAGING_BINDIR_NATIVE`\ ``}``
  2178. added to the beginning of the environment variable ``PATH``. As an
  2179. example, the following prepends
  2180. "${STAGING_BINDIR_NATIVE}/foo:${STAGING_BINDIR_NATIVE}/bar:" to
  2181. ``PATH``::
  2182. EXTRANATIVEPATH = "foo bar"
  2183. :term:`FAKEROOT`
  2184. See :term:`bitbake:FAKEROOT` in the BitBake manual.
  2185. :term:`FAKEROOTBASEENV`
  2186. See :term:`bitbake:FAKEROOTBASEENV` in the BitBake manual.
  2187. :term:`FAKEROOTCMD`
  2188. See :term:`bitbake:FAKEROOTCMD` in the BitBake manual.
  2189. :term:`FAKEROOTDIRS`
  2190. See :term:`bitbake:FAKEROOTDIRS` in the BitBake manual.
  2191. :term:`FAKEROOTENV`
  2192. See :term:`bitbake:FAKEROOTENV` in the BitBake manual.
  2193. :term:`FAKEROOTNOENV`
  2194. See :term:`bitbake:FAKEROOTNOENV` in the BitBake manual.
  2195. :term:`FEATURE_PACKAGES`
  2196. Defines one or more packages to include in an image when a specific
  2197. item is included in :term:`IMAGE_FEATURES`.
  2198. When setting the value, :term:`FEATURE_PACKAGES` should have the name of
  2199. the feature item as an override. Here is an example::
  2200. FEATURE_PACKAGES_widget = "package1 package2"
  2201. In this example, if "widget" were added to :term:`IMAGE_FEATURES`,
  2202. package1 and package2 would be included in the image.
  2203. .. note::
  2204. Packages installed by features defined through :term:`FEATURE_PACKAGES`
  2205. are often package groups. While similarly named, you should not
  2206. confuse the :term:`FEATURE_PACKAGES` variable with package groups, which
  2207. are discussed elsewhere in the documentation.
  2208. :term:`FEED_DEPLOYDIR_BASE_URI`
  2209. Points to the base URL of the server and location within the
  2210. document-root that provides the metadata and packages required by
  2211. OPKG to support runtime package management of IPK packages. You set
  2212. this variable in your ``local.conf`` file.
  2213. Consider the following example::
  2214. FEED_DEPLOYDIR_BASE_URI = "http://192.168.7.1/BOARD-dir"
  2215. This example assumes you are serving
  2216. your packages over HTTP and your databases are located in a directory
  2217. named ``BOARD-dir``, which is underneath your HTTP server's
  2218. document-root. In this case, the OpenEmbedded build system generates
  2219. a set of configuration files for you in your target that work with
  2220. the feed.
  2221. :term:`FETCHCMD`
  2222. See :term:`bitbake:FETCHCMD` in the BitBake manual.
  2223. :term:`FILE`
  2224. See :term:`bitbake:FILE` in the BitBake manual.
  2225. :term:`FILES`
  2226. The list of files and directories that are placed in a package. The
  2227. :term:`PACKAGES` variable lists the packages
  2228. generated by a recipe.
  2229. To use the :term:`FILES` variable, provide a package name override that
  2230. identifies the resulting package. Then, provide a space-separated
  2231. list of files or paths that identify the files you want included as
  2232. part of the resulting package. Here is an example::
  2233. FILES:${PN} += "${bindir}/mydir1 ${bindir}/mydir2/myfile"
  2234. .. note::
  2235. - When specifying files or paths, you can pattern match using
  2236. Python's
  2237. `glob <https://docs.python.org/3/library/glob.html>`__
  2238. syntax. For details on the syntax, see the documentation by
  2239. following the previous link.
  2240. - When specifying paths as part of the :term:`FILES` variable, it is
  2241. good practice to use appropriate path variables. For example,
  2242. use ``${sysconfdir}`` rather than ``/etc``, or ``${bindir}``
  2243. rather than ``/usr/bin``. You can find a list of these
  2244. variables at the top of the ``meta/conf/bitbake.conf`` file in
  2245. the :term:`Source Directory`. You will also
  2246. find the default values of the various ``FILES:*`` variables in
  2247. this file.
  2248. If some of the files you provide with the :term:`FILES` variable are
  2249. editable and you know they should not be overwritten during the
  2250. package update process by the Package Management System (PMS), you
  2251. can identify these files so that the PMS will not overwrite them. See
  2252. the :term:`CONFFILES` variable for information on
  2253. how to identify these files to the PMS.
  2254. :term:`FILES_SOLIBSDEV`
  2255. Defines the file specification to match
  2256. :term:`SOLIBSDEV`. In other words,
  2257. :term:`FILES_SOLIBSDEV` defines the full path name of the development
  2258. symbolic link (symlink) for shared libraries on the target platform.
  2259. The following statement from the ``bitbake.conf`` shows how it is
  2260. set::
  2261. FILES_SOLIBSDEV ?= "${base_libdir}/lib*${SOLIBSDEV} ${libdir}/lib*${SOLIBSDEV}"
  2262. :term:`FILESEXTRAPATHS`
  2263. A colon-separated list to extend the search path the OpenEmbedded build
  2264. system uses when looking for files and patches as it processes recipes
  2265. and append files. The default directories BitBake uses when it processes
  2266. recipes are initially defined by the :term:`FILESPATH` variable. You can
  2267. extend :term:`FILESPATH` variable by using :term:`FILESEXTRAPATHS`.
  2268. Best practices dictate that you accomplish this by using
  2269. :term:`FILESEXTRAPATHS` from within a ``.bbappend`` file and that you
  2270. prepend paths as follows::
  2271. FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
  2272. In the above example, the build system first
  2273. looks for files in a directory that has the same name as the
  2274. corresponding append file.
  2275. .. note::
  2276. When extending :term:`FILESEXTRAPATHS`, be sure to use the immediate
  2277. expansion (``:=``) operator. Immediate expansion makes sure that
  2278. BitBake evaluates :term:`THISDIR` at the time the
  2279. directive is encountered rather than at some later time when
  2280. expansion might result in a directory that does not contain the
  2281. files you need.
  2282. Also, include the trailing separating colon character if you are
  2283. prepending. The trailing colon character is necessary because you
  2284. are directing BitBake to extend the path by prepending directories
  2285. to the search path.
  2286. Here is another common use::
  2287. FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  2288. In this example, the build system extends the
  2289. :term:`FILESPATH` variable to include a directory named ``files`` that is
  2290. in the same directory as the corresponding append file.
  2291. This next example specifically adds three paths::
  2292. FILESEXTRAPATHS:prepend := "path_1:path_2:path_3:"
  2293. A final example shows how you can extend the search path and include
  2294. a :term:`MACHINE`-specific override, which is useful
  2295. in a BSP layer::
  2296. FILESEXTRAPATHS:prepend:intel-x86-common := "${THISDIR}/${PN}:"
  2297. The previous statement appears in the
  2298. ``linux-yocto-dev.bbappend`` file, which is found in the
  2299. :ref:`overview-manual/development-environment:yocto project source repositories` in
  2300. ``meta-intel/common/recipes-kernel/linux``. Here, the machine
  2301. override is a special :term:`PACKAGE_ARCH`
  2302. definition for multiple ``meta-intel`` machines.
  2303. .. note::
  2304. For a layer that supports a single BSP, the override could just be
  2305. the value of :term:`MACHINE`.
  2306. By prepending paths in ``.bbappend`` files, you allow multiple append
  2307. files that reside in different layers but are used for the same
  2308. recipe to correctly extend the path.
  2309. :term:`FILESOVERRIDES`
  2310. A colon-separated list to specify a subset of :term:`OVERRIDES` used by
  2311. the OpenEmbedded build system for creating :term:`FILESPATH`. The
  2312. :term:`FILESOVERRIDES` variable uses overrides to automatically extend
  2313. the :term:`FILESPATH` variable. For an example of how that works, see the
  2314. :term:`FILESPATH` variable description. Additionally, you find more
  2315. information on how overrides are handled in the
  2316. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  2317. section of the BitBake User Manual.
  2318. By default, the :term:`FILESOVERRIDES` variable is defined as::
  2319. FILESOVERRIDES = "${TRANSLATED_TARGET_ARCH}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}"
  2320. .. note::
  2321. Do not hand-edit the :term:`FILESOVERRIDES` variable. The values match up
  2322. with expected overrides and are used in an expected manner by the
  2323. build system.
  2324. :term:`FILESPATH`
  2325. A colon-separated list specifying the default set of directories the
  2326. OpenEmbedded build system uses when searching for patches and files.
  2327. During the build process, BitBake searches each directory in
  2328. :term:`FILESPATH` in the specified order when looking for files and
  2329. patches specified by each ``file://`` URI in a recipe's
  2330. :term:`SRC_URI` statements.
  2331. The default value for the :term:`FILESPATH` variable is defined in the
  2332. :ref:`ref-classes-base` class found in ``meta/classes-global`` in the
  2333. :term:`Source Directory`::
  2334. FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}", \
  2335. "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
  2336. The
  2337. :term:`FILESPATH` variable is automatically extended using the overrides
  2338. from the :term:`FILESOVERRIDES` variable.
  2339. .. note::
  2340. - Do not hand-edit the :term:`FILESPATH` variable. If you want the
  2341. build system to look in directories other than the defaults,
  2342. extend the :term:`FILESPATH` variable by using the
  2343. :term:`FILESEXTRAPATHS` variable.
  2344. - Be aware that the default :term:`FILESPATH` directories do not map
  2345. to directories in custom layers where append files
  2346. (``.bbappend``) are used. If you want the build system to find
  2347. patches or files that reside with your append files, you need
  2348. to extend the :term:`FILESPATH` variable by using the
  2349. :term:`FILESEXTRAPATHS` variable.
  2350. You can take advantage of this searching behavior in useful ways. For
  2351. example, consider a case where there is the following directory structure
  2352. for general and machine-specific configurations::
  2353. files/defconfig
  2354. files/MACHINEA/defconfig
  2355. files/MACHINEB/defconfig
  2356. Also in the example, the :term:`SRC_URI` statement contains
  2357. "file://defconfig". Given this scenario, you can set
  2358. :term:`MACHINE` to "MACHINEA" and cause the build
  2359. system to use files from ``files/MACHINEA``. Set :term:`MACHINE` to
  2360. "MACHINEB" and the build system uses files from ``files/MACHINEB``.
  2361. Finally, for any machine other than "MACHINEA" and "MACHINEB", the
  2362. build system uses files from ``files/defconfig``.
  2363. You can find out more about the patching process in the
  2364. ":ref:`overview-manual/concepts:patching`" section
  2365. in the Yocto Project Overview and Concepts Manual and the
  2366. ":ref:`dev-manual/new-recipe:patching code`" section in
  2367. the Yocto Project Development Tasks Manual. See the
  2368. :ref:`ref-tasks-patch` task as well.
  2369. :term:`FILESYSTEM_PERMS_TABLES`
  2370. Allows you to define your own file permissions settings tables as part
  2371. of your configuration for the packaging process. For example, suppose
  2372. you need a consistent set of custom permissions for a set of groups
  2373. and users across an entire work project. It is best to do this in the
  2374. packages themselves but this is not always possible.
  2375. By default, the OpenEmbedded build system uses the ``fs-perms.txt``,
  2376. ``fs-perms-volatile-log.txt`` and ``fs-perms-volatile-tmp.txt`` which are
  2377. located in the ``meta/files`` folder in the :term:`Source Directory`. If
  2378. you create your own permission setting table files, you should place
  2379. those in your layer.
  2380. You can override the value of :term:`FILESYSTEM_PERMS_TABLES` variable
  2381. in your distribution configuration file to point to your custom
  2382. permission table files. You can specify one or more file permissions
  2383. setting tables. The paths that you specify to these files must be defined
  2384. within the :term:`BBPATH` variable.
  2385. In order to disable the volatile log, which is enabled by default, one
  2386. can remove the ``files/fs-perms-volatile-log.txt`` value from
  2387. ``FILESYSTEM_PERMS_TABLES``. Similarly, in order to disable the volatile
  2388. tmp, one can remove the ``files/fs-perms-volatile-tmp.txt`` value.
  2389. For guidance on how to define your own file permissions settings
  2390. tables, examine the existing ``fs-perms.txt``,
  2391. ``fs-perms-volatile-log.txt`` and ``fs-perms-volatile-tmp.txt`` files.
  2392. :term:`FIRMWARE_COMPRESSION`
  2393. The :term:`FIRMWARE_COMPRESSION` allows compressing the firmware provided
  2394. by the ``linux-firmware`` recipe. The default value of this variable is an
  2395. empty string (no compression), and the possible values it can take are
  2396. ``xz`` and ``zst``. This can allow significant disk space savings.
  2397. For this to work, the Linux Kernel requires the
  2398. ``CONFIG_FW_LOADER_COMPRESS_XZ`` or ``CONFIG_FW_LOADER_COMPRESS_ZSTD``
  2399. configuration options to be set.
  2400. :term:`FIT_ADDRESS_CELLS`
  2401. Specifies the value of the ``#address-cells`` value for the
  2402. description of the FIT image.
  2403. The default value is set to "1" by the :ref:`ref-classes-kernel-fitimage`
  2404. class, which corresponds to 32 bit addresses.
  2405. For platforms that need to set 64 bit addresses, for example in
  2406. :term:`UBOOT_LOADADDRESS` and :term:`UBOOT_ENTRYPOINT`, you need to
  2407. set this value to "2", as two 32 bit values (cells) will be needed
  2408. to represent such addresses.
  2409. Here is an example setting "0x400000000" as a load address::
  2410. FIT_ADDRESS_CELLS = "2"
  2411. UBOOT_LOADADDRESS= "0x04 0x00000000"
  2412. See `more details about #address-cells <https://elinux.org/Device_Tree_Usage#How_Addressing_Works>`__.
  2413. :term:`FIT_CONF_DEFAULT_DTB`
  2414. Specifies the default device tree binary (dtb) file for a FIT image
  2415. when multiple ones are provided.
  2416. This variable is used in the :ref:`ref-classes-kernel-fitimage` class.
  2417. :term:`FIT_DESC`
  2418. Specifies the description string encoded into a FIT image. The
  2419. default value is set by the :ref:`ref-classes-kernel-fitimage` class as
  2420. follows::
  2421. FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
  2422. :term:`FIT_GENERATE_KEYS`
  2423. Decides whether to generate the keys for signing the FIT image if
  2424. they don't already exist. The keys are created in
  2425. :term:`UBOOT_SIGN_KEYDIR`. The default value is set to "0"
  2426. by the :ref:`ref-classes-kernel-fitimage` class.
  2427. :term:`FIT_HASH_ALG`
  2428. Specifies the hash algorithm used in creating the FIT Image.
  2429. This variable is set by default to "sha256" by the
  2430. :ref:`ref-classes-kernel-fitimage` class.
  2431. :term:`FIT_KERNEL_COMP_ALG`
  2432. The compression algorithm to use for the kernel image inside the FIT Image.
  2433. At present, the only supported values are "gzip" (default), "lzo" or "none".
  2434. If you set this variable to anything other than "none" you may also need
  2435. to set :term:`FIT_KERNEL_COMP_ALG_EXTENSION`.
  2436. This variable is used in the :ref:`ref-classes-kernel-uboot` class.
  2437. :term:`FIT_KERNEL_COMP_ALG_EXTENSION`
  2438. File extension corresponding to :term:`FIT_KERNEL_COMP_ALG`. The default
  2439. value is set ".gz" by the :ref:`ref-classes-kernel-uboot` class. If you
  2440. set :term:`FIT_KERNEL_COMP_ALG` to "lzo", you may want to set this
  2441. variable to ".lzo".
  2442. :term:`FIT_KEY_GENRSA_ARGS`
  2443. Arguments to ``openssl genrsa`` for generating a RSA private key for
  2444. signing the FIT image. The default value is set to "-F4" by the
  2445. :ref:`ref-classes-kernel-fitimage` class.
  2446. :term:`FIT_KEY_REQ_ARGS`
  2447. Arguments to ``openssl req`` for generating a certificate for signing
  2448. the FIT image. The default value is "-batch -new" by the
  2449. :ref:`ref-classes-kernel-fitimage` class, "batch" for
  2450. non interactive mode and "new" for generating new keys.
  2451. :term:`FIT_KEY_SIGN_PKCS`
  2452. Format for the public key certificate used for signing the FIT image.
  2453. The default value is set to "x509" by the
  2454. :ref:`ref-classes-kernel-fitimage` class.
  2455. :term:`FIT_SIGN_ALG`
  2456. Specifies the signature algorithm used in creating the FIT Image.
  2457. This variable is set by default to "rsa2048" by the
  2458. :ref:`ref-classes-kernel-fitimage` class.
  2459. :term:`FIT_PAD_ALG`
  2460. Specifies the padding algorithm used in creating the FIT Image.
  2461. The default value is set to "pkcs-1.5" by the
  2462. :ref:`ref-classes-kernel-fitimage` class.
  2463. :term:`FIT_SIGN_INDIVIDUAL`
  2464. If set to "1", the :ref:`ref-classes-kernel-fitimage` class signs each
  2465. image node individually, including the kernel, DTB, RAM disk, and any
  2466. other image types present in the FIT image, in addition to signing the
  2467. configuration nodes.
  2468. This can be useful if you need to verify signatures outside of the
  2469. U-Boot boot process. By default, this variable is set to "0".
  2470. If :term:`UBOOT_SIGN_ENABLE` is set to "1" and
  2471. :term:`FIT_SIGN_INDIVIDUAL` remains at its default value of "0", only the
  2472. configuration nodes are signed. Since configuration nodes include hashes
  2473. of their referenced image nodes, the integrity of the entire FIT image is
  2474. ensured as long as the image nodes are loaded via the configuration nodes
  2475. and the hashes of the image nodes are checked. That's usually the case.
  2476. Enabling :term:`FIT_SIGN_INDIVIDUAL` typically increases complexity for
  2477. little benefit. There might be exceptions such as image nodes that are
  2478. not referenced by any configuration node or loaded directly for whatever
  2479. reason.
  2480. For most use cases, setting this variable to "0" provides sufficient
  2481. security.
  2482. For further details, refer to the official U-Boot documentation:
  2483. `U-Boot fit signature <https://docs.u-boot.org/en/latest/usage/fit/signature.html>`__
  2484. and more specifically at:
  2485. `U-Boot signed configurations <https://docs.u-boot.org/en/latest/usage/fit/signature.html#signed-configurations>`__.
  2486. Signing only the image nodes is intentionally not implemented by
  2487. :term:`OpenEmbedded-Core (OE-Core)`, as it is vulnerable to mix-and-match
  2488. attacks.
  2489. :term:`FIT_SIGN_NUMBITS`
  2490. Size of the private key used in the FIT image, in number of bits.
  2491. The default value for this variable is set to "2048"
  2492. by the :ref:`ref-classes-kernel-fitimage` class.
  2493. :term:`FIT_UBOOT_ENV`
  2494. This variable allows to add a U-Boot script as a text file to the
  2495. FIT image. Such a script can be sourced from the U-Boot shell.
  2496. When inheriting the :ref:`ref-classes-kernel-fitimage` class a
  2497. script file should be included in the :term:`SRC_URI` of the Linux
  2498. kernel recipe.
  2499. Example:
  2500. - Add a script ``boot.cmd`` to the Linux kernel recipe::
  2501. FIT_UBOOT_ENV = "boot.cmd"
  2502. SRC_URI += "file://${FIT_UBOOT_ENV}"
  2503. - Use the script file from the U-Boot shell. The name of the script in
  2504. FIT image is ``bootscr-${FIT_UBOOT_ENV}``. This example loads the FIT
  2505. image from a TFTP server::
  2506. tftp $loadaddr $fit_tftp_path
  2507. source $loadaddr#bootscr-boot.cmd
  2508. More information can be found in the official U-Boot documentation:
  2509. `U-Boot source command <https://docs.u-boot.org/en/latest/usage/cmd/source.html#fit-image.f>`__
  2510. :term:`FONT_EXTRA_RDEPENDS`
  2511. When inheriting the :ref:`ref-classes-fontcache` class,
  2512. this variable specifies the runtime dependencies for font packages.
  2513. By default, the :term:`FONT_EXTRA_RDEPENDS` is set to "fontconfig-utils".
  2514. :term:`FONT_PACKAGES`
  2515. When inheriting the :ref:`ref-classes-fontcache` class, this variable
  2516. identifies packages containing font files that need to be cached by
  2517. Fontconfig. By default, the :ref:`ref-classes-fontcache` class assumes
  2518. that fonts are in the recipe's main package (i.e.
  2519. ``${``\ :term:`PN`\ ``}``). Use this variable if fonts you
  2520. need are in a package other than that main package.
  2521. :term:`FORCE_RO_REMOVE`
  2522. Forces the removal of the packages listed in ``ROOTFS_RO_UNNEEDED``
  2523. during the generation of the root filesystem.
  2524. Set the variable to "1" to force the removal of these packages.
  2525. :term:`FULL_OPTIMIZATION`
  2526. The options to pass in :term:`TARGET_CFLAGS` and :term:`CFLAGS` when
  2527. compiling an optimized system. This variable defaults to "-O2 -pipe
  2528. ${DEBUG_FLAGS}".
  2529. :term:`GCCPIE`
  2530. Enables Position Independent Executables (PIE) within the GNU C
  2531. Compiler (GCC). Enabling PIE in the GCC makes Return Oriented
  2532. Programming (ROP) attacks much more difficult to execute.
  2533. By default the ``security_flags.inc`` file enables PIE by setting the
  2534. variable as follows::
  2535. GCCPIE ?= "--enable-default-pie"
  2536. :term:`GCCVERSION`
  2537. Specifies the default version of the GNU C Compiler (GCC) used for
  2538. compilation. By default, :term:`GCCVERSION` is set to "8.x" in the
  2539. ``meta/conf/distro/include/tcmode-default.inc`` include file::
  2540. GCCVERSION ?= "8.%"
  2541. You can override this value by setting it in a
  2542. configuration file such as the ``local.conf``.
  2543. :term:`GDB`
  2544. The minimal command and arguments to run the GNU Debugger.
  2545. :term:`GIR_EXTRA_LIBS_PATH`
  2546. Allows to specify an extra search path for ``.so`` files
  2547. in GLib related recipes using GObject introspection,
  2548. and which do not compile without this setting.
  2549. See the ":ref:`dev-manual/gobject-introspection:enabling gobject introspection support`"
  2550. section for details.
  2551. :term:`GITDIR`
  2552. The directory in which a local copy of a Git repository is stored
  2553. when it is cloned.
  2554. :term:`GITHUB_BASE_URI`
  2555. When inheriting the :ref:`ref-classes-github-releases`
  2556. class, specifies the base URL for fetching releases for the github
  2557. project you wish to fetch sources from. The default value is as follows::
  2558. GITHUB_BASE_URI ?= "https://github.com/${BPN}/${BPN}/releases/"
  2559. :term:`GLIBC_GENERATE_LOCALES`
  2560. Specifies the list of GLIBC locales to generate should you not wish
  2561. to generate all LIBC locals, which can be time consuming.
  2562. .. note::
  2563. If you specifically remove the locale ``en_US.UTF-8``, you must set
  2564. :term:`IMAGE_LINGUAS` appropriately.
  2565. You can set :term:`GLIBC_GENERATE_LOCALES` in your ``local.conf`` file.
  2566. By default, all locales are generated::
  2567. GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 en_US.UTF-8"
  2568. :term:`GO_IMPORT`
  2569. When inheriting the :ref:`ref-classes-go` class, this mandatory variable
  2570. sets the import path for the Go package that will be created for the code
  2571. to build. If you have a ``go.mod`` file in the source directory, this
  2572. typically matches the path in the ``module`` line in this file.
  2573. Other Go programs importing this package will use this path.
  2574. Here is an example setting from the
  2575. :yocto_git:`go-helloworld_0.1.bb </poky/tree/meta/recipes-extended/go-examples/go-helloworld_0.1.bb>`
  2576. recipe::
  2577. GO_IMPORT = "golang.org/x/example"
  2578. :term:`GO_INSTALL`
  2579. When inheriting the :ref:`ref-classes-go` class, this optional variable
  2580. specifies which packages in the sources should be compiled and
  2581. installed in the Go build space by the
  2582. `go install <https://go.dev/ref/mod#go-install>`__ command.
  2583. Here is an example setting from the
  2584. :oe_git:`crucible </meta-openembedded/tree/meta-oe/recipes-support/crucible/>`
  2585. recipe::
  2586. GO_INSTALL = "\
  2587. ${GO_IMPORT}/cmd/crucible \
  2588. ${GO_IMPORT}/cmd/habtool \
  2589. "
  2590. By default, :term:`GO_INSTALL` is defined as::
  2591. GO_INSTALL ?= "${GO_IMPORT}/..."
  2592. The ``...`` wildcard means that it will catch all
  2593. packages found in the sources.
  2594. See the :term:`GO_INSTALL_FILTEROUT` variable for
  2595. filtering out unwanted packages from the ones
  2596. found from the :term:`GO_INSTALL` value.
  2597. :term:`GO_INSTALL_FILTEROUT`
  2598. When using the Go "vendor" mechanism to bring in dependencies for a Go
  2599. package, the default :term:`GO_INSTALL` setting, which uses the ``...``
  2600. wildcard, will include the vendored packages in the build, which produces
  2601. incorrect results.
  2602. There are also some Go packages that are structured poorly, so that the
  2603. ``...`` wildcard results in building example or test code that should not
  2604. be included in the build, or could fail to build.
  2605. This optional variable allows for filtering out a subset of the sources.
  2606. It defaults to excluding everything under the ``vendor`` subdirectory
  2607. under package's main directory. This is the normal location for vendored
  2608. packages, but it can be overridden by a recipe to filter out other
  2609. subdirectories if needed.
  2610. :term:`GO_WORKDIR`
  2611. When using Go Modules, the current working directory must be the directory
  2612. containing the ``go.mod`` file, or one of its subdirectories. When the
  2613. ``go`` tool is used, it will automatically look for the ``go.mod`` file
  2614. in the Go working directory or in any parent directory, but not in
  2615. subdirectories.
  2616. When using the :ref:`ref-classes-go-mod` class to use Go modules,
  2617. the optional :term:`GO_WORKDIR` variable, defaulting to the value
  2618. of :term:`GO_IMPORT`, allows to specify a different Go working directory.
  2619. :term:`GROUPADD_PARAM`
  2620. When inheriting the :ref:`ref-classes-useradd` class,
  2621. this variable specifies for a package what parameters should be
  2622. passed to the ``groupadd`` command if you wish to add a group to the
  2623. system when the package is installed.
  2624. Here is an example from the ``dbus`` recipe::
  2625. GROUPADD_PARAM:${PN} = "-r netdev"
  2626. More than one group can be added by separating each set of different
  2627. groups' parameters with a semicolon.
  2628. Here is an example adding multiple groups from the ``useradd-example.bb``
  2629. file in the ``meta-skeleton`` layer::
  2630. GROUPADD_PARAM:${PN} = "-g 880 group1; -g 890 group2"
  2631. For information on the standard Linux shell command
  2632. ``groupadd``, see https://linux.die.net/man/8/groupadd.
  2633. :term:`GROUPMEMS_PARAM`
  2634. When inheriting the :ref:`ref-classes-useradd` class,
  2635. this variable specifies for a package what parameters should be
  2636. passed to the ``groupmems`` command if you wish to modify the members
  2637. of a group when the package is installed.
  2638. For information on the standard Linux shell command ``groupmems``,
  2639. see https://linux.die.net/man/8/groupmems.
  2640. :term:`GRUB_GFXSERIAL`
  2641. Configures the GNU GRand Unified Bootloader (GRUB) to have graphics
  2642. and serial in the boot menu. Set this variable to "1" in your
  2643. ``local.conf`` or distribution configuration file to enable graphics
  2644. and serial in the menu.
  2645. See the :ref:`ref-classes-grub-efi` class for more
  2646. information on how this variable is used.
  2647. :term:`GRUB_OPTS`
  2648. Additional options to add to the GNU GRand Unified Bootloader (GRUB)
  2649. configuration. Use a semi-colon character (``;``) to separate
  2650. multiple options.
  2651. The :term:`GRUB_OPTS` variable is optional. See the
  2652. :ref:`ref-classes-grub-efi` class for more information
  2653. on how this variable is used.
  2654. :term:`GRUB_TIMEOUT`
  2655. Specifies the timeout before executing the default ``LABEL`` in the
  2656. GNU GRand Unified Bootloader (GRUB).
  2657. The :term:`GRUB_TIMEOUT` variable is optional. See the
  2658. :ref:`ref-classes-grub-efi` class for more information
  2659. on how this variable is used.
  2660. :term:`GRUB_TITLE`
  2661. Specifies custom titles for GRUB labels defined in :term:`LABELS`. See
  2662. the :ref:`ref-classes-grub-efi` class for more information on how this
  2663. variable is used.
  2664. :term:`GTKIMMODULES_PACKAGES`
  2665. When inheriting the :ref:`ref-classes-gtk-immodules-cache` class,
  2666. this variable specifies the packages that contain the GTK+ input
  2667. method modules being installed when the modules are in packages other
  2668. than the main package.
  2669. :term:`HGDIR`
  2670. See :term:`bitbake:HGDIR` in the BitBake manual.
  2671. :term:`HOMEPAGE`
  2672. Website where more information about the software the recipe is
  2673. building can be found.
  2674. :term:`HOST_ARCH`
  2675. The name of the target architecture, which is normally the same as
  2676. :term:`TARGET_ARCH`. The OpenEmbedded build system
  2677. supports many architectures. Here is an example list of architectures
  2678. supported. This list is by no means complete as the architecture is
  2679. configurable:
  2680. - arm
  2681. - i586
  2682. - x86_64
  2683. - powerpc
  2684. - powerpc64
  2685. - mips
  2686. - mipsel
  2687. :term:`HOST_CC_ARCH`
  2688. Specifies architecture-specific compiler flags that are passed to the
  2689. C compiler.
  2690. Default initialization for :term:`HOST_CC_ARCH` varies depending on what
  2691. is being built:
  2692. - :term:`TARGET_CC_ARCH` when building for the
  2693. target
  2694. - :term:`BUILD_CC_ARCH` when building for the build host (i.e.
  2695. ``-native``)
  2696. - ``BUILDSDK_CC_ARCH`` when building for an SDK (i.e.
  2697. ``nativesdk-``)
  2698. :term:`HOST_OS`
  2699. Specifies the name of the target operating system, which is normally
  2700. the same as the :term:`TARGET_OS`. The variable can
  2701. be set to "linux" for ``glibc``-based systems and to "linux-musl" for
  2702. ``musl``. For ARM/EABI targets, there are also "linux-gnueabi" and
  2703. "linux-musleabi" values possible.
  2704. :term:`HOST_PREFIX`
  2705. Specifies the prefix for the cross-compile toolchain. :term:`HOST_PREFIX`
  2706. is normally the same as :term:`TARGET_PREFIX`.
  2707. :term:`HOST_SYS`
  2708. Specifies the system, including the architecture and the operating
  2709. system, for which the build is occurring in the context of the
  2710. current recipe.
  2711. The OpenEmbedded build system automatically sets this variable based
  2712. on :term:`HOST_ARCH`,
  2713. :term:`HOST_VENDOR`, and
  2714. :term:`HOST_OS` variables.
  2715. .. note::
  2716. You do not need to set the variable yourself.
  2717. Consider these two examples:
  2718. - Given a native recipe on a 32-bit x86 machine running Linux, the
  2719. value is "i686-linux".
  2720. - Given a recipe being built for a little-endian MIPS target running
  2721. Linux, the value might be "mipsel-linux".
  2722. :term:`HOST_VENDOR`
  2723. Specifies the name of the vendor. :term:`HOST_VENDOR` is normally the
  2724. same as :term:`TARGET_VENDOR`.
  2725. :term:`HOSTTOOLS`
  2726. A space-separated list (filter) of tools on the build host that
  2727. should be allowed to be called from within build tasks. Using this
  2728. filter helps reduce the possibility of host contamination. If a tool
  2729. specified in the value of :term:`HOSTTOOLS` is not found on the build
  2730. host, the OpenEmbedded build system produces an error and the build
  2731. is not started.
  2732. For additional information, see
  2733. :term:`HOSTTOOLS_NONFATAL`.
  2734. :term:`HOSTTOOLS_NONFATAL`
  2735. A space-separated list (filter) of tools on the build host that
  2736. should be allowed to be called from within build tasks. Using this
  2737. filter helps reduce the possibility of host contamination. Unlike
  2738. :term:`HOSTTOOLS`, the OpenEmbedded build system
  2739. does not produce an error if a tool specified in the value of
  2740. :term:`HOSTTOOLS_NONFATAL` is not found on the build host. Thus, you can
  2741. use :term:`HOSTTOOLS_NONFATAL` to filter optional host tools.
  2742. :term:`ICECC_CLASS_DISABLE`
  2743. Identifies user classes that you do not want the Icecream distributed
  2744. compile support to consider. This variable is used by the
  2745. :ref:`ref-classes-icecc` class. You set this variable in
  2746. your ``local.conf`` file.
  2747. When you list classes using this variable, the recipes inheriting
  2748. those classes will not benefit from distributed compilation across
  2749. remote hosts. Instead they will be built locally.
  2750. :term:`ICECC_DISABLED`
  2751. Disables or enables the ``icecc`` (Icecream) function. For more
  2752. information on this function and best practices for using this
  2753. variable, see the ":ref:`ref-classes-icecc`"
  2754. section.
  2755. Setting this variable to "1" in your ``local.conf`` disables the
  2756. function::
  2757. ICECC_DISABLED ??= "1"
  2758. To enable the function, set the variable as follows::
  2759. ICECC_DISABLED = ""
  2760. :term:`ICECC_ENV_EXEC`
  2761. Points to the ``icecc-create-env`` script that you provide. This
  2762. variable is used by the :ref:`ref-classes-icecc` class. You
  2763. set this variable in your ``local.conf`` file.
  2764. If you do not point to a script that you provide, the OpenEmbedded
  2765. build system uses the default script provided by the
  2766. :oe_git:`icecc-create-env_0.1.bb
  2767. </openembedded-core/tree/meta/recipes-devtools/icecc-create-env/icecc-create-env_0.1.bb>`
  2768. recipe, which is a modified version and not the one that comes with
  2769. ``icecream``.
  2770. :term:`ICECC_PARALLEL_MAKE`
  2771. Extra options passed to the ``make`` command during the
  2772. :ref:`ref-tasks-compile` task that specify parallel
  2773. compilation. This variable usually takes the form of "-j x", where x
  2774. represents the maximum number of parallel threads ``make`` can run.
  2775. .. note::
  2776. The options passed affect builds on all enabled machines on the
  2777. network, which are machines running the ``iceccd`` daemon.
  2778. If your enabled machines support multiple cores, coming up with the
  2779. maximum number of parallel threads that gives you the best
  2780. performance could take some experimentation since machine speed,
  2781. network lag, available memory, and existing machine loads can all
  2782. affect build time. Consequently, unlike the
  2783. :term:`PARALLEL_MAKE` variable, there is no
  2784. rule-of-thumb for setting :term:`ICECC_PARALLEL_MAKE` to achieve optimal
  2785. performance.
  2786. If you do not set :term:`ICECC_PARALLEL_MAKE`, the build system does not
  2787. use it (i.e. the system does not detect and assign the number of
  2788. cores as is done with :term:`PARALLEL_MAKE`).
  2789. :term:`ICECC_PATH`
  2790. The location of the ``icecc`` binary. You can set this variable in
  2791. your ``local.conf`` file. If your ``local.conf`` file does not define
  2792. this variable, the :ref:`ref-classes-icecc` class attempts
  2793. to define it by locating ``icecc`` using ``which``.
  2794. :term:`ICECC_RECIPE_DISABLE`
  2795. Identifies user recipes that you do not want the Icecream distributed
  2796. compile support to consider. This variable is used by the
  2797. :ref:`ref-classes-icecc` class. You set this variable in
  2798. your ``local.conf`` file.
  2799. When you list recipes using this variable, you are excluding them
  2800. from distributed compilation across remote hosts. Instead they will
  2801. be built locally.
  2802. :term:`ICECC_RECIPE_ENABLE`
  2803. Identifies user recipes that use an empty
  2804. :term:`PARALLEL_MAKE` variable that you want to
  2805. force remote distributed compilation on using the Icecream
  2806. distributed compile support. This variable is used by the
  2807. :ref:`ref-classes-icecc` class. You set this variable in
  2808. your ``local.conf`` file.
  2809. :term:`IMAGE_BASENAME`
  2810. The base name of image output files. This variable defaults to the
  2811. recipe name (``${``\ :term:`PN`\ ``}``).
  2812. :term:`IMAGE_BOOT_FILES`
  2813. A space-separated list of files installed into the boot partition
  2814. when preparing an image using the Wic tool with the
  2815. ``bootimg-partition`` source plugin. By default,
  2816. the files are
  2817. installed under the same name as the source files. To change the
  2818. installed name, separate it from the original name with a semi-colon
  2819. (;). Source files need to be located in
  2820. :term:`DEPLOY_DIR_IMAGE`. Here are two
  2821. examples::
  2822. IMAGE_BOOT_FILES = "u-boot.img uImage;kernel"
  2823. IMAGE_BOOT_FILES = "u-boot.${UBOOT_SUFFIX} ${KERNEL_IMAGETYPE}"
  2824. Alternatively, source files can be picked up using a glob pattern. In
  2825. this case, the destination file must have the same name as the base
  2826. name of the source file path. To install files into a directory
  2827. within the target location, pass its name after a semi-colon (;).
  2828. Here are two examples::
  2829. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*"
  2830. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*;boot/"
  2831. The first example
  2832. installs all files from ``${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles``
  2833. into the root of the target partition. The second example installs
  2834. the same files into a ``boot`` directory within the target partition.
  2835. You can find information on how to use the Wic tool in the
  2836. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  2837. section of the Yocto Project Development Tasks Manual. Reference
  2838. material for Wic is located in the
  2839. ":doc:`/ref-manual/kickstart`" chapter.
  2840. :term:`IMAGE_BUILDINFO_FILE`
  2841. When using the :ref:`ref-classes-image-buildinfo` class,
  2842. specifies the file in the image to write the build information into. The
  2843. default value is "``${sysconfdir}/buildinfo``".
  2844. :term:`IMAGE_BUILDINFO_VARS`
  2845. When using the :ref:`ref-classes-image-buildinfo` class,
  2846. specifies the list of variables to include in the `Build Configuration`
  2847. section of the output file (as a space-separated list). Defaults to
  2848. ":term:`DISTRO` :term:`DISTRO_VERSION`".
  2849. :term:`IMAGE_CLASSES`
  2850. A list of classes that all images should inherit. This is typically used
  2851. to enable functionality across all image recipes.
  2852. Classes specified in :term:`IMAGE_CLASSES` must be located in the
  2853. ``classes-recipe/`` or ``classes/`` subdirectories.
  2854. :term:`IMAGE_CMD`
  2855. Specifies the command to create the image file for a specific image
  2856. type, which corresponds to the value set in
  2857. :term:`IMAGE_FSTYPES`, (e.g. ``ext3``,
  2858. ``btrfs``, and so forth). When setting this variable, you should use
  2859. an override for the associated type. Here is an example::
  2860. IMAGE_CMD:jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime \
  2861. --output=${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.jffs2 \
  2862. ${EXTRA_IMAGECMD}"
  2863. You typically do not need to set this variable unless you are adding
  2864. support for a new image type. For more examples on how to set this
  2865. variable, see the :ref:`ref-classes-image_types`
  2866. class file, which is ``meta/classes-recipe/image_types.bbclass``.
  2867. :term:`IMAGE_DEVICE_TABLES`
  2868. Specifies one or more files that contain custom device tables that
  2869. are passed to the ``makedevs`` command as part of creating an image.
  2870. These files list basic device nodes that should be created under
  2871. ``/dev`` within the image. If :term:`IMAGE_DEVICE_TABLES` is not set,
  2872. ``files/device_table-minimal.txt`` is used, which is located by
  2873. :term:`BBPATH`. For details on how you should write
  2874. device table files, see ``meta/files/device_table-minimal.txt`` as an
  2875. example.
  2876. :term:`IMAGE_EFI_BOOT_FILES`
  2877. A space-separated list of files installed into the boot partition
  2878. when preparing an image using the Wic tool with the
  2879. ``bootimg-efi`` source plugin. By default,
  2880. the files are
  2881. installed under the same name as the source files. To change the
  2882. installed name, separate it from the original name with a semi-colon
  2883. (;). Source files need to be located in
  2884. :term:`DEPLOY_DIR_IMAGE`. Here are two
  2885. examples::
  2886. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE};bz2"
  2887. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE} microcode.cpio"
  2888. Alternatively, source files can be picked up using a glob pattern. In
  2889. this case, the destination file must have the same name as the base
  2890. name of the source file path. To install files into a directory
  2891. within the target location, pass its name after a semi-colon (;).
  2892. Here are two examples::
  2893. IMAGE_EFI_BOOT_FILES = "boot/loader/*"
  2894. IMAGE_EFI_BOOT_FILES = "boot/loader/*;boot/"
  2895. The first example
  2896. installs all files from ``${DEPLOY_DIR_IMAGE}/boot/loader/``
  2897. into the root of the target partition. The second example installs
  2898. the same files into a ``boot`` directory within the target partition.
  2899. You can find information on how to use the Wic tool in the
  2900. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  2901. section of the Yocto Project Development Tasks Manual. Reference
  2902. material for Wic is located in the
  2903. ":doc:`/ref-manual/kickstart`" chapter.
  2904. :term:`IMAGE_FEATURES`
  2905. The primary list of features to include in an image. Typically, you
  2906. configure this variable in an image recipe. Although you can use this
  2907. variable from your ``local.conf`` file, which is found in the
  2908. :term:`Build Directory`, best practices dictate that you do
  2909. not.
  2910. .. note::
  2911. To enable extra features from outside the image recipe, use the
  2912. :term:`EXTRA_IMAGE_FEATURES` variable.
  2913. For a list of image features that ships with the Yocto Project, see
  2914. the ":ref:`ref-features-image`" section.
  2915. For an example that shows how to customize your image by using this
  2916. variable, see the ":ref:`dev-manual/customizing-images:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  2917. section in the Yocto Project Development Tasks Manual.
  2918. :term:`IMAGE_FSTYPES`
  2919. Specifies the formats the OpenEmbedded build system uses during the
  2920. build when creating the root filesystem. For example, setting
  2921. :term:`IMAGE_FSTYPES` as follows causes the build system to create root
  2922. filesystems using two formats: ``.ext3`` and ``.tar.bz2``::
  2923. IMAGE_FSTYPES = "ext3 tar.bz2"
  2924. For the complete list of supported image formats from which you can
  2925. choose, see :term:`IMAGE_TYPES`.
  2926. .. note::
  2927. - If an image recipe uses the "inherit image" line and you are
  2928. setting :term:`IMAGE_FSTYPES` inside the recipe, you must set
  2929. :term:`IMAGE_FSTYPES` prior to using the "inherit image" line.
  2930. - Due to the way the OpenEmbedded build system processes this
  2931. variable, you cannot update its contents by using ``:append``
  2932. or ``:prepend``. You must use the ``+=`` operator to add one or
  2933. more options to the :term:`IMAGE_FSTYPES` variable.
  2934. :term:`IMAGE_INSTALL`
  2935. Used by recipes to specify the packages to install into an image
  2936. through the :ref:`ref-classes-image` class. Use the
  2937. :term:`IMAGE_INSTALL` variable with care to avoid ordering issues.
  2938. Image recipes set :term:`IMAGE_INSTALL` to specify the packages to
  2939. install into an image through :ref:`ref-classes-image`. Additionally,
  2940. there are "helper" classes such as the :ref:`ref-classes-core-image`
  2941. class which can take lists used with :term:`IMAGE_FEATURES` and turn
  2942. them into auto-generated entries in :term:`IMAGE_INSTALL` in addition
  2943. to its default contents.
  2944. When you use this variable, it is best to use it as follows::
  2945. IMAGE_INSTALL:append = " package-name"
  2946. Be sure to include the space
  2947. between the quotation character and the start of the package name or
  2948. names.
  2949. .. note::
  2950. - When working with a
  2951. :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  2952. image, do not use the :term:`IMAGE_INSTALL` variable to specify
  2953. packages for installation. Instead, use the
  2954. :term:`PACKAGE_INSTALL` variable, which
  2955. allows the initial RAM filesystem (:term:`Initramfs`) recipe to use a
  2956. fixed set of packages and not be affected by :term:`IMAGE_INSTALL`.
  2957. For information on creating an :term:`Initramfs`, see the
  2958. ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`"
  2959. section in the Yocto Project Development Tasks Manual.
  2960. - Using :term:`IMAGE_INSTALL` with the
  2961. :ref:`+= <bitbake-user-manual/bitbake-user-manual-metadata:appending (+=) and prepending (=+) with spaces>`
  2962. BitBake operator within the ``/conf/local.conf`` file or from
  2963. within an image recipe is not recommended. Use of this operator in
  2964. these ways can cause ordering issues. Since
  2965. :ref:`ref-classes-core-image` sets :term:`IMAGE_INSTALL` to a
  2966. default value using the
  2967. :ref:`?= <bitbake-user-manual/bitbake-user-manual-metadata:setting a default value (?=)>`
  2968. operator, using a ``+=`` operation against :term:`IMAGE_INSTALL`
  2969. results in unexpected behavior when used within
  2970. ``conf/local.conf``. Furthermore, the same operation from within an
  2971. image recipe may or may not succeed depending on the specific
  2972. situation. In both these cases, the behavior is contrary to how
  2973. most users expect the ``+=`` operator to work.
  2974. :term:`IMAGE_LINGUAS`
  2975. Specifies the list of locales to install into the image during the
  2976. root filesystem construction process. The OpenEmbedded build system
  2977. automatically splits locale files, which are used for localization,
  2978. into separate packages. Setting the :term:`IMAGE_LINGUAS` variable
  2979. ensures that any locale packages that correspond to packages already
  2980. selected for installation into the image are also installed. Here is
  2981. an example::
  2982. IMAGE_LINGUAS = "pt-br de-de"
  2983. In this example, the build system ensures any Brazilian Portuguese
  2984. and German locale files that correspond to packages in the image are
  2985. installed (i.e. ``*-locale-pt-br`` and ``*-locale-de-de`` as well as
  2986. ``*-locale-pt`` and ``*-locale-de``, since some software packages
  2987. only provide locale files by language and not by country-specific
  2988. language).
  2989. See the :term:`GLIBC_GENERATE_LOCALES`
  2990. variable for information on generating GLIBC locales.
  2991. :term:`IMAGE_LINK_NAME`
  2992. The name of the output image symlink (which does not include
  2993. the version part as :term:`IMAGE_NAME` does). The default value
  2994. is derived using the :term:`IMAGE_BASENAME` and
  2995. :term:`IMAGE_MACHINE_SUFFIX` variables::
  2996. IMAGE_LINK_NAME ?= "${IMAGE_BASENAME}${IMAGE_MACHINE_SUFFIX}"
  2997. .. note::
  2998. It is possible to set this to "" to disable symlink creation,
  2999. however, you also need to set :term:`IMAGE_NAME` to still have
  3000. a reasonable value e.g.::
  3001. IMAGE_LINK_NAME = ""
  3002. IMAGE_NAME = "${IMAGE_BASENAME}${IMAGE_MACHINE_SUFFIX}${IMAGE_VERSION_SUFFIX}"
  3003. :term:`IMAGE_MACHINE_SUFFIX`
  3004. Specifies the by default machine-specific suffix for image file names
  3005. (before the extension). The default value is set as follows::
  3006. IMAGE_MACHINE_SUFFIX ??= "-${MACHINE}"
  3007. The default :term:`DEPLOY_DIR_IMAGE` already has a :term:`MACHINE`
  3008. subdirectory, so you may find it unnecessary to also include this suffix
  3009. in the name of every image file. If you prefer to remove the suffix you
  3010. can set this variable to an empty string::
  3011. IMAGE_MACHINE_SUFFIX = ""
  3012. (Not to be confused with :term:`IMAGE_NAME_SUFFIX`.)
  3013. :term:`IMAGE_MANIFEST`
  3014. The manifest file for the image. This file lists all the installed
  3015. packages that make up the image. The file contains package
  3016. information on a line-per-package basis as follows::
  3017. packagename packagearch version
  3018. The :ref:`rootfs-postcommands <ref-classes-rootfs*>` class defines the manifest
  3019. file as follows::
  3020. IMAGE_MANIFEST ="${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.manifest"
  3021. The location is
  3022. derived using the :term:`IMGDEPLOYDIR`
  3023. and :term:`IMAGE_NAME` variables. You can find
  3024. information on how the image is created in the ":ref:`overview-manual/concepts:image generation`"
  3025. section in the Yocto Project Overview and Concepts Manual.
  3026. :term:`IMAGE_NAME`
  3027. The name of the output image files minus the extension. By default
  3028. this variable is set using the :term:`IMAGE_LINK_NAME`, and
  3029. :term:`IMAGE_VERSION_SUFFIX` variables::
  3030. IMAGE_NAME ?= "${IMAGE_LINK_NAME}${IMAGE_VERSION_SUFFIX}"
  3031. :term:`IMAGE_NAME_SUFFIX`
  3032. Suffix used for the image output filename --- defaults to ``".rootfs"``
  3033. to distinguish the image file from other files created during image
  3034. building; however if this suffix is redundant or not desired you can
  3035. clear the value of this variable (set the value to ""). For example,
  3036. this is typically cleared in :term:`Initramfs` image recipes.
  3037. :term:`IMAGE_OUTPUT_MANIFEST`
  3038. When inheriting the :ref:`ref-classes-image` class directly or through the
  3039. :ref:`ref-classes-core-image` class, the :term:`IMAGE_OUTPUT_MANIFEST`
  3040. points to a manifest ``json`` file that lists what images were created by
  3041. various image creation tasks (as defined by the :term:`IMAGE_FSTYPES`
  3042. variable). It is set in the :ref:`ref-classes-image` class as follows::
  3043. IMAGE_OUTPUT_MANIFEST = "${IMAGE_OUTPUT_MANIFEST_DIR}/manifest.json"
  3044. :term:`IMAGE_OUTPUT_MANIFEST_DIR`
  3045. When inheriting the :ref:`ref-classes-image` class directly or through the
  3046. :ref:`ref-classes-core-image` class, the :term:`IMAGE_OUTPUT_MANIFEST_DIR` points to
  3047. a directory that stores a manifest ``json`` file that lists what
  3048. images were created by various image creation tasks (as defined by the
  3049. :term:`IMAGE_FSTYPES` variable). It is set in the :ref:`ref-classes-image`
  3050. class as follows::
  3051. IMAGE_OUTPUT_MANIFEST_DIR = "${WORKDIR}/deploy-image-output-manifest"
  3052. :term:`IMAGE_OVERHEAD_FACTOR`
  3053. Defines a multiplier that the build system applies to the initial
  3054. image size for cases when the multiplier times the returned disk
  3055. usage value for the image is greater than the sum of
  3056. :term:`IMAGE_ROOTFS_SIZE` and :term:`IMAGE_ROOTFS_EXTRA_SPACE`. The result of
  3057. the multiplier applied to the initial image size creates free disk
  3058. space in the image as overhead. By default, the build process uses a
  3059. multiplier of 1.3 for this variable. This default value results in
  3060. 30% free disk space added to the image when this method is used to
  3061. determine the final generated image size. You should be aware that
  3062. post install scripts and the package management system uses disk
  3063. space inside this overhead area. Consequently, the multiplier does
  3064. not produce an image with all the theoretical free disk space. See
  3065. :term:`IMAGE_ROOTFS_SIZE` for information on how the build system
  3066. determines the overall image size.
  3067. The default 30% free disk space typically gives the image enough room
  3068. to boot and allows for basic post installs while still leaving a
  3069. small amount of free disk space. If 30% free space is inadequate, you
  3070. can increase the default value. For example, the following setting
  3071. gives you 50% free space added to the image::
  3072. IMAGE_OVERHEAD_FACTOR = "1.5"
  3073. Alternatively, you can ensure a specific amount of free disk space is
  3074. added to the image by using the :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  3075. variable.
  3076. :term:`IMAGE_PKGTYPE`
  3077. Defines the package type (i.e. DEB, RPM, IPK, or TAR) used by the
  3078. OpenEmbedded build system. The variable is defined appropriately by
  3079. the :ref:`ref-classes-package_deb`, :ref:`ref-classes-package_rpm`,
  3080. or :ref:`ref-classes-package_ipk` class.
  3081. The :ref:`ref-classes-populate-sdk-*` and :ref:`ref-classes-image`
  3082. classes use the :term:`IMAGE_PKGTYPE` for packaging up images and SDKs.
  3083. You should not set the :term:`IMAGE_PKGTYPE` manually. Rather, the
  3084. variable is set indirectly through the appropriate
  3085. :ref:`package_* <ref-classes-package>` class using the
  3086. :term:`PACKAGE_CLASSES` variable. The
  3087. OpenEmbedded build system uses the first package type (e.g. DEB, RPM,
  3088. or IPK) that appears with the variable
  3089. .. note::
  3090. Files using the ``.tar`` format are never used as a substitute
  3091. packaging format for DEB, RPM, and IPK formatted files for your image
  3092. or SDK.
  3093. :term:`IMAGE_POSTPROCESS_COMMAND`
  3094. Specifies a list of functions to call once the OpenEmbedded build
  3095. system creates the final image output files. You can specify
  3096. functions separated by spaces::
  3097. IMAGE_POSTPROCESS_COMMAND += "function"
  3098. If you need to pass the root filesystem path to a command within the
  3099. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  3100. directory that becomes the root filesystem image. See the
  3101. :term:`IMAGE_ROOTFS` variable for more
  3102. information.
  3103. :term:`IMAGE_PREPROCESS_COMMAND`
  3104. Specifies a list of functions to call before the OpenEmbedded build
  3105. system creates the final image output files. You can specify
  3106. functions separated by spaces::
  3107. IMAGE_PREPROCESS_COMMAND += "function"
  3108. If you need to pass the root filesystem path to a command within the
  3109. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  3110. directory that becomes the root filesystem image. See the
  3111. :term:`IMAGE_ROOTFS` variable for more
  3112. information.
  3113. :term:`IMAGE_ROOTFS`
  3114. The location of the root filesystem while it is under construction
  3115. (i.e. during the :ref:`ref-tasks-rootfs` task). This
  3116. variable is not configurable. Do not change it.
  3117. :term:`IMAGE_ROOTFS_ALIGNMENT`
  3118. Specifies the alignment for the output image file in Kbytes. If the
  3119. size of the image is not a multiple of this value, then the size is
  3120. rounded up to the nearest multiple of the value. The default value is
  3121. "1". See :term:`IMAGE_ROOTFS_SIZE` for
  3122. additional information.
  3123. :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  3124. Defines additional free disk space created in the image in Kbytes. By
  3125. default, this variable is set to "0". This free disk space is added
  3126. to the image after the build system determines the image size as
  3127. described in :term:`IMAGE_ROOTFS_SIZE`.
  3128. This variable is particularly useful when you want to ensure that a
  3129. specific amount of free disk space is available on a device after an
  3130. image is installed and running. For example, to be sure 5 Gbytes of
  3131. free disk space is available, set the variable as follows::
  3132. IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
  3133. For example, the Yocto Project Build Appliance specifically requests
  3134. 40 Gbytes of extra space with the line::
  3135. IMAGE_ROOTFS_EXTRA_SPACE = "41943040"
  3136. :term:`IMAGE_ROOTFS_MAXSIZE`
  3137. Defines the maximum size in Kbytes for the generated image. If the
  3138. generated image size is above that, the build will fail. It's a good
  3139. idea to set this variable for images that need to fit on a limited
  3140. space (e.g. SD card, a fixed-size partition, ...).
  3141. :term:`IMAGE_ROOTFS_SIZE`
  3142. Defines the size in Kbytes for the generated image. The OpenEmbedded
  3143. build system determines the final size for the generated image using
  3144. an algorithm that takes into account the initial disk space used for
  3145. the generated image, a requested size for the image, and requested
  3146. additional free disk space to be added to the image. Programatically,
  3147. the build system determines the final size of the generated image as
  3148. follows::
  3149. if (image-du * overhead) < rootfs-size:
  3150. internal-rootfs-size = rootfs-size + xspace
  3151. else:
  3152. internal-rootfs-size = (image-du * overhead) + xspace
  3153. where:
  3154. image-du = Returned value of the du command on the image.
  3155. overhead = IMAGE_OVERHEAD_FACTOR
  3156. rootfs-size = IMAGE_ROOTFS_SIZE
  3157. internal-rootfs-size = Initial root filesystem size before any modifications.
  3158. xspace = IMAGE_ROOTFS_EXTRA_SPACE
  3159. See the :term:`IMAGE_OVERHEAD_FACTOR`
  3160. and :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  3161. variables for related information.
  3162. :term:`IMAGE_TYPEDEP`
  3163. Specifies a dependency from one image type on another. Here is an
  3164. example from the :ref:`ref-classes-image-live` class::
  3165. IMAGE_TYPEDEP:live = "ext3"
  3166. In the previous example, the variable ensures that when "live" is
  3167. listed with the :term:`IMAGE_FSTYPES` variable,
  3168. the OpenEmbedded build system produces an ``ext3`` image first since
  3169. one of the components of the live image is an ``ext3`` formatted
  3170. partition containing the root filesystem.
  3171. :term:`IMAGE_TYPES`
  3172. Specifies the complete list of supported image types by default:
  3173. - btrfs
  3174. - container
  3175. - cpio
  3176. - cpio.gz
  3177. - cpio.lz4
  3178. - cpio.lzma
  3179. - cpio.xz
  3180. - cramfs
  3181. - erofs
  3182. - erofs-lz4
  3183. - erofs-lz4hc
  3184. - ext2
  3185. - ext2.bz2
  3186. - ext2.gz
  3187. - ext2.lzma
  3188. - ext3
  3189. - ext3.gz
  3190. - ext4
  3191. - ext4.gz
  3192. - f2fs
  3193. - hddimg
  3194. - iso
  3195. - jffs2
  3196. - jffs2.sum
  3197. - multiubi
  3198. - squashfs
  3199. - squashfs-lz4
  3200. - squashfs-lzo
  3201. - squashfs-xz
  3202. - tar
  3203. - tar.bz2
  3204. - tar.gz
  3205. - tar.lz4
  3206. - tar.xz
  3207. - tar.zst
  3208. - ubi
  3209. - ubifs
  3210. - wic
  3211. - wic.bz2
  3212. - wic.gz
  3213. - wic.lzma
  3214. - wic.zst
  3215. For more information about these types of images, see
  3216. ``meta/classes-recipe/image_types*.bbclass`` in the :term:`Source Directory`.
  3217. :term:`IMAGE_VERSION_SUFFIX`
  3218. Version suffix that is part of the default :term:`IMAGE_NAME` and
  3219. :term:`KERNEL_ARTIFACT_NAME` values.
  3220. Defaults to ``"-${DATETIME}"``, however you could set this to a
  3221. version string that comes from your external build environment if
  3222. desired, and this suffix would then be used consistently across
  3223. the build artifacts.
  3224. :term:`IMGDEPLOYDIR`
  3225. When inheriting the :ref:`ref-classes-image` class directly or
  3226. through the :ref:`ref-classes-core-image` class, the
  3227. :term:`IMGDEPLOYDIR` points to a temporary work area for deployed files
  3228. that is set in the ``image`` class as follows::
  3229. IMGDEPLOYDIR = "${WORKDIR}/deploy-${PN}-image-complete"
  3230. Recipes inheriting the :ref:`ref-classes-image` class should copy
  3231. files to be deployed into :term:`IMGDEPLOYDIR`, and the class will take
  3232. care of copying them into :term:`DEPLOY_DIR_IMAGE` afterwards.
  3233. :term:`IMGMANIFESTDIR`
  3234. When inheriting the :ref:`ref-classes-image` class directly or through the
  3235. :ref:`ref-classes-core-image` class, the :term:`IMGMANIFESTDIR` setting
  3236. points to a temporary area that stores manifest ``json`` files, that list
  3237. what images were created by various images creation tasks (as defined by
  3238. the :term:`IMAGE_FSTYPES` variable). It is set in the
  3239. :ref:`ref-classes-image` class as follows::
  3240. IMGMANIFESTDIR = "${WORKDIR}/image-task-manifest"
  3241. :term:`INCOMPATIBLE_LICENSE`
  3242. Specifies a space-separated list of license names (as they would
  3243. appear in :term:`LICENSE`) that should be excluded
  3244. from the build (if set globally), or from an image (if set locally
  3245. in an image recipe).
  3246. When the variable is set globally, recipes that provide no alternatives to listed
  3247. incompatible licenses are not built. Packages that are individually
  3248. licensed with the specified incompatible licenses will be deleted.
  3249. Most of the time this does not allow a feasible build (because it becomes impossible
  3250. to satisfy build time dependencies), so the recommended way to
  3251. implement license restrictions is to set the variable in specific
  3252. image recipes where the restrictions must apply. That way there
  3253. are no build time restrictions, but the license check is still
  3254. performed when the image's filesystem is assembled from packages.
  3255. There is some support for wildcards in this variable's value,
  3256. however it is restricted to specific licenses. Currently only
  3257. these wildcards are allowed and expand as follows:
  3258. - ``AGPL-3.0*"``: ``AGPL-3.0-only``, ``AGPL-3.0-or-later``
  3259. - ``GPL-3.0*``: ``GPL-3.0-only``, ``GPL-3.0-or-later``
  3260. - ``LGPL-3.0*``: ``LGPL-3.0-only``, ``LGPL-3.0-or-later``
  3261. .. note::
  3262. This functionality is only regularly tested using the following
  3263. setting::
  3264. INCOMPATIBLE_LICENSE = "GPL-3.0* LGPL-3.0* AGPL-3.0*"
  3265. Although you can use other settings, you might be required to
  3266. remove dependencies on (or provide alternatives to) components that
  3267. are required to produce a functional system image.
  3268. :term:`INCOMPATIBLE_LICENSE_EXCEPTIONS`
  3269. Specifies a space-separated list of package and license pairs that
  3270. are allowed to be used even if the license is specified in
  3271. :term:`INCOMPATIBLE_LICENSE`. The package and license pairs are
  3272. separated using a colon. Example::
  3273. INCOMPATIBLE_LICENSE_EXCEPTIONS = "gdbserver:GPL-3.0-only gdbserver:LGPL-3.0-only"
  3274. :term:`INHERIT`
  3275. Causes the named class or classes to be inherited globally. Anonymous
  3276. functions in the class or classes are not executed for the base
  3277. configuration and in each individual recipe. The OpenEmbedded build
  3278. system ignores changes to :term:`INHERIT` in individual recipes.
  3279. Classes inherited using :term:`INHERIT` must be located in the
  3280. ``classes-global/`` or ``classes/`` subdirectories.
  3281. For more information on :term:`INHERIT`, see the
  3282. :ref:`bitbake-user-manual/bitbake-user-manual-metadata:\`\`inherit\`\` configuration directive`"
  3283. section in the BitBake User Manual.
  3284. :term:`INHERIT_DISTRO`
  3285. Lists classes that will be inherited at the distribution level. It is
  3286. unlikely that you want to edit this variable.
  3287. Classes specified in :term:`INHERIT_DISTRO` must be located in the
  3288. ``classes-global/`` or ``classes/`` subdirectories.
  3289. The default value of the variable is set as follows in the
  3290. ``meta/conf/distro/defaultsetup.conf`` file::
  3291. INHERIT_DISTRO ?= "debian devshell sstate license remove-libtool create-spdx"
  3292. :term:`INHIBIT_DEFAULT_DEPS`
  3293. Prevents the default dependencies, namely the C compiler and standard
  3294. C library (libc), from being added to :term:`DEPENDS`.
  3295. This variable is usually used within recipes that do not require any
  3296. compilation using the C compiler.
  3297. Set the variable to "1" to prevent the default dependencies from
  3298. being added.
  3299. :term:`INHIBIT_PACKAGE_DEBUG_SPLIT`
  3300. Prevents the OpenEmbedded build system from splitting out debug
  3301. information during packaging. By default, the build system splits out
  3302. debugging information during the
  3303. :ref:`ref-tasks-package` task. For more information on
  3304. how debug information is split out, see the
  3305. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  3306. variable.
  3307. To prevent the build system from splitting out debug information
  3308. during packaging, set the :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` variable as
  3309. follows::
  3310. INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
  3311. :term:`INHIBIT_PACKAGE_STRIP`
  3312. If set to "1", causes the build to not strip binaries in resulting
  3313. packages and prevents the ``-dbg`` package from containing the source
  3314. files.
  3315. By default, the OpenEmbedded build system strips binaries and puts
  3316. the debugging symbols into ``${``\ :term:`PN`\ ``}-dbg``.
  3317. Consequently, you should not set :term:`INHIBIT_PACKAGE_STRIP` when you
  3318. plan to debug in general.
  3319. :term:`INHIBIT_SYSROOT_STRIP`
  3320. If set to "1", causes the build to not strip binaries in the
  3321. resulting sysroot.
  3322. By default, the OpenEmbedded build system strips binaries in the
  3323. resulting sysroot. When you specifically set the
  3324. :term:`INHIBIT_SYSROOT_STRIP` variable to "1" in your recipe, you inhibit
  3325. this stripping.
  3326. If you want to use this variable, include the :ref:`ref-classes-staging`
  3327. class. This class uses a ``sys_strip()`` function to test for the variable
  3328. and acts accordingly.
  3329. .. note::
  3330. Use of the :term:`INHIBIT_SYSROOT_STRIP` variable occurs in rare and
  3331. special circumstances. For example, suppose you are building
  3332. bare-metal firmware by using an external GCC toolchain. Furthermore,
  3333. even if the toolchain's binaries are strippable, there are other files
  3334. needed for the build that are not strippable.
  3335. :term:`INIT_MANAGER`
  3336. Specifies the system init manager to use. Available options are:
  3337. - ``sysvinit``
  3338. - ``systemd``
  3339. - ``mdev-busybox``
  3340. With ``sysvinit``, the init manager is set to
  3341. :wikipedia:`SysVinit <Init#SysV-style>`, the traditional UNIX init
  3342. system. This is the default choice in the Poky distribution, together with
  3343. the Udev device manager (see the ":ref:`device-manager`" section).
  3344. With ``systemd``, the init manager becomes :wikipedia:`systemd <Systemd>`,
  3345. which comes with the :wikipedia:`udev <Udev>` device manager.
  3346. With ``mdev-busybox``, the init manager becomes the much simpler BusyBox
  3347. init, together with the BusyBox mdev device manager. This is the simplest
  3348. and lightest solution, and probably the best choice for low-end systems
  3349. with a rather slow CPU and a limited amount of RAM.
  3350. More concretely, this is used to include
  3351. ``conf/distro/include/init-manager-${INIT_MANAGER}.inc`` into the global
  3352. configuration. You can have a look at the
  3353. :yocto_git:`meta/conf/distro/include/init-manager-*.inc </poky/tree/meta/conf/distro/include>`
  3354. files for more information, and also the ":ref:`init-manager`"
  3355. section in the Yocto Project Development Tasks Manual.
  3356. :term:`INITRAMFS_DEPLOY_DIR_IMAGE`
  3357. Indicates the deploy directory used by :ref:`ref-tasks-bundle_initramfs`
  3358. where the :term:`INITRAMFS_IMAGE` will be fetched from. This variable is
  3359. set by default to ``${DEPLOY_DIR_IMAGE}`` in the
  3360. :ref:`ref-classes-kernel` class and it's only meant to be changed when
  3361. building an :term:`Initramfs` image from a separate multiconfig via
  3362. :term:`INITRAMFS_MULTICONFIG`.
  3363. :term:`INITRAMFS_FSTYPES`
  3364. Defines the format for the output image of an initial RAM filesystem
  3365. (:term:`Initramfs`), which is used during boot. Supported formats are the
  3366. same as those supported by the
  3367. :term:`IMAGE_FSTYPES` variable.
  3368. The default value of this variable, which is set in the
  3369. ``meta/conf/bitbake.conf`` configuration file in the
  3370. :term:`Source Directory`, is "cpio.gz". The Linux kernel's
  3371. :term:`Initramfs` mechanism, as opposed to the initial RAM filesystem
  3372. :wikipedia:`initrd <Initrd>` mechanism, expects
  3373. an optionally compressed cpio archive.
  3374. :term:`INITRAMFS_IMAGE`
  3375. Specifies the :term:`PROVIDES` name of an image
  3376. recipe that is used to build an initial RAM filesystem (:term:`Initramfs`)
  3377. image. In other words, the :term:`INITRAMFS_IMAGE` variable causes an
  3378. additional recipe to be built as a dependency to whatever root
  3379. filesystem recipe you might be using (e.g. ``core-image-sato``). The
  3380. :term:`Initramfs` image recipe you provide should set
  3381. :term:`IMAGE_FSTYPES` to
  3382. :term:`INITRAMFS_FSTYPES`.
  3383. An :term:`Initramfs` image provides a temporary root filesystem used for
  3384. early system initialization (e.g. loading of modules needed to locate
  3385. and mount the "real" root filesystem).
  3386. .. note::
  3387. See the ``meta/recipes-core/images/core-image-minimal-initramfs.bb``
  3388. recipe in the :term:`Source Directory`
  3389. for an example :term:`Initramfs` recipe. To select this sample recipe as
  3390. the one built to provide the :term:`Initramfs` image, set :term:`INITRAMFS_IMAGE`
  3391. to "core-image-minimal-initramfs".
  3392. You can also find more information by referencing the
  3393. ``meta-poky/conf/templates/default/local.conf.sample.extended``
  3394. configuration file in the Source Directory, the :ref:`ref-classes-image`
  3395. class, and the :ref:`ref-classes-kernel` class to see how to use the
  3396. :term:`INITRAMFS_IMAGE` variable.
  3397. If :term:`INITRAMFS_IMAGE` is empty, which is the default, then no
  3398. :term:`Initramfs` image is built.
  3399. For more information, you can also see the
  3400. :term:`INITRAMFS_IMAGE_BUNDLE`
  3401. variable, which allows the generated image to be bundled inside the
  3402. kernel image. Additionally, for information on creating an :term:`Initramfs`
  3403. image, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  3404. in the Yocto Project Development Tasks Manual.
  3405. :term:`INITRAMFS_IMAGE_BUNDLE`
  3406. Controls whether or not the image recipe specified by
  3407. :term:`INITRAMFS_IMAGE` is run through an
  3408. extra pass
  3409. (:ref:`ref-tasks-bundle_initramfs`) during
  3410. kernel compilation in order to build a single binary that contains
  3411. both the kernel image and the initial RAM filesystem (:term:`Initramfs`)
  3412. image. This makes use of the
  3413. :term:`CONFIG_INITRAMFS_SOURCE` kernel
  3414. feature.
  3415. .. note::
  3416. Bundling the :term:`Initramfs` with the kernel conflates the code in the
  3417. :term:`Initramfs` with the GPLv2 licensed Linux kernel binary. Thus only GPLv2
  3418. compatible software may be part of a bundled :term:`Initramfs`.
  3419. .. note::
  3420. Using an extra compilation pass to bundle the :term:`Initramfs` avoids a
  3421. circular dependency between the kernel recipe and the :term:`Initramfs`
  3422. recipe should the :term:`Initramfs` include kernel modules. Should that be
  3423. the case, the :term:`Initramfs` recipe depends on the kernel for the
  3424. kernel modules, and the kernel depends on the :term:`Initramfs` recipe
  3425. since the :term:`Initramfs` is bundled inside the kernel image.
  3426. The combined binary is deposited into the ``tmp/deploy`` directory,
  3427. which is part of the :term:`Build Directory`.
  3428. Setting the variable to "1" in a configuration file causes the
  3429. OpenEmbedded build system to generate a kernel image with the
  3430. :term:`Initramfs` specified in :term:`INITRAMFS_IMAGE` bundled within::
  3431. INITRAMFS_IMAGE_BUNDLE = "1"
  3432. By default, the :ref:`ref-classes-kernel` class sets this variable to a
  3433. null string as follows::
  3434. INITRAMFS_IMAGE_BUNDLE ?= ""
  3435. .. note::
  3436. You must set the :term:`INITRAMFS_IMAGE_BUNDLE` variable in a
  3437. configuration file. You cannot set the variable in a recipe file.
  3438. See the
  3439. :yocto_git:`local.conf.sample.extended </poky/tree/meta-poky/conf/templates/default/local.conf.sample.extended>`
  3440. file for additional information. Also, for information on creating an
  3441. :term:`Initramfs`, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  3442. in the Yocto Project Development Tasks Manual.
  3443. :term:`INITRAMFS_IMAGE_NAME`
  3444. This value needs to stay in sync with :term:`IMAGE_LINK_NAME`, but with
  3445. :term:`INITRAMFS_IMAGE` instead of :term:`IMAGE_BASENAME`. The default value
  3446. is set as follows:
  3447. INITRAMFS_IMAGE_NAME ?= "${@['${INITRAMFS_IMAGE}${IMAGE_MACHINE_SUFFIX}', ''][d.getVar('INITRAMFS_IMAGE') == '']}"
  3448. That is, if :term:`INITRAMFS_IMAGE` is set, the value of
  3449. :term:`INITRAMFS_IMAGE_NAME` will be set based upon
  3450. :term:`INITRAMFS_IMAGE` and :term:`IMAGE_MACHINE_SUFFIX`.
  3451. :term:`INITRAMFS_LINK_NAME`
  3452. The link name of the initial RAM filesystem image. This variable is
  3453. set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3454. follows::
  3455. INITRAMFS_LINK_NAME ?= "initramfs-${KERNEL_ARTIFACT_LINK_NAME}"
  3456. The value of the
  3457. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3458. file, has the following value::
  3459. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3460. See the :term:`MACHINE` variable for additional
  3461. information.
  3462. :term:`INITRAMFS_MULTICONFIG`
  3463. Defines the multiconfig to create a multiconfig dependency to be used by
  3464. the :ref:`ref-classes-kernel` class.
  3465. This allows the kernel to bundle an :term:`INITRAMFS_IMAGE` coming from
  3466. a separate multiconfig, this is meant to be used in addition to :term:`INITRAMFS_DEPLOY_DIR_IMAGE`.
  3467. For more information on how to bundle an :term:`Initramfs` image from a separate
  3468. multiconfig see the ":ref:`dev-manual/building:Bundling an Initramfs Image From a Separate Multiconfig`"
  3469. section in the Yocto Project Development Tasks Manual.
  3470. :term:`INITRAMFS_NAME`
  3471. The base name of the initial RAM filesystem image. This variable is
  3472. set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3473. follows::
  3474. INITRAMFS_NAME ?= "initramfs-${KERNEL_ARTIFACT_NAME}"
  3475. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3476. :term:`INITRD`
  3477. Indicates list of filesystem images to concatenate and use as an
  3478. initial RAM disk (``initrd``).
  3479. The :term:`INITRD` variable is an optional variable used with the
  3480. :ref:`ref-classes-image-live` class.
  3481. :term:`INITRD_IMAGE`
  3482. When building a "live" bootable image (i.e. when
  3483. :term:`IMAGE_FSTYPES` contains "live"),
  3484. :term:`INITRD_IMAGE` specifies the image recipe that should be built to
  3485. provide the initial RAM disk image. The default value is
  3486. "core-image-minimal-initramfs".
  3487. See the :ref:`ref-classes-image-live` class for more information.
  3488. :term:`INITSCRIPT_NAME`
  3489. The filename of the initialization script as installed to
  3490. ``${sysconfdir}/init.d``.
  3491. This variable is used in recipes when using :ref:`ref-classes-update-rc.d`.
  3492. The variable is mandatory.
  3493. :term:`INITSCRIPT_PACKAGES`
  3494. A list of the packages that contain initscripts. If multiple packages
  3495. are specified, you need to append the package name to the other
  3496. ``INITSCRIPT_*`` as an override.
  3497. This variable is used in recipes when using :ref:`ref-classes-update-rc.d`.
  3498. The variable is optional and defaults to the :term:`PN`
  3499. variable.
  3500. :term:`INITSCRIPT_PARAMS`
  3501. Specifies the options to pass to ``update-rc.d``. Here is an example::
  3502. INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."
  3503. In this example, the script has a runlevel of 99, starts the script
  3504. in initlevels 2 and 5, and stops the script in levels 0, 1 and 6.
  3505. The variable's default value is "defaults", which is set in the
  3506. :ref:`ref-classes-update-rc.d` class.
  3507. The value in :term:`INITSCRIPT_PARAMS` is passed through to the
  3508. ``update-rc.d`` command. For more information on valid parameters,
  3509. please see the ``update-rc.d`` manual page at
  3510. https://manpages.debian.org/buster/init-system-helpers/update-rc.d.8.en.html
  3511. :term:`INSANE_SKIP`
  3512. Specifies the QA checks to skip for a specific package within a
  3513. recipe. For example, to skip the check for symbolic link ``.so``
  3514. files in the main package of a recipe, add the following to the
  3515. recipe. The package name override must be used, which in this example
  3516. is ``${PN}``::
  3517. INSANE_SKIP:${PN} += "dev-so"
  3518. See the ":ref:`ref-classes-insane`" section for a
  3519. list of the valid QA checks you can specify using this variable.
  3520. :term:`INSTALL_TIMEZONE_FILE`
  3521. By default, the ``tzdata`` recipe packages an ``/etc/timezone`` file.
  3522. Set the :term:`INSTALL_TIMEZONE_FILE` variable to "0" at the
  3523. configuration level to disable this behavior.
  3524. :term:`IPK_FEED_URIS`
  3525. When the IPK backend is in use and package management is enabled on
  3526. the target, you can use this variable to set up ``opkg`` in the
  3527. target image to point to package feeds on a nominated server. Once
  3528. the feed is established, you can perform installations or upgrades
  3529. using the package manager at runtime.
  3530. :term:`KARCH`
  3531. Defines the kernel architecture used when assembling the
  3532. configuration. Architectures supported for this release are:
  3533. - powerpc
  3534. - i386
  3535. - x86_64
  3536. - arm
  3537. - qemu
  3538. - mips
  3539. You define the :term:`KARCH` variable in the :ref:`kernel-dev/advanced:bsp descriptions`.
  3540. :term:`KBRANCH`
  3541. A regular expression used by the build process to explicitly identify
  3542. the kernel branch that is validated, patched, and configured during a
  3543. build. You must set this variable to ensure the exact kernel branch
  3544. you want is being used by the build process.
  3545. Values for this variable are set in the kernel's recipe file and the
  3546. kernel's append file. For example, if you are using the
  3547. ``linux-yocto_4.12`` kernel, the kernel recipe file is the
  3548. ``meta/recipes-kernel/linux/linux-yocto_4.12.bb`` file. :term:`KBRANCH`
  3549. is set as follows in that kernel recipe file::
  3550. KBRANCH ?= "standard/base"
  3551. This variable is also used from the kernel's append file to identify
  3552. the kernel branch specific to a particular machine or target
  3553. hardware. Continuing with the previous kernel example, the kernel's
  3554. append file is located in the
  3555. BSP layer for a given machine. For example, the append file for the
  3556. Beaglebone and generic versions of both 32 and 64-bit IA
  3557. machines (``meta-yocto-bsp``) is named
  3558. ``meta-yocto-bsp/recipes-kernel/linux/linux-yocto_6.1.bbappend``.
  3559. Here are the related statements from that append file::
  3560. KBRANCH:genericx86 = "v6.1/standard/base"
  3561. KBRANCH:genericx86-64 = "v6.1/standard/base"
  3562. KBRANCH:beaglebone-yocto = "v6.1/standard/beaglebone"
  3563. The :term:`KBRANCH` statements
  3564. identify the kernel branch to use when building for each supported
  3565. BSP.
  3566. :term:`KBUILD_DEFCONFIG`
  3567. When used with the :ref:`ref-classes-kernel-yocto`
  3568. class, specifies an "in-tree" kernel configuration file for use
  3569. during a kernel build.
  3570. Typically, when using a ``defconfig`` to configure a kernel during a
  3571. build, you place the file in your layer in the same manner as you
  3572. would place patch files and configuration fragment files (i.e.
  3573. "out-of-tree"). However, if you want to use a ``defconfig`` file that
  3574. is part of the kernel tree (i.e. "in-tree"), you can use the
  3575. :term:`KBUILD_DEFCONFIG` variable and append the
  3576. :term:`KMACHINE` variable to point to the
  3577. ``defconfig`` file.
  3578. To use the variable, set it in the append file for your kernel recipe
  3579. using the following form::
  3580. KBUILD_DEFCONFIG:<machine> ?= "defconfig_file"
  3581. Here is an example from a "raspberrypi2" :term:`MACHINE` build that uses
  3582. a ``defconfig`` file named "bcm2709_defconfig"::
  3583. KBUILD_DEFCONFIG:raspberrypi2 = "bcm2709_defconfig"
  3584. As an alternative, you can use the following within your append file::
  3585. KBUILD_DEFCONFIG:pn-linux-yocto ?= "defconfig_file"
  3586. For more
  3587. information on how to use the :term:`KBUILD_DEFCONFIG` variable, see the
  3588. ":ref:`kernel-dev/common:using an "in-tree" \`\`defconfig\`\` file`"
  3589. section in the Yocto Project Linux Kernel Development Manual.
  3590. :term:`KCONF_AUDIT_LEVEL`
  3591. When inheriting the :ref:`ref-classes-kernel-yocto` class and when the
  3592. :term:`KMETA_AUDIT` variable is set to a non-empty string, the
  3593. :term:`KCONF_AUDIT_LEVEL` variable specifies whether to report Kernel
  3594. configuration values that are different from the user-specified value. Its
  3595. value is a positive integer (default: 1):
  3596. - 0: no reporting is done.
  3597. - 1: report the problems as warnings and trigger an error if
  3598. :term:`KMETA_AUDIT_WERROR` is set.
  3599. - 2: if the :ref:`ref-tasks-kernel_configme` has failed to generate a
  3600. ``.config`` file, print the content of the ``merge_config_build.log``
  3601. file containing the errors, instead of just providing the path to
  3602. that file.
  3603. For more details see the :ref:`ref-classes-kernel-yocto` class and the
  3604. :yocto_git:`symbol_why.py </yocto-kernel-tools/tree/tools/symbol_why.py>`
  3605. script in :yocto_git:`yocto-kernel-tools </yocto-kernel-tools>`.
  3606. :term:`KCONF_BSP_AUDIT_LEVEL`
  3607. When inheriting the :ref:`ref-classes-kernel-yocto` class and when the
  3608. :term:`KMETA_AUDIT` variable is set to a non-empty string, the
  3609. :term:`KCONF_BSP_AUDIT_LEVEL` variable can be set to report:
  3610. #. User-specified Kernel configurations that did not make it into the final
  3611. Kernel configuration.
  3612. #. Configurations defined in multiple input files with differing values.
  3613. Its value is a positive integer (default: 0):
  3614. - 0: no reporting is done.
  3615. - 1: reporting of configuration options that did not make it in the
  3616. final configuration is done and is not limited to the current
  3617. architecture (``ARCH``) in use.
  3618. - 2: reporting of configuration options that did not make it in the
  3619. final configuration is done and is strictly limited to the current
  3620. architecture (``ARCH``) in use.
  3621. - 3: report the problems found when this variable equals 2, and also
  3622. report configurations options defined in multiple input files with
  3623. differing values.
  3624. For value 1, 2 and 3 an error is produced if :term:`KMETA_AUDIT_WERROR`
  3625. is set.
  3626. For more details see the :ref:`ref-classes-kernel-yocto` class and the
  3627. :yocto_git:`symbol_why.py </yocto-kernel-tools/tree/tools/symbol_why.py>`
  3628. script in :yocto_git:`yocto-kernel-tools </yocto-kernel-tools>`.
  3629. :term:`KCONFIG_MODE`
  3630. When used with the :ref:`ref-classes-kernel-yocto`
  3631. class, specifies the kernel configuration values to use for options
  3632. not specified in the provided ``defconfig`` file. Valid options are::
  3633. KCONFIG_MODE = "alldefconfig"
  3634. KCONFIG_MODE = "allnoconfig"
  3635. In ``alldefconfig`` mode the options not explicitly specified will be
  3636. assigned their Kconfig default value. In ``allnoconfig`` mode the
  3637. options not explicitly specified will be disabled in the kernel
  3638. config.
  3639. In case :term:`KCONFIG_MODE` is not set the behaviour will depend on where
  3640. the ``defconfig`` file is coming from. An "in-tree" ``defconfig`` file
  3641. will be handled in ``alldefconfig`` mode, a ``defconfig`` file placed
  3642. in ``${WORKDIR}`` through a meta-layer will be handled in
  3643. ``allnoconfig`` mode.
  3644. An "in-tree" ``defconfig`` file can be selected via the
  3645. :term:`KBUILD_DEFCONFIG` variable. :term:`KCONFIG_MODE` does not need to
  3646. be explicitly set.
  3647. A ``defconfig`` file compatible with ``allnoconfig`` mode can be
  3648. generated by copying the ``.config`` file from a working Linux kernel
  3649. build, renaming it to ``defconfig`` and placing it into the Linux
  3650. kernel ``${WORKDIR}`` through your meta-layer. :term:`KCONFIG_MODE` does
  3651. not need to be explicitly set.
  3652. A ``defconfig`` file compatible with ``alldefconfig`` mode can be
  3653. generated using the
  3654. :ref:`ref-tasks-savedefconfig`
  3655. task and placed into the Linux kernel ``${WORKDIR}`` through your
  3656. meta-layer. Explicitely set :term:`KCONFIG_MODE`::
  3657. KCONFIG_MODE = "alldefconfig"
  3658. :term:`KERNEL_ALT_IMAGETYPE`
  3659. Specifies an alternate kernel image type for creation in addition to
  3660. the kernel image type specified using the :term:`KERNEL_IMAGETYPE` and
  3661. :term:`KERNEL_IMAGETYPES` variables.
  3662. :term:`KERNEL_ARTIFACT_NAME`
  3663. Specifies the name of all of the build artifacts. You can change the
  3664. name of the artifacts by changing the :term:`KERNEL_ARTIFACT_NAME`
  3665. variable.
  3666. The value of :term:`KERNEL_ARTIFACT_NAME`, which is set in the
  3667. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file, has the
  3668. following default value::
  3669. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}${IMAGE_MACHINE_SUFFIX}${IMAGE_VERSION_SUFFIX}"
  3670. See the :term:`PKGE`, :term:`PKGV`, :term:`PKGR`, :term:`IMAGE_MACHINE_SUFFIX`
  3671. and :term:`IMAGE_VERSION_SUFFIX` variables for additional information.
  3672. :term:`KERNEL_CLASSES`
  3673. A list of classes defining kernel image types that the
  3674. :ref:`ref-classes-kernel` class should inherit. You typically
  3675. append this variable to enable extended image types. An example is
  3676. ":ref:`ref-classes-kernel-fitimage`", which enables
  3677. FIT image support and resides in ``meta/classes-recipe/kernel-fitimage.bbclass``.
  3678. You can register custom kernel image types with the
  3679. :ref:`ref-classes-kernel` class using this variable.
  3680. :term:`KERNEL_CONSOLE`
  3681. The :term:`KERNEL_CONSOLE` variable holds the value of the ``console``
  3682. parameter of the kernel command line and can be used in places such as a
  3683. ``wks`` description file for :ref:`Wic images <dev-manual/wic:creating
  3684. partitioned images using wic>`.
  3685. The default value of this variable is extracted from the first console
  3686. device and setting in :term:`SERIAL_CONSOLES`. If nothing is found in
  3687. :term:`SERIAL_CONSOLES`, the default value is set to ``ttyS0,115200``.
  3688. For more information, see the `Kernel command-line documentation
  3689. <https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html>`__.
  3690. :term:`KERNEL_DANGLING_FEATURES_WARN_ONLY`
  3691. When kernel configuration fragments are missing for some
  3692. :term:`KERNEL_FEATURES` specified by layers or BSPs,
  3693. building and configuring the kernel stops with an error.
  3694. You can turn these errors into warnings by setting the
  3695. following in ``conf/local.conf``::
  3696. KERNEL_DANGLING_FEATURES_WARN_ONLY = "1"
  3697. You will still be warned that runtime issues may occur,
  3698. but at least the kernel configuration and build process will
  3699. be allowed to continue.
  3700. :term:`KERNEL_DEBUG_TIMESTAMPS`
  3701. If set to "1", enables timestamping functionality during building
  3702. the kernel. The default is "0" to disable this for reproducibility
  3703. reasons.
  3704. :term:`KERNEL_DEPLOY_DEPEND`
  3705. Provides a means of controlling the dependency of an image recipe
  3706. on the kernel. The default value is "virtual/kernel:do_deploy",
  3707. however for a small initramfs image or other images that do not
  3708. need the kernel, this can be set to "" in the image recipe.
  3709. :term:`KERNEL_DEVICETREE`
  3710. Specifies the name of the generated Linux kernel device tree (i.e.
  3711. the ``.dtb``) file.
  3712. .. note::
  3713. There is legacy support for specifying the full path to the device
  3714. tree. However, providing just the ``.dtb`` file is preferred.
  3715. In order to use this variable, the :ref:`ref-classes-kernel-devicetree`
  3716. class must be inherited.
  3717. :term:`KERNEL_DEVICETREE_BUNDLE`
  3718. When set to "1", this variable allows to bundle the Linux kernel
  3719. and the Device Tree Binary together in a single file.
  3720. This feature is currently only supported on the "arm" (32 bit)
  3721. architecture.
  3722. This variable is set to "0" by default by the
  3723. :ref:`ref-classes-kernel-devicetree` class.
  3724. :term:`KERNEL_DTB_LINK_NAME`
  3725. The link name of the kernel device tree binary (DTB). This variable
  3726. is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3727. follows::
  3728. KERNEL_DTB_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3729. The
  3730. value of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in
  3731. the same file, has the following value::
  3732. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3733. See the :term:`MACHINE` variable for additional
  3734. information.
  3735. :term:`KERNEL_DTB_NAME`
  3736. The base name of the kernel device tree binary (DTB). This variable
  3737. is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3738. follows::
  3739. KERNEL_DTB_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3740. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3741. :term:`KERNEL_DTBDEST`
  3742. This variable, used by the :ref:`ref-classes-kernel-devicetree`
  3743. class, allows to change the installation directory of the DTB
  3744. (Device Tree Binary) files.
  3745. It is set by default to "${KERNEL_IMAGEDEST}" by the
  3746. :ref:`ref-classes-kernel` class.
  3747. :term:`KERNEL_DTBVENDORED`
  3748. This variable, used by the :ref:`ref-classes-kernel-devicetree`,
  3749. allows to ignore vendor subdirectories when installing DTB
  3750. (Device Tree Binary) files, when it is set to "false".
  3751. To keep vendor subdirectories, set this variable to "true".
  3752. It is set by default to "false" by the :ref:`ref-classes-kernel` class.
  3753. :term:`KERNEL_DTC_FLAGS`
  3754. Specifies the ``dtc`` flags that are passed to the Linux kernel build
  3755. system when generating the device trees (via ``DTC_FLAGS`` environment
  3756. variable).
  3757. In order to use this variable, the :ref:`ref-classes-kernel-devicetree`
  3758. class must be inherited.
  3759. :term:`KERNEL_EXTRA_ARGS`
  3760. Specifies additional ``make`` command-line arguments the OpenEmbedded
  3761. build system passes on when compiling the kernel.
  3762. :term:`KERNEL_FEATURES`
  3763. Includes additional kernel metadata. In the OpenEmbedded build
  3764. system, the default Board Support Packages (BSPs)
  3765. :term:`Metadata` is provided through the
  3766. :term:`KMACHINE` and :term:`KBRANCH`
  3767. variables. You can use the :term:`KERNEL_FEATURES` variable from within
  3768. the kernel recipe or kernel append file to further add metadata for
  3769. all BSPs or specific BSPs.
  3770. The metadata you add through this variable includes config fragments
  3771. and features descriptions, which usually includes patches as well as
  3772. config fragments. You typically override the :term:`KERNEL_FEATURES`
  3773. variable for a specific machine. In this way, you can provide
  3774. validated, but optional, sets of kernel configurations and features.
  3775. For example, the following example from the ``linux-yocto-rt_4.12``
  3776. kernel recipe adds "netfilter" and "taskstats" features to all BSPs
  3777. as well as "virtio" configurations to all QEMU machines. The last two
  3778. statements add specific configurations to targeted machine types::
  3779. KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc"
  3780. KERNEL_FEATURES:append = " ${KERNEL_EXTRA_FEATURES}"
  3781. KERNEL_FEATURES:append:qemuall = " cfg/virtio.scc"
  3782. KERNEL_FEATURES:append:qemux86 = " cfg/sound.scc cfg/paravirt_kvm.scc"
  3783. KERNEL_FEATURES:append:qemux86-64 = " cfg/sound.scc"
  3784. :term:`KERNEL_FIT_LINK_NAME`
  3785. The link name of the kernel flattened image tree (FIT) image. This
  3786. variable is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass``
  3787. file as follows::
  3788. KERNEL_FIT_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3789. The value of the
  3790. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3791. file, has the following value::
  3792. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3793. See the :term:`MACHINE` variable for additional
  3794. information.
  3795. :term:`KERNEL_FIT_NAME`
  3796. The base name of the kernel flattened image tree (FIT) image. This
  3797. variable is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass``
  3798. file as follows::
  3799. KERNEL_FIT_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3800. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3801. :term:`KERNEL_IMAGE_LINK_NAME`
  3802. The link name for the kernel image. This variable is set in the
  3803. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  3804. KERNEL_IMAGE_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3805. The value of
  3806. the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3807. file, has the following value::
  3808. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3809. See the :term:`MACHINE` variable for additional
  3810. information.
  3811. :term:`KERNEL_IMAGE_MAXSIZE`
  3812. Specifies the maximum size of the kernel image file in kilobytes. If
  3813. :term:`KERNEL_IMAGE_MAXSIZE` is set, the size of the kernel image file is
  3814. checked against the set value during the
  3815. :ref:`ref-tasks-sizecheck` task. The task fails if
  3816. the kernel image file is larger than the setting.
  3817. :term:`KERNEL_IMAGE_MAXSIZE` is useful for target devices that have a
  3818. limited amount of space in which the kernel image must be stored.
  3819. By default, this variable is not set, which means the size of the
  3820. kernel image is not checked.
  3821. :term:`KERNEL_IMAGE_NAME`
  3822. The base name of the kernel image. This variable is set in the
  3823. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  3824. KERNEL_IMAGE_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3825. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3826. :term:`KERNEL_IMAGETYPE`
  3827. The type of kernel to build for a device, usually set by the machine
  3828. configuration files and defaults to "zImage". This variable is used
  3829. when building the kernel and is passed to ``make`` as the target to
  3830. build.
  3831. To build additional kernel image types, use :term:`KERNEL_IMAGETYPES`.
  3832. :term:`KERNEL_IMAGETYPES`
  3833. Lists additional types of kernel images to build for a device in addition
  3834. to image type specified in :term:`KERNEL_IMAGETYPE`. Usually set by the
  3835. machine configuration files.
  3836. :term:`KERNEL_MODULE_AUTOLOAD`
  3837. Lists kernel modules that need to be auto-loaded during boot.
  3838. .. note::
  3839. This variable replaces the deprecated :term:`module_autoload`
  3840. variable.
  3841. You can use the :term:`KERNEL_MODULE_AUTOLOAD` variable anywhere that it
  3842. can be recognized by the kernel recipe or by an out-of-tree kernel
  3843. module recipe (e.g. a machine configuration file, a distribution
  3844. configuration file, an append file for the recipe, or the recipe
  3845. itself).
  3846. Specify it as follows::
  3847. KERNEL_MODULE_AUTOLOAD += "module_name1 module_name2 module_name3"
  3848. Including :term:`KERNEL_MODULE_AUTOLOAD` causes the OpenEmbedded build
  3849. system to populate the ``/etc/modules-load.d/modname.conf`` file with
  3850. the list of modules to be auto-loaded on boot. The modules appear
  3851. one-per-line in the file. Here is an example of the most common use
  3852. case::
  3853. KERNEL_MODULE_AUTOLOAD += "module_name"
  3854. For information on how to populate the ``modname.conf`` file with
  3855. ``modprobe.d`` syntax lines, see the :term:`KERNEL_MODULE_PROBECONF` variable.
  3856. :term:`KERNEL_MODULE_PROBECONF`
  3857. Provides a list of modules for which the OpenEmbedded build system
  3858. expects to find ``module_conf_``\ modname values that specify
  3859. configuration for each of the modules. For information on how to
  3860. provide those module configurations, see the
  3861. :term:`module_conf_* <module_conf>` variable.
  3862. :term:`KERNEL_PACKAGE_NAME`
  3863. Specifies the base name of the kernel packages, such as "kernel"
  3864. in the kernel packages such as "kernel-modules", "kernel-image" and
  3865. "kernel-dbg".
  3866. The default value for this variable is set to "kernel" by the
  3867. :ref:`ref-classes-kernel` class.
  3868. :term:`KERNEL_PATH`
  3869. The location of the kernel sources. This variable is set to the value
  3870. of the :term:`STAGING_KERNEL_DIR` within the :ref:`ref-classes-module`
  3871. class. For information on how this variable is used, see the
  3872. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  3873. section in the Yocto Project Linux Kernel Development Manual.
  3874. To help maximize compatibility with out-of-tree drivers used to build
  3875. modules, the OpenEmbedded build system also recognizes and uses the
  3876. :term:`KERNEL_SRC` variable, which is identical to
  3877. the :term:`KERNEL_PATH` variable. Both variables are common variables
  3878. used by external Makefiles to point to the kernel source directory.
  3879. :term:`KERNEL_SRC`
  3880. The location of the kernel sources. This variable is set to the value
  3881. of the :term:`STAGING_KERNEL_DIR` within the :ref:`ref-classes-module`
  3882. class. For information on how this variable is used, see the
  3883. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  3884. section in the Yocto Project Linux Kernel Development Manual.
  3885. To help maximize compatibility with out-of-tree drivers used to build
  3886. modules, the OpenEmbedded build system also recognizes and uses the
  3887. :term:`KERNEL_PATH` variable, which is identical
  3888. to the :term:`KERNEL_SRC` variable. Both variables are common variables
  3889. used by external Makefiles to point to the kernel source directory.
  3890. :term:`KERNEL_STRIP`
  3891. Allows to specific which ``strip`` command to use to strip the kernel
  3892. binary, typically either GNU binutils ``strip`` or ``llvm-strip``.
  3893. :term:`KERNEL_VERSION`
  3894. Specifies the version of the kernel as extracted from ``version.h``
  3895. or ``utsrelease.h`` within the kernel sources. Effects of setting
  3896. this variable do not take effect until the kernel has been
  3897. configured. Consequently, attempting to refer to this variable in
  3898. contexts prior to configuration will not work.
  3899. :term:`KERNELDEPMODDEPEND`
  3900. Specifies whether the data referenced through
  3901. :term:`PKGDATA_DIR` is needed or not.
  3902. :term:`KERNELDEPMODDEPEND` does not control whether or not that data
  3903. exists, but simply whether or not it is used. If you do not need to
  3904. use the data, set the :term:`KERNELDEPMODDEPEND` variable in your
  3905. :term:`Initramfs` recipe. Setting the variable there when the data is not
  3906. needed avoids a potential dependency loop.
  3907. :term:`KFEATURE_DESCRIPTION`
  3908. Provides a short description of a configuration fragment. You use
  3909. this variable in the ``.scc`` file that describes a configuration
  3910. fragment file. Here is the variable used in a file named ``smp.scc``
  3911. to describe SMP being enabled::
  3912. define KFEATURE_DESCRIPTION "Enable SMP"
  3913. :term:`KMACHINE`
  3914. The machine as known by the kernel. Sometimes the machine name used
  3915. by the kernel does not match the machine name used by the
  3916. OpenEmbedded build system. For example, the machine name that the
  3917. OpenEmbedded build system understands as ``core2-32-intel-common``
  3918. goes by a different name in the Linux Yocto kernel. The kernel
  3919. understands that machine as ``intel-core2-32``. For cases like these,
  3920. the :term:`KMACHINE` variable maps the kernel machine name to the
  3921. OpenEmbedded build system machine name.
  3922. These mappings between different names occur in the Yocto Linux
  3923. Kernel's ``meta`` branch. As an example take a look in the
  3924. ``common/recipes-kernel/linux/linux-yocto_3.19.bbappend`` file::
  3925. LINUX_VERSION:core2-32-intel-common = "3.19.0"
  3926. COMPATIBLE_MACHINE:core2-32-intel-common = "${MACHINE}"
  3927. SRCREV_meta:core2-32-intel-common = "8897ef68b30e7426bc1d39895e71fb155d694974"
  3928. SRCREV_machine:core2-32-intel-common = "43b9eced9ba8a57add36af07736344dcc383f711"
  3929. KMACHINE:core2-32-intel-common = "intel-core2-32"
  3930. KBRANCH:core2-32-intel-common = "standard/base"
  3931. KERNEL_FEATURES:append:core2-32-intel-common = " ${KERNEL_FEATURES_INTEL_COMMON}"
  3932. The :term:`KMACHINE` statement says
  3933. that the kernel understands the machine name as "intel-core2-32".
  3934. However, the OpenEmbedded build system understands the machine as
  3935. "core2-32-intel-common".
  3936. :term:`KMETA_AUDIT`
  3937. When inheriting the :ref:`ref-classes-kernel-yocto` class, the
  3938. :term:`KMETA_AUDIT` variable enables or disables auditing of Linux Kernel
  3939. configuration. The default value for this variable is "yes", and auditing
  3940. is enabled. Set this variable to an empty string to disable auditing.
  3941. :term:`KMETA_AUDIT_WERROR`
  3942. When inheriting the :ref:`ref-classes-kernel-yocto` class and when the
  3943. :term:`KMETA_AUDIT` and the :term:`KMETA_AUDIT_WERROR` variables are set
  3944. to non-empty strings, produce an error if Linux kernel configuration
  3945. problems were detected, instead of warnings only. For more details on the
  3946. Linux Kernel configuration auditing feature, see :term:`KCONF_AUDIT_LEVEL`
  3947. and :term:`KCONF_BSP_AUDIT_LEVEL`.
  3948. :term:`KTYPE`
  3949. Defines the kernel type to be used in assembling the configuration.
  3950. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  3951. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  3952. section in the
  3953. Yocto Project Linux Kernel Development Manual for more information on
  3954. kernel types.
  3955. You define the :term:`KTYPE` variable in the
  3956. :ref:`kernel-dev/advanced:bsp descriptions`. The
  3957. value you use must match the value used for the
  3958. :term:`LINUX_KERNEL_TYPE` value used by the
  3959. kernel recipe.
  3960. :term:`LABELS`
  3961. Provides a list of targets for automatic configuration.
  3962. See the :ref:`ref-classes-grub-efi` class for more
  3963. information on how this variable is used.
  3964. :term:`LAYERDEPENDS`
  3965. Lists the layers, separated by spaces, on which this recipe depends.
  3966. Optionally, you can specify a specific layer version for a dependency
  3967. by adding it to the end of the layer name. Here is an example::
  3968. LAYERDEPENDS_mylayer = "anotherlayer (=3)"
  3969. In this previous example,
  3970. version 3 of "anotherlayer" is compared against
  3971. :term:`LAYERVERSION`\ ``_anotherlayer``.
  3972. An error is produced if any dependency is missing or the version
  3973. numbers (if specified) do not match exactly. This variable is used in
  3974. the ``conf/layer.conf`` file and must be suffixed with the name of
  3975. the specific layer (e.g. ``LAYERDEPENDS_mylayer``).
  3976. :term:`LAYERDIR`
  3977. When used inside the ``layer.conf`` configuration file, this variable
  3978. provides the path of the current layer. This variable is not
  3979. available outside of ``layer.conf`` and references are expanded
  3980. immediately when parsing of the file completes.
  3981. :term:`LAYERDIR_RE`
  3982. See :term:`bitbake:LAYERDIR_RE` in the BitBake manual.
  3983. :term:`LAYERRECOMMENDS`
  3984. Lists the layers, separated by spaces, recommended for use with this
  3985. layer.
  3986. Optionally, you can specify a specific layer version for a
  3987. recommendation by adding the version to the end of the layer name.
  3988. Here is an example::
  3989. LAYERRECOMMENDS_mylayer = "anotherlayer (=3)"
  3990. In this previous example, version 3 of "anotherlayer" is compared
  3991. against ``LAYERVERSION_anotherlayer``.
  3992. This variable is used in the ``conf/layer.conf`` file and must be
  3993. suffixed with the name of the specific layer (e.g.
  3994. ``LAYERRECOMMENDS_mylayer``).
  3995. :term:`LAYERSERIES_COMPAT`
  3996. See :term:`bitbake:LAYERSERIES_COMPAT` in the BitBake manual.
  3997. :term:`LAYERVERSION`
  3998. Optionally specifies the version of a layer as a single number. You
  3999. can use this within :term:`LAYERDEPENDS` for
  4000. another layer in order to depend on a specific version of the layer.
  4001. This variable is used in the ``conf/layer.conf`` file and must be
  4002. suffixed with the name of the specific layer (e.g.
  4003. ``LAYERVERSION_mylayer``).
  4004. :term:`LD`
  4005. The minimal command and arguments used to run the linker.
  4006. :term:`LDFLAGS`
  4007. Specifies the flags to pass to the linker. This variable is exported
  4008. to an environment variable and thus made visible to the software
  4009. being built during the compilation step.
  4010. Default initialization for :term:`LDFLAGS` varies depending on what is
  4011. being built:
  4012. - :term:`TARGET_LDFLAGS` when building for the
  4013. target
  4014. - :term:`BUILD_LDFLAGS` when building for the
  4015. build host (i.e. ``-native``)
  4016. - :term:`BUILDSDK_LDFLAGS` when building for
  4017. an SDK (i.e. ``nativesdk-``)
  4018. :term:`LEAD_SONAME`
  4019. Specifies the lead (or primary) compiled library file (i.e. ``.so``)
  4020. that the :ref:`ref-classes-debian` class applies its
  4021. naming policy to given a recipe that packages multiple libraries.
  4022. This variable works in conjunction with the :ref:`ref-classes-debian`
  4023. class.
  4024. :term:`LIC_FILES_CHKSUM`
  4025. Checksums of the license text in the recipe source code.
  4026. This variable tracks changes in license text of the source code
  4027. files. If the license text is changed, it will trigger a build
  4028. failure, which gives the developer an opportunity to review any
  4029. license change.
  4030. This variable must be defined for all recipes (unless
  4031. :term:`LICENSE` is set to "CLOSED").
  4032. For more information, see the ":ref:`dev-manual/licenses:tracking license changes`"
  4033. section in the Yocto Project Development Tasks Manual.
  4034. :term:`LICENSE`
  4035. The list of source licenses for the recipe. Follow these rules:
  4036. - Do not use spaces within individual license names.
  4037. - Separate license names using \| (pipe) when there is a choice
  4038. between licenses.
  4039. - Separate license names using & (ampersand) when there are
  4040. multiple licenses for different parts of the source.
  4041. - You can use spaces between license names.
  4042. - For standard licenses, use the names of the files in
  4043. ``meta/files/common-licenses/`` or the
  4044. :term:`SPDXLICENSEMAP` flag names defined in
  4045. ``meta/conf/licenses.conf``.
  4046. Here are some examples::
  4047. LICENSE = "LGPL-2.1-only | GPL-3.0-only"
  4048. LICENSE = "MPL-1.0 & LGPL-2.1-only"
  4049. LICENSE = "GPL-2.0-or-later"
  4050. The first example is from the
  4051. recipes for Qt, which the user may choose to distribute under either
  4052. the LGPL version 2.1 or GPL version 3. The second example is from
  4053. Cairo where two licenses cover different parts of the source code.
  4054. The final example is from ``sysstat``, which presents a single
  4055. license.
  4056. You can also specify licenses on a per-package basis to handle
  4057. situations where components of the output have different licenses.
  4058. For example, a piece of software whose code is licensed under GPLv2
  4059. but has accompanying documentation licensed under the GNU Free
  4060. Documentation License 1.2 could be specified as follows::
  4061. LICENSE = "GFDL-1.2 & GPL-2.0-only"
  4062. LICENSE:${PN} = "GPL-2.0.only"
  4063. LICENSE:${PN}-doc = "GFDL-1.2"
  4064. :term:`LICENSE_CREATE_PACKAGE`
  4065. Setting :term:`LICENSE_CREATE_PACKAGE` to "1" causes the OpenEmbedded
  4066. build system to create an extra package (i.e.
  4067. ``${``\ :term:`PN`\ ``}-lic``) for each recipe and to add
  4068. those packages to the
  4069. :term:`RRECOMMENDS`\ ``:${PN}``.
  4070. The ``${PN}-lic`` package installs a directory in
  4071. ``/usr/share/licenses`` named ``${PN}``, which is the recipe's base
  4072. name, and installs files in that directory that contain license and
  4073. copyright information (i.e. copies of the appropriate license files
  4074. from ``meta/common-licenses`` that match the licenses specified in
  4075. the :term:`LICENSE` variable of the recipe metadata
  4076. and copies of files marked in
  4077. :term:`LIC_FILES_CHKSUM` as containing
  4078. license text).
  4079. For related information on providing license text, see the
  4080. :term:`COPY_LIC_DIRS` variable, the
  4081. :term:`COPY_LIC_MANIFEST` variable, and the
  4082. ":ref:`dev-manual/licenses:providing license text`"
  4083. section in the Yocto Project Development Tasks Manual.
  4084. :term:`LICENSE_FLAGS`
  4085. Specifies additional flags for a recipe you must allow through
  4086. :term:`LICENSE_FLAGS_ACCEPTED` in
  4087. order for the recipe to be built. When providing multiple flags,
  4088. separate them with spaces.
  4089. This value is independent of :term:`LICENSE` and is
  4090. typically used to mark recipes that might require additional licenses
  4091. in order to be used in a commercial product. For more information,
  4092. see the
  4093. ":ref:`dev-manual/licenses:enabling commercially licensed recipes`"
  4094. section in the Yocto Project Development Tasks Manual.
  4095. :term:`LICENSE_FLAGS_ACCEPTED`
  4096. Lists license flags that when specified in
  4097. :term:`LICENSE_FLAGS` within a recipe should not
  4098. prevent that recipe from being built. For more information, see the
  4099. ":ref:`dev-manual/licenses:enabling commercially licensed recipes`"
  4100. section in the Yocto Project Development Tasks Manual.
  4101. :term:`LICENSE_FLAGS_DETAILS`
  4102. Adds details about a flag in :term:`LICENSE_FLAGS`. This way,
  4103. if such a flag is not accepted through :term:`LICENSE_FLAGS_ACCEPTED`,
  4104. the error message will be more informative, containing the specified
  4105. extra details.
  4106. For example, a recipe with an EULA may set::
  4107. LICENSE_FLAGS = "FooBar-EULA"
  4108. LICENSE_FLAGS_DETAILS[FooBar-EULA] = "For further details, see https://example.com/eula."
  4109. If ``Foobar-EULA`` isn't in :term:`LICENSE_FLAGS_ACCEPTED`, the
  4110. error message is more useful::
  4111. Has a restricted license 'FooBar-EULA' which is not listed in your LICENSE_FLAGS_ACCEPTED.
  4112. For further details, see https://example.com/eula.
  4113. :term:`LICENSE_PATH`
  4114. Path to additional licenses used during the build. By default, the
  4115. OpenEmbedded build system uses :term:`COMMON_LICENSE_DIR` to define the
  4116. directory that holds common license text used during the build. The
  4117. :term:`LICENSE_PATH` variable allows you to extend that location to other
  4118. areas that have additional licenses::
  4119. LICENSE_PATH += "path-to-additional-common-licenses"
  4120. :term:`LINUX_KERNEL_TYPE`
  4121. Defines the kernel type to be used in assembling the configuration.
  4122. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  4123. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  4124. section in the
  4125. Yocto Project Linux Kernel Development Manual for more information on
  4126. kernel types.
  4127. If you do not specify a :term:`LINUX_KERNEL_TYPE`, it defaults to
  4128. "standard". Together with :term:`KMACHINE`, the
  4129. :term:`LINUX_KERNEL_TYPE` variable defines the search arguments used by
  4130. the kernel tools to find the appropriate description within the
  4131. kernel :term:`Metadata` with which to build out the sources
  4132. and configuration.
  4133. :term:`LINUX_VERSION`
  4134. The Linux version from ``kernel.org`` on which the Linux kernel image
  4135. being built using the OpenEmbedded build system is based. You define
  4136. this variable in the kernel recipe. For example, the
  4137. ``linux-yocto-3.4.bb`` kernel recipe found in
  4138. ``meta/recipes-kernel/linux`` defines the variables as follows::
  4139. LINUX_VERSION ?= "3.4.24"
  4140. The :term:`LINUX_VERSION` variable is used to define :term:`PV`
  4141. for the recipe::
  4142. PV = "${LINUX_VERSION}+git"
  4143. :term:`LINUX_VERSION_EXTENSION`
  4144. A string extension compiled into the version string of the Linux
  4145. kernel built with the OpenEmbedded build system. You define this
  4146. variable in the kernel recipe. For example, the linux-yocto kernel
  4147. recipes all define the variable as follows::
  4148. LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}"
  4149. Defining this variable essentially sets the Linux kernel
  4150. configuration item ``CONFIG_LOCALVERSION``, which is visible through
  4151. the ``uname`` command. Here is an example that shows the extension
  4152. assuming it was set as previously shown::
  4153. $ uname -r
  4154. 3.7.0-rc8-custom
  4155. :term:`LOG_DIR`
  4156. Specifies the directory to which the OpenEmbedded build system writes
  4157. overall log files. The default directory is ``${TMPDIR}/log``.
  4158. For the directory containing logs specific to each task, see the
  4159. :term:`T` variable.
  4160. :term:`MACHINE`
  4161. Specifies the target device for which the image is built. You define
  4162. :term:`MACHINE` in the ``local.conf`` file found in the
  4163. :term:`Build Directory`. By default, :term:`MACHINE` is set to
  4164. "qemux86", which is an x86-based architecture machine to be emulated
  4165. using QEMU::
  4166. MACHINE ?= "qemux86"
  4167. The variable corresponds to a machine configuration file of the same
  4168. name, through which machine-specific configurations are set. Thus,
  4169. when :term:`MACHINE` is set to "qemux86", the corresponding
  4170. ``qemux86.conf`` machine configuration file can be found in
  4171. the :term:`Source Directory` in
  4172. ``meta/conf/machine``.
  4173. The list of machines supported by the Yocto Project as shipped
  4174. include the following::
  4175. MACHINE ?= "qemuarm"
  4176. MACHINE ?= "qemuarm64"
  4177. MACHINE ?= "qemumips"
  4178. MACHINE ?= "qemumips64"
  4179. MACHINE ?= "qemuppc"
  4180. MACHINE ?= "qemux86"
  4181. MACHINE ?= "qemux86-64"
  4182. MACHINE ?= "genericx86"
  4183. MACHINE ?= "genericx86-64"
  4184. MACHINE ?= "beaglebone"
  4185. The last five are Yocto Project reference hardware
  4186. boards, which are provided in the ``meta-yocto-bsp`` layer.
  4187. .. note::
  4188. Adding additional Board Support Package (BSP) layers to your
  4189. configuration adds new possible settings for :term:`MACHINE`.
  4190. :term:`MACHINE_ARCH`
  4191. Specifies the name of the machine-specific architecture. This
  4192. variable is set automatically from :term:`MACHINE` or
  4193. :term:`TUNE_PKGARCH`. You should not hand-edit
  4194. the :term:`MACHINE_ARCH` variable.
  4195. :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  4196. A list of required machine-specific packages to install as part of
  4197. the image being built. The build process depends on these packages
  4198. being present. Furthermore, because this is a "machine-essential"
  4199. variable, the list of packages are essential for the machine to boot.
  4200. The impact of this variable affects images based on
  4201. ``packagegroup-core-boot``, including the ``core-image-minimal``
  4202. image.
  4203. This variable is similar to the
  4204. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS` variable with the exception
  4205. that the image being built has a build dependency on the variable's
  4206. list of packages. In other words, the image will not build if a file
  4207. in this list is not found.
  4208. As an example, suppose the machine for which you are building
  4209. requires ``example-init`` to be run during boot to initialize the
  4210. hardware. In this case, you would use the following in the machine's
  4211. ``.conf`` configuration file::
  4212. MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "example-init"
  4213. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS`
  4214. A list of recommended machine-specific packages to install as part of
  4215. the image being built. The build process does not depend on these
  4216. packages being present. However, because this is a
  4217. "machine-essential" variable, the list of packages are essential for
  4218. the machine to boot. The impact of this variable affects images based
  4219. on ``packagegroup-core-boot``, including the ``core-image-minimal``
  4220. image.
  4221. This variable is similar to the :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  4222. variable with the exception that the image being built does not have
  4223. a build dependency on the variable's list of packages. In other
  4224. words, the image will still build if a package in this list is not
  4225. found. Typically, this variable is used to handle essential kernel
  4226. modules, whose functionality may be selected to be built into the
  4227. kernel rather than as a module, in which case a package will not be
  4228. produced.
  4229. Consider an example where you have a custom kernel where a specific
  4230. touchscreen driver is required for the machine to be usable. However,
  4231. the driver can be built as a module or into the kernel depending on
  4232. the kernel configuration. If the driver is built as a module, you
  4233. want it to be installed. But, when the driver is built into the
  4234. kernel, you still want the build to succeed. This variable sets up a
  4235. "recommends" relationship so that in the latter case, the build will
  4236. not fail due to the missing package. To accomplish this, assuming the
  4237. package for the module was called ``kernel-module-ab123``, you would
  4238. use the following in the machine's ``.conf`` configuration file::
  4239. MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "kernel-module-ab123"
  4240. .. note::
  4241. In this example, the ``kernel-module-ab123`` recipe needs to
  4242. explicitly set its :term:`PACKAGES` variable to ensure that BitBake
  4243. does not use the kernel recipe's :term:`PACKAGES_DYNAMIC` variable to
  4244. satisfy the dependency.
  4245. Some examples of these machine essentials are flash, screen,
  4246. keyboard, mouse, or touchscreen drivers (depending on the machine).
  4247. :term:`MACHINE_EXTRA_RDEPENDS`
  4248. A list of machine-specific packages to install as part of the image
  4249. being built that are not essential for the machine to boot. However,
  4250. the build process for more fully-featured images depends on the
  4251. packages being present.
  4252. This variable affects all images based on ``packagegroup-base``,
  4253. which does not include the ``core-image-minimal`` or
  4254. ``core-image-full-cmdline`` images.
  4255. The variable is similar to the :term:`MACHINE_EXTRA_RRECOMMENDS` variable
  4256. with the exception that the image being built has a build dependency
  4257. on the variable's list of packages. In other words, the image will
  4258. not build if a file in this list is not found.
  4259. An example is a machine that has WiFi capability but is not essential
  4260. for the machine to boot the image. However, if you are building a
  4261. more fully-featured image, you want to enable the WiFi. The package
  4262. containing the firmware for the WiFi hardware is always expected to
  4263. exist, so it is acceptable for the build process to depend upon
  4264. finding the package. In this case, assuming the package for the
  4265. firmware was called ``wifidriver-firmware``, you would use the
  4266. following in the ``.conf`` file for the machine::
  4267. MACHINE_EXTRA_RDEPENDS += "wifidriver-firmware"
  4268. :term:`MACHINE_EXTRA_RRECOMMENDS`
  4269. A list of machine-specific packages to install as part of the image
  4270. being built that are not essential for booting the machine. The image
  4271. being built has no build dependency on this list of packages.
  4272. This variable affects only images based on ``packagegroup-base``,
  4273. which does not include the ``core-image-minimal`` or
  4274. ``core-image-full-cmdline`` images.
  4275. This variable is similar to the :term:`MACHINE_EXTRA_RDEPENDS` variable
  4276. with the exception that the image being built does not have a build
  4277. dependency on the variable's list of packages. In other words, the
  4278. image will build if a file in this list is not found.
  4279. An example is a machine that has WiFi capability but is not essential
  4280. For the machine to boot the image. However, if you are building a
  4281. more fully-featured image, you want to enable WiFi. In this case, the
  4282. package containing the WiFi kernel module will not be produced if the
  4283. WiFi driver is built into the kernel, in which case you still want
  4284. the build to succeed instead of failing as a result of the package
  4285. not being found. To accomplish this, assuming the package for the
  4286. module was called ``kernel-module-examplewifi``, you would use the
  4287. following in the ``.conf`` file for the machine::
  4288. MACHINE_EXTRA_RRECOMMENDS += "kernel-module-examplewifi"
  4289. :term:`MACHINE_FEATURES`
  4290. Specifies the list of hardware features the
  4291. :term:`MACHINE` is capable of supporting. For related
  4292. information on enabling features, see the
  4293. :term:`DISTRO_FEATURES`,
  4294. :term:`COMBINED_FEATURES`, and
  4295. :term:`IMAGE_FEATURES` variables.
  4296. For a list of hardware features supported by the Yocto Project as
  4297. shipped, see the ":ref:`ref-features-machine`" section.
  4298. :term:`MACHINE_FEATURES_BACKFILL`
  4299. A list of space-separated features to be added to
  4300. :term:`MACHINE_FEATURES` if not also present in
  4301. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`.
  4302. This variable is set in the ``meta/conf/bitbake.conf`` file. It is not
  4303. intended to be user-configurable. It is best to just reference the
  4304. variable to see which machine features are being
  4305. :ref:`backfilled <ref-features-backfill>` for all machine configurations.
  4306. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`
  4307. A list of space-separated features from :term:`MACHINE_FEATURES_BACKFILL`
  4308. that should not be :ref:`backfilled <ref-features-backfill>` (i.e. added
  4309. to :term:`MACHINE_FEATURES`) during the build.
  4310. This corresponds to an opt-out mechanism. When new default machine
  4311. features are introduced, machine definition maintainers can review
  4312. (`consider`) them and decide to exclude them from the
  4313. :ref:`backfilled <ref-features-backfill>` features. Therefore, the
  4314. combination of :term:`MACHINE_FEATURES_BACKFILL` and
  4315. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED` makes it possible to
  4316. add new default features without breaking existing machine definitions.
  4317. :term:`MACHINEOVERRIDES`
  4318. A colon-separated list of overrides that apply to the current
  4319. machine. By default, this list includes the value of
  4320. :term:`MACHINE`.
  4321. You can extend :term:`MACHINEOVERRIDES` to add extra overrides that
  4322. should apply to a machine. For example, all machines emulated in QEMU
  4323. (e.g. ``qemuarm``, ``qemux86``, and so forth) include a file named
  4324. ``meta/conf/machine/include/qemu.inc`` that prepends the following
  4325. override to :term:`MACHINEOVERRIDES`::
  4326. MACHINEOVERRIDES =. "qemuall:"
  4327. This
  4328. override allows variables to be overridden for all machines emulated
  4329. in QEMU, like in the following example from the ``connman-conf``
  4330. recipe::
  4331. SRC_URI:append:qemuall = " file://wired.config \
  4332. file://wired-setup \
  4333. "
  4334. The underlying mechanism behind
  4335. :term:`MACHINEOVERRIDES` is simply that it is included in the default
  4336. value of :term:`OVERRIDES`.
  4337. :term:`MAINTAINER`
  4338. The email address of the distribution maintainer.
  4339. :term:`MESON_BUILDTYPE`
  4340. Value of the Meson ``--buildtype`` argument used by the
  4341. :ref:`ref-classes-meson` class. It defaults to ``debug`` if
  4342. :term:`DEBUG_BUILD` is set to "1", and ``plain`` otherwise.
  4343. See `Meson build options <https://mesonbuild.com/Builtin-options.html>`__
  4344. for the values you could set in a recipe. Values such as ``plain``,
  4345. ``debug``, ``debugoptimized``, ``release`` and ``minsize`` allow
  4346. you to specify the inclusion of debugging symbols and the compiler
  4347. optimizations (none, performance or size).
  4348. :term:`MESON_INSTALL_TAGS`
  4349. A variable for the :ref:`ref-classes-meson` class, allowing to specify
  4350. install tags (``--tags`` argument of the ``meson install`` command).
  4351. :term:`MESON_TARGET`
  4352. A variable for the :ref:`ref-classes-meson` class, allowing to choose
  4353. a Meson target to build in :ref:`ref-tasks-compile`. Otherwise, the
  4354. default targets are built.
  4355. :term:`METADATA_BRANCH`
  4356. The branch currently checked out for the OpenEmbedded-Core layer (path
  4357. determined by :term:`COREBASE`).
  4358. :term:`METADATA_REVISION`
  4359. The revision currently checked out for the OpenEmbedded-Core layer (path
  4360. determined by :term:`COREBASE`).
  4361. :term:`MIME_XDG_PACKAGES`
  4362. The current implementation of the :ref:`ref-classes-mime-xdg`
  4363. class cannot detect ``.desktop`` files installed through absolute
  4364. symbolic links. Use this setting to make the class create post-install
  4365. and post-remove scripts for these packages anyway, to invoke the
  4366. ``update-destop-database`` command.
  4367. :term:`MIRRORS`
  4368. Specifies additional paths from which the OpenEmbedded build system
  4369. gets source code. When the build system searches for source code, it
  4370. first tries the local download directory. If that location fails, the
  4371. build system tries locations defined by
  4372. :term:`PREMIRRORS`, the upstream source, and then
  4373. locations specified by :term:`MIRRORS` in that order.
  4374. The default value for :term:`MIRRORS` is defined in the
  4375. ``meta/classes-global/mirrors.bbclass`` file in the core metadata layer.
  4376. :term:`MLPREFIX`
  4377. Specifies a prefix has been added to :term:`PN` to create a
  4378. special version of a recipe or package (i.e. a Multilib version). The
  4379. variable is used in places where the prefix needs to be added to or
  4380. removed from a name (e.g. the :term:`BPN` variable).
  4381. :term:`MLPREFIX` gets set when a prefix has been added to :term:`PN`.
  4382. .. note::
  4383. The "ML" in :term:`MLPREFIX` stands for "MultiLib". This representation
  4384. is historical and comes from a time when ":ref:`ref-classes-nativesdk`"
  4385. was a suffix rather than a prefix on the recipe name. When
  4386. ":ref:`ref-classes-nativesdk`" was turned into a prefix, it made sense
  4387. to set :term:`MLPREFIX` for it as well.
  4388. To help understand when :term:`MLPREFIX` might be needed, consider when
  4389. :term:`BBCLASSEXTEND` is used to provide a :ref:`ref-classes-nativesdk`
  4390. version of a recipe in addition to the target version. If that recipe
  4391. declares build-time dependencies on tasks in other recipes by using
  4392. :term:`DEPENDS`, then a dependency on "foo" will automatically get
  4393. rewritten to a dependency on "nativesdk-foo". However, dependencies like
  4394. the following will not get rewritten automatically::
  4395. do_foo[depends] += "recipe:do_foo"
  4396. If you want such a dependency to also get transformed, you can do the
  4397. following::
  4398. do_foo[depends] += "${MLPREFIX}recipe:do_foo"
  4399. :term:`module_autoload`
  4400. This variable has been replaced by the :term:`KERNEL_MODULE_AUTOLOAD`
  4401. variable. You should replace all occurrences of :term:`module_autoload`
  4402. with additions to :term:`KERNEL_MODULE_AUTOLOAD`, for example::
  4403. module_autoload_rfcomm = "rfcomm"
  4404. should now be replaced with::
  4405. KERNEL_MODULE_AUTOLOAD += "rfcomm"
  4406. See the :term:`KERNEL_MODULE_AUTOLOAD` variable for more information.
  4407. :term:`module_conf`
  4408. Specifies `modprobe.d <https://linux.die.net/man/5/modprobe.d>`__
  4409. syntax lines for inclusion in the ``/etc/modprobe.d/modname.conf``
  4410. file.
  4411. You can use this variable anywhere that it can be recognized by the
  4412. kernel recipe or out-of-tree kernel module recipe (e.g. a machine
  4413. configuration file, a distribution configuration file, an append file
  4414. for the recipe, or the recipe itself). If you use this variable, you
  4415. must also be sure to list the module name in the
  4416. :term:`KERNEL_MODULE_PROBECONF`
  4417. variable.
  4418. Here is the general syntax::
  4419. module_conf_module_name = "modprobe.d-syntax"
  4420. You must use the kernel module name override.
  4421. Run ``man modprobe.d`` in the shell to find out more information on
  4422. the exact syntax you want to provide with :term:`module_conf`.
  4423. Including :term:`module_conf` causes the OpenEmbedded build system to
  4424. populate the ``/etc/modprobe.d/modname.conf`` file with
  4425. ``modprobe.d`` syntax lines. Here is an example that adds the options
  4426. ``arg1`` and ``arg2`` to a module named ``mymodule``::
  4427. module_conf_mymodule = "options mymodule arg1=val1 arg2=val2"
  4428. For information on how to specify kernel modules to auto-load on
  4429. boot, see the :term:`KERNEL_MODULE_AUTOLOAD` variable.
  4430. :term:`MODULE_TARBALL_DEPLOY`
  4431. Controls creation of the ``modules-*.tgz`` file. Set this variable to
  4432. "0" to disable creation of this file, which contains all of the
  4433. kernel modules resulting from a kernel build.
  4434. :term:`MODULE_TARBALL_LINK_NAME`
  4435. The link name of the kernel module tarball. This variable is set in
  4436. the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  4437. MODULE_TARBALL_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  4438. The value
  4439. of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the
  4440. same file, has the following value::
  4441. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  4442. See the :term:`MACHINE` variable for additional information.
  4443. :term:`MODULE_TARBALL_NAME`
  4444. The base name of the kernel module tarball. This variable is set in
  4445. the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  4446. MODULE_TARBALL_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  4447. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  4448. :term:`MOUNT_BASE`
  4449. On non-systemd systems (where ``udev-extraconf`` is being used),
  4450. specifies the base directory for auto-mounting filesystems. The
  4451. default value is "/run/media".
  4452. :term:`MOUNT_GROUP`
  4453. On non-systemd systems (where ``udev-extraconf`` is being used),
  4454. specifies the mount group for auto-mounting filesystems. The
  4455. default value is "disk".
  4456. :term:`MULTIMACH_TARGET_SYS`
  4457. Uniquely identifies the type of the target system for which packages
  4458. are being built. This variable allows output for different types of
  4459. target systems to be put into different subdirectories of the same
  4460. output directory.
  4461. The default value of this variable is::
  4462. ${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}
  4463. Some classes (e.g. :ref:`ref-classes-cross-canadian`) modify the
  4464. :term:`MULTIMACH_TARGET_SYS` value.
  4465. See the :term:`STAMP` variable for an example. See the
  4466. :term:`STAGING_DIR_TARGET` variable for more information.
  4467. :term:`NATIVELSBSTRING`
  4468. A string identifying the host distribution. Strings consist of the
  4469. host distributor ID followed by the release, as reported by the
  4470. ``lsb_release`` tool or as read from ``/etc/lsb-release``. For
  4471. example, when running a build on Ubuntu 12.10, the value is
  4472. "Ubuntu-12.10". If this information is unable to be determined, the
  4473. value resolves to "Unknown".
  4474. This variable is used by default to isolate native shared state
  4475. packages for different distributions (e.g. to avoid problems with
  4476. ``glibc`` version incompatibilities). Additionally, the variable is
  4477. checked against
  4478. :term:`SANITY_TESTED_DISTROS` if that
  4479. variable is set.
  4480. :term:`NM`
  4481. The minimal command and arguments to run ``nm``.
  4482. :term:`NO_GENERIC_LICENSE`
  4483. Avoids QA errors when you use a non-common, non-CLOSED license in a
  4484. recipe. There are packages, such as the linux-firmware package, with many
  4485. licenses that are not in any way common. Also, new licenses are added
  4486. occasionally to avoid introducing a lot of common license files,
  4487. which are only applicable to a specific package.
  4488. :term:`NO_GENERIC_LICENSE` is used to allow copying a license that does
  4489. not exist in common licenses.
  4490. The following example shows how to add :term:`NO_GENERIC_LICENSE` to a
  4491. recipe::
  4492. NO_GENERIC_LICENSE[license_name] = "license_file_in_fetched_source"
  4493. Here is an example that
  4494. uses the ``LICENSE.Abilis.txt`` file as the license from the fetched
  4495. source::
  4496. NO_GENERIC_LICENSE[Firmware-Abilis] = "LICENSE.Abilis.txt"
  4497. :term:`NO_RECOMMENDATIONS`
  4498. Prevents installation of all "recommended-only" packages.
  4499. Recommended-only packages are packages installed only through the
  4500. :term:`RRECOMMENDS` variable). Setting the
  4501. :term:`NO_RECOMMENDATIONS` variable to "1" turns this feature on::
  4502. NO_RECOMMENDATIONS = "1"
  4503. You can set this variable globally in your ``local.conf`` file or you
  4504. can attach it to a specific image recipe by using the recipe name
  4505. override::
  4506. NO_RECOMMENDATIONS:pn-target_image = "1"
  4507. It is important to realize that if you choose to not install packages
  4508. using this variable and some other packages are dependent on them
  4509. (i.e. listed in a recipe's :term:`RDEPENDS`
  4510. variable), the OpenEmbedded build system ignores your request and
  4511. will install the packages to avoid dependency errors.
  4512. .. note::
  4513. Some recommended packages might be required for certain system
  4514. functionality, such as kernel modules. It is up to you to add
  4515. packages with the :term:`IMAGE_INSTALL` variable.
  4516. This variable is only supported when using the IPK and RPM
  4517. packaging backends. DEB is not supported.
  4518. See the :term:`BAD_RECOMMENDATIONS` and
  4519. the :term:`PACKAGE_EXCLUDE` variables for
  4520. related information.
  4521. :term:`NOAUTOPACKAGEDEBUG`
  4522. Disables auto package from splitting ``.debug`` files. If a recipe
  4523. requires ``FILES:${PN}-dbg`` to be set manually, the
  4524. :term:`NOAUTOPACKAGEDEBUG` can be defined allowing you to define the
  4525. content of the debug package. For example::
  4526. NOAUTOPACKAGEDEBUG = "1"
  4527. FILES:${PN}-dev = "${includedir}/${QT_DIR_NAME}/Qt/*"
  4528. FILES:${PN}-dbg = "/usr/src/debug/"
  4529. FILES:${QT_BASE_NAME}-demos-doc = "${docdir}/${QT_DIR_NAME}/qch/qt.qch"
  4530. :term:`NON_MULTILIB_RECIPES`
  4531. A list of recipes that should not be built for multilib. OE-Core's
  4532. ``multilib.conf`` file defines a reasonable starting point for this
  4533. list with::
  4534. NON_MULTILIB_RECIPES = "grub grub-efi make-mod-scripts ovmf u-boot"
  4535. :term:`NVD_DB_VERSION`
  4536. The :term:`NVD_DB_VERSION` variable allows choosing the CVE feed when
  4537. using the :ref:`ref-classes-cve-check` class. It can be one of:
  4538. - ``NVD2`` (default): the NVD feed with API version 2
  4539. - ``FKIE``: the `FKIE-CAD <https://github.com/fkie-cad/nvd-json-data-feeds>`__
  4540. feed reconstruction
  4541. - ``NVD1``: the NVD JSON feed (deprecated)
  4542. In case of a malformed feed name, the ``NVD2`` feed is selected and an
  4543. error is printed.
  4544. :term:`NVDCVE_API_KEY`
  4545. The NVD API key used to retrieve data from the CVE database when
  4546. using :ref:`ref-classes-cve-check`.
  4547. By default, no API key is used, which results in larger delays between API
  4548. requests and limits the number of queries to the public rate limits posted
  4549. at the `NVD developer's page <https://nvd.nist.gov/developers/start-here>`__.
  4550. NVD API keys can be requested through the
  4551. `Request an API Key <https://nvd.nist.gov/developers/request-an-api-key>`__
  4552. page. You can set this variable to the NVD API key in your ``local.conf`` file.
  4553. Example::
  4554. NVDCVE_API_KEY = "fe753&7a2-1427-347d-23ff-b2e2b7ca5f3"
  4555. :term:`OBJCOPY`
  4556. The minimal command and arguments to run ``objcopy``.
  4557. :term:`OBJDUMP`
  4558. The minimal command and arguments to run ``objdump``.
  4559. :term:`OE_BINCONFIG_EXTRA_MANGLE`
  4560. When inheriting the :ref:`ref-classes-binconfig` class,
  4561. this variable specifies additional arguments passed to the "sed"
  4562. command. The sed command alters any paths in configuration scripts
  4563. that have been set up during compilation. Inheriting this class
  4564. results in all paths in these scripts being changed to point into the
  4565. ``sysroots/`` directory so that all builds that use the script will
  4566. use the correct directories for the cross compiling layout.
  4567. See the ``meta/classes-recipe/binconfig.bbclass`` in the
  4568. :term:`Source Directory` for details on how this class
  4569. applies these additional sed command arguments.
  4570. :term:`OECMAKE_GENERATOR`
  4571. A variable for the :ref:`ref-classes-cmake` class, allowing to choose
  4572. which back-end will be generated by CMake to build an application.
  4573. By default, this variable is set to ``Ninja``, which is faster than GNU
  4574. make, but if building is broken with Ninja, a recipe can use this
  4575. variable to use GNU make instead::
  4576. OECMAKE_GENERATOR = "Unix Makefiles"
  4577. :term:`OE_INIT_ENV_SCRIPT`
  4578. The name of the build environment setup script for the purposes of
  4579. setting up the environment within the extensible SDK. The default
  4580. value is "oe-init-build-env".
  4581. If you use a custom script to set up your build environment, set the
  4582. :term:`OE_INIT_ENV_SCRIPT` variable to its name.
  4583. :term:`OE_TERMINAL`
  4584. Controls how the OpenEmbedded build system spawns interactive
  4585. terminals on the host development system (e.g. using the BitBake
  4586. command with the ``-c devshell`` command-line option). For more
  4587. information, see the ":ref:`dev-manual/development-shell:using a development shell`" section in
  4588. the Yocto Project Development Tasks Manual.
  4589. You can use the following values for the :term:`OE_TERMINAL` variable:
  4590. - auto
  4591. - gnome
  4592. - xfce
  4593. - rxvt
  4594. - screen
  4595. - konsole
  4596. - none
  4597. :term:`OEROOT`
  4598. The directory from which the top-level build environment setup script
  4599. is sourced. The Yocto Project provides a top-level build environment
  4600. setup script: :ref:`structure-core-script`. When you run this
  4601. script, the :term:`OEROOT` variable resolves to the directory that
  4602. contains the script.
  4603. For additional information on how this variable is used, see the
  4604. initialization script.
  4605. :term:`OEQA_REPRODUCIBLE_TEST_LEAF_TARGETS`
  4606. Set build target(s) for build reproducibility testing but activate
  4607. :ref:`shared state <overview-manual/concepts:shared state cache>` build
  4608. for most dependencies (i.e. the ones explicitly listed in DEPENDS, which
  4609. may not be all dependencies, c.f. [depends] varflags, PACKAGE_DEPENDS and
  4610. other implementations). See :doc:`/test-manual/reproducible-builds`.
  4611. :term:`OEQA_REPRODUCIBLE_TEST_PACKAGE`
  4612. Set the package manager(s) for build reproducibility testing.
  4613. See :yocto_git:`reproducible.py </poky/tree/meta/lib/oeqa/selftest/cases/reproducible.py>`
  4614. and :doc:`/test-manual/reproducible-builds`.
  4615. :term:`OEQA_REPRODUCIBLE_TEST_TARGET`
  4616. Set build target for build reproducibility testing. By default
  4617. all available recipes are compiled with "bitbake world", see also :term:`EXCLUDE_FROM_WORLD`
  4618. and :doc:`/test-manual/reproducible-builds`.
  4619. :term:`OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS`
  4620. Set build targets which can be rebuilt using :ref:`shared state <overview-manual/concepts:shared state cache>`
  4621. when running build reproducibility tests. See :doc:`/test-manual/reproducible-builds`.
  4622. :term:`OLDEST_KERNEL`
  4623. Declares the oldest version of the Linux kernel that the produced
  4624. binaries must support. This variable is passed into the build of the
  4625. Embedded GNU C Library (``glibc``).
  4626. The default for this variable comes from the
  4627. ``meta/conf/bitbake.conf`` configuration file. You can override this
  4628. default by setting the variable in a custom distribution
  4629. configuration file.
  4630. :term:`OPKG_MAKE_INDEX_EXTRA_PARAMS`
  4631. Specifies extra parameters for the ``opkg-make-index`` command.
  4632. :term:`OPKGBUILDCMD`
  4633. The variable :term:`OPKGBUILDCMD` specifies the command used to build opkg
  4634. packages when using the :ref:`ref-classes-package_ipk` class. It is
  4635. defined in :ref:`ref-classes-package_ipk` as::
  4636. OPKGBUILDCMD ??= 'opkg-build -Z zstd -a "${ZSTD_DEFAULTS}"'
  4637. :term:`OVERLAYFS_ETC_DEVICE`
  4638. When the :ref:`ref-classes-overlayfs-etc` class is
  4639. inherited, specifies the device to be mounted for the read/write
  4640. layer of ``/etc``. There is no default, so you must set this if you
  4641. wish to enable :ref:`ref-classes-overlayfs-etc`, for
  4642. example, assuming ``/dev/mmcblk0p2`` was the desired device::
  4643. OVERLAYFS_ETC_DEVICE = "/dev/mmcblk0p2"
  4644. :term:`OVERLAYFS_ETC_EXPOSE_LOWER`
  4645. When the :ref:`ref-classes-overlayfs-etc` class is
  4646. inherited, if set to "1" then a read-only access to the original
  4647. ``/etc`` content will be provided as a ``lower/`` subdirectory of
  4648. :term:`OVERLAYFS_ETC_MOUNT_POINT`. The default value is "0".
  4649. :term:`OVERLAYFS_ETC_FSTYPE`
  4650. When the :ref:`ref-classes-overlayfs-etc` class is
  4651. inherited, specifies the file system type for the read/write
  4652. layer of ``/etc``. There is no default, so you must set this if you
  4653. wish to enable :ref:`ref-classes-overlayfs-etc`,
  4654. for example, assuming the file system is ext4::
  4655. OVERLAYFS_ETC_FSTYPE = "ext4"
  4656. :term:`OVERLAYFS_ETC_MOUNT_OPTIONS`
  4657. When the :ref:`ref-classes-overlayfs-etc` class is
  4658. inherited, specifies the mount options for the read-write layer.
  4659. The default value is "defaults".
  4660. :term:`OVERLAYFS_ETC_MOUNT_POINT`
  4661. When the :ref:`ref-classes-overlayfs-etc` class is
  4662. inherited, specifies the parent mount path for the filesystem layers.
  4663. There is no default, so you must set this if you wish to enable
  4664. :ref:`ref-classes-overlayfs-etc`, for example if the desired path is
  4665. "/data"::
  4666. OVERLAYFS_ETC_MOUNT_POINT = "/data"
  4667. :term:`OVERLAYFS_ETC_USE_ORIG_INIT_NAME`
  4668. When the :ref:`ref-classes-overlayfs-etc` class is inherited, controls
  4669. how the generated init will be named. For more information, see the
  4670. :ref:`ref-classes-overlayfs-etc` class documentation. The default value
  4671. is "1".
  4672. :term:`OVERLAYFS_MOUNT_POINT`
  4673. When inheriting the :ref:`ref-classes-overlayfs` class,
  4674. specifies mount point(s) to be used. For example::
  4675. OVERLAYFS_MOUNT_POINT[data] = "/data"
  4676. The assumes you have a ``data.mount`` systemd unit defined elsewhere in
  4677. your BSP (e.g. in ``systemd-machine-units`` recipe) and it is installed
  4678. into the image. For more information see :ref:`ref-classes-overlayfs`.
  4679. .. note::
  4680. Although the :ref:`ref-classes-overlayfs` class is
  4681. inherited by individual recipes, :term:`OVERLAYFS_MOUNT_POINT`
  4682. should be set in your machine configuration.
  4683. :term:`OVERLAYFS_QA_SKIP`
  4684. When inheriting the :ref:`ref-classes-overlayfs` class,
  4685. provides the ability to disable QA checks for particular overlayfs
  4686. mounts. For example::
  4687. OVERLAYFS_QA_SKIP[data] = "mount-configured"
  4688. .. note::
  4689. Although the :ref:`ref-classes-overlayfs` class is
  4690. inherited by individual recipes, :term:`OVERLAYFS_QA_SKIP`
  4691. should be set in your machine configuration.
  4692. :term:`OVERLAYFS_WRITABLE_PATHS`
  4693. When inheriting the :ref:`ref-classes-overlayfs` class,
  4694. specifies writable paths used at runtime for the recipe. For
  4695. example::
  4696. OVERLAYFS_WRITABLE_PATHS[data] = "/usr/share/my-custom-application"
  4697. :term:`OVERRIDES`
  4698. A colon-separated list of overrides that currently apply. Overrides
  4699. are a BitBake mechanism that allows variables to be selectively
  4700. overridden at the end of parsing. The set of overrides in
  4701. :term:`OVERRIDES` represents the "state" during building, which includes
  4702. the current recipe being built, the machine for which it is being
  4703. built, and so forth.
  4704. As an example, if the string "an-override" appears as an element in
  4705. the colon-separated list in :term:`OVERRIDES`, then the following
  4706. assignment will override ``FOO`` with the value "overridden" at the
  4707. end of parsing::
  4708. FOO:an-override = "overridden"
  4709. See the
  4710. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  4711. section in the BitBake User Manual for more information on the
  4712. overrides mechanism.
  4713. The default value of :term:`OVERRIDES` includes the values of the
  4714. :term:`CLASSOVERRIDE`,
  4715. :term:`MACHINEOVERRIDES`, and
  4716. :term:`DISTROOVERRIDES` variables. Another
  4717. important override included by default is ``pn-${PN}``. This override
  4718. allows variables to be set for a single recipe within configuration
  4719. (``.conf``) files. Here is an example::
  4720. FOO:pn-myrecipe = "myrecipe-specific value"
  4721. .. note::
  4722. An easy way to see what overrides apply is to search for :term:`OVERRIDES`
  4723. in the output of the ``bitbake -e`` command. See the
  4724. ":ref:`dev-manual/debugging:viewing variable values`" section in the Yocto
  4725. Project Development Tasks Manual for more information.
  4726. :term:`P`
  4727. The recipe name and version. :term:`P` is comprised of the following::
  4728. ${PN}-${PV}
  4729. :term:`P4DIR`
  4730. See :term:`bitbake:P4DIR` in the BitBake manual.
  4731. :term:`PACKAGE_ADD_METADATA`
  4732. This variable defines additional metadata to add to packages.
  4733. You may find you need to inject additional metadata into packages.
  4734. This variable allows you to do that by setting the injected data as
  4735. the value. Multiple fields can be added by splitting the content with
  4736. the literal separator "\n".
  4737. The suffixes '_IPK', '_DEB', or '_RPM' can be applied to the variable
  4738. to do package type specific settings. It can also be made package
  4739. specific by using the package name as a suffix.
  4740. You can find out more about applying this variable in the
  4741. ":ref:`dev-manual/packages:adding custom metadata to packages`"
  4742. section in the Yocto Project Development Tasks Manual.
  4743. :term:`PACKAGE_ARCH`
  4744. The architecture of the resulting package or packages.
  4745. By default, the value of this variable is set to
  4746. :term:`TUNE_PKGARCH` when building for the
  4747. target, :term:`BUILD_ARCH` when building for the
  4748. build host, and "${SDK_ARCH}-${SDKPKGSUFFIX}" when building for the
  4749. SDK.
  4750. .. note::
  4751. See :term:`SDK_ARCH` for more information.
  4752. However, if your recipe's output packages are built specific to the
  4753. target machine rather than generally for the architecture of the
  4754. machine, you should set :term:`PACKAGE_ARCH` to the value of
  4755. :term:`MACHINE_ARCH` in the recipe as follows::
  4756. PACKAGE_ARCH = "${MACHINE_ARCH}"
  4757. :term:`PACKAGE_ARCHS`
  4758. Specifies a list of architectures compatible with the target machine.
  4759. This variable is set automatically and should not normally be
  4760. hand-edited. Entries are separated using spaces and listed in order
  4761. of priority. The default value for :term:`PACKAGE_ARCHS` is "all any
  4762. noarch ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}".
  4763. :term:`PACKAGE_BEFORE_PN`
  4764. Enables easily adding packages to :term:`PACKAGES` before ``${PN}`` so
  4765. that those added packages can pick up files that would normally be
  4766. included in the default package.
  4767. :term:`PACKAGE_CLASSES`
  4768. This variable, which is set in the ``local.conf`` configuration file
  4769. found in the ``conf`` folder of the
  4770. :term:`Build Directory`, specifies the package manager the
  4771. OpenEmbedded build system uses when packaging data.
  4772. You can provide one or more of the following arguments for the
  4773. variable::
  4774. PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk"
  4775. The build system uses only the first argument in the list as the
  4776. package manager when creating your image or SDK. However, packages
  4777. will be created using any additional packaging classes you specify.
  4778. For example, if you use the following in your ``local.conf`` file::
  4779. PACKAGE_CLASSES ?= "package_ipk"
  4780. The OpenEmbedded build system uses
  4781. the IPK package manager to create your image or SDK.
  4782. For information on packaging and build performance effects as a
  4783. result of the package manager in use, see the
  4784. ":ref:`ref-classes-package`" section.
  4785. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  4786. Determines how to split up and package debug and source information
  4787. when creating debugging packages to be used with the GNU Project
  4788. Debugger (GDB). In general, based on the value of this variable,
  4789. you can combine the source and debug info in a single package,
  4790. you can break out the source into a separate package that can be
  4791. installed independently, or you can choose to not have the source
  4792. packaged at all.
  4793. The possible values of :term:`PACKAGE_DEBUG_SPLIT_STYLE` variable:
  4794. - "``.debug``": All debugging and source info is placed in a single
  4795. ``*-dbg`` package; debug symbol files are placed next to the
  4796. binary in a ``.debug`` directory so that, if a binary is installed
  4797. into ``/bin``, the corresponding debug symbol file is installed
  4798. in ``/bin/.debug``. Source files are installed in the same ``*-dbg``
  4799. package under ``/usr/src/debug``.
  4800. - "``debug-file-directory``": As above, all debugging and source info
  4801. is placed in a single ``*-dbg`` package; debug symbol files are
  4802. placed entirely under the directory ``/usr/lib/debug`` and separated
  4803. by the path from where the binary is installed, so that if a binary
  4804. is installed in ``/bin``, the corresponding debug symbols are installed
  4805. in ``/usr/lib/debug/bin``, and so on. As above, source is installed
  4806. in the same package under ``/usr/src/debug``.
  4807. - "``debug-with-srcpkg``": Debugging info is placed in the standard
  4808. ``*-dbg`` package as with the ``.debug`` value, while source is
  4809. placed in a separate ``*-src`` package, which can be installed
  4810. independently. This is the default setting for this variable,
  4811. as defined in Poky's ``bitbake.conf`` file.
  4812. - "``debug-without-src``": The same behavior as with the ``.debug``
  4813. setting, but no source is packaged at all.
  4814. .. note::
  4815. Much of the above package splitting can be overridden via
  4816. use of the :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` variable.
  4817. You can find out more about debugging using GDB by reading the
  4818. ":ref:`dev-manual/debugging:debugging with the gnu project debugger (gdb) remotely`" section
  4819. in the Yocto Project Development Tasks Manual.
  4820. :term:`PACKAGE_EXCLUDE`
  4821. Lists packages that should not be installed into an image. For
  4822. example::
  4823. PACKAGE_EXCLUDE = "package_name package_name package_name ..."
  4824. You can set this variable globally in your ``local.conf`` file or you
  4825. can attach it to a specific image recipe by using the recipe name
  4826. override::
  4827. PACKAGE_EXCLUDE:pn-target_image = "package_name"
  4828. If you choose to not install a package using this variable and some
  4829. other package is dependent on it (i.e. listed in a recipe's
  4830. :term:`RDEPENDS` variable), the OpenEmbedded build
  4831. system generates a fatal installation error. Because the build system
  4832. halts the process with a fatal error, you can use the variable with
  4833. an iterative development process to remove specific components from a
  4834. system.
  4835. This variable is supported only when using the IPK and RPM
  4836. packaging backends. DEB is not supported.
  4837. See the :term:`NO_RECOMMENDATIONS` and the
  4838. :term:`BAD_RECOMMENDATIONS` variables for
  4839. related information.
  4840. :term:`PACKAGE_EXCLUDE_COMPLEMENTARY`
  4841. Prevents specific packages from being installed when you are
  4842. installing complementary packages.
  4843. You might find that you want to prevent installing certain packages
  4844. when you are installing complementary packages. For example, if you
  4845. are using :term:`IMAGE_FEATURES` to install
  4846. ``dev-pkgs``, you might not want to install all packages from a
  4847. particular multilib. If you find yourself in this situation, you can
  4848. use the :term:`PACKAGE_EXCLUDE_COMPLEMENTARY` variable to specify regular
  4849. expressions to match the packages you want to exclude.
  4850. :term:`PACKAGE_EXTRA_ARCHS`
  4851. Specifies the list of architectures compatible with the device CPU.
  4852. This variable is useful when you build for several different devices
  4853. that use miscellaneous processors such as XScale and ARM926-EJS.
  4854. :term:`PACKAGE_FEED_ARCHS`
  4855. Optionally specifies the package architectures used as part of the
  4856. package feed URIs during the build. When used, the
  4857. :term:`PACKAGE_FEED_ARCHS` variable is appended to the final package feed
  4858. URI, which is constructed using the
  4859. :term:`PACKAGE_FEED_URIS` and
  4860. :term:`PACKAGE_FEED_BASE_PATHS`
  4861. variables.
  4862. .. note::
  4863. You can use the :term:`PACKAGE_FEED_ARCHS`
  4864. variable to allow specific package architectures. If you do
  4865. not need to allow specific architectures, which is a common
  4866. case, you can omit this variable. Omitting the variable results in
  4867. all available architectures for the current machine being included
  4868. into remote package feeds.
  4869. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4870. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4871. defined in your ``local.conf`` file::
  4872. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4873. https://example.com/packagerepos/updates"
  4874. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4875. PACKAGE_FEED_ARCHS = "all core2-64"
  4876. Given these settings, the resulting package feeds are as follows:
  4877. .. code-block:: none
  4878. https://example.com/packagerepos/release/rpm/all
  4879. https://example.com/packagerepos/release/rpm/core2-64
  4880. https://example.com/packagerepos/release/rpm-dev/all
  4881. https://example.com/packagerepos/release/rpm-dev/core2-64
  4882. https://example.com/packagerepos/updates/rpm/all
  4883. https://example.com/packagerepos/updates/rpm/core2-64
  4884. https://example.com/packagerepos/updates/rpm-dev/all
  4885. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4886. :term:`PACKAGE_FEED_BASE_PATHS`
  4887. Specifies the base path used when constructing package feed URIs. The
  4888. :term:`PACKAGE_FEED_BASE_PATHS` variable makes up the middle portion of a
  4889. package feed URI used by the OpenEmbedded build system. The base path
  4890. lies between the :term:`PACKAGE_FEED_URIS`
  4891. and :term:`PACKAGE_FEED_ARCHS` variables.
  4892. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4893. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4894. defined in your ``local.conf`` file::
  4895. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4896. https://example.com/packagerepos/updates"
  4897. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4898. PACKAGE_FEED_ARCHS = "all core2-64"
  4899. Given these settings, the resulting package feeds are as follows:
  4900. .. code-block:: none
  4901. https://example.com/packagerepos/release/rpm/all
  4902. https://example.com/packagerepos/release/rpm/core2-64
  4903. https://example.com/packagerepos/release/rpm-dev/all
  4904. https://example.com/packagerepos/release/rpm-dev/core2-64
  4905. https://example.com/packagerepos/updates/rpm/all
  4906. https://example.com/packagerepos/updates/rpm/core2-64
  4907. https://example.com/packagerepos/updates/rpm-dev/all
  4908. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4909. :term:`PACKAGE_FEED_URIS`
  4910. Specifies the front portion of the package feed URI used by the
  4911. OpenEmbedded build system. Each final package feed URI is comprised
  4912. of :term:`PACKAGE_FEED_URIS`,
  4913. :term:`PACKAGE_FEED_BASE_PATHS`, and
  4914. :term:`PACKAGE_FEED_ARCHS` variables.
  4915. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4916. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4917. defined in your ``local.conf`` file::
  4918. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4919. https://example.com/packagerepos/updates"
  4920. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4921. PACKAGE_FEED_ARCHS = "all core2-64"
  4922. Given these settings, the resulting package feeds are as follows:
  4923. .. code-block:: none
  4924. https://example.com/packagerepos/release/rpm/all
  4925. https://example.com/packagerepos/release/rpm/core2-64
  4926. https://example.com/packagerepos/release/rpm-dev/all
  4927. https://example.com/packagerepos/release/rpm-dev/core2-64
  4928. https://example.com/packagerepos/updates/rpm/all
  4929. https://example.com/packagerepos/updates/rpm/core2-64
  4930. https://example.com/packagerepos/updates/rpm-dev/all
  4931. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4932. :term:`PACKAGE_INSTALL`
  4933. The final list of packages passed to the package manager for
  4934. installation into the image.
  4935. Because the package manager controls actual installation of all
  4936. packages, the list of packages passed using :term:`PACKAGE_INSTALL` is
  4937. not the final list of packages that are actually installed. This
  4938. variable is internal to the image construction code. Consequently, in
  4939. general, you should use the
  4940. :term:`IMAGE_INSTALL` variable to specify
  4941. packages for installation. The exception to this is when working with
  4942. the :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  4943. image. When working with an initial RAM filesystem (:term:`Initramfs`) image,
  4944. use the :term:`PACKAGE_INSTALL` variable. For information on creating an
  4945. :term:`Initramfs`, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  4946. in the Yocto Project Development Tasks Manual.
  4947. :term:`PACKAGE_INSTALL_ATTEMPTONLY`
  4948. Specifies a list of packages the OpenEmbedded build system attempts
  4949. to install when creating an image. If a listed package fails to
  4950. install, the build system does not generate an error. This variable
  4951. is generally not user-defined.
  4952. :term:`PACKAGE_PREPROCESS_FUNCS`
  4953. Specifies a list of functions run to pre-process the
  4954. :term:`PKGD` directory prior to splitting the files out
  4955. to individual packages.
  4956. :term:`PACKAGE_WRITE_DEPS`
  4957. Specifies a list of dependencies for post-installation and
  4958. pre-installation scripts on native/cross tools. If your
  4959. post-installation or pre-installation script can execute at root filesystem
  4960. creation time rather than on the target but depends on a native tool
  4961. in order to execute, you need to list the tools in
  4962. :term:`PACKAGE_WRITE_DEPS`.
  4963. For information on running post-installation scripts, see the
  4964. ":ref:`dev-manual/new-recipe:post-installation scripts`"
  4965. section in the Yocto Project Development Tasks Manual.
  4966. :term:`PACKAGECONFIG`
  4967. This variable provides a means of enabling or disabling features of a
  4968. recipe on a per-recipe basis. :term:`PACKAGECONFIG` blocks are defined in
  4969. recipes when you specify features and then arguments that define
  4970. feature behaviors. Here is the basic block structure (broken over
  4971. multiple lines for readability)::
  4972. PACKAGECONFIG ??= "f1 f2 f3 ..."
  4973. PACKAGECONFIG[f1] = "\
  4974. --with-f1, \
  4975. --without-f1, \
  4976. build-deps-for-f1, \
  4977. runtime-deps-for-f1, \
  4978. runtime-recommends-for-f1, \
  4979. packageconfig-conflicts-for-f1"
  4980. PACKAGECONFIG[f2] = "\
  4981. ... and so on and so on ...
  4982. The :term:`PACKAGECONFIG` variable itself specifies a space-separated
  4983. list of the features to enable. Following the features, you can
  4984. determine the behavior of each feature by providing up to six
  4985. order-dependent arguments, which are separated by commas. You can
  4986. omit any argument you like but must retain the separating commas. The
  4987. order is important and specifies the following:
  4988. #. Extra arguments that should be added to :term:`PACKAGECONFIG_CONFARGS`
  4989. if the feature is enabled.
  4990. #. Extra arguments that should be added to :term:`PACKAGECONFIG_CONFARGS`
  4991. if the feature is disabled.
  4992. #. Additional build dependencies (:term:`DEPENDS`)
  4993. that should be added if the feature is enabled.
  4994. #. Additional runtime dependencies (:term:`RDEPENDS`)
  4995. that should be added if the feature is enabled.
  4996. #. Additional runtime recommendations
  4997. (:term:`RRECOMMENDS`) that should be added if
  4998. the feature is enabled.
  4999. #. Any conflicting (that is, mutually exclusive) :term:`PACKAGECONFIG`
  5000. settings for this feature.
  5001. Consider the following :term:`PACKAGECONFIG` block taken from the
  5002. ``librsvg`` recipe. In this example the feature is ``gtk``, which has
  5003. three arguments that determine the feature's behavior::
  5004. PACKAGECONFIG[gtk] = "--with-gtk3,--without-gtk3,gtk+3"
  5005. The
  5006. ``--with-gtk3`` and ``gtk+3`` arguments apply only if the feature is
  5007. enabled. In this case, ``--with-gtk3`` is added to the configure
  5008. script argument list and ``gtk+3`` is added to :term:`DEPENDS`. On the
  5009. other hand, if the feature is disabled say through a ``.bbappend``
  5010. file in another layer, then the second argument ``--without-gtk3`` is
  5011. added to the configure script instead.
  5012. The basic :term:`PACKAGECONFIG` structure previously described holds true
  5013. regardless of whether you are creating a block or changing a block.
  5014. When creating a block, use the structure inside your recipe.
  5015. If you want to change an existing :term:`PACKAGECONFIG` block, you can do
  5016. so one of two ways:
  5017. - *Append file:* Create an append file named
  5018. ``recipename.bbappend`` in your layer and override the value of
  5019. :term:`PACKAGECONFIG`. You can either completely override the
  5020. variable::
  5021. PACKAGECONFIG = "f4 f5"
  5022. Or, you can just append the variable::
  5023. PACKAGECONFIG:append = " f4"
  5024. - *Configuration file:* This method is identical to changing the
  5025. block through an append file except you edit your ``local.conf``
  5026. or ``mydistro.conf`` file. As with append files previously
  5027. described, you can either completely override the variable::
  5028. PACKAGECONFIG:pn-recipename = "f4 f5"
  5029. Or, you can just amend the variable::
  5030. PACKAGECONFIG:append:pn-recipename = " f4"
  5031. Consider the following example of a :ref:`ref-classes-cmake` recipe with a systemd service
  5032. in which :term:`PACKAGECONFIG` is used to transform the systemd service
  5033. into a feature that can be easily enabled or disabled via :term:`PACKAGECONFIG`::
  5034. example.c
  5035. example.service
  5036. CMakeLists.txt
  5037. The ``CMakeLists.txt`` file contains::
  5038. if(WITH_SYSTEMD)
  5039. install(FILES ${PROJECT_SOURCE_DIR}/example.service DESTINATION /etc/systemd/systemd)
  5040. endif(WITH_SYSTEMD)
  5041. In order to enable the installation of ``example.service`` we need to
  5042. ensure that ``-DWITH_SYSTEMD=ON`` is passed to the ``cmake`` command
  5043. execution. Recipes that have ``CMakeLists.txt`` generally inherit the
  5044. :ref:`ref-classes-cmake` class, that runs ``cmake`` with
  5045. :term:`EXTRA_OECMAKE`, which :term:`PACKAGECONFIG_CONFARGS` will be
  5046. appended to. Now, knowing that :term:`PACKAGECONFIG_CONFARGS` is
  5047. automatically filled with either the first or second element of
  5048. :term:`PACKAGECONFIG` flag value, the recipe would be like::
  5049. inherit cmake
  5050. PACKAGECONFIG = "systemd"
  5051. PACKAGECONFIG[systemd] = "-DWITH_SYSTEMD=ON,-DWITH_SYSTEMD=OFF"
  5052. A side note to this recipe is to check if ``systemd`` is in fact the used :term:`INIT_MANAGER`
  5053. or not::
  5054. PACKAGECONFIG = "${@'systemd' if d.getVar('INIT_MANAGER') == 'systemd' else ''}"
  5055. :term:`PACKAGECONFIG_CONFARGS`
  5056. A space-separated list of configuration options generated from the
  5057. :term:`PACKAGECONFIG` setting.
  5058. Classes such as :ref:`ref-classes-autotools` and :ref:`ref-classes-cmake`
  5059. use :term:`PACKAGECONFIG_CONFARGS` to pass :term:`PACKAGECONFIG` options
  5060. to ``configure`` and ``cmake``, respectively. If you are using
  5061. :term:`PACKAGECONFIG` but not a class that handles the
  5062. :ref:`ref-tasks-configure` task, then you need to use
  5063. :term:`PACKAGECONFIG_CONFARGS` appropriately.
  5064. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY`
  5065. For recipes inheriting the :ref:`ref-classes-packagegroup` class, setting
  5066. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY` to "1" specifies that the
  5067. normal complementary packages (i.e. ``-dev``, ``-dbg``, and so forth)
  5068. should not be automatically created by the ``packagegroup`` recipe,
  5069. which is the default behavior.
  5070. :term:`PACKAGES`
  5071. The list of packages the recipe creates. The default value is the
  5072. following::
  5073. ${PN}-src ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}
  5074. During packaging, the :ref:`ref-tasks-package` task
  5075. goes through :term:`PACKAGES` and uses the :term:`FILES`
  5076. variable corresponding to each package to assign files to the
  5077. package. If a file matches the :term:`FILES` variable for more than one
  5078. package in :term:`PACKAGES`, it will be assigned to the earliest
  5079. (leftmost) package.
  5080. Packages in the variable's list that are empty (i.e. where none of
  5081. the patterns in ``FILES:``\ pkg match any files installed by the
  5082. :ref:`ref-tasks-install` task) are not generated,
  5083. unless generation is forced through the
  5084. :term:`ALLOW_EMPTY` variable.
  5085. :term:`PACKAGES_DYNAMIC`
  5086. A promise that your recipe satisfies runtime dependencies for
  5087. optional modules that are found in other recipes.
  5088. :term:`PACKAGES_DYNAMIC` does not actually satisfy the dependencies, it
  5089. only states that they should be satisfied. For example, if a hard,
  5090. runtime dependency (:term:`RDEPENDS`) of another
  5091. package is satisfied at build time through the :term:`PACKAGES_DYNAMIC`
  5092. variable, but a package with the module name is never actually
  5093. produced, then the other package will be broken. Thus, if you attempt
  5094. to include that package in an image, you will get a dependency
  5095. failure from the packaging system during the
  5096. :ref:`ref-tasks-rootfs` task.
  5097. Typically, if there is a chance that such a situation can occur and
  5098. the package that is not created is valid without the dependency being
  5099. satisfied, then you should use :term:`RRECOMMENDS`
  5100. (a soft runtime dependency) instead of :term:`RDEPENDS`.
  5101. For an example of how to use the :term:`PACKAGES_DYNAMIC` variable when
  5102. you are splitting packages, see the
  5103. ":ref:`dev-manual/packages:handling optional module packaging`"
  5104. section in the Yocto Project Development Tasks Manual.
  5105. :term:`PACKAGESPLITFUNCS`
  5106. Specifies a list of functions run to perform additional splitting of
  5107. files into individual packages. Recipes can either prepend to this
  5108. variable or prepend to the ``populate_packages`` function in order to
  5109. perform additional package splitting. In either case, the function
  5110. should set :term:`PACKAGES`,
  5111. :term:`FILES`, :term:`RDEPENDS` and
  5112. other packaging variables appropriately in order to perform the
  5113. desired splitting.
  5114. :term:`PARALLEL_MAKE`
  5115. Extra options passed to the build tool command (``make``,
  5116. ``ninja`` or more specific build engines, like the Go language one)
  5117. during the :ref:`ref-tasks-compile` task, to specify parallel compilation
  5118. on the local build host. This variable is usually in the form "-j x",
  5119. where x represents the maximum number of parallel threads such engines
  5120. can run.
  5121. .. note::
  5122. For software compiled by ``make``, in order for :term:`PARALLEL_MAKE`
  5123. to be effective, ``make`` must be called with
  5124. ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy
  5125. way to ensure this is to use the ``oe_runmake`` function.
  5126. By default, the OpenEmbedded build system automatically sets this
  5127. variable to be equal to the number of cores the build system uses.
  5128. .. note::
  5129. If the software being built experiences dependency issues during
  5130. the :ref:`ref-tasks-compile` task that result in race conditions, you can clear
  5131. the :term:`PARALLEL_MAKE` variable within the recipe as a workaround. For
  5132. information on addressing race conditions, see the
  5133. ":ref:`dev-manual/debugging:debugging parallel make races`"
  5134. section in the Yocto Project Development Tasks Manual.
  5135. For single socket systems (i.e. one CPU), you should not have to
  5136. override this variable to gain optimal parallelism during builds.
  5137. However, if you have very large systems that employ multiple physical
  5138. CPUs, you might want to make sure the :term:`PARALLEL_MAKE` variable is
  5139. not set higher than "-j 20".
  5140. For more information on speeding up builds, see the
  5141. ":ref:`dev-manual/speeding-up-build:speeding up a build`"
  5142. section in the Yocto Project Development Tasks Manual.
  5143. :term:`PARALLEL_MAKEINST`
  5144. Extra options passed to the build tool install command
  5145. (``make install``, ``ninja install`` or more specific ones)
  5146. during the :ref:`ref-tasks-install` task in order to specify
  5147. parallel installation. This variable defaults to the value of
  5148. :term:`PARALLEL_MAKE`.
  5149. .. note::
  5150. For software compiled by ``make``, in order for :term:`PARALLEL_MAKEINST`
  5151. to be effective, ``make`` must be called with
  5152. ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy
  5153. way to ensure this is to use the ``oe_runmake`` function.
  5154. If the software being built experiences dependency issues during
  5155. the :ref:`ref-tasks-install` task that result in race conditions, you can
  5156. clear the :term:`PARALLEL_MAKEINST` variable within the recipe as a
  5157. workaround. For information on addressing race conditions, see the
  5158. ":ref:`dev-manual/debugging:debugging parallel make races`"
  5159. section in the Yocto Project Development Tasks Manual.
  5160. :term:`PATCHRESOLVE`
  5161. Determines the action to take when a patch fails. You can set this
  5162. variable to one of two values: "noop" and "user".
  5163. The default value of "noop" causes the build to simply fail when the
  5164. OpenEmbedded build system cannot successfully apply a patch. Setting
  5165. the value to "user" causes the build system to launch a shell and
  5166. places you in the right location so that you can manually resolve the
  5167. conflicts.
  5168. Set this variable in your ``local.conf`` file.
  5169. :term:`PATCHTOOL`
  5170. Specifies the utility used to apply patches for a recipe during the
  5171. :ref:`ref-tasks-patch` task. You can specify one of
  5172. three utilities: "patch", "quilt", or "git". The default utility used
  5173. is "quilt" except for the quilt-native recipe itself. Because the
  5174. quilt tool is not available at the time quilt-native is being
  5175. patched, it uses "patch".
  5176. If you wish to use an alternative patching tool, set the variable in
  5177. the recipe using one of the following::
  5178. PATCHTOOL = "patch"
  5179. PATCHTOOL = "quilt"
  5180. PATCHTOOL = "git"
  5181. :term:`PE`
  5182. The epoch of the recipe. By default, this variable is unset. The
  5183. variable is used to make upgrades possible when the versioning scheme
  5184. changes in some backwards incompatible way.
  5185. :term:`PE` is the default value of the :term:`PKGE` variable.
  5186. :term:`PEP517_WHEEL_PATH`
  5187. When used by recipes that inherit the :ref:`ref-classes-python_pep517`
  5188. class, denotes the path to ``dist/`` (short for distribution) where the
  5189. binary archive ``wheel`` is built.
  5190. :term:`PERSISTENT_DIR`
  5191. See :term:`bitbake:PERSISTENT_DIR` in the BitBake manual.
  5192. :term:`PF`
  5193. Specifies the recipe or package name and includes all version and
  5194. revision numbers (i.e. ``glibc-2.13-r20+svnr15508/`` and
  5195. ``bash-4.2-r1/``). This variable is comprised of the following:
  5196. ${:term:`PN`}-${:term:`EXTENDPE`}${:term:`PV`}-${:term:`PR`}
  5197. :term:`PIXBUF_PACKAGES`
  5198. When inheriting the :ref:`ref-classes-pixbufcache`
  5199. class, this variable identifies packages that contain the pixbuf
  5200. loaders used with ``gdk-pixbuf``. By default, the
  5201. :ref:`ref-classes-pixbufcache` class assumes that
  5202. the loaders are in the recipe's main package (i.e.
  5203. ``${``\ :term:`PN`\ ``}``). Use this variable if the
  5204. loaders you need are in a package other than that main package.
  5205. :term:`PKG`
  5206. The name of the resulting package created by the OpenEmbedded build
  5207. system.
  5208. .. note::
  5209. When using the :term:`PKG` variable, you must use a package name override.
  5210. For example, when the :ref:`ref-classes-debian` class renames the output
  5211. package, it does so by setting ``PKG:packagename``.
  5212. :term:`PKG_CONFIG_PATH`
  5213. The path to ``pkg-config`` files for the current build context.
  5214. ``pkg-config`` reads this variable from the environment.
  5215. :term:`PKGD`
  5216. Points to the destination directory for files to be packaged before
  5217. they are split into individual packages. This directory defaults to
  5218. the following::
  5219. ${WORKDIR}/package
  5220. Do not change this default.
  5221. :term:`PKGDATA_DIR`
  5222. Points to a shared, global-state directory that holds data generated
  5223. during the packaging process. During the packaging process, the
  5224. :ref:`ref-tasks-packagedata` task packages data
  5225. for each recipe and installs it into this temporary, shared area.
  5226. This directory defaults to the following, which you should not
  5227. change::
  5228. ${STAGING_DIR_HOST}/pkgdata
  5229. For examples of how this data is used, see the
  5230. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5231. section in the Yocto Project Overview and Concepts Manual and the
  5232. ":ref:`dev-manual/debugging:viewing package information with \`\`oe-pkgdata-util\`\``"
  5233. section in the Yocto Project Development Tasks Manual. For more
  5234. information on the shared, global-state directory, see
  5235. :term:`STAGING_DIR_HOST`.
  5236. :term:`PKGDEST`
  5237. Points to the parent directory for files to be packaged after they
  5238. have been split into individual packages. This directory defaults to
  5239. the following::
  5240. ${WORKDIR}/packages-split
  5241. Under this directory, the build system creates directories for each
  5242. package specified in :term:`PACKAGES`. Do not change
  5243. this default.
  5244. :term:`PKGDESTWORK`
  5245. Points to a temporary work area where the
  5246. :ref:`ref-tasks-package` task saves package metadata.
  5247. The :term:`PKGDESTWORK` location defaults to the following::
  5248. ${WORKDIR}/pkgdata
  5249. Do not change this default.
  5250. The :ref:`ref-tasks-packagedata` task copies the
  5251. package metadata from :term:`PKGDESTWORK` to
  5252. :term:`PKGDATA_DIR` to make it available globally.
  5253. :term:`PKGE`
  5254. The epoch of the package(s) built by the recipe. By default, :term:`PKGE`
  5255. is set to :term:`PE`.
  5256. :term:`PKGR`
  5257. The revision of the package(s) built by the recipe. By default,
  5258. :term:`PKGR` is set to :term:`PR`.
  5259. :term:`PKGV`
  5260. The version of the package(s) built by the recipe. By default,
  5261. :term:`PKGV` is set to :term:`PV`.
  5262. :term:`PN`
  5263. This variable can have two separate functions depending on the
  5264. context: a recipe name or a resulting package name.
  5265. :term:`PN` refers to a recipe name in the context of a file used by the
  5266. OpenEmbedded build system as input to create a package. The name is
  5267. normally extracted from the recipe file name. For example, if the
  5268. recipe is named ``expat_2.0.1.bb``, then the default value of :term:`PN`
  5269. will be "expat".
  5270. The variable refers to a package name in the context of a file
  5271. created or produced by the OpenEmbedded build system.
  5272. If applicable, the :term:`PN` variable also contains any special suffix
  5273. or prefix. For example, using ``bash`` to build packages for the
  5274. native machine, :term:`PN` is ``bash-native``. Using ``bash`` to build
  5275. packages for the target and for Multilib, :term:`PN` would be ``bash``
  5276. and ``lib64-bash``, respectively.
  5277. :term:`POPULATE_SDK_POST_HOST_COMMAND`
  5278. Specifies a list of functions to call once the OpenEmbedded build
  5279. system has created the host part of the SDK. You can specify
  5280. functions separated by spaces::
  5281. POPULATE_SDK_POST_HOST_COMMAND += "function"
  5282. If you need to pass the SDK path to a command within a function, you
  5283. can use ``${SDK_DIR}``, which points to the parent directory used by
  5284. the OpenEmbedded build system when creating SDK output. See the
  5285. :term:`SDK_DIR` variable for more information.
  5286. :term:`POPULATE_SDK_POST_TARGET_COMMAND`
  5287. Specifies a list of functions to call once the OpenEmbedded build
  5288. system has created the target part of the SDK. You can specify
  5289. functions separated by spaces::
  5290. POPULATE_SDK_POST_TARGET_COMMAND += "function"
  5291. If you need to pass the SDK path to a command within a function, you
  5292. can use ``${SDK_DIR}``, which points to the parent directory used by
  5293. the OpenEmbedded build system when creating SDK output. See the
  5294. :term:`SDK_DIR` variable for more information.
  5295. :term:`PR`
  5296. The revision of the recipe. The default value for this variable is
  5297. "r0". Subsequent revisions of the recipe conventionally have the
  5298. values "r1", "r2", and so forth. When :term:`PV` increases,
  5299. :term:`PR` is conventionally reset to "r0".
  5300. .. note::
  5301. The OpenEmbedded build system does not need the aid of :term:`PR`
  5302. to know when to rebuild a recipe. The build system uses the task
  5303. :ref:`input checksums <overview-manual/concepts:checksums (signatures)>` along with the
  5304. :ref:`stamp <structure-build-tmp-stamps>` and
  5305. :ref:`overview-manual/concepts:shared state cache`
  5306. mechanisms.
  5307. The :term:`PR` variable primarily becomes significant when a package
  5308. manager dynamically installs packages on an already built image. In
  5309. this case, :term:`PR`, which is the default value of
  5310. :term:`PKGR`, helps the package manager distinguish which
  5311. package is the most recent one in cases where many packages have the
  5312. same :term:`PV` (i.e. :term:`PKGV`). A component having many packages with
  5313. the same :term:`PV` usually means that the packages all install the same
  5314. upstream version, but with later (:term:`PR`) version packages including
  5315. packaging fixes.
  5316. .. note::
  5317. :term:`PR` does not need to be increased for changes that do not change the
  5318. package contents or metadata.
  5319. Because manually managing :term:`PR` can be cumbersome and error-prone,
  5320. an automated solution exists. See the
  5321. ":ref:`dev-manual/packages:working with a pr service`" section
  5322. in the Yocto Project Development Tasks Manual for more information.
  5323. :term:`PREFERRED_PROVIDER`
  5324. If multiple recipes provide the same item, this variable determines
  5325. which recipe is preferred and thus provides the item (i.e. the
  5326. preferred provider). You should always suffix this variable with the
  5327. name of the provided item. And, you should define the variable using
  5328. the preferred recipe's name (:term:`PN`). Here is a common
  5329. example::
  5330. PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
  5331. In the previous example, multiple recipes are providing "virtual/kernel".
  5332. The :term:`PREFERRED_PROVIDER` variable is set with the name (:term:`PN`) of
  5333. the recipe you prefer to provide "virtual/kernel".
  5334. Here are more examples::
  5335. PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86"
  5336. PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
  5337. For more
  5338. information, see the ":ref:`dev-manual/new-recipe:using virtual providers`"
  5339. section in the Yocto Project Development Tasks Manual.
  5340. .. note::
  5341. If you use a ``virtual/\*`` item with :term:`PREFERRED_PROVIDER`, then any
  5342. recipe that :term:`PROVIDES` that item but is not selected (defined)
  5343. by :term:`PREFERRED_PROVIDER` is prevented from building, which is usually
  5344. desirable since this mechanism is designed to select between mutually
  5345. exclusive alternative providers.
  5346. :term:`PREFERRED_PROVIDERS`
  5347. See :term:`bitbake:PREFERRED_PROVIDERS` in the BitBake manual.
  5348. :term:`PREFERRED_RPROVIDER`
  5349. The :term:`PREFERRED_RPROVIDER` variable works like the
  5350. :term:`PREFERRED_PROVIDER` variable, but it denotes packages that provide a
  5351. *runtime* component. Runtime providers are declared in recipes that set
  5352. the :term:`RPROVIDES` variable for a specific package.
  5353. For example::
  5354. PREFERRED_RPROVIDER_virtual-x-terminal-emulator = "rxvt-unicode"
  5355. This statement sets the runtime provider for the X terminal emulator to
  5356. ``rxvt-unicode``. The ``rxvt-unicode`` package is a runtime provider of
  5357. this component because the ``rxvt-unicode`` recipe set the following
  5358. :term:`RPROVIDES` definition for the ``rxvt-unicode`` (``${PN}``)
  5359. package::
  5360. RPROVIDES:${PN} = "virtual-x-terminal-emulator"
  5361. For more information on virtual providers, see the
  5362. ":ref:`dev-manual/new-recipe:using virtual providers`" section in the
  5363. Yocto Project Development Tasks Manual.
  5364. :term:`PREFERRED_VERSION`
  5365. If there are multiple versions of a recipe available, this variable
  5366. determines which version should be given preference. You must always
  5367. suffix the variable with the :term:`PN` you want to select (`python` in
  5368. the first example below), and you should specify the :term:`PV`
  5369. accordingly (`3.4.0` in the example).
  5370. The :term:`PREFERRED_VERSION` variable supports limited wildcard use
  5371. through the "``%``" character. You can use the character to match any
  5372. number of characters, which can be useful when specifying versions
  5373. that contain long revision numbers that potentially change. Here are
  5374. two examples::
  5375. PREFERRED_VERSION_python = "3.4.0"
  5376. PREFERRED_VERSION_linux-yocto = "5.0%"
  5377. .. note::
  5378. The use of the "%" character is limited in that it only works at the end of the
  5379. string. You cannot use the wildcard character in any other
  5380. location of the string.
  5381. The specified version is matched against :term:`PV`, which does not
  5382. necessarily match the version part of the recipe's filename.
  5383. If you want to select a recipe named ``foo_git.bb`` which has :term:`PV`
  5384. set to ``1.2.3+git``, you can do so by setting ```PREFERRED_VERSION_foo``
  5385. to ``1.2.3%`` (i.e. simply setting ``PREFERRED_VERSION_foo`` to ``git``
  5386. will not work as the name of the recipe isn't used, but rather its
  5387. :term:`PV` definition).
  5388. Sometimes the :term:`PREFERRED_VERSION` variable can be set by
  5389. configuration files in a way that is hard to change. You can use
  5390. :term:`OVERRIDES` to set a machine-specific
  5391. override. Here is an example::
  5392. PREFERRED_VERSION_linux-yocto:qemux86 = "5.0%"
  5393. Although not recommended, worst case, you can also use the
  5394. "forcevariable" override, which is the strongest override possible.
  5395. Here is an example::
  5396. PREFERRED_VERSION_linux-yocto:forcevariable = "5.0%"
  5397. .. note::
  5398. The ``:forcevariable`` override is not handled specially. This override
  5399. only works because the default value of :term:`OVERRIDES` includes "forcevariable".
  5400. If a recipe with the specified version is not available, a warning
  5401. message will be shown. See :term:`REQUIRED_VERSION` if you want this
  5402. to be an error instead.
  5403. :term:`PREMIRRORS`
  5404. Specifies additional paths from which the OpenEmbedded build system
  5405. gets source code. When the build system searches for source code, it
  5406. first tries the local download directory. If that location fails, the
  5407. build system tries locations defined by :term:`PREMIRRORS`, the upstream
  5408. source, and then locations specified by
  5409. :term:`MIRRORS` in that order.
  5410. The default value for :term:`PREMIRRORS` is defined in the
  5411. ``meta/classes-global/mirrors.bbclass`` file in the core metadata layer.
  5412. Typically, you could add a specific server for the build system to
  5413. attempt before any others by adding something like the following to
  5414. the ``local.conf`` configuration file in the
  5415. :term:`Build Directory`::
  5416. PREMIRRORS:prepend = "\
  5417. git://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5418. ftp://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5419. http://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5420. https://.*/.* &YOCTO_DL_URL;/mirror/sources/"
  5421. These changes cause the
  5422. build system to intercept Git, FTP, HTTP, and HTTPS requests and
  5423. direct them to the ``http://`` sources mirror. You can use
  5424. ``file://`` URLs to point to local directories or network shares as
  5425. well.
  5426. :term:`PRIORITY`
  5427. Indicates the importance of a package.
  5428. :term:`PRIORITY` is considered to be part of the distribution policy
  5429. because the importance of any given recipe depends on the purpose for
  5430. which the distribution is being produced. Thus, :term:`PRIORITY` is not
  5431. normally set within recipes.
  5432. You can set :term:`PRIORITY` to "required", "standard", "extra", and
  5433. "optional", which is the default.
  5434. :term:`PRIVATE_LIBS`
  5435. Specifies libraries installed within a recipe that should be ignored
  5436. by the OpenEmbedded build system's shared library resolver. This
  5437. variable is typically used when software being built by a recipe has
  5438. its own private versions of a library normally provided by another
  5439. recipe. In this case, you would not want the package containing the
  5440. private libraries to be set as a dependency on other unrelated
  5441. packages that should instead depend on the package providing the
  5442. standard version of the library.
  5443. Libraries specified in this variable should be specified by their
  5444. file name. For example, from the Firefox recipe in meta-browser::
  5445. PRIVATE_LIBS = "libmozjs.so \
  5446. libxpcom.so \
  5447. libnspr4.so \
  5448. libxul.so \
  5449. libmozalloc.so \
  5450. libplc4.so \
  5451. libplds4.so"
  5452. For more information, see the
  5453. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5454. section in the Yocto Project Overview and Concepts Manual.
  5455. :term:`PROVIDES`
  5456. A list of aliases by which a particular recipe can be known. By
  5457. default, a recipe's own :term:`PN` is implicitly already in its
  5458. :term:`PROVIDES` list and therefore does not need to mention that it
  5459. provides itself. If a recipe uses :term:`PROVIDES`, the additional
  5460. aliases are synonyms for the recipe and can be useful for satisfying
  5461. dependencies of other recipes during the build as specified by
  5462. :term:`DEPENDS`.
  5463. Consider the following example :term:`PROVIDES` statement from the recipe
  5464. file ``eudev_3.2.9.bb``::
  5465. PROVIDES += "udev"
  5466. The :term:`PROVIDES` statement
  5467. results in the "eudev" recipe also being available as simply "udev".
  5468. .. note::
  5469. A recipe's own recipe name (:term:`PN`) is always implicitly prepended
  5470. to :term:`PROVIDES`, so while using "+=" in the above example may not be
  5471. strictly necessary it is recommended to avoid confusion.
  5472. In addition to providing recipes under alternate names, the
  5473. :term:`PROVIDES` mechanism is also used to implement virtual targets. A
  5474. virtual target is a name that corresponds to some particular
  5475. functionality (e.g. a Linux kernel). Recipes that provide the
  5476. functionality in question list the virtual target in :term:`PROVIDES`.
  5477. Recipes that depend on the functionality in question can include the
  5478. virtual target in :term:`DEPENDS` to leave the choice of provider open.
  5479. Conventionally, virtual targets have names on the form
  5480. "virtual/function" (e.g. "virtual/kernel"). The slash is simply part
  5481. of the name and has no syntactical significance.
  5482. The :term:`PREFERRED_PROVIDER` variable is
  5483. used to select which particular recipe provides a virtual target.
  5484. .. note::
  5485. A corresponding mechanism for virtual runtime dependencies (packages)
  5486. exists. However, the mechanism does not depend on any special
  5487. functionality beyond ordinary variable assignments. For example,
  5488. :term:`VIRTUAL-RUNTIME_dev_manager <VIRTUAL-RUNTIME>` refers to the
  5489. package of the component that manages the ``/dev`` directory.
  5490. Setting the "preferred provider" for runtime dependencies is as
  5491. simple as using the following assignment in a configuration file::
  5492. VIRTUAL-RUNTIME_dev_manager = "udev"
  5493. :term:`PRSERV_HOST`
  5494. The network based :term:`PR` service host and port.
  5495. The ``conf/templates/default/local.conf.sample.extended`` configuration
  5496. file in the :term:`Source Directory` shows how the :term:`PRSERV_HOST`
  5497. variable is set::
  5498. PRSERV_HOST = "localhost:0"
  5499. You must
  5500. set the variable if you want to automatically start a local :ref:`PR
  5501. service <dev-manual/packages:working with a pr service>`. You can
  5502. set :term:`PRSERV_HOST` to other values to use a remote PR service.
  5503. :term:`PRSERV_UPSTREAM`
  5504. This variable can be used to specify an upstream PR server for the local
  5505. PR server to connect to, in the form of ``host:port``.
  5506. This makes it possible to implement local fixes to an upstream package.
  5507. :term:`PSEUDO_IGNORE_PATHS`
  5508. A comma-separated (without spaces) list of path prefixes that should be ignored
  5509. by pseudo when monitoring and recording file operations, in order to avoid
  5510. problems with files being written to outside of the pseudo context and
  5511. reduce pseudo's overhead. A path is ignored if it matches any prefix in the list
  5512. and can include partial directory (or file) names.
  5513. :term:`PTEST_ENABLED`
  5514. Specifies whether or not :ref:`Package
  5515. Test <test-manual/ptest:testing packages with ptest>` (ptest)
  5516. functionality is enabled when building a recipe. You should not set
  5517. this variable directly. Enabling and disabling building Package Tests
  5518. at build time should be done by adding "ptest" to (or removing it
  5519. from) :term:`DISTRO_FEATURES`.
  5520. :term:`PTEST_PYTEST_DIR`
  5521. Within the :ref:`ref-classes-ptest-python-pytest` class, the
  5522. :term:`PTEST_PYTEST_DIR` variable represents the path within the source
  5523. tree of a Python package holding the unit tests to be tested with the
  5524. `pytest <https://docs.pytest.org>`__ framework. The default value for this
  5525. variable is ``tests``.
  5526. For more information, see
  5527. the :ref:`ref-classes-ptest-python-pytest` class documentation.
  5528. :term:`PV`
  5529. The version of the recipe. The version is normally extracted from the
  5530. recipe filename. For example, if the recipe is named
  5531. ``expat_2.0.1.bb``, then the default value of :term:`PV` will be "2.0.1".
  5532. :term:`PV` is generally not overridden within a recipe unless it is
  5533. building an unstable (i.e. development) version from a source code
  5534. repository (e.g. Git or Subversion).
  5535. :term:`PV` is the default value of the :term:`PKGV` variable.
  5536. :term:`PYPI_PACKAGE`
  5537. When inheriting the :ref:`ref-classes-pypi` class, specifies the
  5538. `PyPI <https://pypi.org/>`__ package name to be built. The default value
  5539. is set based upon :term:`BPN` (stripping any "python-" or "python3-"
  5540. prefix off if present), however for some packages it will need to be set
  5541. explicitly if that will not match the package name (e.g. where the
  5542. package name has a prefix, underscores, uppercase letters etc.)
  5543. :term:`PYPI_PACKAGE_EXT`
  5544. When inheriting the :ref:`ref-classes-pypi` class, specifies the
  5545. file extension to use when fetching a package from `PyPI
  5546. <https://pypi.org/>`__. Default is ``tar.gz``.
  5547. :term:`PYPI_SRC_URI`
  5548. When inheriting the :ref:`ref-classes-pypi` class, specifies the
  5549. full `pythonhosted <https://files.pythonhosted.org/>`__ URI for
  5550. fetching the package to be built. The default value is constructed
  5551. based upon :term:`PYPI_PACKAGE`, :term:`PYPI_PACKAGE_EXT`, and
  5552. :term:`PV`. Most recipes will not need to set this variable unless
  5553. they are building an unstable (i.e. development) version.
  5554. :term:`PYTHON_ABI`
  5555. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  5556. class, denotes the Application Binary Interface (ABI) currently in use
  5557. for Python. By default, the ABI is "m". You do not have to set this
  5558. variable as the OpenEmbedded build system sets it for you.
  5559. The OpenEmbedded build system uses the ABI to construct directory
  5560. names used when installing the Python headers and libraries in
  5561. sysroot (e.g. ``.../python3.3m/...``).
  5562. :term:`QA_EMPTY_DIRS`
  5563. Specifies a list of directories that are expected to be empty when
  5564. packaging; if ``empty-dirs`` appears in :term:`ERROR_QA` or
  5565. :term:`WARN_QA` these will be checked and an error or warning
  5566. (respectively) will be produced.
  5567. The default :term:`QA_EMPTY_DIRS` value is set in
  5568. :ref:`insane.bbclass <ref-classes-insane>`.
  5569. :term:`QA_EMPTY_DIRS_RECOMMENDATION`
  5570. Specifies a recommendation for why a directory must be empty,
  5571. which will be included in the error message if a specific directory
  5572. is found to contain files. Must be overridden with the directory
  5573. path to match on.
  5574. If no recommendation is specified for a directory, then the default
  5575. "but it is expected to be empty" will be used.
  5576. An example message shows if files were present in '/dev'::
  5577. QA_EMPTY_DIRS_RECOMMENDATION:/dev = "but all devices must be created at runtime"
  5578. :term:`RANLIB`
  5579. The minimal command and arguments to run ``ranlib``.
  5580. :term:`RCONFLICTS`
  5581. The list of packages that conflict with packages. Note that packages
  5582. will not be installed if conflicting packages are not first removed.
  5583. Like all package-controlling variables, you must always use them in
  5584. conjunction with a package name override. Here is an example::
  5585. RCONFLICTS:${PN} = "another_conflicting_package_name"
  5586. BitBake, which the OpenEmbedded build system uses, supports
  5587. specifying versioned dependencies. Although the syntax varies
  5588. depending on the packaging format, BitBake hides these differences
  5589. from you. Here is the general syntax to specify versions with the
  5590. :term:`RCONFLICTS` variable::
  5591. RCONFLICTS:${PN} = "package (operator version)"
  5592. For ``operator``, you can specify the following:
  5593. - =
  5594. - <
  5595. - >
  5596. - <=
  5597. - >=
  5598. For example, the following sets up a dependency on version 1.2 or
  5599. greater of the package ``foo``::
  5600. RCONFLICTS:${PN} = "foo (>= 1.2)"
  5601. :term:`RDEPENDS`
  5602. Lists runtime dependencies of a package. These dependencies are other
  5603. packages that must be installed in order for the package to function
  5604. correctly. As an example, the following assignment declares that the
  5605. package ``foo`` needs the packages ``bar`` and ``baz`` to be
  5606. installed::
  5607. RDEPENDS:foo = "bar baz"
  5608. The most common types of package
  5609. runtime dependencies are automatically detected and added. Therefore,
  5610. most recipes do not need to set :term:`RDEPENDS`. For more information,
  5611. see the
  5612. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5613. section in the Yocto Project Overview and Concepts Manual.
  5614. The practical effect of the above :term:`RDEPENDS` assignment is that
  5615. ``bar`` and ``baz`` will be declared as dependencies inside the
  5616. package ``foo`` when it is written out by one of the
  5617. :ref:`do_package_write_* <ref-tasks-package_write_deb>` tasks.
  5618. Exactly how this is done depends on which package format is used,
  5619. which is determined by
  5620. :term:`PACKAGE_CLASSES`. When the
  5621. corresponding package manager installs the package, it will know to
  5622. also install the packages on which it depends.
  5623. To ensure that the packages ``bar`` and ``baz`` get built, the
  5624. previous :term:`RDEPENDS` assignment also causes a task dependency to be
  5625. added. This dependency is from the recipe's
  5626. :ref:`ref-tasks-build` (not to be confused with
  5627. :ref:`ref-tasks-compile`) task to the
  5628. :ref:`do_package_write_* <ref-tasks-package_write_deb>` task of the recipes that build ``bar`` and
  5629. ``baz``.
  5630. The names of the packages you list within :term:`RDEPENDS` must be the
  5631. names of other packages --- they cannot be recipe names. Although
  5632. package names and recipe names usually match, the important point
  5633. here is that you are providing package names within the :term:`RDEPENDS`
  5634. variable. For an example of the default list of packages created from
  5635. a recipe, see the :term:`PACKAGES` variable.
  5636. Because the :term:`RDEPENDS` variable applies to packages being built,
  5637. you should always use the variable in a form with an attached package
  5638. name (remember that a single recipe can build multiple packages). For
  5639. example, suppose you are building a development package that depends
  5640. on the ``perl`` package. In this case, you would use the following
  5641. :term:`RDEPENDS` statement::
  5642. RDEPENDS:${PN}-dev += "perl"
  5643. In the example,
  5644. the development package depends on the ``perl`` package. Thus, the
  5645. :term:`RDEPENDS` variable has the ``${PN}-dev`` package name as part of
  5646. the variable.
  5647. .. note::
  5648. ``RDEPENDS:${PN}-dev`` includes ``${``\ :term:`PN`\ ``}``
  5649. by default. This default is set in the BitBake configuration file
  5650. (``meta/conf/bitbake.conf``). Be careful not to accidentally remove
  5651. ``${PN}`` when modifying ``RDEPENDS:${PN}-dev``. Use the "+=" operator
  5652. rather than the "=" operator.
  5653. The package names you use with :term:`RDEPENDS` must appear as they would
  5654. in the :term:`PACKAGES` variable. The :term:`PKG` variable
  5655. allows a different name to be used for the final package (e.g. the
  5656. :ref:`ref-classes-debian` class uses this to rename
  5657. packages), but this final package name cannot be used with
  5658. :term:`RDEPENDS`, which makes sense as :term:`RDEPENDS` is meant to be
  5659. independent of the package format used.
  5660. BitBake, which the OpenEmbedded build system uses, supports
  5661. specifying versioned dependencies. Although the syntax varies
  5662. depending on the packaging format, BitBake hides these differences
  5663. from you. Here is the general syntax to specify versions with the
  5664. :term:`RDEPENDS` variable::
  5665. RDEPENDS:${PN} = "package (operator version)"
  5666. For ``operator``, you can specify the following:
  5667. - =
  5668. - <
  5669. - >
  5670. - <=
  5671. - >=
  5672. For version, provide the version number.
  5673. .. note::
  5674. You can use :term:`EXTENDPKGV` to provide a full package version
  5675. specification.
  5676. For example, the following sets up a dependency on version 1.2 or
  5677. greater of the package ``foo``::
  5678. RDEPENDS:${PN} = "foo (>= 1.2)"
  5679. For information on build-time dependencies, see the :term:`DEPENDS`
  5680. variable. You can also see the
  5681. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:tasks`" and
  5682. ":ref:`bitbake-user-manual/bitbake-user-manual-execution:dependencies`" sections in the
  5683. BitBake User Manual for additional information on tasks and dependencies.
  5684. :term:`RECIPE_MAINTAINER`
  5685. This variable defines the name and e-mail address of the maintainer of a
  5686. recipe. Such information can be used by human users submitted changes,
  5687. and by automated tools to send notifications, for example about
  5688. vulnerabilities or source updates.
  5689. The variable can be defined in a global distribution :oe_git:`maintainers.inc
  5690. </openembedded-core/tree/meta/conf/distro/include/maintainers.inc>` file::
  5691. meta/conf/distro/include/maintainers.inc:RECIPE_MAINTAINER:pn-sysvinit = "Ross Burton <ross.burton@arm.com>"
  5692. It can also be directly defined in a recipe,
  5693. for example in the ``libgpiod`` one::
  5694. RECIPE_MAINTAINER = "Bartosz Golaszewski <brgl@bgdev.pl>"
  5695. :term:`RECIPE_NO_UPDATE_REASON`
  5696. If a recipe should not be replaced by a more recent upstream version,
  5697. putting the reason why in this variable in a recipe allows
  5698. ``devtool check-upgrade-status`` command to display it, as explained
  5699. in the ":ref:`ref-manual/devtool-reference:checking on the upgrade status of a recipe`"
  5700. section.
  5701. :term:`RECIPE_SYSROOT`
  5702. This variable points to the directory that holds all files populated from
  5703. recipes specified in :term:`DEPENDS`. As the name indicates,
  5704. think of this variable as a custom root (``/``) for the recipe that will be
  5705. used by the compiler in order to find headers and other files needed to complete
  5706. its job.
  5707. This variable is related to :term:`STAGING_DIR_HOST` or :term:`STAGING_DIR_TARGET`
  5708. according to the type of the recipe and the build target.
  5709. To better understand this variable, consider the following examples:
  5710. - For ``#include <header.h>``, ``header.h`` should be in ``"${RECIPE_SYSROOT}/usr/include"``
  5711. - For ``-lexample``, ``libexample.so`` should be in ``"${RECIPE_SYSROOT}/lib"``
  5712. or other library sysroot directories.
  5713. The default value is ``"${WORKDIR}/recipe-sysroot"``.
  5714. Do not modify it.
  5715. :term:`RECIPE_SYSROOT_NATIVE`
  5716. This is similar to :term:`RECIPE_SYSROOT` but the populated files are from
  5717. ``-native`` recipes. This allows a recipe built for the target machine to
  5718. use ``native`` tools.
  5719. This variable is related to :term:`STAGING_DIR_NATIVE`.
  5720. The default value is ``"${WORKDIR}/recipe-sysroot-native"``.
  5721. Do not modify it.
  5722. :term:`RECIPE_UPGRADE_EXTRA_TASKS`
  5723. When upgrading a recipe with ``devtool upgrade``, the variable
  5724. :term:`RECIPE_UPGRADE_EXTRA_TASKS` specifies a space-delimited list of
  5725. tasks to run after the new sources have been unpacked.
  5726. For some recipes, after the new source has been unpacked, additional tasks
  5727. may need to be run during an upgrade. A good example of this is recipes
  5728. which inherit :ref:`ref-classes-cargo-update-recipe-crates`, where the
  5729. `do_update_crates` task needs to be run whenever Cargo.toml/Cargo.lock have
  5730. changed in the source.
  5731. :term:`REPODIR`
  5732. See :term:`bitbake:REPODIR` in the BitBake manual.
  5733. :term:`REQUIRED_DISTRO_FEATURES`
  5734. When inheriting the :ref:`ref-classes-features_check`
  5735. class, this variable identifies distribution features that must exist
  5736. in the current configuration in order for the OpenEmbedded build
  5737. system to build the recipe. In other words, if the
  5738. :term:`REQUIRED_DISTRO_FEATURES` variable lists a feature that does not
  5739. appear in :term:`DISTRO_FEATURES` within the current configuration, then
  5740. the recipe will be skipped, and if the build system attempts to build
  5741. the recipe then an error will be triggered.
  5742. :term:`REQUIRED_VERSION`
  5743. If there are multiple versions of a recipe available, this variable
  5744. determines which version should be given preference.
  5745. :term:`REQUIRED_VERSION` works in exactly the same manner as
  5746. :term:`PREFERRED_VERSION`, except that if the specified version is not
  5747. available then an error message is shown and the build fails
  5748. immediately.
  5749. If both :term:`REQUIRED_VERSION` and :term:`PREFERRED_VERSION` are set
  5750. for the same recipe, the :term:`REQUIRED_VERSION` value applies.
  5751. :term:`RETAIN_DIRS_ALWAYS`
  5752. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  5753. space-separated recipe-specific directories to always save in a tarball
  5754. whether the recipe build has failed or not.
  5755. :term:`RETAIN_DIRS_FAILURE`
  5756. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  5757. space-separated recipe-specific directories to save in a tarball on
  5758. failure of the recipe's build.
  5759. :term:`RETAIN_DIRS_GLOBAL_ALWAYS`
  5760. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  5761. space-separated directories that are not specific to a recipe to save in a
  5762. tarball whether the build has failed or not.
  5763. :term:`RETAIN_DIRS_GLOBAL_FAILURE`
  5764. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  5765. space-separated directories that are not specific to a recipe to save in a
  5766. tarball on build failure.
  5767. :term:`RETAIN_ENABLED`
  5768. Disables the creation of a tarball of the work directory done by the
  5769. :ref:`ref-classes-retain` class. Can be set to specific recipes to disable
  5770. the class when the class was inherited globally with :term:`INHERIT`.
  5771. :term:`RETAIN_OUTDIR`
  5772. When inheriting the :ref:`ref-classes-retain` class, this variable
  5773. specifies the directory where to save the tarball of the work directory.
  5774. The default directory is ``${TMPDIR}/retain``.
  5775. :term:`RETAIN_TARBALL_SUFFIX`
  5776. When inheriting the :ref:`ref-classes-retain` class, this variable
  5777. specifies the suffix of the tarball of the work directory. The default
  5778. suffix is ``${DATETIME}.tar.gz``.
  5779. :term:`RM_WORK_EXCLUDE`
  5780. With :ref:`ref-classes-rm-work` enabled, this variable
  5781. specifies a list of recipes whose work directories should not be removed.
  5782. See the ":ref:`ref-classes-rm-work`" section for more details.
  5783. :term:`ROOT_HOME`
  5784. Defines the root home directory. By default, this directory is set as
  5785. follows in the BitBake configuration file::
  5786. ROOT_HOME ??= "/home/root"
  5787. .. note::
  5788. This default value is likely used because some embedded solutions
  5789. prefer to have a read-only root filesystem and prefer to keep
  5790. writeable data in one place.
  5791. You can override the default by setting the variable in any layer or
  5792. in the ``local.conf`` file. Because the default is set using a "weak"
  5793. assignment (i.e. "??="), you can use either of the following forms to
  5794. define your override::
  5795. ROOT_HOME = "/root"
  5796. ROOT_HOME ?= "/root"
  5797. These
  5798. override examples use ``/root``, which is probably the most commonly
  5799. used override.
  5800. :term:`ROOTFS`
  5801. Indicates a filesystem image to include as the root filesystem.
  5802. The :term:`ROOTFS` variable is an optional variable used with the
  5803. :ref:`ref-classes-image-live` class.
  5804. :term:`ROOTFS_POSTINSTALL_COMMAND`
  5805. Specifies a list of functions to call after the OpenEmbedded build
  5806. system has installed packages. You can specify functions separated by
  5807. spaces::
  5808. ROOTFS_POSTINSTALL_COMMAND += "function"
  5809. If you need to pass the root filesystem path to a command within a
  5810. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5811. directory that becomes the root filesystem image. See the
  5812. :term:`IMAGE_ROOTFS` variable for more
  5813. information.
  5814. :term:`ROOTFS_POSTPROCESS_COMMAND`
  5815. Specifies a list of functions to call once the OpenEmbedded build
  5816. system has created the root filesystem. You can specify functions
  5817. separated by spaces::
  5818. ROOTFS_POSTPROCESS_COMMAND += "function"
  5819. If you need to pass the root filesystem path to a command within a
  5820. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5821. directory that becomes the root filesystem image. See the
  5822. :term:`IMAGE_ROOTFS` variable for more
  5823. information.
  5824. :term:`ROOTFS_POSTUNINSTALL_COMMAND`
  5825. Specifies a list of functions to call after the OpenEmbedded build
  5826. system has removed unnecessary packages. When runtime package
  5827. management is disabled in the image, several packages are removed
  5828. including ``base-passwd``, ``shadow``, and ``update-alternatives``.
  5829. You can specify functions separated by spaces::
  5830. ROOTFS_POSTUNINSTALL_COMMAND += "function"
  5831. If you need to pass the root filesystem path to a command within a
  5832. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5833. directory that becomes the root filesystem image. See the
  5834. :term:`IMAGE_ROOTFS` variable for more
  5835. information.
  5836. :term:`ROOTFS_PREPROCESS_COMMAND`
  5837. Specifies a list of functions to call before the OpenEmbedded build
  5838. system has created the root filesystem. You can specify functions
  5839. separated by spaces::
  5840. ROOTFS_PREPROCESS_COMMAND += "function"
  5841. If you need to pass the root filesystem path to a command within a
  5842. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5843. directory that becomes the root filesystem image. See the
  5844. :term:`IMAGE_ROOTFS` variable for more
  5845. information.
  5846. :term:`RPMBUILD_EXTRA_PARAMS`
  5847. Specifies extra user-defined parameters for the ``rpmbuild`` command.
  5848. :term:`RPROVIDES`
  5849. A list of package name aliases that a package also provides. These
  5850. aliases are useful for satisfying runtime dependencies of other
  5851. packages both during the build and on the target (as specified by
  5852. :term:`RDEPENDS`).
  5853. .. note::
  5854. A package's own name is implicitly already in its :term:`RPROVIDES` list.
  5855. As with all package-controlling variables, you must always use the
  5856. variable in conjunction with a package name override. Here is an
  5857. example::
  5858. RPROVIDES:${PN} = "widget-abi-2"
  5859. :term:`RRECOMMENDS`
  5860. A list of packages that extends the usability of a package being
  5861. built. The package being built does not depend on this list of
  5862. packages in order to successfully build, but rather uses them for
  5863. extended usability. To specify runtime dependencies for packages, see
  5864. the :term:`RDEPENDS` variable.
  5865. The package manager will automatically install the :term:`RRECOMMENDS`
  5866. list of packages when installing the built package. However, you can
  5867. prevent listed packages from being installed by using the
  5868. :term:`BAD_RECOMMENDATIONS`,
  5869. :term:`NO_RECOMMENDATIONS`, and
  5870. :term:`PACKAGE_EXCLUDE` variables.
  5871. Packages specified in :term:`RRECOMMENDS` need not actually be produced.
  5872. However, there must be a recipe providing each package, either
  5873. through the :term:`PACKAGES` or
  5874. :term:`PACKAGES_DYNAMIC` variables or the
  5875. :term:`RPROVIDES` variable, or an error will occur
  5876. during the build. If such a recipe does exist and the package is not
  5877. produced, the build continues without error.
  5878. Because the :term:`RRECOMMENDS` variable applies to packages being built,
  5879. you should always attach an override to the variable to specify the
  5880. particular package whose usability is being extended. For example,
  5881. suppose you are building a development package that is extended to
  5882. support wireless functionality. In this case, you would use the
  5883. following::
  5884. RRECOMMENDS:${PN}-dev += "wireless_package_name"
  5885. In the
  5886. example, the package name (``${PN}-dev``) must appear as it would in
  5887. the :term:`PACKAGES` namespace before any renaming of the output package
  5888. by classes such as :ref:`ref-classes-debian`.
  5889. BitBake, which the OpenEmbedded build system uses, supports
  5890. specifying versioned recommends. Although the syntax varies depending
  5891. on the packaging format, BitBake hides these differences from you.
  5892. Here is the general syntax to specify versions with the
  5893. :term:`RRECOMMENDS` variable::
  5894. RRECOMMENDS:${PN} = "package (operator version)"
  5895. For ``operator``, you can specify the following:
  5896. - =
  5897. - <
  5898. - >
  5899. - <=
  5900. - >=
  5901. For example, the following sets up a recommend on version 1.2 or
  5902. greater of the package ``foo``::
  5903. RRECOMMENDS:${PN} = "foo (>= 1.2)"
  5904. :term:`RREPLACES`
  5905. A list of packages replaced by a package. The package manager uses
  5906. this variable to determine which package should be installed to
  5907. replace other package(s) during an upgrade. In order to also have the
  5908. other package(s) removed at the same time, you must add the name of
  5909. the other package to the :term:`RCONFLICTS` variable.
  5910. As with all package-controlling variables, you must use this variable
  5911. in conjunction with a package name override. Here is an example::
  5912. RREPLACES:${PN} = "other_package_being_replaced"
  5913. BitBake, which the OpenEmbedded build system uses, supports
  5914. specifying versioned replacements. Although the syntax varies
  5915. depending on the packaging format, BitBake hides these differences
  5916. from you. Here is the general syntax to specify versions with the
  5917. :term:`RREPLACES` variable::
  5918. RREPLACES:${PN} = "package (operator version)"
  5919. For ``operator``, you can specify the following:
  5920. - =
  5921. - <
  5922. - >
  5923. - <=
  5924. - >=
  5925. For example, the following sets up a replacement using version 1.2
  5926. or greater of the package ``foo``::
  5927. RREPLACES:${PN} = "foo (>= 1.2)"
  5928. :term:`RSUGGESTS`
  5929. A list of additional packages that you can suggest for installation
  5930. by the package manager at the time a package is installed. Not all
  5931. package managers support this functionality.
  5932. As with all package-controlling variables, you must always use this
  5933. variable in conjunction with a package name override. Here is an
  5934. example::
  5935. RSUGGESTS:${PN} = "useful_package another_package"
  5936. :term:`RUST_CHANNEL`
  5937. Specifies which version of Rust to build - "stable", "beta" or "nightly".
  5938. The default value is "stable". Set this at your own risk, as values other
  5939. than "stable" are not guaranteed to work at a given time.
  5940. :term:`S`
  5941. The location in the :term:`Build Directory` where
  5942. unpacked recipe source code resides. By default, this directory is
  5943. ``${``\ :term:`WORKDIR`\ ``}/${``\ :term:`BPN`\ ``}-${``\ :term:`PV`\ ``}``,
  5944. where ``${BPN}`` is the base recipe name and ``${PV}`` is the recipe
  5945. version. If the source tarball extracts the code to a directory named
  5946. anything other than ``${BPN}-${PV}``, or if the source code is
  5947. fetched from an SCM such as Git or Subversion, then you must set
  5948. :term:`S` in the recipe so that the OpenEmbedded build system knows where
  5949. to find the unpacked source.
  5950. As an example, assume a :term:`Source Directory`
  5951. top-level folder named ``poky`` and a default :term:`Build Directory` at
  5952. ``poky/build``. In this case, the work directory the build system
  5953. uses to keep the unpacked recipe for ``db`` is the following::
  5954. poky/build/tmp/work/qemux86-poky-linux/db/5.1.19-r3/db-5.1.19
  5955. The unpacked source code resides in the ``db-5.1.19`` folder.
  5956. This next example assumes a Git repository. By default, Git
  5957. repositories are cloned to ``${WORKDIR}/git`` during
  5958. :ref:`ref-tasks-fetch`. Since this path is different
  5959. from the default value of :term:`S`, you must set it specifically so the
  5960. source can be located::
  5961. SRC_URI = "git://path/to/repo.git;branch=main"
  5962. S = "${WORKDIR}/git"
  5963. :term:`SANITY_REQUIRED_UTILITIES`
  5964. Specifies a list of command-line utilities that should be checked for
  5965. during the initial sanity checking process when running BitBake. If
  5966. any of the utilities are not installed on the build host, then
  5967. BitBake immediately exits with an error.
  5968. :term:`SANITY_TESTED_DISTROS`
  5969. A list of the host distribution identifiers that the build system has
  5970. been tested against. Identifiers consist of the host distributor ID
  5971. followed by the release, as reported by the ``lsb_release`` tool or
  5972. as read from ``/etc/lsb-release``. Separate the list items with
  5973. explicit newline characters (``\n``). If :term:`SANITY_TESTED_DISTROS` is
  5974. not empty and the current value of
  5975. :term:`NATIVELSBSTRING` does not appear in the
  5976. list, then the build system reports a warning that indicates the
  5977. current host distribution has not been tested as a build host.
  5978. :term:`SDK_ARCH`
  5979. The target architecture for the SDK. Typically, you do not directly
  5980. set this variable. Instead, use :term:`SDKMACHINE`.
  5981. :term:`SDK_ARCHIVE_TYPE`
  5982. Specifies the type of archive to create for the SDK. Valid values:
  5983. - ``tar.xz`` (default)
  5984. - ``tar.zst``
  5985. - ``7zip``
  5986. - ``zip``
  5987. Only one archive type can be specified.
  5988. :term:`SDK_BUILDINFO_FILE`
  5989. When using the :ref:`ref-classes-image-buildinfo` class,
  5990. specifies the file in the SDK to write the build information into. The
  5991. default value is "``/buildinfo``".
  5992. :term:`SDK_CUSTOM_TEMPLATECONF`
  5993. When building the extensible SDK, if :term:`SDK_CUSTOM_TEMPLATECONF` is set to
  5994. "1" and a ``conf/templateconf.cfg`` file exists in the :term:`Build Directory`
  5995. (:term:`TOPDIR`) then this will be copied into the SDK.
  5996. :term:`SDK_DEPLOY`
  5997. The directory set up and used by the
  5998. :ref:`populate_sdk_base <ref-classes-populate-sdk>` class to which the
  5999. SDK is deployed. The :ref:`populate_sdk_base <ref-classes-populate-sdk>`
  6000. class defines :term:`SDK_DEPLOY` as follows::
  6001. SDK_DEPLOY = "${TMPDIR}/deploy/sdk"
  6002. :term:`SDK_DIR`
  6003. The parent directory used by the OpenEmbedded build system when
  6004. creating SDK output. The
  6005. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class defines
  6006. the variable as follows::
  6007. SDK_DIR = "${WORKDIR}/sdk"
  6008. .. note::
  6009. The :term:`SDK_DIR` directory is a temporary directory as it is part of
  6010. :term:`WORKDIR`. The final output directory is :term:`SDK_DEPLOY`.
  6011. :term:`SDK_EXT_TYPE`
  6012. Controls whether or not shared state artifacts are copied into the
  6013. extensible SDK. The default value of "full" copies all of the
  6014. required shared state artifacts into the extensible SDK. The value
  6015. "minimal" leaves these artifacts out of the SDK.
  6016. .. note::
  6017. If you set the variable to "minimal", you need to ensure
  6018. :term:`SSTATE_MIRRORS` is set in the SDK's configuration to enable the
  6019. artifacts to be fetched as needed.
  6020. :term:`SDK_HOST_MANIFEST`
  6021. The manifest file for the host part of the SDK. This file lists all
  6022. the installed packages that make up the host part of the SDK. The
  6023. file contains package information on a line-per-package basis as
  6024. follows::
  6025. packagename packagearch version
  6026. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  6027. defines the manifest file as follows::
  6028. SDK_HOST_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.host.manifest"
  6029. The location is derived using the :term:`SDK_DEPLOY` and
  6030. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  6031. :term:`SDK_INCLUDE_PKGDATA`
  6032. When set to "1", specifies to include the packagedata for all recipes
  6033. in the "world" target in the extensible SDK. Including this data
  6034. allows the ``devtool search`` command to find these recipes in search
  6035. results, as well as allows the ``devtool add`` command to map
  6036. dependencies more effectively.
  6037. .. note::
  6038. Enabling the :term:`SDK_INCLUDE_PKGDATA`
  6039. variable significantly increases build time because all of world
  6040. needs to be built. Enabling the variable also slightly increases
  6041. the size of the extensible SDK.
  6042. :term:`SDK_INCLUDE_TOOLCHAIN`
  6043. When set to "1", specifies to include the toolchain in the extensible
  6044. SDK. Including the toolchain is useful particularly when
  6045. :term:`SDK_EXT_TYPE` is set to "minimal" to keep
  6046. the SDK reasonably small but you still want to provide a usable
  6047. toolchain. For example, suppose you want to use the toolchain from an
  6048. IDE or from other tools and you do not want to perform additional
  6049. steps to install the toolchain.
  6050. The :term:`SDK_INCLUDE_TOOLCHAIN` variable defaults to "0" if
  6051. :term:`SDK_EXT_TYPE` is set to "minimal", and defaults to "1" if
  6052. :term:`SDK_EXT_TYPE` is set to "full".
  6053. :term:`SDK_NAME`
  6054. The base name for SDK output files. The default value (as set in
  6055. ``meta-poky/conf/distro/poky.conf``) is derived from the
  6056. :term:`DISTRO`,
  6057. :term:`TCLIBC`,
  6058. :term:`SDKMACHINE`,
  6059. :term:`IMAGE_BASENAME`,
  6060. :term:`TUNE_PKGARCH`, and
  6061. :term:`MACHINE` variables::
  6062. SDK_NAME = "${DISTRO}-${TCLIBC}-${SDKMACHINE}-${IMAGE_BASENAME}-${TUNE_PKGARCH}-${MACHINE}"
  6063. :term:`SDK_OS`
  6064. Specifies the operating system for which the SDK will be built. The
  6065. default value is the value of :term:`BUILD_OS`.
  6066. :term:`SDK_OUTPUT`
  6067. The location used by the OpenEmbedded build system when creating SDK
  6068. output. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>`
  6069. class defines the variable as follows::
  6070. SDK_DIR = "${WORKDIR}/sdk"
  6071. SDK_OUTPUT = "${SDK_DIR}/image"
  6072. SDK_DEPLOY = "${DEPLOY_DIR}/sdk"
  6073. .. note::
  6074. The :term:`SDK_OUTPUT` directory is a temporary directory as it is part of
  6075. :term:`WORKDIR` by way of :term:`SDK_DIR`. The final output directory is
  6076. :term:`SDK_DEPLOY`.
  6077. :term:`SDK_PACKAGE_ARCHS`
  6078. Specifies a list of architectures compatible with the SDK machine.
  6079. This variable is set automatically and should not normally be
  6080. hand-edited. Entries are separated using spaces and listed in order
  6081. of priority. The default value for :term:`SDK_PACKAGE_ARCHS` is "all any
  6082. noarch ${SDK_ARCH}-${SDKPKGSUFFIX}".
  6083. :term:`SDK_POSTPROCESS_COMMAND`
  6084. Specifies a list of functions to call once the OpenEmbedded build
  6085. system creates the SDK. You can specify functions separated by
  6086. spaces:
  6087. SDK_POSTPROCESS_COMMAND += "function"
  6088. If you need to pass an SDK path to a command within a function, you
  6089. can use ``${SDK_DIR}``, which points to the parent directory used by
  6090. the OpenEmbedded build system when creating SDK output. See the
  6091. :term:`SDK_DIR` variable for more information.
  6092. :term:`SDK_PREFIX`
  6093. The toolchain binary prefix used for
  6094. :ref:`ref-classes-nativesdk` recipes. The
  6095. OpenEmbedded build system uses the :term:`SDK_PREFIX` value to set the
  6096. :term:`TARGET_PREFIX` when building
  6097. ``nativesdk`` recipes. The default value is "${SDK_SYS}-".
  6098. :term:`SDK_RECRDEP_TASKS`
  6099. A list of shared state tasks added to the extensible SDK. By default,
  6100. the following tasks are added:
  6101. - :ref:`ref-tasks-populate_lic`
  6102. - :ref:`ref-tasks-package_qa`
  6103. - :ref:`ref-tasks-populate_sysroot`
  6104. - :ref:`ref-tasks-deploy`
  6105. Despite the default value of "" for the
  6106. :term:`SDK_RECRDEP_TASKS` variable, the above four tasks are always added
  6107. to the SDK. To specify tasks beyond these four, you need to use the
  6108. :term:`SDK_RECRDEP_TASKS` variable (e.g. you are defining additional
  6109. tasks that are needed in order to build
  6110. :term:`SDK_TARGETS`).
  6111. :term:`SDK_SYS`
  6112. Specifies the system, including the architecture and the operating
  6113. system, for which the SDK will be built.
  6114. The OpenEmbedded build system automatically sets this variable based
  6115. on :term:`SDK_ARCH`,
  6116. :term:`SDK_VENDOR`, and
  6117. :term:`SDK_OS`. You do not need to set the :term:`SDK_SYS`
  6118. variable yourself.
  6119. :term:`SDK_TARGET_MANIFEST`
  6120. The manifest file for the target part of the SDK. This file lists all
  6121. the installed packages that make up the target part of the SDK. The
  6122. file contains package information on a line-per-package basis as
  6123. follows::
  6124. packagename packagearch version
  6125. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  6126. defines the manifest file as follows::
  6127. SDK_TARGET_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.target.manifest"
  6128. The location is derived using the :term:`SDK_DEPLOY` and
  6129. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  6130. :term:`SDK_TARGETS`
  6131. A list of targets to install from shared state as part of the
  6132. standard or extensible SDK installation. The default value is "${PN}"
  6133. (i.e. the image from which the SDK is built).
  6134. The :term:`SDK_TARGETS` variable is an internal variable and typically
  6135. would not be changed.
  6136. :term:`SDK_TITLE`
  6137. The title to be printed when running the SDK installer. By default,
  6138. this title is based on the :term:`DISTRO_NAME` or
  6139. :term:`DISTRO` variable and is set in the
  6140. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  6141. follows::
  6142. SDK_TITLE ??= "${@d.getVar('DISTRO_NAME') or d.getVar('DISTRO')} SDK"
  6143. For the default distribution "poky",
  6144. :term:`SDK_TITLE` is set to "Poky (Yocto Project Reference Distro)".
  6145. For information on how to change this default title, see the
  6146. ":ref:`sdk-manual/appendix-customizing:changing the extensible sdk installer title`"
  6147. section in the Yocto Project Application Development and the
  6148. Extensible Software Development Kit (eSDK) manual.
  6149. :term:`SDK_TOOLCHAIN_LANGS`
  6150. Specifies programming languages to support in the SDK, as a
  6151. space-separated list. Currently supported items are ``rust`` and ``go``.
  6152. :term:`SDK_UPDATE_URL`
  6153. An optional URL for an update server for the extensible SDK. If set,
  6154. the value is used as the default update server when running
  6155. ``devtool sdk-update`` within the extensible SDK.
  6156. :term:`SDK_VENDOR`
  6157. Specifies the name of the SDK vendor.
  6158. :term:`SDK_VERSION`
  6159. Specifies the version of the SDK. The Poky distribution configuration file
  6160. (``/meta-poky/conf/distro/poky.conf``) sets the default
  6161. :term:`SDK_VERSION` as follows::
  6162. SDK_VERSION = "${@d.getVar('DISTRO_VERSION').replace('snapshot-${METADATA_REVISION}', 'snapshot')}"
  6163. For additional information, see the
  6164. :term:`DISTRO_VERSION` and
  6165. :term:`METADATA_REVISION` variables.
  6166. :term:`SDK_ZIP_OPTIONS`
  6167. Specifies extra options to pass to the ``zip`` command when zipping the SDK
  6168. (i.e. when :term:`SDK_ARCHIVE_TYPE` is set to "zip"). The default value is
  6169. "-y".
  6170. :term:`SDKEXTPATH`
  6171. The default installation directory for the Extensible SDK. By
  6172. default, this directory is based on the :term:`DISTRO`
  6173. variable and is set in the
  6174. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  6175. follows::
  6176. SDKEXTPATH ??= "~/${@d.getVar('DISTRO')}_sdk"
  6177. For the
  6178. default distribution "poky", the :term:`SDKEXTPATH` is set to "poky_sdk".
  6179. For information on how to change this default directory, see the
  6180. ":ref:`sdk-manual/appendix-customizing:changing the default sdk installation directory`"
  6181. section in the Yocto Project Application Development and the
  6182. Extensible Software Development Kit (eSDK) manual.
  6183. :term:`SDKIMAGE_FEATURES`
  6184. Equivalent to :term:`IMAGE_FEATURES`. However, this variable applies to
  6185. the SDK generated from an image using the following command::
  6186. $ bitbake -c populate_sdk imagename
  6187. :term:`SDKMACHINE`
  6188. The machine for which the SDK is built. In other words, the SDK is built
  6189. such that it runs on the target you specify with the :term:`SDKMACHINE`
  6190. value. The value points to a corresponding ``.conf`` file under
  6191. ``conf/machine-sdk/`` in the enabled layers, for example ``aarch64``,
  6192. ``i586``, ``i686``, ``ppc64``, ``ppc64le``, and ``x86_64`` are
  6193. :oe_git:`available in OpenEmbedded-Core </openembedded-core/tree/meta/conf/machine-sdk>`.
  6194. The variable defaults to :term:`BUILD_ARCH` so that SDKs are built for the
  6195. architecture of the build machine.
  6196. .. note::
  6197. You cannot set the :term:`SDKMACHINE`
  6198. variable in your distribution configuration file. If you do, the
  6199. configuration will not take effect.
  6200. :term:`SDKPATH`
  6201. Defines the path used to collect the SDK components and build the
  6202. installer.
  6203. :term:`SDKPATHINSTALL`
  6204. Defines the path offered to the user for installation of the SDK that
  6205. is generated by the OpenEmbedded build system. The path appears as
  6206. the default location for installing the SDK when you run the SDK's
  6207. installation script. You can override the offered path when you run
  6208. the script.
  6209. :term:`SDKTARGETSYSROOT`
  6210. The full path to the sysroot used for cross-compilation within an SDK
  6211. as it will be when installed into the default
  6212. :term:`SDKPATHINSTALL`.
  6213. :term:`SECTION`
  6214. The section in which packages should be categorized. Package
  6215. management utilities can make use of this variable.
  6216. :term:`SELECTED_OPTIMIZATION`
  6217. Specifies the optimization flags passed to the C compiler when
  6218. building for the target. The flags are passed through the default
  6219. value of the :term:`TARGET_CFLAGS` variable.
  6220. The :term:`SELECTED_OPTIMIZATION` variable takes the value of
  6221. :term:`FULL_OPTIMIZATION` unless :term:`DEBUG_BUILD` = "1", in which
  6222. case the value of :term:`DEBUG_OPTIMIZATION` is used.
  6223. :term:`SERIAL_CONSOLES`
  6224. Defines a serial console (TTY) to enable using
  6225. :wikipedia:`getty <Getty_(Unix)>`. Provide a value that specifies the
  6226. baud rate followed by the TTY device name separated by a semicolon.
  6227. Use spaces to separate multiple devices::
  6228. SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1"
  6229. :term:`SETUPTOOLS_BUILD_ARGS`
  6230. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  6231. class, this variable can be used to specify additional arguments to be
  6232. passed to ``setup.py build`` in the ``setuptools3_do_compile()`` task.
  6233. :term:`SETUPTOOLS_SETUP_PATH`
  6234. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  6235. class, this variable should be used to specify the directory in which
  6236. the ``setup.py`` file is located if it is not at the root of the source
  6237. tree (as specified by :term:`S`). For example, in a recipe where the
  6238. sources are fetched from a Git repository and ``setup.py`` is in a
  6239. ``python/pythonmodule`` subdirectory, you would have this::
  6240. S = "${WORKDIR}/git"
  6241. SETUPTOOLS_SETUP_PATH = "${S}/python/pythonmodule"
  6242. :term:`SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS`
  6243. A list of recipe dependencies that should not be used to determine
  6244. signatures of tasks from one recipe when they depend on tasks from
  6245. another recipe. For example::
  6246. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "intone->mplayer2"
  6247. In the previous example, ``intone`` depends on ``mplayer2``.
  6248. You can use the special token ``"*"`` on the left-hand side of the
  6249. dependency to match all recipes except the one on the right-hand
  6250. side. Here is an example::
  6251. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "*->quilt-native"
  6252. In the previous example, all recipes except ``quilt-native`` ignore
  6253. task signatures from the ``quilt-native`` recipe when determining
  6254. their task signatures.
  6255. Use of this variable is one mechanism to remove dependencies that
  6256. affect task signatures and thus force rebuilds when a recipe changes.
  6257. .. note::
  6258. If you add an inappropriate dependency for a recipe relationship,
  6259. the software might break during runtime if the interface of the
  6260. second recipe was changed after the first recipe had been built.
  6261. :term:`SIGGEN_EXCLUDERECIPES_ABISAFE`
  6262. A list of recipes that are completely stable and will never change.
  6263. The ABI for the recipes in the list are presented by output from the
  6264. tasks run to build the recipe. Use of this variable is one way to
  6265. remove dependencies from one recipe on another that affect task
  6266. signatures and thus force rebuilds when the recipe changes.
  6267. .. note::
  6268. If you add an inappropriate variable to this list, the software
  6269. might break at runtime if the interface of the recipe was changed
  6270. after the other had been built.
  6271. :term:`SIGGEN_LOCKEDSIGS`
  6272. The list of locked tasks, with the form::
  6273. SIGGEN_LOCKEDSIGS += "<package>:<task>:<signature>"
  6274. If ``<signature>`` exists for the specified ``<task>`` and ``<package>``
  6275. in the sstate cache, BitBake will use the cached output instead of
  6276. rebuilding the ``<task>``. If it does not exist, BitBake will build the
  6277. ``<task>`` and the sstate cache will be used next time.
  6278. Example::
  6279. SIGGEN_LOCKEDSIGS += "bc:do_compile:09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0"
  6280. You can obtain the signature of all the tasks for the recipe ``bc`` using::
  6281. bitbake -S none bc
  6282. Then you can look at files in ``build/tmp/stamps/<arch>/bc`` and look for
  6283. files like: ``<PV>.do_compile.sigdata.09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0``.
  6284. Alternatively, you can also use :doc:`bblock </dev-manual/bblock>` to
  6285. generate this line for you.
  6286. :term:`SIGGEN_LOCKEDSIGS_TASKSIG_CHECK`
  6287. Specifies the debug level of task signature check. 3 levels are supported:
  6288. * ``info``: displays a "Note" message to remind the user that a task is locked
  6289. and the current signature matches the locked one.
  6290. * ``warn``: displays a "Warning" message if a task is locked and the current
  6291. signature does not match the locked one.
  6292. * ``error``: same as warn but displays an "Error" message and aborts.
  6293. :term:`SIGGEN_LOCKEDSIGS_TYPES`
  6294. Allowed overrides for :term:`SIGGEN_LOCKEDSIGS`. This is mainly used
  6295. for architecture specific locks. A common value for
  6296. :term:`SIGGEN_LOCKEDSIGS_TYPES` is ``${PACKAGE_ARCHS}``::
  6297. SIGGEN_LOCKEDSIGS_TYPES += "${PACKAGE_ARCHS}"
  6298. SIGGEN_LOCKEDSIGS_core2-64 += "bc:do_compile:09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0"
  6299. SIGGEN_LOCKEDSIGS_cortexa57 += "bc:do_compile:12178eb6d55ef602a8fe638e49862fd247e07b228f0f08967697b655bfe4bb61"
  6300. Here, the ``do_compile`` task from ``bc`` will be locked only for
  6301. ``core2-64`` and ``cortexa57`` but not for other architectures such as
  6302. ``mips32r2``.
  6303. :term:`SITEINFO_BITS`
  6304. Specifies the number of bits for the target system CPU. The value
  6305. should be either "32" or "64".
  6306. :term:`SITEINFO_ENDIANNESS`
  6307. Specifies the endian byte order of the target system. The value
  6308. should be either "le" for little-endian or "be" for big-endian.
  6309. :term:`SKIP_FILEDEPS`
  6310. Enables removal of all files from the "Provides" section of an RPM
  6311. package. Removal of these files is required for packages containing
  6312. prebuilt binaries and libraries such as ``libstdc++`` and ``glibc``.
  6313. To enable file removal, set the variable to "1" in your
  6314. ``conf/local.conf`` configuration file in your:
  6315. :term:`Build Directory`::
  6316. SKIP_FILEDEPS = "1"
  6317. :term:`SKIP_RECIPE`
  6318. Used to prevent the OpenEmbedded build system from building a given
  6319. recipe. Specify the :term:`PN` value as a variable flag (``varflag``)
  6320. and provide a reason, which will be reported when attempting to
  6321. build the recipe.
  6322. To prevent a recipe from being built, use the :term:`SKIP_RECIPE`
  6323. variable in your ``local.conf`` file or distribution configuration.
  6324. Here is an example which prevents ``myrecipe`` from being built::
  6325. SKIP_RECIPE[myrecipe] = "Not supported by our organization."
  6326. :term:`SOC_FAMILY`
  6327. A colon-separated list grouping together machines based upon the same
  6328. family of SoC (System On Chip). You typically set this variable in a
  6329. common ``.inc`` file that you include in the configuration files of all
  6330. the machines.
  6331. .. note::
  6332. You must include ``conf/machine/include/soc-family.inc`` for this
  6333. variable to appear in :term:`MACHINEOVERRIDES`.
  6334. :term:`SOLIBS`
  6335. Defines the suffix for shared libraries used on the target platform.
  6336. By default, this suffix is ".so.*" for all Linux-based systems and is
  6337. defined in the ``meta/conf/bitbake.conf`` configuration file.
  6338. You will see this variable referenced in the default values of
  6339. ``FILES:${PN}``.
  6340. :term:`SOLIBSDEV`
  6341. Defines the suffix for the development symbolic link (symlink) for
  6342. shared libraries on the target platform. By default, this suffix is
  6343. ".so" for Linux-based systems and is defined in the
  6344. ``meta/conf/bitbake.conf`` configuration file.
  6345. You will see this variable referenced in the default values of
  6346. ``FILES:${PN}-dev``.
  6347. :term:`SOURCE_DATE_EPOCH`
  6348. This defines a date expressed in number of seconds since
  6349. the UNIX EPOCH (01 Jan 1970 00:00:00 UTC), which is used by
  6350. multiple build systems to force a timestamp in built binaries.
  6351. Many upstream projects already support this variable.
  6352. You will find more details in the `official specifications
  6353. <https://reproducible-builds.org/specs/source-date-epoch/>`__.
  6354. A value for each recipe is computed from the sources by
  6355. :oe_git:`meta/lib/oe/reproducible.py </openembedded-core/tree/meta/lib/oe/reproducible.py>`.
  6356. If a recipe wishes to override the default behavior, it should set its
  6357. own :term:`SOURCE_DATE_EPOCH` value::
  6358. SOURCE_DATE_EPOCH = "1613559011"
  6359. :term:`SOURCE_MIRROR_FETCH`
  6360. When you are fetching files to create a mirror of sources (i.e.
  6361. creating a source mirror), setting :term:`SOURCE_MIRROR_FETCH` to "1" in
  6362. your ``local.conf`` configuration file ensures the source for all
  6363. recipes are fetched regardless of whether or not a recipe is
  6364. compatible with the configuration. A recipe is considered
  6365. incompatible with the currently configured machine when either or
  6366. both the :term:`COMPATIBLE_MACHINE`
  6367. variable and :term:`COMPATIBLE_HOST` variables
  6368. specify compatibility with a machine other than that of the current
  6369. machine or host.
  6370. .. note::
  6371. Do not set the :term:`SOURCE_MIRROR_FETCH`
  6372. variable unless you are creating a source mirror. In other words,
  6373. do not set the variable during a normal build.
  6374. :term:`SOURCE_MIRROR_URL`
  6375. Defines your own :term:`PREMIRRORS` from which to
  6376. first fetch source before attempting to fetch from the upstream
  6377. specified in :term:`SRC_URI`.
  6378. To use this variable, you must globally inherit the
  6379. :ref:`ref-classes-own-mirrors` class and then provide
  6380. the URL to your mirrors. Here is the general syntax::
  6381. INHERIT += "own-mirrors"
  6382. SOURCE_MIRROR_URL = "http://example.com/my_source_mirror"
  6383. .. note::
  6384. You can specify only a single URL in :term:`SOURCE_MIRROR_URL`.
  6385. .. note::
  6386. If the mirror is protected behind a username and password, the
  6387. :term:`build host` needs to be configured so the :term:`build system
  6388. <OpenEmbedded Build System>` is able to fetch from the mirror.
  6389. The recommended way to do that is by setting the following parameters
  6390. in ``$HOME/.netrc`` (``$HOME`` being the :term:`build host` home
  6391. directory)::
  6392. machine example.com
  6393. login <user>
  6394. password <password>
  6395. This file requires permissions set to ``400`` or ``600`` to prevent
  6396. other users from reading the file::
  6397. chmod 600 "$HOME/.netrc"
  6398. Another method to configure the username and password is from the URL
  6399. in :term:`SOURCE_MIRROR_URL` directly, with the ``user`` and ``pswd``
  6400. parameters::
  6401. SOURCE_MIRROR_URL = "http://example.com/my_source_mirror;user=<user>;pswd=<password>"
  6402. :term:`SPDX_ARCHIVE_PACKAGED`
  6403. This option allows to add to :term:`SPDX` output compressed archives
  6404. of the files in the generated target packages.
  6405. Such archives are available in
  6406. ``tmp/deploy/spdx/MACHINE/packages/packagename.tar.zst``
  6407. under the :term:`Build Directory`.
  6408. Enable this option as follows::
  6409. SPDX_ARCHIVE_PACKAGED = "1"
  6410. According to our tests on release 4.1 "langdale", building
  6411. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling this
  6412. option multiplied the size of the ``tmp/deploy/spdx`` directory by a
  6413. factor of 13 (+1.6 GiB for this image), compared to just using the
  6414. :ref:`ref-classes-create-spdx` class with no option.
  6415. Note that this option doesn't increase the size of :term:`SPDX`
  6416. files in ``tmp/deploy/images/MACHINE``.
  6417. :term:`SPDX_ARCHIVE_SOURCES`
  6418. This option allows to add to :term:`SPDX` output compressed archives
  6419. of the sources for packages installed on the target. It currently
  6420. only works when :term:`SPDX_INCLUDE_SOURCES` is set.
  6421. This is one way of fulfilling "source code access" license
  6422. requirements.
  6423. Such source archives are available in
  6424. ``tmp/deploy/spdx/MACHINE/recipes/recipe-packagename.tar.zst``
  6425. under the :term:`Build Directory`.
  6426. Enable this option as follows::
  6427. SPDX_INCLUDE_SOURCES = "1"
  6428. SPDX_ARCHIVE_SOURCES = "1"
  6429. According to our tests on release 4.1 "langdale", building
  6430. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling
  6431. these options multiplied the size of the ``tmp/deploy/spdx``
  6432. directory by a factor of 11 (+1.4 GiB for this image),
  6433. compared to just using the :ref:`ref-classes-create-spdx`
  6434. class with no option.
  6435. Note that using this option only marginally increases the size
  6436. of the :term:`SPDX` output in ``tmp/deploy/images/MACHINE/``
  6437. (+ 0.07\% with the tested image), compared to just enabling
  6438. :term:`SPDX_INCLUDE_SOURCES`.
  6439. :term:`SPDX_CUSTOM_ANNOTATION_VARS`
  6440. This option allows to associate `SPDX annotations
  6441. <https://spdx.github.io/spdx-spec/v2.3/annotations/>`__ to a recipe,
  6442. using the values of variables in the recipe::
  6443. ANNOTATION1 = "First annotation for recipe"
  6444. ANNOTATION2 = "Second annotation for recipe"
  6445. SPDX_CUSTOM_ANNOTATION_VARS = "ANNOTATION1 ANNOTATION2"
  6446. This will add a new block to the recipe ``.sdpx.json`` output::
  6447. "annotations": [
  6448. {
  6449. "annotationDate": "2023-04-18T08:32:12Z",
  6450. "annotationType": "OTHER",
  6451. "annotator": "Tool: oe-spdx-creator - 1.0",
  6452. "comment": "ANNOTATION1=First annotation for recipe"
  6453. },
  6454. {
  6455. "annotationDate": "2023-04-18T08:32:12Z",
  6456. "annotationType": "OTHER",
  6457. "annotator": "Tool: oe-spdx-creator - 1.0",
  6458. "comment": "ANNOTATION2=Second annotation for recipe"
  6459. }
  6460. ],
  6461. :term:`SPDX_INCLUDE_SOURCES`
  6462. This option allows to add a description of the source files used to build
  6463. the host tools and the target packages, to the ``spdx.json`` files in
  6464. ``tmp/deploy/spdx/MACHINE/recipes/`` under the :term:`Build Directory`.
  6465. As a consequence, the ``spdx.json`` files under the ``by-namespace`` and
  6466. ``packages`` subdirectories in ``tmp/deploy/spdx/MACHINE`` are also
  6467. modified to include references to such source file descriptions.
  6468. Enable this option as follows::
  6469. SPDX_INCLUDE_SOURCES = "1"
  6470. According to our tests on release 4.1 "langdale", building
  6471. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling
  6472. this option multiplied the total size of the ``tmp/deploy/spdx``
  6473. directory by a factor of 3 (+291 MiB for this image),
  6474. and the size of the ``IMAGE-MACHINE.spdx.tar.zst`` in
  6475. ``tmp/deploy/images/MACHINE`` by a factor of 130 (+15 MiB for this
  6476. image), compared to just using the :ref:`ref-classes-create-spdx` class
  6477. with no option.
  6478. :term:`SPDX_NAMESPACE_PREFIX`
  6479. This option could be used in order to change the prefix of ``spdxDocument``
  6480. and the prefix of ``documentNamespace``. It is set by default to
  6481. ``http://spdx.org/spdxdoc``.
  6482. :term:`SPDX_PRETTY`
  6483. This option makes the SPDX output more human-readable, using
  6484. identation and newlines, instead of the default output in a
  6485. single line::
  6486. SPDX_PRETTY = "1"
  6487. The generated SPDX files are approximately 20% bigger, but
  6488. this option is recommended if you want to inspect the SPDX
  6489. output files with a text editor.
  6490. :term:`SPDXLICENSEMAP`
  6491. Maps commonly used license names to their SPDX counterparts found in
  6492. ``meta/files/common-licenses/``. For the default :term:`SPDXLICENSEMAP`
  6493. mappings, see the ``meta/conf/licenses.conf`` file.
  6494. For additional information, see the :term:`LICENSE`
  6495. variable.
  6496. :term:`SPECIAL_PKGSUFFIX`
  6497. A list of prefixes for :term:`PN` used by the OpenEmbedded
  6498. build system to create variants of recipes or packages. The list
  6499. specifies the prefixes to strip off during certain circumstances such
  6500. as the generation of the :term:`BPN` variable.
  6501. :term:`SPL_BINARY`
  6502. The file type for the Secondary Program Loader (SPL). Some devices
  6503. use an SPL from which to boot (e.g. the BeagleBone development
  6504. board). For such cases, you can declare the file type of the SPL
  6505. binary in the ``u-boot.inc`` include file, which is used in the
  6506. U-Boot recipe.
  6507. The SPL file type is set to "null" by default in the ``u-boot.inc``
  6508. file as follows::
  6509. # Some versions of u-boot build an SPL (Second Program Loader) image that
  6510. # should be packaged along with the u-boot binary as well as placed in the
  6511. # deploy directory. For those versions they can set the following variables
  6512. # to allow packaging the SPL.
  6513. SPL_BINARY ?= ""
  6514. SPL_BINARYNAME ?= "${@os.path.basename(d.getVar("SPL_BINARY"))}"
  6515. SPL_IMAGE ?= "${SPL_BINARYNAME}-${MACHINE}-${PV}-${PR}"
  6516. SPL_SYMLINK ?= "${SPL_BINARYNAME}-${MACHINE}"
  6517. The :term:`SPL_BINARY` variable helps form
  6518. various ``SPL_*`` variables used by the OpenEmbedded build system.
  6519. See the BeagleBone machine configuration example in the
  6520. ":ref:`dev-manual/layers:adding a layer using the \`\`bitbake-layers\`\` script`"
  6521. section in the Yocto Project Board Support Package Developer's Guide
  6522. for additional information.
  6523. :term:`SPL_MKIMAGE_DTCOPTS`
  6524. Options for the device tree compiler passed to ``mkimage -D`` feature
  6525. while creating a FIT image with the :ref:`ref-classes-uboot-sign`
  6526. class. If :term:`SPL_MKIMAGE_DTCOPTS` is not set then the
  6527. :ref:`ref-classes-uboot-sign` class will not pass the ``-D`` option
  6528. to ``mkimage``.
  6529. The default value is set to "" by the :ref:`ref-classes-uboot-config`
  6530. class.
  6531. :term:`SPL_SIGN_ENABLE`
  6532. Enable signing of the U-Boot FIT image. The default value is "0".
  6533. This variable is used by the :ref:`ref-classes-uboot-sign` class.
  6534. :term:`SPL_SIGN_KEYDIR`
  6535. Location of the directory containing the RSA key and certificate used for
  6536. signing the U-Boot FIT image, used by the :ref:`ref-classes-uboot-sign`
  6537. class.
  6538. :term:`SPL_SIGN_KEYNAME`
  6539. The name of keys used by the :ref:`ref-classes-kernel-fitimage` class
  6540. for signing U-Boot FIT image stored in the :term:`SPL_SIGN_KEYDIR`
  6541. directory. If we have for example a ``dev.key`` key and a ``dev.crt``
  6542. certificate stored in the :term:`SPL_SIGN_KEYDIR` directory, you will
  6543. have to set :term:`SPL_SIGN_KEYNAME` to ``dev``.
  6544. :term:`SPLASH`
  6545. This variable, used by the :ref:`ref-classes-image` class, allows
  6546. to choose splashscreen applications. Set it to the names of packages
  6547. for such applications to use. This variable is set by default to
  6548. ``psplash``.
  6549. :term:`SPLASH_IMAGES`
  6550. This variable, used by the ``psplash`` recipe, allows to customize
  6551. the default splashscreen image.
  6552. Specified images in PNG format are converted to ``.h`` files by the recipe,
  6553. and are included in the ``psplash`` binary, so you won't find them in
  6554. the root filesystem.
  6555. To make such a change, it is recommended to customize the
  6556. ``psplash`` recipe in a custom layer. Here is an example structure for
  6557. an ``ACME`` board::
  6558. meta-acme/recipes-core/psplash
  6559. ├── files
  6560. │   └── logo-acme.png
  6561. └── psplash_%.bbappend
  6562. And here are the contents of the ``psplash_%.bbappend`` file in
  6563. this example::
  6564. SPLASH_IMAGES = "file://logo-acme.png;outsuffix=default"
  6565. FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  6566. You could even add specific configuration options for ``psplash``,
  6567. for example::
  6568. EXTRA_OECONF += "--disable-startup-msg --enable-img-fullscreen"
  6569. For information on append files, see the
  6570. ":ref:`dev-manual/layers:appending other layers metadata with your layer`"
  6571. section.
  6572. :term:`SRCREV_FORMAT`
  6573. See :term:`bitbake:SRCREV_FORMAT` in the BitBake manual.
  6574. :term:`SRC_URI`
  6575. See the BitBake manual for the initial description for this variable:
  6576. :term:`bitbake:SRC_URI`.
  6577. The following features are added by OpenEmbedded and the Yocto Project.
  6578. There are standard and recipe-specific options. Here are standard ones:
  6579. - ``apply`` --- whether to apply the patch or not. The default
  6580. action is to apply the patch.
  6581. - ``striplevel`` --- which striplevel to use when applying the
  6582. patch. The default level is 1.
  6583. - ``patchdir`` --- specifies the directory in which the patch should
  6584. be applied. The default is ``${``\ :term:`S`\ ``}``.
  6585. Here are options specific to recipes building code from a revision
  6586. control system:
  6587. - ``mindate`` --- apply the patch only if
  6588. :term:`SRCDATE` is equal to or greater than
  6589. ``mindate``.
  6590. - ``maxdate`` --- apply the patch only if :term:`SRCDATE` is not later
  6591. than ``maxdate``.
  6592. - ``minrev`` --- apply the patch only if :term:`SRCREV` is equal to or
  6593. greater than ``minrev``.
  6594. - ``maxrev`` --- apply the patch only if :term:`SRCREV` is not later
  6595. than ``maxrev``.
  6596. - ``rev`` --- apply the patch only if :term:`SRCREV` is equal to
  6597. ``rev``.
  6598. - ``notrev`` --- apply the patch only if :term:`SRCREV` is not equal to
  6599. ``rev``.
  6600. .. note::
  6601. If you want the build system to pick up files specified through
  6602. a :term:`SRC_URI` statement from your append file, you need to be
  6603. sure to extend the :term:`FILESPATH` variable by also using the
  6604. :term:`FILESEXTRAPATHS` variable from within your append file.
  6605. :term:`SRC_URI_OVERRIDES_PACKAGE_ARCH`
  6606. By default, the OpenEmbedded build system automatically detects
  6607. whether :term:`SRC_URI` contains files that are machine-specific. If so,
  6608. the build system automatically changes :term:`PACKAGE_ARCH`. Setting this
  6609. variable to "0" disables this behavior.
  6610. :term:`SRCDATE`
  6611. The date of the source code used to build the package. This variable
  6612. applies only if the source was fetched from a Source Code Manager
  6613. (SCM).
  6614. :term:`SRCPV`
  6615. The variable :term:`SRCPV` is deprecated. It was previously used to
  6616. include source control information in :term:`PV` for :term:`bitbake` to
  6617. work correctly but this is no longer a requirement. Source control
  6618. information will be automatically included by :term:`bitbake` in the
  6619. variable :term:`PKGV` during packaging if the ``+`` sign is present in
  6620. :term:`PV`.
  6621. .. note::
  6622. The :term:`SRCPV` variable used to be defined in the
  6623. ``meta/conf/bitbake.conf`` configuration file in the :term:`Source
  6624. Directory` as follows::
  6625. SRCPV = "${@bb.fetch2.get_srcrev(d)}"
  6626. The ``get_srcrev`` function can still be used to include source control
  6627. information in variables manually.
  6628. :term:`SRCREV`
  6629. The revision of the source code used to build the package. This
  6630. variable applies to Subversion, Git, Mercurial, and Bazaar only. Note
  6631. that if you want to build a fixed revision and you want to avoid
  6632. performing a query on the remote repository every time BitBake parses
  6633. your recipe, you should specify a :term:`SRCREV` that is a full revision
  6634. identifier (e.g. the full SHA hash in git) and not just a tag.
  6635. .. note::
  6636. For information on limitations when inheriting the latest revision
  6637. of software using :term:`SRCREV`, see the :term:`AUTOREV` variable
  6638. description and the
  6639. ":ref:`dev-manual/packages:automatically incrementing a package version number`"
  6640. section, which is in the Yocto Project Development Tasks Manual.
  6641. :term:`SRCTREECOVEREDTASKS`
  6642. A list of tasks that are typically not relevant (and therefore skipped)
  6643. when building using the :ref:`ref-classes-externalsrc`
  6644. class. The default value as set in that class file is the set of tasks
  6645. that are rarely needed when using external source::
  6646. SRCTREECOVEREDTASKS ?= "do_patch do_unpack do_fetch"
  6647. The notable exception is when processing external kernel source as
  6648. defined in the :ref:`ref-classes-kernel-yocto` class file (formatted for
  6649. aesthetics)::
  6650. SRCTREECOVEREDTASKS += "\
  6651. do_validate_branches \
  6652. do_kernel_configcheck \
  6653. do_kernel_checkout \
  6654. do_fetch \
  6655. do_unpack \
  6656. do_patch \
  6657. "
  6658. See the associated :term:`EXTERNALSRC` and :term:`EXTERNALSRC_BUILD`
  6659. variables for more information.
  6660. :term:`SSTATE_DIR`
  6661. The directory for the shared state cache.
  6662. :term:`SSTATE_EXCLUDEDEPS_SYSROOT`
  6663. This variable allows to specify indirect dependencies to exclude
  6664. from sysroots, for example to avoid the situations when a dependency on
  6665. any ``-native`` recipe will pull in all dependencies of that recipe
  6666. in the recipe sysroot. This behaviour might not always be wanted,
  6667. for example when that ``-native`` recipe depends on build tools
  6668. that are not relevant for the current recipe.
  6669. This way, irrelevant dependencies are ignored, which could have
  6670. prevented the reuse of prebuilt artifacts stored in the Shared
  6671. State Cache.
  6672. :term:`SSTATE_EXCLUDEDEPS_SYSROOT` is evaluated as two regular
  6673. expressions of recipe and dependency to ignore. An example
  6674. is the rule in :oe_git:`meta/conf/layer.conf </openembedded-core/tree/meta/conf/layer.conf>`::
  6675. # Nothing needs to depend on libc-initial
  6676. # base-passwd/shadow-sysroot don't need their dependencies
  6677. SSTATE_EXCLUDEDEPS_SYSROOT += "\
  6678. .*->.*-initial.* \
  6679. .*(base-passwd|shadow-sysroot)->.* \
  6680. "
  6681. The ``->`` substring represents the dependency between
  6682. the two regular expressions.
  6683. :term:`SSTATE_MIRROR_ALLOW_NETWORK`
  6684. If set to "1", allows fetches from mirrors that are specified in
  6685. :term:`SSTATE_MIRRORS` to work even when
  6686. fetching from the network is disabled by setting :term:`BB_NO_NETWORK` to
  6687. "1". Using the :term:`SSTATE_MIRROR_ALLOW_NETWORK` variable is useful if
  6688. you have set :term:`SSTATE_MIRRORS` to point to an internal server for
  6689. your shared state cache, but you want to disable any other fetching
  6690. from the network.
  6691. :term:`SSTATE_MIRRORS`
  6692. Configures the OpenEmbedded build system to search other mirror
  6693. locations for prebuilt cache data objects before building out the
  6694. data. This variable works like fetcher :term:`MIRRORS`
  6695. and :term:`PREMIRRORS` and points to the cache
  6696. locations to check for the shared state (sstate) objects.
  6697. You can specify a filesystem directory or a remote URL such as HTTP
  6698. or FTP. The locations you specify need to contain the shared state
  6699. cache (sstate-cache) results from previous builds. The sstate-cache
  6700. you point to can also be from builds on other machines.
  6701. When pointing to sstate build artifacts on another machine that uses
  6702. a different GCC version for native builds, you must configure
  6703. :term:`SSTATE_MIRRORS` with a regular expression that maps local search
  6704. paths to server paths. The paths need to take into account
  6705. :term:`NATIVELSBSTRING` set by the :ref:`ref-classes-uninative` class.
  6706. For example, the following maps the local search path ``universal-4.9``
  6707. to the server-provided path server_url_sstate_path::
  6708. SSTATE_MIRRORS ?= "file://universal-4.9/(.*) https://server_url_sstate_path/universal-4.8/\1"
  6709. If a mirror uses the same structure as
  6710. :term:`SSTATE_DIR`, you need to add "PATH" at the
  6711. end as shown in the examples below. The build system substitutes the
  6712. correct path within the directory structure::
  6713. SSTATE_MIRRORS ?= "\
  6714. file://.* https://someserver.tld/share/sstate/PATH;downloadfilename=PATH \
  6715. file://.* file:///some-local-dir/sstate/PATH"
  6716. .. note::
  6717. If the mirror is protected behind a username and password, the
  6718. :term:`build host` needs to be configured so the :term:`build system
  6719. <OpenEmbedded Build System>` is able to download the sstate cache using
  6720. authentication.
  6721. The recommended way to do that is by setting the following parameters
  6722. in ``$HOME/.netrc`` (``$HOME`` being the :term:`build host` home
  6723. directory)::
  6724. machine someserver.tld
  6725. login <user>
  6726. password <password>
  6727. This file requires permissions set to ``400`` or ``600`` to prevent
  6728. other users from reading the file::
  6729. chmod 600 "$HOME/.netrc"
  6730. Another method to configure the username and password is from the
  6731. URL in :term:`SSTATE_MIRRORS` directly, with the ``user`` and ``pswd``
  6732. parameters::
  6733. SSTATE_MIRRORS ?= "\
  6734. file://.* https://someserver.tld/share/sstate/PATH;user=<user>;pswd=<password>;downloadfilename=PATH \
  6735. "
  6736. The Yocto Project actually shares the cache data objects built by its
  6737. autobuilder::
  6738. SSTATE_MIRRORS ?= "file://.* http://cdn.jsdelivr.net/yocto/sstate/all/PATH;downloadfilename=PATH"
  6739. As such binary artifacts are built for the generic QEMU machines
  6740. supported by the various Poky releases, they are less likely to be
  6741. reusable in real projects building binaries optimized for a specific
  6742. CPU family.
  6743. :term:`SSTATE_SCAN_FILES`
  6744. Controls the list of files the OpenEmbedded build system scans for
  6745. hardcoded installation paths. The variable uses a space-separated
  6746. list of filenames (not paths) with standard wildcard characters
  6747. allowed.
  6748. During a build, the OpenEmbedded build system creates a shared state
  6749. (sstate) object during the first stage of preparing the sysroots.
  6750. That object is scanned for hardcoded paths for original installation
  6751. locations. The list of files that are scanned for paths is controlled
  6752. by the :term:`SSTATE_SCAN_FILES` variable. Typically, recipes add files
  6753. they want to be scanned to the value of :term:`SSTATE_SCAN_FILES` rather
  6754. than the variable being comprehensively set. The
  6755. :ref:`ref-classes-sstate` class specifies the default list of files.
  6756. For details on the process, see the :ref:`ref-classes-staging` class.
  6757. :term:`STAGING_BASE_LIBDIR_NATIVE`
  6758. Specifies the path to the ``/lib`` subdirectory of the sysroot
  6759. directory for the build host.
  6760. :term:`STAGING_BASELIBDIR`
  6761. Specifies the path to the ``/lib`` subdirectory of the sysroot
  6762. directory for the target for which the current recipe is being built
  6763. (:term:`STAGING_DIR_HOST`).
  6764. :term:`STAGING_BINDIR`
  6765. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  6766. directory for the target for which the current recipe is being built
  6767. (:term:`STAGING_DIR_HOST`).
  6768. :term:`STAGING_BINDIR_CROSS`
  6769. Specifies the path to the directory containing binary configuration
  6770. scripts. These scripts provide configuration information for other
  6771. software that wants to make use of libraries or include files
  6772. provided by the software associated with the script.
  6773. .. note::
  6774. This style of build configuration has been largely replaced by
  6775. ``pkg-config``. Consequently, if ``pkg-config`` is supported by the
  6776. library to which you are linking, it is recommended you use
  6777. ``pkg-config`` instead of a provided configuration script.
  6778. :term:`STAGING_BINDIR_NATIVE`
  6779. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  6780. directory for the build host.
  6781. :term:`STAGING_DATADIR`
  6782. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  6783. directory for the target for which the current recipe is being built
  6784. (:term:`STAGING_DIR_HOST`).
  6785. :term:`STAGING_DATADIR_NATIVE`
  6786. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  6787. directory for the build host.
  6788. :term:`STAGING_DIR`
  6789. Helps construct the ``recipe-sysroots`` directory, which is used
  6790. during packaging.
  6791. For information on how staging for recipe-specific sysroots occurs,
  6792. see the :ref:`ref-tasks-populate_sysroot`
  6793. task, the ":ref:`dev-manual/devtool:sharing files between recipes`"
  6794. section in the Yocto Project Development Tasks Manual, the
  6795. ":ref:`overview-manual/concepts:configuration, compilation, and staging`"
  6796. section in the Yocto Project Overview and Concepts Manual, and the
  6797. :term:`SYSROOT_DIRS` variable.
  6798. .. note::
  6799. Recipes should never write files directly under the :term:`STAGING_DIR`
  6800. directory because the OpenEmbedded build system manages the
  6801. directory automatically. Instead, files should be installed to
  6802. ``${``\ :term:`D`\ ``}`` within your recipe's :ref:`ref-tasks-install`
  6803. task and then the OpenEmbedded build system will stage a subset of
  6804. those files into the sysroot.
  6805. :term:`STAGING_DIR_HOST`
  6806. Specifies the path to the sysroot directory for the system on which
  6807. the component is built to run (the system that hosts the component).
  6808. For most recipes, this sysroot is the one in which that recipe's
  6809. :ref:`ref-tasks-populate_sysroot` task copies
  6810. files. Exceptions include ``-native`` recipes, where the
  6811. :ref:`ref-tasks-populate_sysroot` task instead uses
  6812. :term:`STAGING_DIR_NATIVE`. Depending on
  6813. the type of recipe and the build target, :term:`STAGING_DIR_HOST` can
  6814. have the following values:
  6815. - For recipes building for the target machine, the value is
  6816. "${:term:`STAGING_DIR`}/${:term:`MACHINE`}".
  6817. - For native recipes building for the build host, the value is empty
  6818. given the assumption that when building for the build host, the
  6819. build host's own directories should be used.
  6820. .. note::
  6821. ``-native`` recipes are not installed into host paths like such
  6822. as ``/usr``. Rather, these recipes are installed into
  6823. :term:`STAGING_DIR_NATIVE`. When compiling ``-native`` recipes,
  6824. standard build environment variables such as
  6825. :term:`CPPFLAGS` and
  6826. :term:`CFLAGS` are set up so that both host paths
  6827. and :term:`STAGING_DIR_NATIVE` are searched for libraries and
  6828. headers using, for example, GCC's ``-isystem`` option.
  6829. Thus, the emphasis is that the ``STAGING_DIR*`` variables
  6830. should be viewed as input variables by tasks such as
  6831. :ref:`ref-tasks-configure`,
  6832. :ref:`ref-tasks-compile`, and
  6833. :ref:`ref-tasks-install`. Having the real system
  6834. root correspond to :term:`STAGING_DIR_HOST` makes conceptual sense
  6835. for ``-native`` recipes, as they make use of host headers and
  6836. libraries.
  6837. Check :term:`RECIPE_SYSROOT` and :term:`RECIPE_SYSROOT_NATIVE`.
  6838. :term:`STAGING_DIR_NATIVE`
  6839. Specifies the path to the sysroot directory used when building
  6840. components that run on the build host itself.
  6841. The default value is ``"${RECIPE_SYSROOT_NATIVE}"``,
  6842. check :term:`RECIPE_SYSROOT_NATIVE`.
  6843. :term:`STAGING_DIR_TARGET`
  6844. Specifies the path to the sysroot used for the system for which the
  6845. component generates code. For components that do not generate code,
  6846. which is the majority, :term:`STAGING_DIR_TARGET` is set to match
  6847. :term:`STAGING_DIR_HOST`.
  6848. Some recipes build binaries that can run on the target system but those
  6849. binaries in turn generate code for another different system (e.g.
  6850. :ref:`ref-classes-cross-canadian` recipes). Using terminology from GNU,
  6851. the primary system is referred to as the "HOST" and the secondary, or
  6852. different, system is referred to as the "TARGET". Thus, the binaries
  6853. run on the "HOST" system and generate binaries for the "TARGET"
  6854. system. The :term:`STAGING_DIR_HOST` variable points to the sysroot used
  6855. for the "HOST" system, while :term:`STAGING_DIR_TARGET` points to the
  6856. sysroot used for the "TARGET" system.
  6857. :term:`STAGING_ETCDIR_NATIVE`
  6858. Specifies the path to the ``/etc`` subdirectory of the sysroot
  6859. directory for the build host.
  6860. :term:`STAGING_EXECPREFIXDIR`
  6861. Specifies the path to the ``/usr`` subdirectory of the sysroot
  6862. directory for the target for which the current recipe is being built
  6863. (:term:`STAGING_DIR_HOST`).
  6864. :term:`STAGING_INCDIR`
  6865. Specifies the path to the ``/usr/include`` subdirectory of the
  6866. sysroot directory for the target for which the current recipe being
  6867. built (:term:`STAGING_DIR_HOST`).
  6868. :term:`STAGING_INCDIR_NATIVE`
  6869. Specifies the path to the ``/usr/include`` subdirectory of the
  6870. sysroot directory for the build host.
  6871. :term:`STAGING_KERNEL_BUILDDIR`
  6872. Points to the directory containing the kernel build artifacts.
  6873. Recipes building software that needs to access kernel build artifacts
  6874. (e.g. ``systemtap-uprobes``) can look in the directory specified with
  6875. the :term:`STAGING_KERNEL_BUILDDIR` variable to find these artifacts
  6876. after the kernel has been built.
  6877. :term:`STAGING_KERNEL_DIR`
  6878. The directory with kernel headers that are required to build
  6879. out-of-tree modules.
  6880. :term:`STAGING_LIBDIR`
  6881. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  6882. directory for the target for which the current recipe is being built
  6883. (:term:`STAGING_DIR_HOST`).
  6884. :term:`STAGING_LIBDIR_NATIVE`
  6885. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  6886. directory for the build host.
  6887. :term:`STAMP`
  6888. Specifies the base path used to create recipe stamp files. The path
  6889. to an actual stamp file is constructed by evaluating this string and
  6890. then appending additional information. Currently, the default
  6891. assignment for :term:`STAMP` as set in the ``meta/conf/bitbake.conf``
  6892. file is::
  6893. STAMP = "${STAMPS_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}"
  6894. For information on how BitBake uses stamp files to determine if a
  6895. task should be rerun, see the
  6896. ":ref:`overview-manual/concepts:stamp files and the rerunning of tasks`"
  6897. section in the Yocto Project Overview and Concepts Manual.
  6898. See :term:`STAMPS_DIR`,
  6899. :term:`MULTIMACH_TARGET_SYS`,
  6900. :term:`PN`, :term:`EXTENDPE`,
  6901. :term:`PV`, and :term:`PR` for related variable
  6902. information.
  6903. :term:`STAMPCLEAN`
  6904. See :term:`bitbake:STAMPCLEAN` in the BitBake manual.
  6905. :term:`STAMPS_DIR`
  6906. Specifies the base directory in which the OpenEmbedded build system
  6907. places stamps. The default directory is ``${TMPDIR}/stamps``.
  6908. :term:`STRIP`
  6909. The minimal command and arguments to run ``strip``, which is used to
  6910. strip symbols.
  6911. :term:`SUMMARY`
  6912. The short (72 characters or less) summary of the binary package for
  6913. packaging systems such as ``opkg``, ``rpm``, or ``dpkg``. By default,
  6914. :term:`SUMMARY` is used to define the
  6915. :term:`DESCRIPTION` variable if :term:`DESCRIPTION` is
  6916. not set in the recipe.
  6917. :term:`SVNDIR`
  6918. The directory in which files checked out of a Subversion system are
  6919. stored.
  6920. :term:`SYSLINUX_DEFAULT_CONSOLE`
  6921. Specifies the kernel boot default console. If you want to use a
  6922. console other than the default, set this variable in your recipe as
  6923. follows where "X" is the console number you want to use::
  6924. SYSLINUX_DEFAULT_CONSOLE = "console=ttyX"
  6925. The :ref:`ref-classes-syslinux` class initially sets
  6926. this variable to null but then checks for a value later.
  6927. :term:`SYSLINUX_OPTS`
  6928. Lists additional options to add to the syslinux file. You need to set
  6929. this variable in your recipe. If you want to list multiple options,
  6930. separate the options with a semicolon character (``;``).
  6931. The :ref:`ref-classes-syslinux` class uses this variable
  6932. to create a set of options.
  6933. :term:`SYSLINUX_SERIAL`
  6934. Specifies the alternate serial port or turns it off. To turn off
  6935. serial, set this variable to an empty string in your recipe. The
  6936. variable's default value is set in the
  6937. :ref:`ref-classes-syslinux` class as follows::
  6938. SYSLINUX_SERIAL ?= "0 115200"
  6939. The class checks for and uses the variable as needed.
  6940. :term:`SYSLINUX_SERIAL_TTY`
  6941. Specifies the alternate console=tty... kernel boot argument. The
  6942. variable's default value is set in the :ref:`ref-classes-syslinux`
  6943. class as follows::
  6944. SYSLINUX_SERIAL_TTY ?= "console=ttyS0,115200"
  6945. The class checks for and uses the variable as needed.
  6946. :term:`SYSLINUX_SPLASH`
  6947. An ``.LSS`` file used as the background for the VGA boot menu when
  6948. you use the boot menu. You need to set this variable in your recipe.
  6949. The :ref:`ref-classes-syslinux` class checks for this
  6950. variable and if found, the OpenEmbedded build system installs the
  6951. splash screen.
  6952. :term:`SYSROOT_DESTDIR`
  6953. Points to the temporary directory under the work directory (default
  6954. "``${``\ :term:`WORKDIR`\ ``}/sysroot-destdir``")
  6955. where the files populated into the sysroot are assembled during the
  6956. :ref:`ref-tasks-populate_sysroot` task.
  6957. :term:`SYSROOT_DIRS`
  6958. Directories that are staged into the sysroot by the
  6959. :ref:`ref-tasks-populate_sysroot` task. By
  6960. default, the following directories are staged::
  6961. SYSROOT_DIRS = " \
  6962. ${includedir} \
  6963. ${libdir} \
  6964. ${base_libdir} \
  6965. ${nonarch_base_libdir} \
  6966. ${datadir} \
  6967. /sysroot-only \
  6968. "
  6969. Consider the following example in which you need to manipulate this variable.
  6970. Assume you have a recipe ``A`` that provides a shared library ``.so.*`` that is
  6971. installed into a custom folder other than "``${libdir}``"
  6972. or "``${base_libdir}``", let's say "``/opt/lib``".
  6973. .. note::
  6974. This is not a recommended way to deal with shared libraries, but this
  6975. is just to show the usefulness of setting :term:`SYSROOT_DIRS`.
  6976. When a recipe ``B`` :term:`DEPENDS` on ``A``, it means what is in
  6977. :term:`SYSROOT_DIRS` will be copied from :term:`D` of the recipe ``A``
  6978. into ``B``'s :term:`SYSROOT_DESTDIR` that is "``${WORKDIR}/sysroot-destdir``".
  6979. Now, since ``/opt/lib`` is not in :term:`SYSROOT_DIRS`, it will never be copied to
  6980. ``A``'s :term:`RECIPE_SYSROOT`, which is "``${WORKDIR}/recipe-sysroot``". So,
  6981. the linking process will fail.
  6982. To fix this, you need to add ``/opt/lib`` to :term:`SYSROOT_DIRS`::
  6983. SYSROOT_DIRS:append = " /opt/lib"
  6984. .. note::
  6985. Even after setting ``/opt/lib`` to :term:`SYSROOT_DIRS`, the linking process will still fail
  6986. because the linker does not know that location, since :term:`TARGET_LDFLAGS`
  6987. doesn't contain it (if your recipe is for the target). Therefore, so you should add::
  6988. TARGET_LDFLAGS:append = " -L${RECIPE_SYSROOT}/opt/lib"
  6989. :term:`SYSROOT_DIRS_IGNORE`
  6990. Directories that are not staged into the sysroot by the
  6991. :ref:`ref-tasks-populate_sysroot` task. You
  6992. can use this variable to exclude certain subdirectories of
  6993. directories listed in :term:`SYSROOT_DIRS` from
  6994. staging. By default, the following directories are not staged::
  6995. SYSROOT_DIRS_IGNORE = " \
  6996. ${mandir} \
  6997. ${docdir} \
  6998. ${infodir} \
  6999. ${datadir}/X11/locale \
  7000. ${datadir}/applications \
  7001. ${datadir}/bash-completion \
  7002. ${datadir}/fonts \
  7003. ${datadir}/gtk-doc/html \
  7004. ${datadir}/installed-tests \
  7005. ${datadir}/locale \
  7006. ${datadir}/pixmaps \
  7007. ${datadir}/terminfo \
  7008. ${libdir}/${BPN}/ptest \
  7009. "
  7010. :term:`SYSROOT_DIRS_NATIVE`
  7011. Extra directories staged into the sysroot by the
  7012. :ref:`ref-tasks-populate_sysroot` task for
  7013. ``-native`` recipes, in addition to those specified in
  7014. :term:`SYSROOT_DIRS`. By default, the following
  7015. extra directories are staged::
  7016. SYSROOT_DIRS_NATIVE = " \
  7017. ${bindir} \
  7018. ${sbindir} \
  7019. ${base_bindir} \
  7020. ${base_sbindir} \
  7021. ${libexecdir} \
  7022. ${sysconfdir} \
  7023. ${localstatedir} \
  7024. "
  7025. .. note::
  7026. Programs built by ``-native`` recipes run directly from the sysroot
  7027. (:term:`STAGING_DIR_NATIVE`), which is why additional directories
  7028. containing program executables and supporting files need to be staged.
  7029. :term:`SYSROOT_PREPROCESS_FUNCS`
  7030. A list of functions to execute after files are staged into the
  7031. sysroot. These functions are usually used to apply additional
  7032. processing on the staged files, or to stage additional files.
  7033. :term:`SYSTEMD_AUTO_ENABLE`
  7034. When inheriting the :ref:`ref-classes-systemd` class,
  7035. this variable specifies whether the specified service in
  7036. :term:`SYSTEMD_SERVICE` should start
  7037. automatically or not. By default, the service is enabled to
  7038. automatically start at boot time. The default setting is in the
  7039. :ref:`ref-classes-systemd` class as follows::
  7040. SYSTEMD_AUTO_ENABLE ??= "enable"
  7041. You can disable the service by setting the variable to "disable".
  7042. :term:`SYSTEMD_BOOT_CFG`
  7043. When :term:`EFI_PROVIDER` is set to
  7044. "systemd-boot", the :term:`SYSTEMD_BOOT_CFG` variable specifies the
  7045. configuration file that should be used. By default, the
  7046. :ref:`ref-classes-systemd-boot` class sets the
  7047. :term:`SYSTEMD_BOOT_CFG` as follows::
  7048. SYSTEMD_BOOT_CFG ?= "${S}/loader.conf"
  7049. For information on Systemd-boot, see the `Systemd-boot
  7050. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  7051. :term:`SYSTEMD_BOOT_ENTRIES`
  7052. When :term:`EFI_PROVIDER` is set to
  7053. "systemd-boot", the :term:`SYSTEMD_BOOT_ENTRIES` variable specifies a
  7054. list of entry files (``*.conf``) to install that contain one boot
  7055. entry per file. By default, the :ref:`ref-classes-systemd-boot` class
  7056. sets the :term:`SYSTEMD_BOOT_ENTRIES` as follows::
  7057. SYSTEMD_BOOT_ENTRIES ?= ""
  7058. For information on Systemd-boot, see the `Systemd-boot
  7059. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  7060. :term:`SYSTEMD_BOOT_TIMEOUT`
  7061. When :term:`EFI_PROVIDER` is set to
  7062. "systemd-boot", the :term:`SYSTEMD_BOOT_TIMEOUT` variable specifies the
  7063. boot menu timeout in seconds. By default, the
  7064. :ref:`ref-classes-systemd-boot` class sets the
  7065. :term:`SYSTEMD_BOOT_TIMEOUT` as follows::
  7066. SYSTEMD_BOOT_TIMEOUT ?= "10"
  7067. For information on Systemd-boot, see the `Systemd-boot
  7068. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  7069. :term:`SYSTEMD_DEFAULT_TARGET`
  7070. This variable allows to set the default unit that systemd starts at bootup.
  7071. Usually, this is either ``multi-user.target`` or ``graphical.target``.
  7072. This works by creating a ``default.target`` symbolic link to the chosen systemd
  7073. target file.
  7074. See `systemd's documentation
  7075. <https://www.freedesktop.org/software/systemd/man/systemd.special.html>`__
  7076. for details.
  7077. For example, this variable is used in the :oe_git:`core-image-minimal-xfce.bb
  7078. </meta-openembedded/tree/meta-xfce/recipes-core/images/core-image-minimal-xfce.bb>`
  7079. recipe::
  7080. SYSTEMD_DEFAULT_TARGET = "graphical.target"
  7081. :term:`SYSTEMD_PACKAGES`
  7082. When inheriting the :ref:`ref-classes-systemd` class,
  7083. this variable locates the systemd unit files when they are not found
  7084. in the main recipe's package. By default, the :term:`SYSTEMD_PACKAGES`
  7085. variable is set such that the systemd unit files are assumed to
  7086. reside in the recipes main package::
  7087. SYSTEMD_PACKAGES ?= "${PN}"
  7088. If these unit files are not in this recipe's main package, you need
  7089. to use :term:`SYSTEMD_PACKAGES` to list the package or packages in which
  7090. the build system can find the systemd unit files.
  7091. :term:`SYSTEMD_SERVICE`
  7092. When inheriting the :ref:`ref-classes-systemd` class,
  7093. this variable specifies the systemd service name for a package.
  7094. Multiple services can be specified, each one separated by a space.
  7095. When you specify this file in your recipe, use a package name
  7096. override to indicate the package to which the value applies. Here is
  7097. an example from the connman recipe::
  7098. SYSTEMD_SERVICE:${PN} = "connman.service"
  7099. The package overrides that can be specified are directly related to the value of
  7100. :term:`SYSTEMD_PACKAGES`. Overrides not included in :term:`SYSTEMD_PACKAGES`
  7101. will be silently ignored.
  7102. :term:`SYSVINIT_ENABLED_GETTYS`
  7103. When using :ref:`SysVinit <dev-manual/new-recipe:enabling system services>`,
  7104. specifies a space-separated list of the virtual terminals that should
  7105. run a :wikipedia:`getty <Getty_(Unix)>` (allowing login), assuming
  7106. :term:`USE_VT` is not set to "0".
  7107. The default value for :term:`SYSVINIT_ENABLED_GETTYS` is "1" (i.e. only
  7108. run a getty on the first virtual terminal).
  7109. :term:`T`
  7110. This variable points to a directory were BitBake places temporary
  7111. files, which consist mostly of task logs and scripts, when building a
  7112. particular recipe. The variable is typically set as follows::
  7113. T = "${WORKDIR}/temp"
  7114. The :term:`WORKDIR` is the directory into which
  7115. BitBake unpacks and builds the recipe. The default ``bitbake.conf``
  7116. file sets this variable.
  7117. The :term:`T` variable is not to be confused with the
  7118. :term:`TMPDIR` variable, which points to the root of
  7119. the directory tree where BitBake places the output of an entire
  7120. build.
  7121. :term:`TARGET_ARCH`
  7122. The target machine's architecture. The OpenEmbedded build system
  7123. supports many architectures. Here is an example list of architectures
  7124. supported. This list is by no means complete as the architecture is
  7125. configurable:
  7126. - arm
  7127. - i586
  7128. - x86_64
  7129. - powerpc
  7130. - powerpc64
  7131. - mips
  7132. - mipsel
  7133. For additional information on machine architectures, see the
  7134. :term:`TUNE_ARCH` variable.
  7135. :term:`TARGET_AS_ARCH`
  7136. Specifies architecture-specific assembler flags for the target
  7137. system. :term:`TARGET_AS_ARCH` is initialized from
  7138. :term:`TUNE_ASARGS` by default in the BitBake
  7139. configuration file (``meta/conf/bitbake.conf``)::
  7140. TARGET_AS_ARCH = "${TUNE_ASARGS}"
  7141. :term:`TARGET_CC_ARCH`
  7142. Specifies architecture-specific C compiler flags for the target
  7143. system. :term:`TARGET_CC_ARCH` is initialized from
  7144. :term:`TUNE_CCARGS` by default.
  7145. .. note::
  7146. It is a common workaround to append :term:`LDFLAGS` to
  7147. :term:`TARGET_CC_ARCH` in recipes that build software for the target that
  7148. would not otherwise respect the exported :term:`LDFLAGS` variable.
  7149. :term:`TARGET_CC_KERNEL_ARCH`
  7150. This is a specific kernel compiler flag for a CPU or Application
  7151. Binary Interface (ABI) tune. The flag is used rarely and only for
  7152. cases where a userspace :term:`TUNE_CCARGS` is not
  7153. compatible with the kernel compilation. The :term:`TARGET_CC_KERNEL_ARCH`
  7154. variable allows the kernel (and associated modules) to use a
  7155. different configuration. See the
  7156. ``meta/conf/machine/include/arm/feature-arm-thumb.inc`` file in the
  7157. :term:`Source Directory` for an example.
  7158. :term:`TARGET_CFLAGS`
  7159. Specifies the flags to pass to the C compiler when building for the
  7160. target. When building in the target context,
  7161. :term:`CFLAGS` is set to the value of this variable by
  7162. default.
  7163. Additionally, the SDK's environment setup script sets the :term:`CFLAGS`
  7164. variable in the environment to the :term:`TARGET_CFLAGS` value so that
  7165. executables built using the SDK also have the flags applied.
  7166. :term:`TARGET_CPPFLAGS`
  7167. Specifies the flags to pass to the C pre-processor (i.e. to both the
  7168. C and the C++ compilers) when building for the target. When building
  7169. in the target context, :term:`CPPFLAGS` is set to the
  7170. value of this variable by default.
  7171. Additionally, the SDK's environment setup script sets the
  7172. :term:`CPPFLAGS` variable in the environment to the :term:`TARGET_CPPFLAGS`
  7173. value so that executables built using the SDK also have the flags
  7174. applied.
  7175. :term:`TARGET_CXXFLAGS`
  7176. Specifies the flags to pass to the C++ compiler when building for the
  7177. target. When building in the target context,
  7178. :term:`CXXFLAGS` is set to the value of this variable
  7179. by default.
  7180. Additionally, the SDK's environment setup script sets the
  7181. :term:`CXXFLAGS` variable in the environment to the :term:`TARGET_CXXFLAGS`
  7182. value so that executables built using the SDK also have the flags
  7183. applied.
  7184. :term:`TARGET_DBGSRC_DIR`
  7185. Specifies the target path to debug source files. The default is
  7186. ``/usr/src/debug/${PN}/${PV}``.
  7187. :term:`TARGET_FPU`
  7188. Specifies the method for handling FPU code. For FPU-less targets,
  7189. which include most ARM CPUs, the variable must be set to "soft". If
  7190. not, the kernel emulation gets used, which results in a performance
  7191. penalty.
  7192. :term:`TARGET_LD_ARCH`
  7193. Specifies architecture-specific linker flags for the target system.
  7194. :term:`TARGET_LD_ARCH` is initialized from
  7195. :term:`TUNE_LDARGS` by default in the BitBake
  7196. configuration file (``meta/conf/bitbake.conf``)::
  7197. TARGET_LD_ARCH = "${TUNE_LDARGS}"
  7198. :term:`TARGET_LDFLAGS`
  7199. Specifies the flags to pass to the linker when building for the
  7200. target. When building in the target context,
  7201. :term:`LDFLAGS` is set to the value of this variable
  7202. by default.
  7203. Additionally, the SDK's environment setup script sets the
  7204. :term:`LDFLAGS` variable in the environment to the
  7205. :term:`TARGET_LDFLAGS` value so that executables built using the SDK also
  7206. have the flags applied.
  7207. :term:`TARGET_OS`
  7208. Specifies the target's operating system. The variable can be set to
  7209. "linux" for glibc-based systems (GNU C Library) and to "linux-musl"
  7210. for musl libc. For ARM/EABI targets, the possible values are
  7211. "linux-gnueabi" and "linux-musleabi".
  7212. :term:`TARGET_PREFIX`
  7213. Specifies the prefix used for the toolchain binary target tools.
  7214. Depending on the type of recipe and the build target,
  7215. :term:`TARGET_PREFIX` is set as follows:
  7216. - For recipes building for the target machine, the value is
  7217. "${:term:`TARGET_SYS`}-".
  7218. - For native recipes, the build system sets the variable to the
  7219. value of :term:`BUILD_PREFIX`.
  7220. - For native SDK recipes (:ref:`ref-classes-nativesdk`),
  7221. the build system sets the variable to the value of :term:`SDK_PREFIX`.
  7222. :term:`TARGET_SYS`
  7223. Specifies the system, including the architecture and the operating
  7224. system, for which the build is occurring in the context of the
  7225. current recipe.
  7226. The OpenEmbedded build system automatically sets this variable based
  7227. on :term:`TARGET_ARCH`,
  7228. :term:`TARGET_VENDOR`, and
  7229. :term:`TARGET_OS` variables.
  7230. .. note::
  7231. You do not need to set the :term:`TARGET_SYS` variable yourself.
  7232. Consider these two examples:
  7233. - Given a native recipe on a 32-bit, x86 machine running Linux, the
  7234. value is "i686-linux".
  7235. - Given a recipe being built for a little-endian, MIPS target
  7236. running Linux, the value might be "mipsel-linux".
  7237. :term:`TARGET_VENDOR`
  7238. Specifies the name of the target vendor.
  7239. :term:`TCLIBC`
  7240. Specifies the GNU standard C library (``libc``) variant to use during
  7241. the build process.
  7242. You can select "glibc", "musl", "newlib", or "baremetal".
  7243. :term:`TCMODE`
  7244. Specifies the toolchain selector. :term:`TCMODE` controls the
  7245. characteristics of the generated packages and images by telling the
  7246. OpenEmbedded build system which toolchain profile to use. By default,
  7247. the OpenEmbedded build system builds its own internal toolchain. The
  7248. variable's default value is "default", which uses that internal
  7249. toolchain.
  7250. .. note::
  7251. If :term:`TCMODE` is set to a value other than "default", then it is your
  7252. responsibility to ensure that the toolchain is compatible with the
  7253. default toolchain. Using older or newer versions of these
  7254. components might cause build problems. See
  7255. :doc:`Release Information </migration-guides/index>` for your
  7256. version of the Yocto Project, to find the specific components with
  7257. which the toolchain must be compatible.
  7258. The :term:`TCMODE` variable is similar to :term:`TCLIBC`,
  7259. which controls the variant of the GNU standard C library (``libc``)
  7260. used during the build process: ``glibc`` or ``musl``.
  7261. With additional layers, it is possible to use a pre-compiled external
  7262. toolchain. One example is the Sourcery G++ Toolchain. The support for
  7263. this toolchain resides in the separate Mentor Graphics
  7264. ``meta-sourcery`` layer at
  7265. https://github.com/MentorEmbedded/meta-sourcery/.
  7266. The layer's ``README`` file contains information on how to use the
  7267. Sourcery G++ Toolchain as an external toolchain. You will have to
  7268. add the layer to your ``bblayers.conf`` file and then set the
  7269. :term:`EXTERNAL_TOOLCHAIN` variable in your ``local.conf`` file to
  7270. the location of the toolchain.
  7271. The fundamentals used for this example apply to any external
  7272. toolchain. You can use ``meta-sourcery`` as a template for adding
  7273. support for other external toolchains.
  7274. In addition to toolchain configuration, you will also need a
  7275. corresponding toolchain recipe file. This recipe file needs to package
  7276. up any pre-built objects in the toolchain such as ``libgcc``,
  7277. ``libstdcc++``, any locales, and ``libc``.
  7278. :term:`TC_CXX_RUNTIME`
  7279. Specifies the C/C++ STL and runtime variant to use during
  7280. the build process. Default value is 'gnu'
  7281. You can select "gnu", "llvm", or "android".
  7282. :term:`TEMPLATECONF`
  7283. Specifies the directory used by the build system to find templates
  7284. from which to build the ``bblayers.conf`` and ``local.conf`` files.
  7285. Use this variable if you wish to customize such files, and the default
  7286. BitBake targets shown when sourcing the ``oe-init-build-env`` script.
  7287. For details, see the
  7288. :ref:`dev-manual/custom-template-configuration-directory:creating a custom template configuration directory`
  7289. section in the Yocto Project Development Tasks manual.
  7290. .. note::
  7291. You must set this variable in the external environment in order
  7292. for it to work.
  7293. :term:`TEST_EXPORT_DIR`
  7294. The location the OpenEmbedded build system uses to export tests when
  7295. the :term:`TEST_EXPORT_ONLY` variable is set
  7296. to "1".
  7297. The :term:`TEST_EXPORT_DIR` variable defaults to
  7298. ``"${TMPDIR}/testimage/${PN}"``.
  7299. :term:`TEST_EXPORT_ONLY`
  7300. Specifies to export the tests only. Set this variable to "1" if you
  7301. do not want to run the tests but you want them to be exported in a
  7302. manner that you to run them outside of the build system.
  7303. :term:`TEST_LOG_DIR`
  7304. Holds the SSH log and the boot log for QEMU machines. The
  7305. :term:`TEST_LOG_DIR` variable defaults to ``"${WORKDIR}/testimage"``.
  7306. .. note::
  7307. Actual test results reside in the task log (``log.do_testimage``),
  7308. which is in the ``${WORKDIR}/temp/`` directory.
  7309. :term:`TEST_POWERCONTROL_CMD`
  7310. For automated hardware testing, specifies the command to use to
  7311. control the power of the target machine under test. Typically, this
  7312. command would point to a script that performs the appropriate action
  7313. (e.g. interacting with a web-enabled power strip). The specified
  7314. command should expect to receive as the last argument "off", "on" or
  7315. "cycle" specifying to power off, on, or cycle (power off and then
  7316. power on) the device, respectively.
  7317. :term:`TEST_POWERCONTROL_EXTRA_ARGS`
  7318. For automated hardware testing, specifies additional arguments to
  7319. pass through to the command specified in
  7320. :term:`TEST_POWERCONTROL_CMD`. Setting
  7321. :term:`TEST_POWERCONTROL_EXTRA_ARGS` is optional. You can use it if you
  7322. wish, for example, to separate the machine-specific and
  7323. non-machine-specific parts of the arguments.
  7324. :term:`TEST_QEMUBOOT_TIMEOUT`
  7325. The time in seconds allowed for an image to boot before automated
  7326. runtime tests begin to run against an image. The default timeout
  7327. period to allow the boot process to reach the login prompt is 500
  7328. seconds. You can specify a different value in the ``local.conf``
  7329. file.
  7330. For more information on testing images, see the
  7331. ":ref:`test-manual/runtime-testing:performing automated runtime testing`"
  7332. section in the Yocto Project Test Environment Manual.
  7333. :term:`TEST_SERIALCONTROL_CMD`
  7334. For automated hardware testing, specifies the command to use to
  7335. connect to the serial console of the target machine under test. This
  7336. command simply needs to connect to the serial console and forward
  7337. that connection to standard input and output as any normal terminal
  7338. program does.
  7339. For example, to use the Picocom terminal program on serial device
  7340. ``/dev/ttyUSB0`` at 115200bps, you would set the variable as follows::
  7341. TEST_SERIALCONTROL_CMD = "picocom /dev/ttyUSB0 -b 115200"
  7342. :term:`TEST_SERIALCONTROL_EXTRA_ARGS`
  7343. For automated hardware testing, specifies additional arguments to
  7344. pass through to the command specified in
  7345. :term:`TEST_SERIALCONTROL_CMD`. Setting
  7346. :term:`TEST_SERIALCONTROL_EXTRA_ARGS` is optional. You can use it if you
  7347. wish, for example, to separate the machine-specific and
  7348. non-machine-specific parts of the command.
  7349. :term:`TEST_SERVER_IP`
  7350. The IP address of the build machine (host machine). This IP address
  7351. is usually automatically detected. However, if detection fails, this
  7352. variable needs to be set to the IP address of the build machine (i.e.
  7353. where the build is taking place).
  7354. .. note::
  7355. The :term:`TEST_SERVER_IP` variable is only used for a small number of
  7356. tests such as the "dnf" test suite, which needs to download packages
  7357. from ``WORKDIR/oe-rootfs-repo``.
  7358. :term:`TEST_SUITES`
  7359. An ordered list of tests (modules) to run against an image when
  7360. performing automated runtime testing.
  7361. The OpenEmbedded build system provides a core set of tests that can
  7362. be used against images.
  7363. .. note::
  7364. Currently, there is only support for running these tests under
  7365. QEMU.
  7366. Tests include ``ping``, ``ssh``, ``df`` among others. You can add
  7367. your own tests to the list of tests by appending :term:`TEST_SUITES` as
  7368. follows::
  7369. TEST_SUITES:append = " mytest"
  7370. Alternatively, you can
  7371. provide the "auto" option to have all applicable tests run against
  7372. the image::
  7373. TEST_SUITES:append = " auto"
  7374. Using this option causes the
  7375. build system to automatically run tests that are applicable to the
  7376. image. Tests that are not applicable are skipped.
  7377. The order in which tests are run is important. Tests that depend on
  7378. another test must appear later in the list than the test on which
  7379. they depend. For example, if you append the list of tests with two
  7380. tests (``test_A`` and ``test_B``) where ``test_B`` is dependent on
  7381. ``test_A``, then you must order the tests as follows::
  7382. TEST_SUITES = "test_A test_B"
  7383. For more information on testing images, see the
  7384. ":ref:`test-manual/runtime-testing:performing automated runtime testing`"
  7385. section in the Yocto Project Test Environment Manual.
  7386. :term:`TEST_TARGET`
  7387. Specifies the target controller to use when running tests against a
  7388. test image. The default controller to use is "qemu"::
  7389. TEST_TARGET = "qemu"
  7390. A target controller is a class that defines how an image gets
  7391. deployed on a target and how a target is started. A layer can extend
  7392. the controllers by adding a module in the layer's
  7393. ``/lib/oeqa/controllers`` directory and by inheriting the
  7394. ``BaseTarget`` class, which is an abstract class that cannot be used
  7395. as a value of :term:`TEST_TARGET`.
  7396. You can provide the following arguments with :term:`TEST_TARGET`:
  7397. - *"qemu":* Boots a QEMU image and runs the tests. See the
  7398. ":ref:`test-manual/runtime-testing:enabling runtime tests on qemu`" section
  7399. in the Yocto Project Test Environment Manual for more
  7400. information.
  7401. - *"simpleremote":* Runs the tests on target hardware that is
  7402. already up and running. The hardware can be on the network or it
  7403. can be a device running an image on QEMU. You must also set
  7404. :term:`TEST_TARGET_IP` when you use
  7405. "simpleremote".
  7406. .. note::
  7407. This argument is defined in
  7408. ``meta/lib/oeqa/controllers/simpleremote.py``.
  7409. For information on running tests on hardware, see the
  7410. ":ref:`test-manual/runtime-testing:enabling runtime tests on hardware`"
  7411. section in the Yocto Project Test Environment Manual.
  7412. :term:`TEST_TARGET_IP`
  7413. The IP address of your hardware under test. The :term:`TEST_TARGET_IP`
  7414. variable has no effect when :term:`TEST_TARGET` is
  7415. set to "qemu".
  7416. When you specify the IP address, you can also include a port. Here is
  7417. an example::
  7418. TEST_TARGET_IP = "192.168.1.4:2201"
  7419. Specifying a port is
  7420. useful when SSH is started on a non-standard port or in cases when
  7421. your hardware under test is behind a firewall or network that is not
  7422. directly accessible from your host and you need to do port address
  7423. translation.
  7424. :term:`TESTIMAGE_AUTO`
  7425. Automatically runs the series of automated tests for images when an
  7426. image is successfully built. Setting :term:`TESTIMAGE_AUTO` to "1" causes
  7427. any image that successfully builds to automatically boot under QEMU.
  7428. Using the variable also adds in dependencies so that any SDK for
  7429. which testing is requested is automatically built first.
  7430. These tests are written in Python making use of the ``unittest``
  7431. module, and the majority of them run commands on the target system
  7432. over ``ssh``. You can set this variable to "1" in your ``local.conf``
  7433. file in the :term:`Build Directory` to have the
  7434. OpenEmbedded build system automatically run these tests after an
  7435. image successfully builds:
  7436. TESTIMAGE_AUTO = "1"
  7437. For more information
  7438. on enabling, running, and writing these tests, see the
  7439. ":ref:`test-manual/runtime-testing:performing automated runtime testing`"
  7440. section in the Yocto Project Test Environment Manual and the
  7441. ":ref:`ref-classes-testimage`" section.
  7442. :term:`TESTIMAGE_FAILED_QA_ARTIFACTS`
  7443. When using the :ref:`ref-classes-testimage` class, the variable
  7444. :term:`TESTIMAGE_FAILED_QA_ARTIFACTS` lists space-separated paths on the
  7445. target to retrieve onto the host.
  7446. :term:`THISDIR`
  7447. The directory in which the file BitBake is currently parsing is
  7448. located. Do not manually set this variable.
  7449. :term:`TIME`
  7450. The time the build was started. Times appear using the hour, minute,
  7451. and second (HMS) format (e.g. "140159" for one minute and fifty-nine
  7452. seconds past 1400 hours).
  7453. :term:`TMPDIR`
  7454. This variable is the base directory the OpenEmbedded build system
  7455. uses for all build output and intermediate files (other than the
  7456. shared state cache). By default, the :term:`TMPDIR` variable points to
  7457. ``tmp`` within the :term:`Build Directory`.
  7458. If you want to establish this directory in a location other than the
  7459. default, you can uncomment and edit the following statement in the
  7460. ``conf/local.conf`` file in the :term:`Source Directory`::
  7461. #TMPDIR = "${TOPDIR}/tmp"
  7462. An example use for this scenario is to set :term:`TMPDIR` to a local disk,
  7463. which does not use NFS, while having the :term:`Build Directory` use NFS.
  7464. The filesystem used by :term:`TMPDIR` must have standard filesystem
  7465. semantics (i.e. mixed-case files are unique, POSIX file locking, and
  7466. persistent inodes). Due to various issues with NFS and bugs in some
  7467. implementations, NFS does not meet this minimum requirement.
  7468. Consequently, :term:`TMPDIR` cannot be on NFS.
  7469. :term:`TOOLCHAIN_HOST_TASK`
  7470. This variable lists packages the OpenEmbedded build system uses when
  7471. building an SDK, which contains a cross-development environment. The
  7472. packages specified by this variable are part of the toolchain set
  7473. that runs on the :term:`SDKMACHINE`, and each
  7474. package should usually have the prefix ``nativesdk-``. For example,
  7475. consider the following command when building an SDK::
  7476. $ bitbake -c populate_sdk imagename
  7477. In this case, a default list of packages is
  7478. set in this variable, but you can add additional packages to the
  7479. list. See the
  7480. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  7481. in the Yocto Project Application Development and the Extensible
  7482. Software Development Kit (eSDK) manual for more information.
  7483. For background information on cross-development toolchains in the
  7484. Yocto Project development environment, see the
  7485. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  7486. section in the Yocto Project Overview and Concepts Manual. For
  7487. information on setting up a cross-development environment, see the
  7488. :doc:`/sdk-manual/index` manual.
  7489. Note that this variable applies to building an SDK, not an eSDK,
  7490. in which case the :term:`TOOLCHAIN_HOST_TASK_ESDK` setting should be
  7491. used instead.
  7492. :term:`TOOLCHAIN_HOST_TASK_ESDK`
  7493. This variable allows to extend what is installed in the host
  7494. portion of an eSDK. This is similar to :term:`TOOLCHAIN_HOST_TASK`
  7495. applying to SDKs.
  7496. :term:`TOOLCHAIN_OPTIONS`
  7497. This variable holds extra options passed to the compiler and the linker
  7498. for non ``-native`` recipes as they have to point to their custom
  7499. ``sysroot`` folder pointed to by :term:`RECIPE_SYSROOT`::
  7500. TOOLCHAIN_OPTIONS = " --sysroot=${RECIPE_SYSROOT}"
  7501. Native recipes don't need this variable to be set, as they are
  7502. built for the host machine with the native compiler.
  7503. :term:`TOOLCHAIN_OUTPUTNAME`
  7504. This variable defines the name used for the toolchain output. The
  7505. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class sets
  7506. the :term:`TOOLCHAIN_OUTPUTNAME` variable as follows::
  7507. TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${SDK_VERSION}"
  7508. See
  7509. the :term:`SDK_NAME` and
  7510. :term:`SDK_VERSION` variables for additional
  7511. information.
  7512. :term:`TOOLCHAIN_TARGET_TASK`
  7513. This variable lists packages the OpenEmbedded build system uses when
  7514. it creates the target part of an SDK (i.e. the part built for the
  7515. target hardware), which includes libraries and headers. Use this
  7516. variable to add individual packages to the part of the SDK that runs
  7517. on the target. See the
  7518. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  7519. in the Yocto Project Application Development and the Extensible
  7520. Software Development Kit (eSDK) manual for more information.
  7521. For background information on cross-development toolchains in the
  7522. Yocto Project development environment, see the
  7523. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  7524. section in the Yocto Project Overview and Concepts Manual. For
  7525. information on setting up a cross-development environment, see the
  7526. :doc:`/sdk-manual/index` manual.
  7527. :term:`TOPDIR`
  7528. See :term:`bitbake:TOPDIR` in the BitBake manual.
  7529. :term:`TRANSLATED_TARGET_ARCH`
  7530. A sanitized version of :term:`TARGET_ARCH`. This
  7531. variable is used where the architecture is needed in a value where
  7532. underscores are not allowed, for example within package filenames. In
  7533. this case, dash characters replace any underscore characters used in
  7534. :term:`TARGET_ARCH`.
  7535. Do not edit this variable.
  7536. :term:`TUNE_ARCH`
  7537. The GNU canonical architecture for a specific architecture (i.e.
  7538. ``arm``, ``armeb``, ``mips``, ``mips64``, and so forth). BitBake uses
  7539. this value to setup configuration.
  7540. :term:`TUNE_ARCH` definitions are specific to a given architecture. The
  7541. definitions can be a single static definition, or can be dynamically
  7542. adjusted. You can see details for a given CPU family by looking at
  7543. the architecture's ``README`` file. For example, the
  7544. ``meta/conf/machine/include/mips/README`` file in the
  7545. :term:`Source Directory` provides information for
  7546. :term:`TUNE_ARCH` specific to the ``mips`` architecture.
  7547. :term:`TUNE_ARCH` is tied closely to
  7548. :term:`TARGET_ARCH`, which defines the target
  7549. machine's architecture. The BitBake configuration file
  7550. (``meta/conf/bitbake.conf``) sets :term:`TARGET_ARCH` as follows::
  7551. TARGET_ARCH = "${TUNE_ARCH}"
  7552. The following list, which is by no means complete since architectures
  7553. are configurable, shows supported machine architectures:
  7554. - arm
  7555. - i586
  7556. - x86_64
  7557. - powerpc
  7558. - powerpc64
  7559. - mips
  7560. - mipsel
  7561. :term:`TUNE_ASARGS`
  7562. Specifies architecture-specific assembler flags for the target
  7563. system. The set of flags is based on the selected tune features.
  7564. :term:`TUNE_ASARGS` is set using the tune include files, which are
  7565. typically under ``meta/conf/machine/include/`` and are influenced
  7566. through :term:`TUNE_FEATURES`. For example, the
  7567. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  7568. for the x86 architecture as follows::
  7569. TUNE_ASARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-x32", "", d)}"
  7570. .. note::
  7571. Board Support Packages (BSPs) select the tune. The selected tune,
  7572. in turn, affects the tune variables themselves (i.e. the tune can
  7573. supply its own set of flags).
  7574. :term:`TUNE_CCARGS`
  7575. Specifies architecture-specific C compiler flags for the target
  7576. system. The set of flags is based on the selected tune features.
  7577. :term:`TUNE_CCARGS` is set using the tune include files, which are
  7578. typically under ``meta/conf/machine/include/`` and are influenced
  7579. through :term:`TUNE_FEATURES`.
  7580. .. note::
  7581. Board Support Packages (BSPs) select the tune. The selected tune,
  7582. in turn, affects the tune variables themselves (i.e. the tune can
  7583. supply its own set of flags).
  7584. :term:`TUNE_FEATURES`
  7585. Features used to "tune" a compiler for optimal use given a specific
  7586. processor. The features are defined within the tune files and allow
  7587. arguments (i.e. ``TUNE_*ARGS``) to be dynamically generated based on
  7588. the features.
  7589. The OpenEmbedded build system verifies the features to be sure they
  7590. are not conflicting and that they are supported.
  7591. The BitBake configuration file (``meta/conf/bitbake.conf``) defines
  7592. :term:`TUNE_FEATURES` as follows::
  7593. TUNE_FEATURES ??= "${TUNE_FEATURES:tune-${DEFAULTTUNE}}"
  7594. See the :term:`DEFAULTTUNE` variable for more information.
  7595. :term:`TUNE_LDARGS`
  7596. Specifies architecture-specific linker flags for the target system.
  7597. The set of flags is based on the selected tune features.
  7598. :term:`TUNE_LDARGS` is set using the tune include files, which are
  7599. typically under ``meta/conf/machine/include/`` and are influenced
  7600. through :term:`TUNE_FEATURES`. For example, the
  7601. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  7602. for the x86 architecture as follows::
  7603. TUNE_LDARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-m elf32_x86_64", "", d)}"
  7604. .. note::
  7605. Board Support Packages (BSPs) select the tune. The selected tune,
  7606. in turn, affects the tune variables themselves (i.e. the tune can
  7607. supply its own set of flags).
  7608. :term:`TUNE_PKGARCH`
  7609. The package architecture understood by the packaging system to define
  7610. the architecture, ABI, and tuning of output packages. The specific
  7611. tune is defined using the "_tune" override as follows::
  7612. TUNE_PKGARCH:tune-tune = "tune"
  7613. These tune-specific package architectures are defined in the machine
  7614. include files. Here is an example of the "core2-32" tuning as used in
  7615. the ``meta/conf/machine/include/x86/tune-core2.inc`` file::
  7616. TUNE_PKGARCH:tune-core2-32 = "core2-32"
  7617. :term:`TUNECONFLICTS[feature]`
  7618. Specifies CPU or Application Binary Interface (ABI) tuning features
  7619. that conflict with feature.
  7620. Known tuning conflicts are specified in the machine include files in
  7621. the :term:`Source Directory`. Here is an example from
  7622. the ``meta/conf/machine/include/mips/arch-mips.inc`` include file
  7623. that lists the "o32" and "n64" features as conflicting with the "n32"
  7624. feature::
  7625. TUNECONFLICTS[n32] = "o32 n64"
  7626. :term:`TUNEVALID[feature]`
  7627. Specifies a valid CPU or Application Binary Interface (ABI) tuning
  7628. feature. The specified feature is stored as a flag. Valid features
  7629. are specified in the machine include files (e.g.
  7630. ``meta/conf/machine/include/arm/arch-arm.inc``). Here is an example
  7631. from that file::
  7632. TUNEVALID[bigendian] = "Enable big-endian mode."
  7633. See the machine include files in the :term:`Source Directory`
  7634. for these features.
  7635. :term:`UBOOT_BINARY`
  7636. Specifies the name of the binary build by U-Boot.
  7637. :term:`UBOOT_CONFIG`
  7638. Configures one or more U-Boot configurations to build. Each
  7639. configuration can define the :term:`UBOOT_MACHINE` and optionally the
  7640. :term:`IMAGE_FSTYPES` and the :term:`UBOOT_BINARY`.
  7641. Here is an example from the ``meta-freescale`` layer. ::
  7642. UBOOT_CONFIG ??= "sdcard-ifc-secure-boot sdcard-ifc sdcard-qspi lpuart qspi secure-boot nor"
  7643. UBOOT_CONFIG[nor] = "ls1021atwr_nor_defconfig"
  7644. UBOOT_CONFIG[sdcard-ifc] = "ls1021atwr_sdcard_ifc_defconfig,,u-boot-with-spl-pbl.bin"
  7645. UBOOT_CONFIG[sdcard-qspi] = "ls1021atwr_sdcard_qspi_defconfig,,u-boot-with-spl-pbl.bin"
  7646. UBOOT_CONFIG[lpuart] = "ls1021atwr_nor_lpuart_defconfig"
  7647. UBOOT_CONFIG[qspi] = "ls1021atwr_qspi_defconfig"
  7648. UBOOT_CONFIG[secure-boot] = "ls1021atwr_nor_SECURE_BOOT_defconfig"
  7649. UBOOT_CONFIG[sdcard-ifc-secure-boot] = "ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig,,u-boot-with-spl-pbl.bin"
  7650. In this example, all possible seven configurations are selected. Each
  7651. configuration specifies "..._defconfig" as :term:`UBOOT_MACHINE`, and
  7652. the "sd..." configurations define an individual name for
  7653. :term:`UBOOT_BINARY`. No configuration defines a second parameter for
  7654. :term:`IMAGE_FSTYPES` to use for the U-Boot image.
  7655. For more information on how the :term:`UBOOT_CONFIG` is handled, see the
  7656. :ref:`ref-classes-uboot-config` class.
  7657. :term:`UBOOT_DTB_LOADADDRESS`
  7658. Specifies the load address for the dtb image used by U-Boot. During FIT
  7659. image creation, the :term:`UBOOT_DTB_LOADADDRESS` variable is used in
  7660. :ref:`ref-classes-kernel-fitimage` class to specify the load address to be
  7661. used in creating the dtb sections of Image Tree Source for the FIT image.
  7662. :term:`UBOOT_DTBO_LOADADDRESS`
  7663. Specifies the load address for the dtbo image used by U-Boot. During FIT
  7664. image creation, the :term:`UBOOT_DTBO_LOADADDRESS` variable is used in
  7665. :ref:`ref-classes-kernel-fitimage` class to specify the load address to be
  7666. used in creating the dtbo sections of Image Tree Source for the FIT image.
  7667. :term:`UBOOT_ENTRYPOINT`
  7668. Specifies the entry point for the U-Boot image. During U-Boot image
  7669. creation, the :term:`UBOOT_ENTRYPOINT` variable is passed as a
  7670. command-line parameter to the ``uboot-mkimage`` utility.
  7671. To pass a 64 bit address for FIT image creation, you will need to set:
  7672. - The :term:`FIT_ADDRESS_CELLS` variable for FIT image creation.
  7673. - The :term:`UBOOT_FIT_ADDRESS_CELLS` variable for U-Boot FIT image creation.
  7674. This variable is used by the :ref:`ref-classes-kernel-fitimage`,
  7675. :ref:`ref-classes-kernel-uimage`, :ref:`ref-classes-kernel`,
  7676. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  7677. classes.
  7678. :term:`UBOOT_ENV`
  7679. This variable allows to add additional environment variables or a script
  7680. to be installed together with U-Boot.
  7681. This file, typically ``uEnv.txt`` or ``boot.cmd``, is installed in
  7682. ``/boot`` as well as copied to the :term:`DEPLOYDIR` directory.
  7683. For machine configurations needing one of these files a ``.bbappend``
  7684. file should include it in the :term:`SRC_URI` of the U-Boot recipe.
  7685. If the variable :term:`UBOOT_ENV_SUFFIX` is set to ``scr`` the script is
  7686. packaged as a uImage (``mkimage -T script..``) otherwise it gets
  7687. installed verbatim.
  7688. Some examples:
  7689. - Adding a script ``boot.cmd`` as a uImage to ``/boot``::
  7690. UBOOT_ENV = "boot"
  7691. UBOOT_ENV_SUFFIX = "scr"
  7692. SRC_URI += "file://${UBOOT_ENV_SRC}"
  7693. - Adding a script ``uEnv.txt`` as a plain text file to ``/boot``::
  7694. UBOOT_ENV = "uEnv"
  7695. UBOOT_ENV_SUFFIX = "txt"
  7696. SRC_URI += "file://${UBOOT_ENV_BINARY}"
  7697. :term:`UBOOT_ENV_SRC_SUFFIX`
  7698. If :term:`UBOOT_ENV_SUFFIX` is set to ``scr`` this is the suffix of the
  7699. plain text script file as it is specified in the :term:`SRC_URI` of the
  7700. U-Boot recipe. It defaults to ``cmd``.
  7701. :term:`UBOOT_ENV_SUFFIX`
  7702. If this variable is set to ``scr`` the script referred to by
  7703. :term:`UBOOT_ENV` gets packaged as a uImage before it gets installed.
  7704. The default is ``txt`` which means the script is installed as-is, with
  7705. no modification.
  7706. :term:`UBOOT_FIT_ADDRESS_CELLS`
  7707. Specifies the value of the ``#address-cells`` value for the
  7708. description of the U-Boot FIT image.
  7709. The default value is set to "1" by the :ref:`ref-classes-uboot-sign`
  7710. class, which corresponds to 32 bit addresses.
  7711. For platforms that need to set 64 bit addresses in
  7712. :term:`UBOOT_LOADADDRESS` and :term:`UBOOT_ENTRYPOINT`, you need to
  7713. set this value to "2", as two 32 bit values (cells) will be needed
  7714. to represent such addresses.
  7715. Here is an example setting "0x400000000" as a load address::
  7716. UBOOT_FIT_ADDRESS_CELLS = "2"
  7717. UBOOT_LOADADDRESS= "0x04 0x00000000"
  7718. See `more details about #address-cells <https://elinux.org/Device_Tree_Usage#How_Addressing_Works>`__.
  7719. :term:`UBOOT_FIT_ARM_TRUSTED_FIRMWARE`
  7720. `Trusted Firmware-A (TF-A) <https://www.trustedfirmware.org/projects/tf-a>`__
  7721. is a reference implementation of secure world software for Arm A-Profile
  7722. architectures (Armv8-A and Armv7-A), including an Exception Level 3 (EL3)
  7723. Secure Monitor. This variable enables the generation of a U-Boot FIT
  7724. image with a Trusted Firmware-A (TF-A) binary.
  7725. Its default value is "0", so set it to "1" to enable this functionality::
  7726. UBOOT_FIT_ARM_TRUSTED_FIRMWARE = "1"
  7727. :term:`UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE`
  7728. Specifies the path to the Trusted Firmware-A (TF-A) binary. Its default
  7729. value is "bl31.bin"::
  7730. UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE ?= "bl31.bin"
  7731. If a relative path is provided, the file is expected to be relative to
  7732. U-Boot's :term:`B` directory. An absolute path can be provided too,
  7733. e.g.::
  7734. UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE ?= "${DEPLOY_DIR_IMAGE}/bl31.bin"
  7735. If the Trusted Firmware-A (TF-A) binary is built in a separate recipe,
  7736. you must add the necessary dependency in a U-Boot ``.bbappend`` file. The
  7737. recipe name for Trusted Firmware-A (TF-A) binary is
  7738. ``trusted-firmware-a``, which comes from the
  7739. :yocto_git:`meta-arm </meta-arm>` layer::
  7740. do_compile[depends] += "trusted-firmware-a:do_deploy"
  7741. :term:`UBOOT_FIT_CONF_USER_LOADABLES`
  7742. Adds one or more user-defined images to the ``loadables`` property of the
  7743. configuration node of the U-Boot Image Tree Source (ITS). This variable
  7744. is handled by the local shell in the recipe so appropriate escaping
  7745. should be done, e.g. escaping quotes.::
  7746. UBOOT_FIT_CONF_USER_LOADABLES = '\"fwa\", \"fwb\"'
  7747. :term:`UBOOT_FIT_DESC`
  7748. Specifies the description string encoded into a U-Boot fitImage. The default
  7749. value is set by the :ref:`ref-classes-uboot-sign` class as follows::
  7750. UBOOT_FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
  7751. :term:`UBOOT_FIT_GENERATE_KEYS`
  7752. Decides whether to generate the keys for signing the U-Boot fitImage if
  7753. they don't already exist. The keys are created in :term:`SPL_SIGN_KEYDIR`.
  7754. The default value is "0".
  7755. Enable this as follows::
  7756. UBOOT_FIT_GENERATE_KEYS = "1"
  7757. This variable is used in the :ref:`ref-classes-uboot-sign` class.
  7758. :term:`UBOOT_FIT_HASH_ALG`
  7759. Specifies the hash algorithm used in creating the U-Boot FIT Image.
  7760. It is set by default to ``sha256`` by the :ref:`ref-classes-uboot-sign`
  7761. class.
  7762. :term:`UBOOT_FIT_KEY_GENRSA_ARGS`
  7763. Arguments to ``openssl genrsa`` for generating a RSA private key for
  7764. signing the U-Boot FIT image. The default value of this variable
  7765. is set to "-F4" by the :ref:`ref-classes-uboot-sign` class.
  7766. :term:`UBOOT_FIT_KEY_REQ_ARGS`
  7767. Arguments to ``openssl req`` for generating a certificate for signing
  7768. the U-Boot FIT image. The default value is "-batch -new" by the
  7769. :ref:`ref-classes-uboot-sign` class, "batch" for
  7770. non interactive mode and "new" for generating new keys.
  7771. :term:`UBOOT_FIT_KEY_SIGN_PKCS`
  7772. Format for the public key certificate used for signing the U-Boot FIT
  7773. image. The default value is set to "x509" by the
  7774. :ref:`ref-classes-uboot-sign` class.
  7775. :term:`UBOOT_FIT_SIGN_ALG`
  7776. Specifies the signature algorithm used in creating the U-Boot FIT Image.
  7777. This variable is set by default to "rsa2048" by the
  7778. :ref:`ref-classes-uboot-sign` class.
  7779. :term:`UBOOT_FIT_SIGN_NUMBITS`
  7780. Size of the private key used in signing the U-Boot FIT image, in number
  7781. of bits. The default value for this variable is set to "2048"
  7782. by the :ref:`ref-classes-uboot-sign` class.
  7783. :term:`UBOOT_FIT_TEE`
  7784. A Trusted Execution Environment (TEE) is a secure environment for
  7785. executing code, ensuring high levels of trust in asset management within
  7786. the surrounding system. This variable enables the generation of a U-Boot
  7787. FIT image with a Trusted Execution Environment (TEE) binary.
  7788. Its default value is "0", so set it to "1" to enable this functionality::
  7789. UBOOT_FIT_TEE = "1"
  7790. :term:`UBOOT_FIT_TEE_IMAGE`
  7791. Specifies the path to the Trusted Execution Environment (TEE) binary. Its
  7792. default value is "tee-raw.bin"::
  7793. UBOOT_FIT_TEE_IMAGE ?= "tee-raw.bin"
  7794. If a relative path is provided, the file is expected to be relative to
  7795. U-Boot's :term:`B` directory. An absolute path can be provided too,
  7796. e.g.::
  7797. UBOOT_FIT_TEE_IMAGE ?= "${DEPLOY_DIR_IMAGE}/tee-raw.bin"
  7798. If the Trusted Execution Environment (TEE) binary is built in a separate
  7799. recipe, you must add the necessary dependency in a U-Boot ``.bbappend``
  7800. file. The recipe name for Trusted Execution Environment (TEE) binary is
  7801. ``optee-os``, which comes from the :yocto_git:`meta-arm </meta-arm>`
  7802. layer::
  7803. do_compile[depends] += "optee-os:do_deploy"
  7804. :term:`UBOOT_FIT_USER_SETTINGS`
  7805. Add a user-specific snippet to the U-Boot Image Tree Source (ITS). This
  7806. variable allows the user to add one or more user-defined ``/images`` node
  7807. to the U-Boot Image Tree Source (ITS). For more details, please refer to
  7808. https://fitspec.osfw.foundation/\ .
  7809. The original content of the U-Boot Image Tree Source (ITS) is as
  7810. follows::
  7811. images {
  7812. uboot {
  7813. description = "U-Boot image";
  7814. data = /incbin/("u-boot-nodtb.bin");
  7815. type = "standalone";
  7816. os = "u-boot";
  7817. arch = "";
  7818. compression = "none";
  7819. load = <0x80000000>;
  7820. entry = <0x80000000>;
  7821. };
  7822. };
  7823. Users can include their custom ITS snippet in this variable, e.g.::
  7824. UBOOT_FIT_FWA_ITS = '\
  7825. fwa {\n\
  7826. description = \"FW A\";\n\
  7827. data = /incbin/(\"fwa.bin\");\n\
  7828. type = \"firmware\";\n\
  7829. arch = \"\";\n\
  7830. os = \"\";\n\
  7831. load = <0xb2000000>;\n\
  7832. entry = <0xb2000000>;\n\
  7833. compression = \"none\";\n\
  7834. };\n\
  7835. '
  7836. UBOOT_FIT_USER_SETTINGS = "${UBOOT_FIT_FWA_ITS}"
  7837. This variable is handled by the local shell in the recipe so appropriate
  7838. escaping should be done, e.g. escaping quotes and adding newlines with
  7839. ``\n``.
  7840. The generated content of the U-Boot Image Tree Source (ITS) is as
  7841. follows::
  7842. images {
  7843. uboot {
  7844. description = "U-Boot image";
  7845. data = /incbin/("u-boot-nodtb.bin");
  7846. type = "standalone";
  7847. os = "u-boot";
  7848. arch = "";
  7849. compression = "none";
  7850. load = <0x80000000>;
  7851. entry = <0x80000000>;
  7852. };
  7853. fwa {
  7854. description = "FW A";
  7855. data = /incbin/("fwa.bin");
  7856. type = "firmware";
  7857. arch = "";
  7858. os = "";
  7859. load = <0xb2000000>;
  7860. entry = <0xb2000000>;
  7861. compression = "none";
  7862. };
  7863. };
  7864. :term:`UBOOT_FITIMAGE_ENABLE`
  7865. This variable allows to generate a FIT image for U-Boot, which is one
  7866. of the ways to implement a verified boot process.
  7867. Its default value is "0", so set it to "1" to enable this functionality::
  7868. UBOOT_FITIMAGE_ENABLE = "1"
  7869. See the :ref:`ref-classes-uboot-sign` class for details.
  7870. :term:`UBOOT_LOADADDRESS`
  7871. Specifies the load address for the U-Boot image. During U-Boot image
  7872. creation, the :term:`UBOOT_LOADADDRESS` variable is passed as a
  7873. command-line parameter to the ``uboot-mkimage`` utility.
  7874. To pass a 64 bit address, you will also need to set:
  7875. - The :term:`FIT_ADDRESS_CELLS` variable for FIT image creation.
  7876. - The :term:`UBOOT_FIT_ADDRESS_CELLS` variable for U-Boot FIT image creation.
  7877. This variable is used by the :ref:`ref-classes-kernel-fitimage`,
  7878. :ref:`ref-classes-kernel-uimage`, :ref:`ref-classes-kernel`,
  7879. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  7880. classes.
  7881. :term:`UBOOT_LOCALVERSION`
  7882. Appends a string to the name of the local version of the U-Boot
  7883. image. For example, assuming the version of the U-Boot image built
  7884. was "2013.10", the full version string reported by U-Boot would be
  7885. "2013.10-yocto" given the following statement::
  7886. UBOOT_LOCALVERSION = "-yocto"
  7887. :term:`UBOOT_MACHINE`
  7888. Specifies the value passed on the ``make`` command line when building
  7889. a U-Boot image. The value indicates the target platform
  7890. configuration. You typically set this variable from the machine
  7891. configuration file (i.e. ``conf/machine/machine_name.conf``).
  7892. Please see the "Selection of Processor Architecture and Board Type"
  7893. section in the U-Boot README for valid values for this variable.
  7894. :term:`UBOOT_MAKE_TARGET`
  7895. Specifies the target called in the ``Makefile``. The default target
  7896. is "all".
  7897. :term:`UBOOT_MKIMAGE`
  7898. Specifies the name of the mkimage command as used by the
  7899. :ref:`ref-classes-kernel-fitimage` class to assemble
  7900. the FIT image. This can be used to substitute an alternative command, wrapper
  7901. script or function if desired. The default is "uboot-mkimage".
  7902. :term:`UBOOT_MKIMAGE_DTCOPTS`
  7903. Options for the device tree compiler passed to ``mkimage -D`` feature
  7904. while creating a FIT image with the :ref:`ref-classes-kernel-fitimage`
  7905. class. If :term:`UBOOT_MKIMAGE_DTCOPTS` is not set then the
  7906. :ref:`ref-classes-kernel-fitimage` class will not pass the ``-D`` option
  7907. to ``mkimage``.
  7908. This variable is also used by the :ref:`ref-classes-uboot-sign` class.
  7909. :term:`UBOOT_MKIMAGE_KERNEL_TYPE`
  7910. Specifies the type argument for the kernel as passed to ``uboot-mkimage``.
  7911. The default value is "kernel".
  7912. :term:`UBOOT_MKIMAGE_SIGN`
  7913. Specifies the name of the mkimage command as used by the
  7914. :ref:`ref-classes-kernel-fitimage` class to sign
  7915. the FIT image after it has been assembled (if enabled). This can be used
  7916. to substitute an alternative command, wrapper script or function if
  7917. desired. The default is "${:term:`UBOOT_MKIMAGE`}".
  7918. :term:`UBOOT_MKIMAGE_SIGN_ARGS`
  7919. Optionally specifies additional arguments for the
  7920. :ref:`ref-classes-kernel-fitimage` class to pass to the
  7921. mkimage command when signing the FIT image.
  7922. :term:`UBOOT_RD_ENTRYPOINT`
  7923. Specifies the entrypoint for the RAM disk image. During FIT image
  7924. creation, the :term:`UBOOT_RD_ENTRYPOINT` variable is used in
  7925. :ref:`ref-classes-kernel-fitimage` class to specify the entrypoint to be
  7926. used in creating the Image Tree Source for the FIT image.
  7927. :term:`UBOOT_RD_LOADADDRESS`
  7928. Specifies the load address for the RAM disk image. During FIT image
  7929. creation, the :term:`UBOOT_RD_LOADADDRESS` variable is used in
  7930. :ref:`ref-classes-kernel-fitimage` class to specify the load address to
  7931. be used in creating the Image Tree Source for the FIT image.
  7932. :term:`UBOOT_SIGN_ENABLE`
  7933. Enable signing of FIT image. The default value is "0".
  7934. This variable is used by the :ref:`ref-classes-kernel-fitimage`,
  7935. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  7936. classes.
  7937. :term:`UBOOT_SIGN_KEYDIR`
  7938. Location of the directory containing the RSA key and certificate used for
  7939. signing FIT image, used by the :ref:`ref-classes-kernel-fitimage` and
  7940. :ref:`ref-classes-uboot-sign` classes.
  7941. :term:`UBOOT_SIGN_KEYNAME`
  7942. The name of keys used by the :ref:`ref-classes-kernel-fitimage` class
  7943. for signing U-Boot FIT image stored in the :term:`UBOOT_SIGN_KEYDIR`
  7944. directory. If we have for example a ``dev.key`` key and a ``dev.crt``
  7945. certificate stored in the :term:`UBOOT_SIGN_KEYDIR` directory, you will
  7946. have to set :term:`UBOOT_SIGN_KEYNAME` to ``dev``.
  7947. :term:`UBOOT_SUFFIX`
  7948. Points to the generated U-Boot extension. For example, ``u-boot.sb``
  7949. has a ``.sb`` extension.
  7950. The default U-Boot extension is ``.bin``
  7951. :term:`UBOOT_TARGET`
  7952. Specifies the target used for building U-Boot. The target is passed
  7953. directly as part of the "make" command (e.g. SPL and AIS). If you do
  7954. not specifically set this variable, the OpenEmbedded build process
  7955. passes and uses "all" for the target during the U-Boot building
  7956. process.
  7957. :term:`UKIFY_CMD`
  7958. When inheriting the :ref:`ref-classes-uki` class,
  7959. `ukify <https://www.freedesktop.org/software/systemd/man/latest/ukify.html>`__ command to build
  7960. `Unified Kernel Image (UKI) <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  7961. Defaults to ``ukify build``.
  7962. :term:`UKI_CMDLINE`
  7963. When inheriting the :ref:`ref-classes-uki` class, the kernel command line
  7964. to use when booting the `Unified Kernel Image (UKI)
  7965. <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  7966. Defaults to ``rootwait root=LABEL=root console=${KERNEL_CONSOLE}``.
  7967. :term:`UKI_CONFIG_FILE`
  7968. When inheriting the :ref:`ref-classes-uki` class, an optional config
  7969. file for the `ukify
  7970. <https://www.freedesktop.org/software/systemd/man/latest/ukify.html>`__
  7971. command.
  7972. :term:`UKI_FILENAME`
  7973. When inheriting the :ref:`ref-classes-uki` class, the output file name
  7974. for the generated `Unified Kernel Image (UKI)
  7975. <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  7976. Defaults to ``uki.efi``.
  7977. :term:`UKI_KERNEL_FILENAME`
  7978. When inheriting the :ref:`ref-classes-uki` class, the kernel image file
  7979. name to use as input. Defaults to :term:`KERNEL_IMAGETYPE`.
  7980. :term:`UKI_SB_CERT`
  7981. When inheriting the :ref:`ref-classes-uki` class, optional UEFI
  7982. secureboot certificate matching the private key in :term:`UKI_SB_KEY`.
  7983. :term:`UKI_SB_KEY`
  7984. When inheriting the :ref:`ref-classes-uki` class, optional UEFI
  7985. secureboot private key to sign the `Unified Kernel Image (UKI)
  7986. <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  7987. :term:`UNKNOWN_CONFIGURE_OPT_IGNORE`
  7988. Specifies a list of options that, if reported by the configure script
  7989. as being invalid, should not generate a warning during the
  7990. :ref:`ref-tasks-configure` task. Normally, invalid
  7991. configure options are simply not passed to the configure script (e.g.
  7992. should be removed from :term:`EXTRA_OECONF` or
  7993. :term:`PACKAGECONFIG_CONFARGS`).
  7994. However, there are common options that are passed to all
  7995. configure scripts at a class level, but might not be valid for some
  7996. configure scripts. Therefore warnings about these options are useless.
  7997. For these cases, the options are added to :term:`UNKNOWN_CONFIGURE_OPT_IGNORE`.
  7998. The configure arguments check that uses
  7999. :term:`UNKNOWN_CONFIGURE_OPT_IGNORE` is part of the
  8000. :ref:`ref-classes-insane` class and is only enabled if the
  8001. recipe inherits the :ref:`ref-classes-autotools` class.
  8002. :term:`UNPACKDIR`
  8003. This variable, used by the :ref:`ref-classes-base` class,
  8004. specifies where fetches sources should be unpacked by the
  8005. :ref:`ref-tasks-unpack` task.
  8006. :term:`UPDATERCPN`
  8007. For recipes inheriting the
  8008. :ref:`ref-classes-update-rc.d` class, :term:`UPDATERCPN`
  8009. specifies the package that contains the initscript that is enabled.
  8010. The default value is "${PN}". Given that almost all recipes that
  8011. install initscripts package them in the main package for the recipe,
  8012. you rarely need to set this variable in individual recipes.
  8013. :term:`UPSTREAM_CHECK_COMMITS`
  8014. You can perform a per-recipe check for what the latest upstream
  8015. source code version is by calling ``devtool latest-version recipe``. If
  8016. the recipe source code is provided from Git repositories, but
  8017. releases are not identified by Git tags, set :term:`UPSTREAM_CHECK_COMMITS`
  8018. to ``1`` in the recipe, and the OpenEmbedded build system
  8019. will compare the latest commit with the one currently specified
  8020. by the recipe (:term:`SRCREV`)::
  8021. UPSTREAM_CHECK_COMMITS = "1"
  8022. :term:`UPSTREAM_CHECK_GITTAGREGEX`
  8023. You can perform a per-recipe check for what the latest upstream
  8024. source code version is by calling ``devtool latest-version recipe``. If
  8025. the recipe source code is provided from Git repositories, the
  8026. OpenEmbedded build system determines the latest upstream version by
  8027. picking the latest tag from the list of all repository tags.
  8028. You can use the :term:`UPSTREAM_CHECK_GITTAGREGEX` variable to provide a
  8029. regular expression to filter only the relevant tags should the
  8030. default filter not work correctly::
  8031. UPSTREAM_CHECK_GITTAGREGEX = "git_tag_regex"
  8032. :term:`UPSTREAM_CHECK_REGEX`
  8033. Use the :term:`UPSTREAM_CHECK_REGEX` variable to specify a different
  8034. regular expression instead of the default one when the package
  8035. checking system is parsing the page found using
  8036. :term:`UPSTREAM_CHECK_URI`::
  8037. UPSTREAM_CHECK_REGEX = "package_regex"
  8038. :term:`UPSTREAM_CHECK_URI`
  8039. You can perform a per-recipe check for what the latest upstream
  8040. source code version is by calling ``devtool latest-version recipe``. If
  8041. the source code is provided from tarballs, the latest version is
  8042. determined by fetching the directory listing where the tarball is and
  8043. attempting to find a later tarball. When this approach does not work,
  8044. you can use :term:`UPSTREAM_CHECK_URI` to provide a different URI that
  8045. contains the link to the latest tarball::
  8046. UPSTREAM_CHECK_URI = "recipe_url"
  8047. :term:`UPSTREAM_VERSION_UNKNOWN`
  8048. You can perform a per-recipe check for what the latest upstream
  8049. source code version is by calling ``devtool latest-version recipe``.
  8050. If no combination of the :term:`UPSTREAM_CHECK_URI`, :term:`UPSTREAM_CHECK_REGEX`,
  8051. :term:`UPSTREAM_CHECK_GITTAGREGEX` and :term:`UPSTREAM_CHECK_COMMITS` variables in
  8052. the recipe allows to determine what the latest upstream version is,
  8053. you can set :term:`UPSTREAM_VERSION_UNKNOWN` to ``1`` in the recipe
  8054. to acknowledge that the check cannot be performed::
  8055. UPSTREAM_VERSION_UNKNOWN = "1"
  8056. :term:`USE_DEVFS`
  8057. Determines if ``devtmpfs`` is used for ``/dev`` population. The
  8058. default value used for :term:`USE_DEVFS` is "1" when no value is
  8059. specifically set. Typically, you would set :term:`USE_DEVFS` to "0" for a
  8060. statically populated ``/dev`` directory.
  8061. See the ":ref:`dev-manual/device-manager:selecting a device manager`" section in
  8062. the Yocto Project Development Tasks Manual for information on how to
  8063. use this variable.
  8064. :term:`USE_VT`
  8065. When using
  8066. :ref:`SysVinit <dev-manual/new-recipe:enabling system services>`,
  8067. determines whether or not to run a :wikipedia:`getty <Getty_(Unix)>`
  8068. on any virtual terminals in order to enable logging in through those
  8069. terminals.
  8070. The default value used for :term:`USE_VT` is "1" when no default value is
  8071. specifically set. Typically, you would set :term:`USE_VT` to "0" in the
  8072. machine configuration file for machines that do not have a graphical
  8073. display attached and therefore do not need virtual terminal
  8074. functionality.
  8075. :term:`USER_CLASSES`
  8076. A list of classes to globally inherit. These classes are used by the
  8077. OpenEmbedded build system to enable extra features.
  8078. Classes inherited using :term:`USER_CLASSES` must be located in the
  8079. ``classes-global/`` or ``classes/`` subdirectories.
  8080. The default list is set in your ``local.conf`` file::
  8081. USER_CLASSES ?= "buildstats"
  8082. For more information, see
  8083. ``meta-poky/conf/templates/default/local.conf.sample`` in the
  8084. :term:`Source Directory`.
  8085. :term:`USERADD_DEPENDS`
  8086. Specifies a list of recipes that create users / groups (via
  8087. :term:`USERADD_PARAM` / :term:`GROUPADD_PARAM`) which a recipe
  8088. depends upon. This ensures that those users / groups are available
  8089. when building a recipe.
  8090. :term:`USERADD_ERROR_DYNAMIC`
  8091. If set to ``error``, forces the OpenEmbedded build system to produce
  8092. an error if the user identification (``uid``) and group
  8093. identification (``gid``) values are not defined in any of the files
  8094. listed in :term:`USERADD_UID_TABLES` and
  8095. :term:`USERADD_GID_TABLES`. If set to
  8096. ``warn``, a warning will be issued instead.
  8097. The default behavior for the build system is to dynamically apply
  8098. ``uid`` and ``gid`` values. Consequently, the
  8099. :term:`USERADD_ERROR_DYNAMIC` variable is by default not set. If you plan
  8100. on using statically assigned ``gid`` and ``uid`` values, you should
  8101. set the :term:`USERADD_ERROR_DYNAMIC` variable in your ``local.conf``
  8102. file as follows::
  8103. USERADD_ERROR_DYNAMIC = "error"
  8104. Overriding the
  8105. default behavior implies you are going to also take steps to set
  8106. static ``uid`` and ``gid`` values through use of the
  8107. :term:`USERADDEXTENSION`,
  8108. :term:`USERADD_UID_TABLES`, and
  8109. :term:`USERADD_GID_TABLES` variables.
  8110. .. note::
  8111. There is a difference in behavior between setting
  8112. :term:`USERADD_ERROR_DYNAMIC` to ``error`` and setting it to ``warn``.
  8113. When it is set to ``warn``, the build system will report a warning for
  8114. every undefined ``uid`` and ``gid`` in any recipe. But when it is set
  8115. to ``error``, it will only report errors for recipes that are actually
  8116. built.
  8117. This saves you from having to add static IDs for recipes that you
  8118. know will never be built.
  8119. :term:`USERADD_GID_TABLES`
  8120. Specifies a password file to use for obtaining static group
  8121. identification (``gid``) values when the OpenEmbedded build system
  8122. adds a group to the system during package installation.
  8123. When applying static group identification (``gid``) values, the
  8124. OpenEmbedded build system looks in :term:`BBPATH` for a
  8125. ``files/group`` file and then applies those ``uid`` values. Set the
  8126. variable as follows in your ``local.conf`` file::
  8127. USERADD_GID_TABLES = "files/group"
  8128. .. note::
  8129. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  8130. causes the build system to use static ``gid`` values.
  8131. :term:`USERADD_PACKAGES`
  8132. When inheriting the :ref:`ref-classes-useradd` class,
  8133. this variable specifies the individual packages within the recipe
  8134. that require users and/or groups to be added.
  8135. You must set this variable if the recipe inherits the class. For
  8136. example, the following enables adding a user for the main package in
  8137. a recipe::
  8138. USERADD_PACKAGES = "${PN}"
  8139. .. note::
  8140. It follows that if you are going to use the :term:`USERADD_PACKAGES`
  8141. variable, you need to set one or more of the :term:`USERADD_PARAM`,
  8142. :term:`GROUPADD_PARAM`, or :term:`GROUPMEMS_PARAM` variables.
  8143. :term:`USERADD_PARAM`
  8144. When inheriting the :ref:`ref-classes-useradd` class,
  8145. this variable specifies for a package what parameters should pass to
  8146. the ``useradd`` command if you add a user to the system when the
  8147. package is installed.
  8148. Here is an example from the ``dbus`` recipe::
  8149. USERADD_PARAM:${PN} = "--system --home ${localstatedir}/lib/dbus \
  8150. --no-create-home --shell /bin/false \
  8151. --user-group messagebus"
  8152. For information on the
  8153. standard Linux shell command ``useradd``, see
  8154. https://linux.die.net/man/8/useradd.
  8155. :term:`USERADD_UID_TABLES`
  8156. Specifies a password file to use for obtaining static user
  8157. identification (``uid``) values when the OpenEmbedded build system
  8158. adds a user to the system during package installation.
  8159. When applying static user identification (``uid``) values, the
  8160. OpenEmbedded build system looks in :term:`BBPATH` for a
  8161. ``files/passwd`` file and then applies those ``uid`` values. Set the
  8162. variable as follows in your ``local.conf`` file::
  8163. USERADD_UID_TABLES = "files/passwd"
  8164. .. note::
  8165. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  8166. causes the build system to use static ``uid`` values.
  8167. :term:`USERADDEXTENSION`
  8168. When set to "useradd-staticids", causes the OpenEmbedded build system
  8169. to base all user and group additions on a static ``passwd`` and
  8170. ``group`` files found in :term:`BBPATH`.
  8171. To use static user identification (``uid``) and group identification
  8172. (``gid``) values, set the variable as follows in your ``local.conf``
  8173. file: USERADDEXTENSION = "useradd-staticids"
  8174. .. note::
  8175. Setting this variable to use static ``uid`` and ``gid``
  8176. values causes the OpenEmbedded build system to employ the
  8177. :ref:`ref-classes-useradd` class.
  8178. If you use static ``uid`` and ``gid`` information, you must also
  8179. specify the ``files/passwd`` and ``files/group`` files by setting the
  8180. :term:`USERADD_UID_TABLES` and
  8181. :term:`USERADD_GID_TABLES` variables.
  8182. Additionally, you should also set the
  8183. :term:`USERADD_ERROR_DYNAMIC` variable.
  8184. :term:`VIRTUAL-RUNTIME`
  8185. :term:`VIRTUAL-RUNTIME` is a commonly used prefix for defining virtual
  8186. packages for runtime usage, typically for use in :term:`RDEPENDS`
  8187. or in image definitions.
  8188. An example is ``VIRTUAL-RUNTIME_base-utils`` that makes it possible
  8189. to either use BusyBox based utilities::
  8190. VIRTUAL-RUNTIME_base-utils = "busybox"
  8191. or their full featured implementations from GNU Coreutils
  8192. and other projects::
  8193. VIRTUAL-RUNTIME_base-utils = "packagegroup-core-base-utils"
  8194. Here are two examples using this virtual runtime package. The
  8195. first one is in :yocto_git:`initramfs-framework_1.0.bb
  8196. </poky/tree/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb?h=scarthgap>`::
  8197. RDEPENDS:${PN} += "${VIRTUAL-RUNTIME_base-utils}"
  8198. The second example is in the :yocto_git:`core-image-initramfs-boot
  8199. </poky/tree/meta/recipes-core/images/core-image-initramfs-boot.bb?h=scarthgap>`
  8200. image definition::
  8201. PACKAGE_INSTALL = "${INITRAMFS_SCRIPTS} ${VIRTUAL-RUNTIME_base-utils} base-passwd"
  8202. :term:`WARN_QA`
  8203. Specifies the quality assurance checks whose failures are reported as
  8204. warnings by the OpenEmbedded build system. You set this variable in
  8205. your distribution configuration file. For a list of the checks you
  8206. can control with this variable, see the
  8207. ":ref:`ref-classes-insane`" section.
  8208. :term:`WATCHDOG_RUNTIME_SEC`
  8209. For the ``systemd`` recipe, this controls the value of the
  8210. ``RuntimeWatchdogSec`` option in ``/etc/systemd/system.conf``. The default
  8211. value is an empty string.
  8212. :term:`WATCHDOG_TIMEOUT`
  8213. Specifies the timeout in seconds used by the ``watchdog-config`` recipe
  8214. and also by ``systemd`` during reboot. The default is 60 seconds.
  8215. :term:`WIC_SECTOR_SIZE`
  8216. The variable :term:`WIC_SECTOR_SIZE` controls the sector size of Wic
  8217. images. In the background, this controls the value of the
  8218. ``PARTED_SECTOR_SIZE`` environment variable passed to the ``parted``
  8219. command-line utility, used to generated the images. The default value is
  8220. ``512``.
  8221. For more information on how to create Wic images, see the
  8222. ":ref:`dev-manual/wic:creating partitioned images using wic`" section in
  8223. the Yocto Project Development Tasks Manual.
  8224. :term:`WIRELESS_DAEMON`
  8225. For ``connman`` and ``packagegroup-base``, specifies the wireless
  8226. daemon to use. The default is "wpa-supplicant" (note that the value
  8227. uses a dash and not an underscore).
  8228. :term:`WKS_FILE`
  8229. Specifies the location of the Wic kickstart file that is used by the
  8230. OpenEmbedded build system to create a partitioned image
  8231. (``image.wic``). For information on how to create a partitioned
  8232. image, see the
  8233. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  8234. section in the Yocto Project Development Tasks Manual. For details on
  8235. the kickstart file format, see the ":doc:`/ref-manual/kickstart`" Chapter.
  8236. :term:`WKS_FILE_DEPENDS`
  8237. When placed in the recipe that builds your image, this variable lists
  8238. build-time dependencies. The :term:`WKS_FILE_DEPENDS` variable is only
  8239. applicable when Wic images are active (i.e. when
  8240. :term:`IMAGE_FSTYPES` contains entries related
  8241. to Wic). If your recipe does not create Wic images, the variable has
  8242. no effect.
  8243. The :term:`WKS_FILE_DEPENDS` variable is similar to the
  8244. :term:`DEPENDS` variable. When you use the variable in
  8245. your recipe that builds the Wic image, dependencies you list in the
  8246. :term:`WKS_FILE_DEPENDS` variable are added to the :term:`DEPENDS` variable.
  8247. With the :term:`WKS_FILE_DEPENDS` variable, you have the possibility to
  8248. specify a list of additional dependencies (e.g. native tools,
  8249. bootloaders, and so forth), that are required to build Wic images.
  8250. Here is an example::
  8251. WKS_FILE_DEPENDS = "some-native-tool"
  8252. In the
  8253. previous example, some-native-tool would be replaced with an actual
  8254. native tool on which the build would depend.
  8255. :term:`WKS_FILES`
  8256. Specifies a list of candidate Wic kickstart files to be used by the
  8257. OpenEmbedded build system to create a partitioned image. Only the
  8258. first one that is found, from left to right, will be used.
  8259. This is only useful when there are multiple ``.wks`` files that can be
  8260. used to produce an image. A typical case is when multiple layers are
  8261. used for different hardware platforms, each supplying a different
  8262. ``.wks`` file. In this case, you specify all possible ones through
  8263. :term:`WKS_FILES`.
  8264. If only one ``.wks`` file is used, set :term:`WKS_FILE` instead.
  8265. :term:`WORKDIR`
  8266. The pathname of the work directory in which the OpenEmbedded build
  8267. system builds a recipe. This directory is located within the
  8268. :term:`TMPDIR` directory structure and is specific to
  8269. the recipe being built and the system for which it is being built.
  8270. The :term:`WORKDIR` directory is defined as follows::
  8271. ${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}
  8272. The actual directory depends on several things:
  8273. - :term:`TMPDIR`: The top-level build output directory
  8274. - :term:`MULTIMACH_TARGET_SYS`: The target system identifier
  8275. - :term:`PN`: The recipe name
  8276. - :term:`EXTENDPE`: The epoch --- if :term:`PE` is not specified, which
  8277. is usually the case for most recipes, then :term:`EXTENDPE` is blank.
  8278. - :term:`PV`: The recipe version
  8279. - :term:`PR`: The recipe revision
  8280. As an example, assume a Source Directory top-level folder name
  8281. ``poky``, a default :term:`Build Directory` at ``poky/build``, and a
  8282. ``qemux86-poky-linux`` machine target system. Furthermore, suppose
  8283. your recipe is named ``foo_1.3.0-r0.bb``. In this case, the work
  8284. directory the build system uses to build the package would be as
  8285. follows::
  8286. poky/build/tmp/work/qemux86-poky-linux/foo/1.3.0-r0
  8287. :term:`XSERVER`
  8288. Specifies the packages that should be installed to provide an X
  8289. server and drivers for the current machine, assuming your image
  8290. directly includes ``packagegroup-core-x11-xserver`` or, perhaps
  8291. indirectly, includes "x11-base" in
  8292. :term:`IMAGE_FEATURES`.
  8293. The default value of :term:`XSERVER`, if not specified in the machine
  8294. configuration, is "xserver-xorg xf86-video-fbdev xf86-input-evdev".
  8295. :term:`XZ_THREADS`
  8296. Specifies the number of parallel threads that should be used when
  8297. using xz compression.
  8298. By default this scales with core count, but is never set less than 2
  8299. to ensure that multi-threaded mode is always used so that the output
  8300. file contents are deterministic. Builds will work with a value of 1
  8301. but the output will differ compared to the output from the compression
  8302. generated when more than one thread is used.
  8303. On systems where many tasks run in parallel, setting a limit to this
  8304. can be helpful in controlling system resource usage.
  8305. :term:`XZ_MEMLIMIT`
  8306. Specifies the maximum memory the xz compression should use as a percentage
  8307. of system memory. If unconstrained the xz compressor can use large amounts of
  8308. memory and become problematic with parallelism elsewhere in the build.
  8309. "50%" has been found to be a good value.
  8310. :term:`ZSTD_COMPRESSION_LEVEL`
  8311. Specifies the compression level to be used with ZStandard compression
  8312. (from ``1`` to ``19``, set to ``3`` by default, following upstream choice).
  8313. Higher levels produce smaller files, but take longer to complete.
  8314. :term:`ZSTD_THREADS`
  8315. Specifies the number of parallel threads that should be used when
  8316. using ZStandard compression.
  8317. By default this scales with core count, but is never set less than 2
  8318. to ensure that multi-threaded mode is always used so that the output
  8319. file contents are deterministic. Builds will work with a value of 1
  8320. but the output will differ compared to the output from the compression
  8321. generated when more than one thread is used.
  8322. On systems where many tasks run in parallel, setting a limit to this
  8323. can be helpful in controlling system resource usage.