variables.rst 406 KB

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