ref-variables.rst 358 KB

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