What is the LOCAL_GENERATED_SOURCES variable in Android.mk files? What is the meaning of “generated sources” per se?What is the difference between the GNU Makefile variable assignments =, ?=, := and +=?What do the makefile symbols $@ and $< mean?Including prebuilt static library in Android build systemHow to use “Chains of Implicit Rules” for MakefilesPer-file CPPFLAGS in Android.mkUnsatisfiedlinkerror: Unable to load custom NDK JNI library in Nfc system appAutodependencies for make generate the .d files but are not reading themHow can I have a step in a makefile to generate preprocess files and compile from those files?Out-of-source build doesn't match rule for object filesWhat does a comma mean in a makefile definition?

Linux tr to convert vertical text to horizontal

Can Green-Flame Blade be cast twice with the Hunter ranger's Horde Breaker ability?

Short story written from alien perspective with this line: "It's too bright to look at, so they don't"

What's the most polite way to tell a manager "shut up and let me work"?

What is a simple, physical situation where complex numbers emerge naturally?

Old black and white movie: glowing black rocks slowly turn you into stone upon touch

Opposite of "Squeaky wheel gets the grease"

Movie where a boy is transported into the future by an alien spaceship

Why was it possible to cause an Apple //e to shut down with SHIFT and paddle button 2?

Ground clearance

What does left arrow <- mean outside a do block?

Is 20 feet the maximum altitude for the Levitate spell?

When writing an error prompt, should we end the sentence with a exclamation mark or a dot?

Word for a small burst of laughter that can't be held back

Side by side histograms

What are they doing to this poor rocket?

Responsibility for visa checking

How certain is a caster of when their spell will end?

Why is Colorado so different politically from nearby states?

Is it possible for people to live in the eye of a permanent hypercane?

Did thousands of women die every year due to illegal abortions before Roe v. Wade?

You've spoiled/damaged the card

Is it a problem that pull requests are approved without any comments

Traffic law UK, pedestrians



What is the LOCAL_GENERATED_SOURCES variable in Android.mk files? What is the meaning of “generated sources” per se?


What is the difference between the GNU Makefile variable assignments =, ?=, := and +=?What do the makefile symbols $@ and $< mean?Including prebuilt static library in Android build systemHow to use “Chains of Implicit Rules” for MakefilesPer-file CPPFLAGS in Android.mkUnsatisfiedlinkerror: Unable to load custom NDK JNI library in Nfc system appAutodependencies for make generate the .d files but are not reading themHow can I have a step in a makefile to generate preprocess files and compile from those files?Out-of-source build doesn't match rule for object filesWhat does a comma mean in a makefile definition?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I was tracing the rules in build/core/Makefile to understand how system.img is generated. I came across the below rule:



INTERNAL_SYSTEMIMAGE_FILES := $(filter $(TARGET_OUT)/%, 
$(ALL_GENERATED_SOURCES)
$(ALL_DEFAULT_INSTALLED_MODULES)
$(PDK_FUSION_SYSIMG_FILES)
$(RECOVERY_RESOURCE_ZIP))
$(PDK_FUSION_SYMLINK_STAMP)


I searched for ALL_GENERATED_SOURCES in androidxref/9.0.0_r3 and found it is set to my_generated_sources in build/core/binary.mk



ALL_GENERATED_SOURCES += $(my_generated_sources)


which is further set to LOCAL_GENERATED_SOURCES in that file.



 my_generated_sources := $(LOCAL_GENERATED_SOURCES)


I don't understand what it stands for (I know that LOCAL_SRC means source files to build that module, but this I don't understand).



I tried grepping this variable in Android.mk, but the results are far from clear.



I ran grep -Hrn LOCAL_GENERATED_SOURCES external/ | less and found some Android.mk files that use LOCAL_GENERATED_SOURCES.



I followed several files, like external/mesa3d/src/mesa/program/Android.mk and found two lines corresponding to it:



LOCAL_GENERATED_SOURCES := 
$(addprefix $(intermediates)/program/,$(generated_sources_basenames))


and



LOCAL_GENERATED_SOURCES += $(MESA_GEN_NIR_H) 
$(MESA_GEN_GLSL_H)


Has anyone traced AOSP Makefiles before (to understand how .img's are built), or is there a better/proper way to do it?










share|improve this question






























    0















    I was tracing the rules in build/core/Makefile to understand how system.img is generated. I came across the below rule:



    INTERNAL_SYSTEMIMAGE_FILES := $(filter $(TARGET_OUT)/%, 
    $(ALL_GENERATED_SOURCES)
    $(ALL_DEFAULT_INSTALLED_MODULES)
    $(PDK_FUSION_SYSIMG_FILES)
    $(RECOVERY_RESOURCE_ZIP))
    $(PDK_FUSION_SYMLINK_STAMP)


    I searched for ALL_GENERATED_SOURCES in androidxref/9.0.0_r3 and found it is set to my_generated_sources in build/core/binary.mk



    ALL_GENERATED_SOURCES += $(my_generated_sources)


    which is further set to LOCAL_GENERATED_SOURCES in that file.



     my_generated_sources := $(LOCAL_GENERATED_SOURCES)


    I don't understand what it stands for (I know that LOCAL_SRC means source files to build that module, but this I don't understand).



    I tried grepping this variable in Android.mk, but the results are far from clear.



    I ran grep -Hrn LOCAL_GENERATED_SOURCES external/ | less and found some Android.mk files that use LOCAL_GENERATED_SOURCES.



    I followed several files, like external/mesa3d/src/mesa/program/Android.mk and found two lines corresponding to it:



    LOCAL_GENERATED_SOURCES := 
    $(addprefix $(intermediates)/program/,$(generated_sources_basenames))


    and



    LOCAL_GENERATED_SOURCES += $(MESA_GEN_NIR_H) 
    $(MESA_GEN_GLSL_H)


    Has anyone traced AOSP Makefiles before (to understand how .img's are built), or is there a better/proper way to do it?










    share|improve this question


























      0












      0








      0








      I was tracing the rules in build/core/Makefile to understand how system.img is generated. I came across the below rule:



      INTERNAL_SYSTEMIMAGE_FILES := $(filter $(TARGET_OUT)/%, 
      $(ALL_GENERATED_SOURCES)
      $(ALL_DEFAULT_INSTALLED_MODULES)
      $(PDK_FUSION_SYSIMG_FILES)
      $(RECOVERY_RESOURCE_ZIP))
      $(PDK_FUSION_SYMLINK_STAMP)


      I searched for ALL_GENERATED_SOURCES in androidxref/9.0.0_r3 and found it is set to my_generated_sources in build/core/binary.mk



      ALL_GENERATED_SOURCES += $(my_generated_sources)


      which is further set to LOCAL_GENERATED_SOURCES in that file.



       my_generated_sources := $(LOCAL_GENERATED_SOURCES)


      I don't understand what it stands for (I know that LOCAL_SRC means source files to build that module, but this I don't understand).



      I tried grepping this variable in Android.mk, but the results are far from clear.



      I ran grep -Hrn LOCAL_GENERATED_SOURCES external/ | less and found some Android.mk files that use LOCAL_GENERATED_SOURCES.



      I followed several files, like external/mesa3d/src/mesa/program/Android.mk and found two lines corresponding to it:



      LOCAL_GENERATED_SOURCES := 
      $(addprefix $(intermediates)/program/,$(generated_sources_basenames))


      and



      LOCAL_GENERATED_SOURCES += $(MESA_GEN_NIR_H) 
      $(MESA_GEN_GLSL_H)


      Has anyone traced AOSP Makefiles before (to understand how .img's are built), or is there a better/proper way to do it?










      share|improve this question
















      I was tracing the rules in build/core/Makefile to understand how system.img is generated. I came across the below rule:



      INTERNAL_SYSTEMIMAGE_FILES := $(filter $(TARGET_OUT)/%, 
      $(ALL_GENERATED_SOURCES)
      $(ALL_DEFAULT_INSTALLED_MODULES)
      $(PDK_FUSION_SYSIMG_FILES)
      $(RECOVERY_RESOURCE_ZIP))
      $(PDK_FUSION_SYMLINK_STAMP)


      I searched for ALL_GENERATED_SOURCES in androidxref/9.0.0_r3 and found it is set to my_generated_sources in build/core/binary.mk



      ALL_GENERATED_SOURCES += $(my_generated_sources)


      which is further set to LOCAL_GENERATED_SOURCES in that file.



       my_generated_sources := $(LOCAL_GENERATED_SOURCES)


      I don't understand what it stands for (I know that LOCAL_SRC means source files to build that module, but this I don't understand).



      I tried grepping this variable in Android.mk, but the results are far from clear.



      I ran grep -Hrn LOCAL_GENERATED_SOURCES external/ | less and found some Android.mk files that use LOCAL_GENERATED_SOURCES.



      I followed several files, like external/mesa3d/src/mesa/program/Android.mk and found two lines corresponding to it:



      LOCAL_GENERATED_SOURCES := 
      $(addprefix $(intermediates)/program/,$(generated_sources_basenames))


      and



      LOCAL_GENERATED_SOURCES += $(MESA_GEN_NIR_H) 
      $(MESA_GEN_GLSL_H)


      Has anyone traced AOSP Makefiles before (to understand how .img's are built), or is there a better/proper way to do it?







      makefile android-source






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 15 at 14:40







      HMM

















      asked Mar 24 at 13:10









      HMMHMM

      29110




      29110






















          0






          active

          oldest

          votes












          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55324137%2fwhat-is-the-local-generated-sources-variable-in-android-mk-files-what-is-the-me%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55324137%2fwhat-is-the-local-generated-sources-variable-in-android-mk-files-what-is-the-me%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

          155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해