Commit Graph

45 Commits

Author SHA1 Message Date
Puja Gupta 86fd9c970b common: Create dtbo directory to avoid error
Create possible_dtbo_dir so that make doesn't fail for fresh builds when
kernel directories don't exist and wildcard doesn't have valid content.

Change-Id: If2fc3381169d5292793339894837f39848113801
2017-05-22 14:58:15 -07:00
Puja Gupta db463c61df common: Enable DTBO signing
Add support to sign dtbo.img using avbtools

Change-Id: Idff363511ab4469566e8f951fda68d897f058316
2017-05-09 16:00:38 -07:00
Shashank Mittal 79eb38931d common: Fix kernel modules dependencies
Fix dependencies to package kernel modules.

Change-Id: I18ba90ba8d1bea7b17e90c8aeaba9cbf3345f97f
2017-03-29 16:55:14 -07:00
Shashank Mittal 9516709d78 common: Add support to generate dtbo image
Add rules to generate dtbo image when 'BOARD_KERNEL_SEPARATED_DTBO' is
set to true.

Change-Id: Ic78869f368d07ce519e361e71d55f3d58ceff352
2017-03-29 16:55:12 -07:00
Ameya Thakur a70dd84747 common: Create non-hlos mount points by default as part of the build
We now create the non-hlos mount points as part of the build for all
configurations. A/B builds require them to be in the image generated by
the build system and for the non A/B cases it does not hurt having them
created at build time and simplifies selinux rules.

Change-Id: I98ef5a9f9220b280ff0110731fb58c8e4132b05d
2016-10-11 16:07:10 -07:00
Ameya Thakur 720ef934e6 common: Generate non-hlos image mount points for A/B builds
On builds where A/B support is enabled the system image acts as the
rootfs. In this case we can no longer create the non-hlos image mount
points at run time as we used to. We now create them as part of the
build itself.

Change-Id: I30d98f7c50fca3ce7117b9b8d87150655bb5b440
2016-09-26 13:28:37 -07:00
Ameya Thakur 64368e56c6 common: Changes requied for A/B support
- Makefile change to add support for builds that do not have a recovery
  partition
- Updated the list of A/B partitions
- Fixed the order of writes in the gpt_disk_commit function
- Added a function to get the layout of a set of partitions on a disk

Change-Id: Icef65178f42cbb01727fe046640602d4cdfd339b
2016-09-13 17:30:43 -07:00
Ameya Thakur 16e5fd8192 common: Add support for new build tree structure
The kernel now resides within a subir under build_root/kernel.Adding
support for this build tree structure.

Change-Id: Ic7806d3b1780e633df0335905680731598646f97
2016-03-23 18:37:35 -07:00
David Ng 473687056b Initial release bring-up
Numerous changes to bring-up tree on new release.  Some permanent
and some temporary until all modules are in place.

Final changes:
- re-enable JACK compilation
- supporting changes for kernel source relocation to kernel/msm-3.18
- remove camera preview hint in power HAL

Temporary:
- disable Trebuchet, Mms
- disable device overlays

Change-Id: I4ecd709ab2fdae80635e9d6f35d5251724216eb5
2016-03-07 15:26:59 -08:00
Channagoud Kadabi e11948cc2f makefile: Enable compilation of uefi edk
Enable compilation of uefi edk if the target suppots uefi bootloader

Change-Id: I5cf2ae1beaca048b3d9165a74cc3c0839f33a34b
2016-01-15 12:07:07 -08:00
Linux Build Service Account c83f854bf0 Merge "Change tftp_server class from core to main" 2015-09-11 11:35:44 -07:00
Matt Wagantall 4c13497d90 common: fix possible_dtb_dirs order in generate_extra_images.mk
678eb850ea ("common: find dtb files in qcom subdirectories when
generating dt.img") failed to take into account that order matters
in the possible_dtb_dirs list of directories. More specific paths
must be listed first, since the first path that exists will be used.
Fix this by re-ordering the list so that the entries with
'/dts/qcom/' come before those that don't.

Change-Id: I82e948c0a20605f051a60fdfaae9679e1fa6555e
2015-08-29 23:28:21 -07:00
Matt Wagantall 678eb850ea common: find dtb files in qcom subdirectories when generating dt.img
This is needed to match the new convention in the msm-3.18 kernel.
The old search paths are left intact for backward-compatibility.

Change-Id: Iba7fd603df33e3dee44a3d1ff0fd5bd120a60ed4
2015-08-26 19:14:52 -07:00
Sridhar Parasuram d16caca83c Sign recovery image
LK now requires recovery image to be signed. This
is a new change to ensure that only signed images
are used

Change-Id: I25fef9c311370e3f26d2d09b577575cd2a16f880
2015-08-24 21:44:55 -07:00
Abhishek Ranjan a139a93821 Add support for generating signed LK image.
Add missing msm8952 definition in base.mk

Change-Id: I2d77505955b6cbd3f9defddd7510a40da75080a9
2015-07-02 17:17:14 +05:30
Sreedhar 8ce7d955f2 common: remove make rules for MMC_FLASHMEM1.dat
removing make rules for MMC_FLASHMEM1.dat

Change-Id: I4b95f073ebb4b0fb5b25fae074baf7b74e254d79
2014-10-31 02:51:07 -07:00
Channagoud Kadabi c54245a910 device: common: Enable compilation for appsbootloader
Enable compilation of LK bootloader

Change-Id: I239bde86e0e060b0a562ddbf4c94aa907b46a5d1
2014-05-22 13:06:48 -07:00
Sreedhar f38d630084 common: add make rules for small data image
adding make rules for generating small
user data image beside normal user data
image.

Change-Id: Ic13f3d33bdbd16f121488e476160f25235cf95fd
2014-03-09 20:28:17 -07:00
guopingy 7832a4aeb0 qcom: common: Fix size of CDROM dummy file is zero
Dummy file size is zero because design flaw.
This fix will delete the dummy file if it already exists
before make the iso file and add additional 1KB size to avoid
size gap between byte and Kbyte.

Change-Id: I8f7a0a28b74e5413d4ad3d931a69275d011b73d7
2014-03-05 19:09:10 +08:00
Xiaogang Cui 61ebe20753 qcom: common: Add -s option to calculate size
Add -s option to calculate the total size of
folder cdrom_res/ in case it has sub-dirs.

Change-Id: I733f46b6abd865aa1e6331683d57b9bca022c561
2014-02-18 14:07:31 +08:00
David Ng 4a3f6b23b6 build: Generalize kernel DTB path and optionally disable DLKM
Use $TARGET_KERNEL_ARCH to specify the architecture-dependent
path location of the DTB files.  Also, optionally disable
compilation of DLKM based on TARGET_KERNEL_DLKM_DISABLE flag.

Change-Id: I302f407d987e1b33acb0e47b284a1cb793747691
2014-02-03 16:31:27 -08:00
Xiaogang Cui 162b3cbe59 qcom: common: Update cdrom build process
The usb gadget mass_storage driver limit the min
size of CDROM file. SHOULD larger than 300 Sectors.
Each sector is 2KBytes.

If the resouce file size fit the limitation of cdrom
feature. Create cdrom_install.iso file dynamically at
compiling time.
If not, create a dummy file dynamically to increase the
total size of cdrom_install.iso

Change-Id: I49d08bad83b8debfb16fe011f350b3eed3d907cb
2014-01-10 10:33:51 +08:00
Linux Build Service Account 0e2800413b Merge "Disable generating dt.img if TARGET_NO_KERNEL is defined as true" 2014-01-08 03:27:21 -08:00
Ajay Dudani 4182828dba Disable generating dt.img if TARGET_NO_KERNEL is defined as true
TARGET_NO_KERNEL implies the kernel is not present/compiled with
the rest of the build.  In absence of a kernel, it does not make
much sense to compile a device tree either.  Make dt.img generation
tied to TARGET_NO_KERNEL flag.

Change-Id: Ie0421c7630f30c39019bebd63fd82fe52e11e982
2014-01-06 12:47:22 -08:00
Xiaogang Cui 1bcc3c0c33 msm: common: Fix typo in cdrom iso build
Fix typo in cdrom iso build.

Change-Id: Ib35e20e7f2776d2cadf10b5517df3f4788c9af58
2014-01-03 18:03:55 +08:00
Aparna Mallavarapu ba13952d8e common: Generate Android disk image for simulation software
Add support to generate the android disk image as part of the
regular android images so that simulation software can load it.

Change-Id: Ic7af0a0c17b9899fc92f5e3abea054b588ce238f

Conflicts:
	generate_extra_images.mk
2013-12-10 13:04:25 +05:30
Linux Build Service Account 75f00c1623 Merge "Build: generate persist image where applicable" 2013-10-10 07:30:19 -07:00
Xiaogang Cui 7e2994d464 msm: common: Correct the cdrom iso build
Fix the Logical mistake of cdrom iso build.

Change-Id: Iea92f3a258b23f842dae73ef863406b42677b195
2013-10-08 04:43:09 -07:00
Sreedhar 1f89a584e4 Build: generate persist image where applicable
generating persist image for vendor specific
targets ensures this

CRs-fixed: 548229

Change-Id: I771ae8a97784e9349be53340366d92a2481a7b1b
2013-10-07 00:15:02 +05:30
Mayank Rana 3a15cf4f19 common: Create usbdisk.img file with FAT32 file system
This change adds usbdisk.img file with FAT32 file system using
size provided from platform specific makefile.

Change-Id: Ica6a60bf7bf54e542de6b3cef57bd5d89a9fd353
2013-09-16 01:28:44 -07:00
Xiaogang Cui 302eca3050 qcom: common: Generate cdrom iso dynamically as part of build
This change dynamically create CDROM ISO file.Just put the resource
files into device specific cdrom_res folder.
This cdrom iso will be mounted at PC host, in order to expose
things to the end users, such as device driver etc.

Change-Id: I16e75364b323d1de9542b4d6a2d044d16131752e
2013-09-13 00:24:14 -07:00
Stephen Boyd b9906fe4f1 generate_extra_images: Look for 3.10 dtbs
The dtbs have changed location between 3.4 and 3.10. Look for the
new location first and fallback to the 3.4 location if they're
missing.

Change-Id: I7aada8dbcf01ea6f62b3235b452c9329cd69e5e8
2013-08-22 14:43:04 -07:00
SREEDHAR L a3027c2fd4 build: Add support for kernel clean
To provide kernel clean operation through
"make kernelclean"

Change-Id: I13b0e9513111edcac292f6241a39fa82f9767976
2013-05-30 00:02:14 +05:30
Channagoud Kadabi b5e7dbab6f common: Add phony target to create recovery image
Change-Id: I4061fcdea620f3f1d1a427e0d3b0c8e0c51cddb4
2012-09-06 18:22:20 +05:30
Satya Durga Srinivasu Prabhala 154c91587a common: build: clean-up generate_extra_images.mk
Replace dependencies & remove duplicate code

Change-Id: I48e4ae11c0045a2d9039e2f3fbf18d62102b77df
2012-08-17 13:11:56 +05:30
Channagoud Kadabi 9a92e70cb2 common: Add support generate secure boot image for nand devices
This patch adds support to generate secure boot images for 2k, 4k
and bchecc nand devices.

Change-Id: I90c19b3576f5a0b4c015f059c0f2c9c7dfd99f8d
2012-08-14 18:51:52 +05:30
Channagoud Kadabi 27614e2e46 common: Add phony target for aboot and kernel image
- aboot to generate apps bl
 - kernelimage to generate secure, 2k, 4k boot images

Change-Id: I68dba9ff4f42f96247fd6c2f9a101e04f724c9a4
2012-08-11 12:54:32 -06:00
Channagoud Kadabi 14ee407de8 common: Add support to generate secure boot image
Change-Id: I04091fe64678c213ef7cdb351cfd053ed12a4747
2012-08-10 16:27:13 -06:00
David Ng 0ef5003505 common: build: Generate dtbtool for Tiny Android
Explicitly add dtbtool makefile when generating for Tiny
Android as the dtbtool source path is not part of the
standard Tiny Android source search path.

Change-Id: If31963311deb43782d66589964f7fe3579c21bba
2012-08-09 14:35:19 -07:00
David Ng 14d8358ab5 common: build: Optionally generate dt.img
Generate device tree image (dt.img) if BOARD_KERNEL_SEPARATED_DT
is enabled.

Change-Id: I4f77ba8f5a6907754d90ce4141e553de1dfaedc4
2012-08-07 14:40:22 -07:00
Sunil Joseph ccc7ba1205 Revert "common: Add support to generate secure boot image"
This reverts commit 671d41497e.
2012-08-07 19:19:43 +05:30
Channagoud Kadabi 671d41497e common: Add support to generate secure boot image
Change-Id: Ie186b33ad6f78272e7d2d0a37c8b5be9071d4f02
2012-08-03 08:42:48 -06:00
Channagoud Kadabi c34456459f common: Add support recovery on nand device
Change-Id: I25a55ba724622ef5d469db082297f8ee99f19d8d
2012-07-31 18:03:33 +05:30
Satya Durga Srinivasu Prabhala 16e118cfa1 common:build: Add support for recovery image generation
- Rename make target from 2K to 4K, as 4k images are
default images for NAND devices.

- Fix persist image generatin for NAND

Change-Id: Ieea6a23a38026595205d938b862b6db36266e76f
2012-07-18 17:22:34 +05:30
Satya Durga Srinivasu Prabhala d88e88857b common:build: add support for generating extra images
extra images like persist & NAND generation supported
with this change.

Change-Id: Ia1775ac5ac4686827ea550b2fac4044806ab3254
2012-07-14 12:07:51 +05:30