Debian Codegraph @

debian/README.source

raw
1 The Android source repositories are quite chaotic. They often include a mix
2 of things under arbitrary umbrellas. For example, there are parts of this
3 particular repository that will only ever be built when building the complete
4 Android OS (aka "target"), other parts that are only built as part of the SDK
5 to support building Android apps (aka "host"), and other parts that are used
6 both in the SDK and the Android OS. Most of the source code in this particular
7 repostory will never be built or included on Debian because it is only used in
8 the Android OS.
9
10 It is possible to see which sections will be built for what by looking at the
11 Android.mk files. The parts that are meant for the "host" system, in this
12 case Debian, will have lines like this in it:
13
14 include $(BUILD_HOST_EXECUTABLE)
15 include $(BUILD_HOST_JAVA_LIBRARY)
16 include $(BUILD_HOST_SHARED_LIBRARY)
17 include $(BUILD_HOST_STATIC_LIBRARY)
18
19 The build targets that are only for Android OS builds instead have this:
20
21 include $(BUILD_EXECUTABLE)
22 include $(BUILD_JAVA_LIBRARY)
23 include $(BUILD_SHARED_LIBRARY)
24 include $(BUILD_STATIC_LIBRARY)
25
26 A given chunk of code that is built both for "host" will have both of these
27 lines included in the Android.mk file.
28
29
30 Structure of the package's git repository
31 -----------------------------------------
32
33 The source code has been excerpted form the git repository
34 https://android.googlesource.com/platform/frameworks/base
35
36 The Android project does not release tarballs of their core software. Unlike
37 the other source packages in android-tools, this package source repo is not
38 configured following git-buildpackage's "No upstream tarballs" setup because
39 the upstream git repo is so massive, it is basically unmanageable. It can peg
40 your CPU for minutes while checking out a branch or tag.
41
42 Instead, the source tarballs are generated from the upstream git repo based on
43 the android-* tags. Use get-orig-source rule in debian/rules to generate
44 upstream tarballs.
45
46 Omitted files
47 -------------
48
49 All of the files in the upstream make for an almost 1 GiB tarball. So
50 only the section that are currently used are included in the tarball.
51 Check the debian/copyright for details. There is a bug in tar which
52 prevents uscan from doing this automatically, so use `debian/rules
53 get-orig-source`
54
55 https://bugs.debian.org/831870
56
57
58 -- Hans-Christoph Steiner <[email protected]>, Fri, 27 Nov 2020 14:21:10 +0100
59 -- Kai-Chung Yan <[email protected]> Sat, 28 Nov 2015 16:39:54 +0800