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;
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
add a comment |
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
add a comment |
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
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
makefile android-source
edited Apr 15 at 14:40
HMM
asked Mar 24 at 13:10
HMMHMM
29110
29110
add a comment |
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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