mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-01-12 01:20:20 +00:00
Compare commits
68 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d1578c08bd | ||
|
|
eb3821432d | ||
|
|
7eb568bda9 | ||
|
|
4c4f7e1d12 | ||
|
|
72138932ea | ||
|
|
92effbbcad | ||
|
|
72def59ce0 | ||
|
|
882c2acca7 | ||
|
|
afabec7ba3 | ||
|
|
5548cad9ff | ||
|
|
901b6c2b24 | ||
|
|
803c7f96b7 | ||
|
|
091a44e838 | ||
|
|
aac938b153 | ||
|
|
86f7e559ac | ||
|
|
f79abadb2b | ||
|
|
f9253dc88f | ||
|
|
c5c384d009 | ||
|
|
d607e15547 | ||
|
|
445007a3e3 | ||
|
|
4f1c668dc9 | ||
|
|
7bfd7b5d15 | ||
|
|
5e740e406e | ||
|
|
983dd84d53 | ||
|
|
2f587a46d7 | ||
|
|
f6c89f01b7 | ||
|
|
0f4c436a04 | ||
|
|
e16b3f5c49 | ||
|
|
990d8f6225 | ||
|
|
6cdd462232 | ||
|
|
323a782a84 | ||
|
|
11cef2ccb3 | ||
|
|
ceb91a69d1 | ||
|
|
97067d97d3 | ||
|
|
758b4becfc | ||
|
|
7860fdf1e0 | ||
|
|
ebc910f016 | ||
|
|
b5d21cb2f4 | ||
|
|
6534ddcc6c | ||
|
|
2c7119bfab | ||
|
|
d343e3021c | ||
|
|
df3e392464 | ||
|
|
2c3d72b181 | ||
|
|
2d2af9cd29 | ||
|
|
4acd58e753 | ||
|
|
12905c6428 | ||
|
|
ff8c391fdb | ||
|
|
29de82b1b5 | ||
|
|
a5616a99d2 | ||
|
|
8ec2048cfb | ||
|
|
8626009864 | ||
|
|
ec8544247c | ||
|
|
58140ec4f4 | ||
|
|
ce2c6835ca | ||
|
|
9d9cee21c5 | ||
|
|
12482f8f91 | ||
|
|
2506f037aa | ||
|
|
4c7332752c | ||
|
|
1923b5f921 | ||
|
|
cb01c93702 | ||
|
|
e786a9e186 | ||
|
|
53703700b3 | ||
|
|
466e558617 | ||
|
|
fe1f2777d0 | ||
|
|
499b62588b | ||
|
|
0bc3d9bb11 | ||
|
|
467cfb121e | ||
|
|
c5e7cb5109 |
@@ -7,3 +7,5 @@ BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend"
|
||||
BBFILE_COLLECTIONS += "meta-ti"
|
||||
BBFILE_PATTERN_meta-ti := "^${LAYERDIR}/"
|
||||
BBFILE_PRIORITY_meta-ti = "6"
|
||||
|
||||
LICENSE_PATH += "${LAYERDIR}/licenses"
|
||||
|
||||
@@ -9,7 +9,7 @@ UBOOT_MACHINE = "da850evm_config"
|
||||
UBOOT_ENTRYPOINT = "0xc0008000"
|
||||
UBOOT_LOADADDRESS = "0xc0008000"
|
||||
|
||||
IMAGE_FSTYPES += "tar.gz ubi"
|
||||
IMAGE_FSTYPES += "tar.gz"
|
||||
|
||||
SERIAL_CONSOLE = "115200 ttyS2"
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ SERIAL_CONSOLE = "115200 ttyO0"
|
||||
# UBI: logical eraseblock size: 253952 bytes
|
||||
# from ubiattach stdout:
|
||||
# UBI device number 0, total 994 LEBs
|
||||
MKUBIFS_ARGS = "-F -m 4096 -e 253952 -c 994"
|
||||
MKUBIFS_ARGS = "-F -m 4096 -e 253952 -c 1918"
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 11 -O 4096
|
||||
# from dmesg:
|
||||
|
||||
@@ -8,16 +8,14 @@ PREFERRED_PROVIDER_virtual/bootloader = "u-boot-keystone"
|
||||
PREFERRED_PROVIDER_u-boot = "u-boot-keystone"
|
||||
|
||||
# Increase this everytime you change something in the kernel
|
||||
MACHINE_KERNEL_PR = "r6"
|
||||
MACHINE_KERNEL_PR = "r7"
|
||||
|
||||
KERNEL_IMAGETYPE = "uImage"
|
||||
|
||||
UBOOT_MACHINE = "tci6638_evm_config"
|
||||
|
||||
UBOOT_ENTRYPOINT = "0x80008000"
|
||||
UBOOT_LOADADDRESS = "0x80008000"
|
||||
|
||||
EXTRA_IMAGEDEPENDS += "u-boot"
|
||||
EXTRA_IMAGEDEPENDS += "boot-monitor"
|
||||
|
||||
MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat"
|
||||
MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat pci"
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: Keystone 2 machine
|
||||
#@DESCRIPTION: Machine configuration for the TI Keystone 2
|
||||
#@NAME: Keystone 2 K2E machine
|
||||
#@DESCRIPTION: Machine configuration for the TI Keystone 2 K2E EVM
|
||||
|
||||
require conf/machine/include/keystone.inc
|
||||
|
||||
UBOOT_MACHINE = "k2e_evm_config"
|
||||
|
||||
BOOT_MONITOR_MAKE_TARGET = "k2e"
|
||||
|
||||
IMAGE_FSTYPES += "ubi tar.gz cpio"
|
||||
|
||||
SERIAL_CONSOLE = "115200 ttyS0"
|
||||
@@ -15,9 +19,8 @@ SYSVINIT_ENABLED_GETTYS = ""
|
||||
# UBI: smallest flash I/O unit: 2048
|
||||
# UBI: logical eraseblock size: 126976 bytes
|
||||
# from ubiattach stdout:
|
||||
# UBI device number 0, total 857 LEBs
|
||||
# MKUBIFS_ARGS = "-m 2048 -e 129024 -c 857"
|
||||
MKUBIFS_ARGS = "-F -m 2048 -e 126976 -c 857"
|
||||
# UBI device number 0, total 3856 LEBs
|
||||
MKUBIFS_ARGS = "-F -m 2048 -e 126976 -c 3856"
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 4
|
||||
# from dmesg:
|
||||
30
conf/machine/k2hk-evm.conf
Normal file
30
conf/machine/k2hk-evm.conf
Normal file
@@ -0,0 +1,30 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: Keystone 2 K2HK machine
|
||||
#@DESCRIPTION: Machine configuration for the TI Keystone 2 K2HK EVM
|
||||
|
||||
require conf/machine/include/keystone.inc
|
||||
|
||||
UBOOT_MACHINE = "k2hk_evm_config"
|
||||
|
||||
BOOT_MONITOR_MAKE_TARGET = "k2hk"
|
||||
|
||||
IMAGE_FSTYPES += "ubi tar.gz cpio"
|
||||
|
||||
SERIAL_CONSOLE = "115200 ttyS0"
|
||||
|
||||
SYSVINIT_ENABLED_GETTYS = ""
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 4
|
||||
# From dmesg:
|
||||
# UBI: smallest flash I/O unit: 2048
|
||||
# UBI: logical eraseblock size: 126976 bytes
|
||||
# from ubiattach stdout:
|
||||
# UBI device number 0, total 3856 LEBs
|
||||
MKUBIFS_ARGS = "-F -m 2048 -e 126976 -c 3856"
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 4
|
||||
# from dmesg:
|
||||
# UBI: smallest flash I/O unit: 2048
|
||||
# UBI: physical eraseblock size: 131072 bytes (128 KiB)
|
||||
# UBI: sub-page size: 2048
|
||||
UBINIZE_ARGS = "-m 2048 -p 128KiB -s 2048 -O 2048"
|
||||
30
conf/machine/k2l-evm.conf
Normal file
30
conf/machine/k2l-evm.conf
Normal file
@@ -0,0 +1,30 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: Keystone 2 K2L machine
|
||||
#@DESCRIPTION: Machine configuration for the TI Keystone 2 K2L EVM
|
||||
|
||||
require conf/machine/include/keystone.inc
|
||||
|
||||
UBOOT_MACHINE = "k2l_evm_config"
|
||||
|
||||
BOOT_MONITOR_MAKE_TARGET = "k2l"
|
||||
|
||||
IMAGE_FSTYPES += "ubi tar.gz cpio"
|
||||
|
||||
SERIAL_CONSOLE = "115200 ttyS0"
|
||||
|
||||
SYSVINIT_ENABLED_GETTYS = ""
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 4
|
||||
# From dmesg:
|
||||
# UBI: smallest flash I/O unit: 4096
|
||||
# UBI: logical eraseblock size: 253952 bytes
|
||||
# from ubiattach stdout:
|
||||
# UBI device number 0, total 1926 LEBs
|
||||
MKUBIFS_ARGS = "-F -m 4096 -e 253952 -c 1926"
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 4
|
||||
# from dmesg:
|
||||
# UBI: smallest flash I/O unit: 4096
|
||||
# UBI: physical eraseblock size: 256 KiB
|
||||
# UBI: sub-page size: 4096
|
||||
UBINIZE_ARGS = "-m 4096 -p 256KiB -s 4096 -O 4096"
|
||||
62
licenses/TI-TFL
Normal file
62
licenses/TI-TFL
Normal file
@@ -0,0 +1,62 @@
|
||||
TEXAS INSTRUMENTS TEXT FILE LICENSE
|
||||
|
||||
Copyright (c) [earliest year] - [latest year] Texas Instruments Incorporated
|
||||
|
||||
All rights reserved not granted herein.
|
||||
|
||||
Limited License.
|
||||
|
||||
Texas Instruments Incorporated grants a world-wide, royalty-free,
|
||||
non-exclusive license under copyrights and patents it now or hereafter owns
|
||||
or controls to make, have made, use, import, offer to sell and sell
|
||||
("Utilize") this software subject to the terms herein. With respect to the
|
||||
foregoing patent license, such license is granted solely to the extent that
|
||||
any such patent is necessary to Utilize the software alone. The patent
|
||||
license shall not apply to any combinations which include this software,
|
||||
other than combinations with devices manufactured by or for TI ("TI
|
||||
Devices"). No hardware patent is licensed hereunder.
|
||||
|
||||
Redistributions must preserve existing copyright notices and reproduce this
|
||||
license (including the above copyright notice and the disclaimer and (if
|
||||
applicable) source code license limitations below) in the documentation
|
||||
and/or other materials provided with the distribution
|
||||
|
||||
Redistribution and use in binary form, without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* No reverse engineering, decompilation, or disassembly of this software is
|
||||
permitted with respect to any software provided in binary form.
|
||||
|
||||
* any redistribution and use are licensed by TI for use only with TI
|
||||
Devices.
|
||||
|
||||
* Nothing shall obligate TI to provide you with source code for the software
|
||||
licensed and provided to you in object code.
|
||||
|
||||
If software source code is provided to you, modification and redistribution
|
||||
of the source code are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* any redistribution and use of the source code, including any resulting
|
||||
derivative works, are licensed by TI for use only with TI Devices.
|
||||
|
||||
* any redistribution and use of any object code compiled from the source
|
||||
code and any resulting derivative works, are licensed by TI for use only
|
||||
with TI Devices.
|
||||
|
||||
Neither the name of Texas Instruments Incorporated nor the names of its
|
||||
suppliers may be used to endorse or promote products derived from this
|
||||
software without specific prior written permission.
|
||||
|
||||
DISCLAIMER.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "AS IS" AND ANY EXPRESS
|
||||
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
NO EVENT SHALL TI AND TI'S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
||||
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
||||
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
206
licenses/TI-TSPA
Normal file
206
licenses/TI-TSPA
Normal file
@@ -0,0 +1,206 @@
|
||||
Texas Instruments Incorporated
|
||||
Technology and Software Publicly Available
|
||||
Software License Agreement
|
||||
|
||||
|
||||
Important - Please read the following license agreement carefully. This is
|
||||
a legally binding agreement. Do not click "i have read and agree" or use
|
||||
(as applicable) the Licensed Materials unless: (1) you are authorized to
|
||||
accept and agree to the terms of this license agreement on behalf of
|
||||
yourself or your company (as applicable) and (2) you intend to be bound by
|
||||
the terms of this license agreement on behalf of yourself or your company
|
||||
(as applicable).
|
||||
|
||||
This Software License Agreement ("Agreement") is a legal agreement between
|
||||
you (either an individual or entity) and Texas Instruments Incorporated
|
||||
("TI"), 12500 TI Boulevard, Dallas, Texas 75243. The "Licensed Materials"
|
||||
subject to this Agreement include the software programs (in whole or in
|
||||
part), that accompany this Agreement and set forth in the applicable
|
||||
software manifest and which you access "on-line" and/or electronic
|
||||
documentation (in whole or in part) associated and provided with these
|
||||
software programs. By installing, copying or otherwise using the Licensed
|
||||
Materials you agree to abide by the terms of this Agreement. If you choose
|
||||
not to accept or agree with these terms, do not download or install the
|
||||
Licensed Materials.
|
||||
|
||||
Note Regarding Possible Access to Open Source Software: The Licensed
|
||||
Materials may be bundled with Open Source Software. "Open Source Software"
|
||||
means any software licensed under terms requiring that (A) other software
|
||||
("Proprietary Software") incorporated, combined or distributed with such
|
||||
software or developed using such software: (i) be disclosed or distributed
|
||||
in source code form; or (ii) otherwise be licensed on terms inconsistent
|
||||
with the terms of this Agreement, including but not limited to permitting
|
||||
use of the Proprietary Software on or with devices other than TI Devices, or
|
||||
(B) require the owner of Proprietary Software to license any of its patents
|
||||
to users of the Open Source Software and/or Proprietary Software
|
||||
incorporated, combined or distributed with such Open Source Software or
|
||||
developed using such Open Source Software.
|
||||
|
||||
You may gain access to Open Source Software, in which case such Open Source
|
||||
Software will be listed in the applicable software manifest (in whole or in
|
||||
part, the "Open Source Materials"). Your use of the Open Source Materials
|
||||
is subject to the separate licensing terms applicable to such Open Source
|
||||
Materials as specified in the applicable software manifest. For
|
||||
clarification, this Agreement does not limit your rights under, or grant you
|
||||
rights that supersede, the license terms of any applicable Open Source
|
||||
Materials license agreement. If any of the Open Source Materials have been
|
||||
provided to you in object code only, TI will provide to you or show you
|
||||
where can access the source code versions of such Open Source Materials if
|
||||
you contact TI at Texas Instruments Incorporated, 12500 TI Boulevard, Mail
|
||||
Station 8638, Dallas, Texas 75243, Attention: Contracts Manager. You may
|
||||
terminate this Agreement in the event you choose not to accept or agree with
|
||||
the terms in any applicable Open Source Materials license agreement,
|
||||
provided that such termination occurs within five (5) calendar days of
|
||||
acceptance of this Agreement and you abide by all applicable license terms
|
||||
in this Agreement until such termination.
|
||||
|
||||
1. License.
|
||||
|
||||
a. Source Code License. For the Licensed Materials provided in source code
|
||||
format, TI hereby grants to you a limited, non-exclusive license to
|
||||
reproduce, use, and create modified or derivative works of the Licensed
|
||||
Materials provided to you in source code format and to distribute an
|
||||
unlimited number of copies of such source code Licensed Materials, or any
|
||||
derivatives thereof, in any format.
|
||||
|
||||
b. Object Code License. For the Licensed Materials provided in object code
|
||||
format, TI hereby grants to you a limited, non-exclusive license to
|
||||
reproduce and use the Licensed Materials provided to you in object code
|
||||
format and to distribute an unlimited number of object or executable copies
|
||||
of such object code Licensed Materials.
|
||||
|
||||
2. Termination. This Agreement is effective until terminated. Without
|
||||
prejudice to any other rights, TI may terminate your right to use the
|
||||
Licensed Materials under this Agreement if you fail to comply with the terms
|
||||
of this Agreement. In such event, you shall destroy all copies of the
|
||||
Licensed Materials, including all portions and derivatives thereof.
|
||||
|
||||
3. Intellectual Property Rights.
|
||||
|
||||
a. The Licensed Materials being provided to you hereunder are being made
|
||||
publicly available by TI, even though they contain copyrighted material of
|
||||
TI and its licensors, if applicable. In no event may you alter, remove or
|
||||
destroy any copyright notice included in the Licensed Materials. To the
|
||||
extent that any of the Licensed Materials are provided in binary or object
|
||||
code only, you may not unlock, decompile, reverse engineer, disassemble or
|
||||
otherwise translate such binary or object code to human-perceivable form.
|
||||
The source code of such reverse engineered code may contain TI trade secret
|
||||
and other proprietary information. TI reserves all rights not specifically
|
||||
granted under this Agreement.
|
||||
|
||||
b. Certain Licensed Materials may (i) require patent licenses from third
|
||||
parties claiming patent rights covering implementation of the Licensed
|
||||
Materials or (ii) be based on industry recognized standards or software
|
||||
programs published by industry recognized standards bodies and certain third
|
||||
parties may claim to own patents or copyrights that cover implementation of
|
||||
those standards. You acknowledge and agree that this Agreement does not
|
||||
convey a license to any such third party patents and copyrights.
|
||||
|
||||
c. YOU ACKNOWLEDGE AND AGREE THAT TI SHALL NOT BE LIABLE FOR AND SHALL NOT
|
||||
DEFEND OR INDEMNIFY YOU AGAINST ANY THIRD PARTY INFRINGEMENT CLAIM THAT
|
||||
RELATES TO OR IS BASED ON YOUR MANUFACTURE, USE, OR DISTRIBUTION OF THE
|
||||
LICENSED MATERIALS OR YOUR MANUFACTURE, USE, OFFER FOR SALE, SALE,
|
||||
IMPORTATION OR DISTRIBUTION OF YOUR PRODUCTS THAT INCLUDE OR INCORPORATE THE
|
||||
LICENSED MATERIALS.
|
||||
|
||||
d. You acknowledge and agree that you are responsible for any fees or
|
||||
royalties that may be payable to any third party based on such third party's
|
||||
interests in the Licensed Materials described in Section 3(b) above (the
|
||||
"Third Party Payment Obligations"). You agree to indemnify TI against any
|
||||
Third Party Payment Obligations and will defend any claim, suit or
|
||||
proceeding brought against TI insofar as such claim, suit or proceeding is
|
||||
based on your failure to pay any Third Party Payment Obligations.
|
||||
|
||||
4. Warranties and Limitations. THE LICENSED MATERIALS ARE PROVIDED "AS IS".
|
||||
TI AND ITS LICENSORS MAKE NO WARRANTY OR REPRESENTATION, EXPRESS, IMPLIED OR
|
||||
STATUTORY, INCLUDING ANY IMPLIED WARRANTIES OF MERCHANTIBILITY, FITNESS FOR
|
||||
A PARTICULAR PURPOSE, LACK OF VIRUSES, ACCURACY OR COMPLETENESS OF
|
||||
RESPONSES, RESULTS AND LACK OF NEGLIGENCE. TI DISCLAIMS ANY WARRANTY OF
|
||||
TITLE, QUIET ENJOYMENT, QUIET POSESSION, AND NON-INFRINGEMENT OF ANY THIRD
|
||||
PARTY INTELLECTUAL PROPERTY RIGHTS WITH REGARD TO THE LICENSED MATERIALS OR
|
||||
USE OF THOSE MATERIALS.
|
||||
|
||||
YOU ACKNOWLEDGE AND AGREE THAT THE LICENSED MATERIALS MAY NOT BE INTENDED
|
||||
FOR PRODUCTION APPLICATIONS AND MAY CONTAIN IRREGULARITIES AND DEFECTS NOT
|
||||
FOUND IN PRODUCTION SOFTWARE. FURTHERMORE, YOU ACKNOWLEDGE AND AGREE THAT
|
||||
THE LICENSED MATERIALS HAVE NOT BEEN TESTED OR CERTIFIED BY ANY GOVERNMENT
|
||||
AGENCY OR INDUSTRY REGULATORY ORGANIZATION OR ANY OTHER THIRD PARTY
|
||||
ORGANIZATION. YOU AGREE THAT PRIOR TO USING, INCORPORATING OR DISTRIBUTING
|
||||
THE LICENSED MATERIALS IN OR WITH ANY COMMERCIAL PRODUCT THAT YOU WILL
|
||||
THOROUGHLY TEST THE PRODUCT AND THE FUNCTIONALITY OF THE LICENSED MATERIALS
|
||||
IN OR WITH THAT PRODUCT AND BE SOLELY RESPONSIBLE FOR ANY PROBLEMS OR
|
||||
FAILURES.
|
||||
|
||||
IN NO EVENT SHALL TI OR ITS LICENSORS BE LIABLE FOR ANY SPECIAL, INDIRECT,
|
||||
INCIDENTAL, PUNITIVE OR CONSEQUENTIAL DAMAGES, HOWEVER CAUSED ON ANY THEORY
|
||||
OF LIABILITY, ARISING IN ANY WAY OUT OF THIS AGREEMENT, OR YOUR USE OF THE
|
||||
LICENSED MATERIALS, WHETHER OR NOT TI HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES. EXCLUDED DAMAGES INCLUDE, BUT ARE NOT LIMITED TO, COST OF
|
||||
REMOVAL OR REINSTALLATION, OUTSIDE COMPUTER TIME, LABOR COSTS, LOSS OR
|
||||
CORRUPTION OF DATA, LOSS OF GOODWILL, LOSS OF PROFITS, LOSS OF SAVINGS, OR
|
||||
LOSS OF USE OR INTERRUPTION OF BUSINESS OR ANY OTHER ECONOMIC LOSS. IN NO
|
||||
EVENT WILL TI'S AGGREGATE LIABILITY UNDER THIS AGREEMENT OR ARISING OUT OF
|
||||
YOUR USE OF THE LICENSED MATERIALS EXCEED FIVE HUNDRED U.S. DOLLARS
|
||||
(US$500).
|
||||
|
||||
Because some jurisdictions do not allow the exclusion or limitation of
|
||||
incidental or consequential damages or limitation on how long an implied
|
||||
warranty lasts, the above limitations or exclusions may not apply to you.
|
||||
|
||||
5. Export Control. The Licensed Materials may be subject to the export or
|
||||
import regulations of certain countries. You agree to comply with all such
|
||||
regulations and acknowledge that you have the responsibility to obtain any
|
||||
licenses or other authorizations that may be required to export, re-export
|
||||
or import the Licensed Materials.
|
||||
|
||||
6. Governing Law, Jurisdiction and Severability. This Agreement will be
|
||||
governed by and interpreted in accordance with the laws of the State of
|
||||
Texas, without reference to conflict of laws principles. If for any reason
|
||||
a court of competent jurisdiction finds any provision of the Agreement to be
|
||||
unenforceable, that provision will be enforced to the maximum extent
|
||||
possible to effectuate the intent of the parties and the remainder of the
|
||||
Agreement shall continue in full force and effect. This Agreement shall not
|
||||
be governed by the United Nations Convention on Contracts for the
|
||||
International Sale of Goods, or by the Uniform Computer Information
|
||||
Transactions Act (UCITA). The parties agree that non-exclusive jurisdiction
|
||||
for any dispute arising out of or relating to this Agreement lies within the
|
||||
courts located in the State of Texas. Notwithstanding the foregoing, any
|
||||
judgment may be enforced in any United States or foreign court, and either
|
||||
party may seek injunctive relief in any United States or foreign court.
|
||||
Failure by TI to enforce any provision of this Agreement shall not be deemed
|
||||
a waiver of future enforcement of that or any other provision in this
|
||||
Agreement or any other agreement that may be in place between the parties.
|
||||
|
||||
7. PRC Provisions. If you are located in the People's Republic of China
|
||||
("PRC") or if the Licensed Materials will be sent to the PRC, the following
|
||||
provisions shall apply:
|
||||
|
||||
a. Registration Requirements. You shall be solely responsible for
|
||||
performing all acts and obtaining all approvals that may be required in
|
||||
connection with this Agreement by the government of the PRC, including but
|
||||
not limited to registering pursuant to, and otherwise complying with, the
|
||||
PRC Measures on the Administration of Software Products, Management
|
||||
Regulations on Technology Import-Export, and Technology Import and Export
|
||||
Contract Registration Management Rules. Upon receipt of such approvals from
|
||||
the government authorities, you shall forward evidence of all such approvals
|
||||
to TI for its records. In the event that you fail to obtain any such
|
||||
approval or registration, you shall be solely responsible for any and all
|
||||
losses, damages or costs resulting therefrom, and shall indemnify TI for all
|
||||
such losses, damages or costs.
|
||||
|
||||
b. Governing Language. This Agreement is written and executed in the
|
||||
English language. If a translation of this Agreement is required for any
|
||||
purpose, including but not limited to registration of the Agreement pursuant
|
||||
to any governmental laws, regulations or rules, you shall be solely
|
||||
responsible for creating such translation. Any translation of this
|
||||
Agreement into a language other than English is intended solely in order to
|
||||
comply with such laws or for reference purposes, and the English language
|
||||
version shall be authoritative and controlling.
|
||||
|
||||
8. Entire Agreement. This is the entire agreement between you and TI and
|
||||
supersedes any prior agreement between the parties related to the subject
|
||||
matter of this Agreement. No amendment or modification of this Agreement
|
||||
will be effective unless in writing and signed by a duly authorized
|
||||
representative of TI. You hereby warrant and represent that you have
|
||||
obtained all authorizations and other applicable consents required
|
||||
empowering you to enter into this Agreement.
|
||||
@@ -5,23 +5,22 @@ LICENSE = "BSD"
|
||||
|
||||
BOOT_MONITOR_BINARY ?= "skern.bin"
|
||||
BOOT_MONITOR_IMAGE ?= "skern-${MACHINE}.bin"
|
||||
BOOT_MONITOR_MAKE_TARGET ?= "all"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=25fe219a6febf6e5bb45beda1b2eb315"
|
||||
|
||||
COMPATIBLE_MACHINE = "keystone-evm"
|
||||
COMPATIBLE_MACHINE = "keystone"
|
||||
|
||||
SRC_URI = "git://git.ti.com/keystone-linux/boot-monitor.git;protocol=git;branch=${BRANCH}"
|
||||
|
||||
PV = "2.0"
|
||||
PR = "r0+gitr${SRCPV}"
|
||||
PR = "r1+gitr${SRCPV}"
|
||||
|
||||
BRANCH = "master"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
#Tag "K2_BM_13.11"
|
||||
SRCREV = "ba597d183423971e63295cdd59d3c90245e9170a"
|
||||
#Tag "K2_BM_14.05"
|
||||
SRCREV = "0e3ffe1ea4a0cee38ae2406901b7cf4d5324b5e9"
|
||||
|
||||
do_compile () {
|
||||
unset LDFLAGS
|
||||
|
||||
67
recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.01.bb
Normal file
67
recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.01.bb
Normal file
@@ -0,0 +1,67 @@
|
||||
DESCRIPTION = "Kernel drivers for the PowerVR SGX chipset found in the omap3 SoCs"
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://GPL-COPYING;md5=60422928ba677faaa13d6ab5f5baaa1e"
|
||||
|
||||
TI_BIN_UNPK_CMDS="Y: qY:workdir:Y"
|
||||
require ../../recipes-ti/includes/ti-eula-unpack.inc
|
||||
|
||||
SGXPV = "5_01_01_01"
|
||||
IMGPV = "1.10.2359475"
|
||||
|
||||
inherit module
|
||||
|
||||
MACHINE_KERNEL_PR_append = "a"
|
||||
PR = "${MACHINE_KERNEL_PR}"
|
||||
|
||||
BINFILE_HARDFP = "Graphics_SDK_setuplinux_hardfp_${SGXPV}.bin"
|
||||
MD5SUM_HARDFP = "94acdbd20152c905939c2448d5e80a72"
|
||||
SHA256SUM_HARDFP = "7f647bf45a5ce8ba9aaa28c4afe85fced4275f9a4567a1886d4460b76c9051ae"
|
||||
|
||||
# For now we only have hardfp version
|
||||
python __anonymous() {
|
||||
tunes = bb.data.getVar("TUNE_FEATURES", d, 1)
|
||||
if not tunes:
|
||||
return
|
||||
pkgn = bb.data.getVar("PN", d, 1)
|
||||
pkgv = bb.data.getVar("PV", d, 1)
|
||||
if "callconvention-hard" not in tunes:
|
||||
bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
|
||||
raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
|
||||
}
|
||||
|
||||
BINFILE := "${BINFILE_HARDFP}"
|
||||
|
||||
SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/${SGXPV}/exports/${BINFILE}"
|
||||
|
||||
SRC_URI[md5sum] := "${MD5SUM_HARDFP}"
|
||||
SRC_URI[sha256sum] := "${SHA256SUM_HARDFP}"
|
||||
|
||||
TI_BIN_UNPK_WDEXT="/Graphics_SDK_${SGXPV}"
|
||||
S = "${WORKDIR}${TI_BIN_UNPK_WDEXT}/GFX_Linux_KM"
|
||||
|
||||
PVRBUILD = "release"
|
||||
export KERNELDIR = "${STAGING_KERNEL_DIR}"
|
||||
|
||||
INHIBIT_PACKAGE_STRIP = "1"
|
||||
|
||||
TI_PLATFORM_omap3 = "omap3630"
|
||||
TI_PLATFORM_ti814x = "ti81xx"
|
||||
TI_PLATFORM_ti816x = "ti81xx"
|
||||
TI_PLATFORM_ti33x = "ti335x"
|
||||
TI_PLATFORM_ti43x = "ti43xx"
|
||||
|
||||
MODULESLOCATION_omap3 = "dc_omapfb3_linux"
|
||||
MODULESLOCATION_ti814x = "dc_ti81xx_linux"
|
||||
MODULESLOCATION_ti816x = "dc_ti81xx_linux"
|
||||
MODULESLOCATION_ti33x = "dc_ti335x_linux"
|
||||
MODULESLOCATION_ti43x = "dc_ti43xx_linux"
|
||||
|
||||
MAKE_TARGETS = " BUILD=${PVRBUILD} TI_PLATFORM=${TI_PLATFORM} SUPPORT_XORG=${SUPPORT_XORG}"
|
||||
|
||||
do_install() {
|
||||
mkdir -p ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
|
||||
cp ${S}/pvrsrvkm.ko \
|
||||
${S}/services4/3rdparty/${MODULESLOCATION}/omaplfb.ko \
|
||||
${S}/services4/3rdparty/bufferclass_ti/bufferclass_ti.ko \
|
||||
${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
|
||||
}
|
||||
@@ -1,16 +1,16 @@
|
||||
DESCRIPTION = "Cortex-M3 binary blob for suspend-resume"
|
||||
|
||||
LICENSE = "TI-BSD"
|
||||
LIC_FILES_CHKSUM = "file://License.txt;md5=858099c817e47ea63559fc6b67ae8d91"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://License.txt;md5=7bdc54a749ab7a7dea999d25d99a41b8"
|
||||
|
||||
PV = "05.00.00.01"
|
||||
PV = "05.00.00.03"
|
||||
PR = "r1"
|
||||
|
||||
# Make package machine specific due to different init scripts
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
# SRCREV corresponds to tag v05.00.00.01
|
||||
SRCREV = "40cb75b9dd9ba15c6de1c15cbb7cce8f1a6588b8"
|
||||
# SRCREV corresponds to tag v05.00.00.03
|
||||
SRCREV = "a0ddffb63147e2079a08944c0e399c75538201a9"
|
||||
BRANCH ?= "master"
|
||||
|
||||
# This init script is only used for older kernels that do not support
|
||||
@@ -36,7 +36,7 @@ SCRIPT_ti43x = "init-am43x-cm3"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
do_compile() {
|
||||
make CC="${TARGET_CC}" CROSS_COMPILE="${TARGET_PREFIX}"
|
||||
make CROSS_COMPILE="${TARGET_PREFIX}"
|
||||
}
|
||||
|
||||
do_install() {
|
||||
|
||||
@@ -4,13 +4,67 @@ DESCRIPTION = "u-boot bootloader for Multi-Core BU devices"
|
||||
|
||||
COMPATIBLE_MACHINE = "keystone"
|
||||
|
||||
PR = "r2+gitr${SRCPV}"
|
||||
|
||||
SRC_URI = "git://arago-project.org/git/projects/u-boot-keystone.git;protocol=git;branch=${BRANCH}"
|
||||
PR = "r5+gitr${SRCPV}"
|
||||
|
||||
# Tag "K2_UBOOT_2013_01_14.05_16"
|
||||
SRCREV = "fee500417b989fc9906d86e377b4d3d96033d54e"
|
||||
BRANCH = "master"
|
||||
|
||||
# DEV.MCSDK-03.00.00.07
|
||||
SRCREV = "82f40e857d853165310d0753e79235aefb65d7ba"
|
||||
SRC_URI = "git://git.ti.com/keystone-linux/u-boot.git;protocol=git;branch=${BRANCH}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
UBOOT_SUFFIX = "bin"
|
||||
UBOOT_MAKE_TARGET = "u-boot-spi.gph u-boot-nand.gph"
|
||||
|
||||
# SPI NOR Flash binaries
|
||||
UBOOT_SPI_SPL_BINARY = "u-boot-spl.bin"
|
||||
UBOOT_SPI_BINARY = "u-boot.img"
|
||||
UBOOT_SPI_GPH_BINARY = "u-boot-spi.gph"
|
||||
UBOOT_NAND_GPH_BINARY = "u-boot-nand.gph"
|
||||
|
||||
# SPI NOR Flash deployed images
|
||||
UBOOT_SPI_SPL_IMAGE = "u-boot-spl-${MACHINE}-${PV}-${PR}.bin"
|
||||
UBOOT_SPI_SPL_SYMLINK = "u-boot-spl-${MACHINE}.bin"
|
||||
UBOOT_SPI_IMAGE = "u-boot-${MACHINE}-${PV}-${PR}.img"
|
||||
UBOOT_SPI_SYMLINK = "u-boot-${MACHINE}.img"
|
||||
UBOOT_SPI_GPH_IMAGE = "u-boot-spi-${MACHINE}-${PV}-${PR}.gph"
|
||||
UBOOT_SPI_GPH_SYMLINK = "u-boot-spi-${MACHINE}.gph"
|
||||
UBOOT_NAND_GPH_IMAGE = "u-boot-nand-${MACHINE}-${PV}-${PR}.gph"
|
||||
UBOOT_NAND_GPH_SYMLINK = "u-boot-nand-${MACHINE}.gph"
|
||||
|
||||
do_install_append () {
|
||||
install ${S}/spl/${UBOOT_SPI_SPL_BINARY} ${D}/boot/${UBOOT_SPI_SPL_IMAGE}
|
||||
ln -sf ${UBOOT_SPI_SPL_IMAGE} ${D}/boot/${UBOOT_SPI_SPL_BINARY}
|
||||
|
||||
install ${S}/${UBOOT_SPI_BINARY} ${D}/boot/${UBOOT_SPI_IMAGE}
|
||||
ln -sf ${UBOOT_SPI_IMAGE} ${D}/boot/${UBOOT_SPI_BINARY}
|
||||
|
||||
install ${S}/${UBOOT_SPI_GPH_BINARY} ${D}/boot/${UBOOT_SPI_GPH_IMAGE}
|
||||
ln -sf ${UBOOT_SPI_GPH_IMAGE} ${D}/boot/${UBOOT_SPI_GPH_BINARY}
|
||||
|
||||
install ${S}/${UBOOT_NAND_GPH_BINARY} ${D}/boot/${UBOOT_NAND_GPH_IMAGE}
|
||||
ln -sf ${UBOOT_NAND_GPH_IMAGE} ${D}/boot/${UBOOT_NAND_GPH_BINARY}
|
||||
}
|
||||
|
||||
do_deploy_append () {
|
||||
install ${S}/spl/${UBOOT_SPI_SPL_BINARY} ${DEPLOYDIR}/${UBOOT_SPI_SPL_IMAGE}
|
||||
rm -f ${UBOOT_SPI_SPL_BINARY} ${UBOOT_SPI_SPL_SYMLINK}
|
||||
ln -sf ${UBOOT_SPI_SPL_IMAGE} ${UBOOT_SPI_SPL_SYMLINK}
|
||||
ln -sf ${UBOOT_SPI_SPL_IMAGE} ${UBOOT_SPI_SPL_BINARY}
|
||||
|
||||
install ${S}/${UBOOT_SPI_BINARY} ${DEPLOYDIR}/${UBOOT_SPI_IMAGE}
|
||||
rm -f ${UBOOT_SPI_BINARY} ${UBOOT_SPI_SYMLINK}
|
||||
ln -sf ${UBOOT_SPI_IMAGE} ${UBOOT_SPI_SYMLINK}
|
||||
ln -sf ${UBOOT_SPI_IMAGE} ${UBOOT_SPI_BINARY}
|
||||
|
||||
install ${S}/${UBOOT_SPI_GPH_BINARY} ${DEPLOYDIR}/${UBOOT_SPI_GPH_IMAGE}
|
||||
rm -f ${UBOOT_SPI_GPH_BINARY} ${UBOOT_SPI_GPH_SYMLINK}
|
||||
ln -sf ${UBOOT_SPI_GPH_IMAGE} ${UBOOT_SPI_GPH_SYMLINK}
|
||||
ln -sf ${UBOOT_SPI_GPH_IMAGE} ${UBOOT_SPI_GPH_BINARY}
|
||||
|
||||
install ${S}/${UBOOT_NAND_GPH_BINARY} ${DEPLOYDIR}/${UBOOT_NAND_GPH_IMAGE}
|
||||
rm -f ${UBOOT_NAND_GPH_BINARY} ${UBOOT_NAND_GPH_SYMLINK}
|
||||
ln -sf ${UBOOT_NAND_GPH_IMAGE} ${UBOOT_NAND_GPH_SYMLINK}
|
||||
ln -sf ${UBOOT_NAND_GPH_IMAGE} ${UBOOT_NAND_GPH_BINARY}
|
||||
}
|
||||
|
||||
@@ -5,14 +5,14 @@ DESCRIPTION = "u-boot bootloader for TI devices"
|
||||
LIC_FILES_CHKSUM = "file://Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb"
|
||||
|
||||
PV = "2013.10"
|
||||
PR = "r3+gitr${SRCPV}"
|
||||
PR = "r8+gitr${SRCPV}"
|
||||
|
||||
SRC_URI = "git://git.ti.com/ti-u-boot/ti-u-boot.git;protocol=git;branch=${BRANCH}"
|
||||
|
||||
BRANCH ?= "ti-u-boot-2013.10"
|
||||
|
||||
# Corresponds to ti2013.12.00 release
|
||||
SRCREV = "562aa886438ea60cda487565b548b71407eaca26"
|
||||
# Corresponds to tag ti2013.12.01_amsdk-07.01
|
||||
SRCREV = "259ff9a577cc66cb40e3cdff3e41628e466f0fef"
|
||||
|
||||
SPL_BINARY = "MLO"
|
||||
SPL_UART_BINARY = "u-boot-spl.bin"
|
||||
|
||||
22
recipes-graphics/bltsville/bltsville_git.bb
Normal file
22
recipes-graphics/bltsville/bltsville_git.bb
Normal file
@@ -0,0 +1,22 @@
|
||||
DESCRIPTION = "Userspace libraries and headers for TI BLTsville implementation"
|
||||
HOMEPAGE = "http://omapzoom.org/?p=platform/external/bltsville.git;a=summary"
|
||||
LICENSE = "BSD-3-Clause & TI-TSPA"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=10a9abb9c5bb19edd83a8cf66eef7148 \
|
||||
file://ticpu/license;md5=0bb831850a0de80e32a63772d89c6562"
|
||||
|
||||
PR = "r2"
|
||||
|
||||
SRCREV = "016586280ecdae201fd6e340ec8c4f8a9605cc94"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
|
||||
SRC_URI = "git://git.omapzoom.org/platform/external/bltsville.git;protocol=git"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
do_configure() {
|
||||
chmod +x autogen.sh
|
||||
./autogen.sh --prefix=${prefix} --with-libtool-sysroot=${STAGING_DIR_TARGET}
|
||||
}
|
||||
|
||||
FILES_${PN} += "${libdir}/libbltsville_ticpu_license.txt"
|
||||
134
recipes-graphics/libgles/libgles-omap3-5.01.01.01/rc.pvr
Executable file
134
recipes-graphics/libgles/libgles-omap3-5.01.01.01/rc.pvr
Executable file
@@ -0,0 +1,134 @@
|
||||
#!/bin/sh
|
||||
PATH=$PATH:/usr/sbin
|
||||
|
||||
# Check if an fb device is available. If not then just go ahead and
|
||||
# exit because we have no display.
|
||||
fbset > /dev/null 2>&1
|
||||
if [ "$?" == "1" ]
|
||||
then
|
||||
# looks like there is no display, so let's exit
|
||||
exit 0
|
||||
fi
|
||||
|
||||
BITSPERPIXEL="$(fbset | grep geom | awk '{print $6}')"
|
||||
YRES="$(fbset | grep geom | awk '{print $3}')"
|
||||
|
||||
CPUTYPE="$(cputype)"
|
||||
|
||||
if [ "$1" = "" ]; then
|
||||
echo PVR-INIT: Please use start, stop, or restart.
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$1" = "stop" -o "$1" = "restart" ]; then
|
||||
echo Stopping PVR
|
||||
rmmod bufferclass_ti
|
||||
rmmod omaplfb 2>/dev/null
|
||||
rmmod pvrsrvkm 2>/dev/null
|
||||
fi
|
||||
|
||||
if [ "$1" = "stop" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Set RGBA ordering to something the drivers like
|
||||
if [ "$BITSPERPIXEL" = "32" ] ; then
|
||||
fbset -rgba 8/16,8/8,8/0,8/24
|
||||
fi
|
||||
|
||||
# Try to enable triple buffering when there's enough VRAM
|
||||
fbset -vyres $(expr $YRES \* 3)
|
||||
|
||||
sgxprepare () {
|
||||
echo Starting PVR
|
||||
|
||||
lsmod | grep pvrsrvkm > /dev/null
|
||||
|
||||
if [ "$?" != "0" ]
|
||||
then
|
||||
insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
|
||||
|
||||
if [ "$?" != "0" ]
|
||||
then
|
||||
echo "Could not find pvrsrvkm driver"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
modprobe omaplfb
|
||||
modprobe bufferclass_ti
|
||||
|
||||
pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`
|
||||
bc_maj=`grep "bc" /proc/devices | cut -b1,2,3`
|
||||
|
||||
if [ -e /dev/pvrsrvkm ] ; then
|
||||
rm -f /dev/pvrsrvkm
|
||||
fi
|
||||
|
||||
mknod /dev/pvrsrvkm c $pvr_maj 0
|
||||
chmod 666 /dev/pvrsrvkm
|
||||
|
||||
touch /etc/powervr-esrev
|
||||
|
||||
SAVED_ESREVISION="$(cat /etc/powervr-esrev)"
|
||||
}
|
||||
|
||||
sgxfinish () {
|
||||
# Fix up a bug in opkg
|
||||
if [ $(readlink /usr/lib/libsrv_um.so) != $(readlink /usr/lib/libsrv_um.so.1) ] ; then
|
||||
cd /usr/lib
|
||||
ln -sf $(readlink /usr/lib/libsrv_um.so.1) libsrv_um.so
|
||||
fi
|
||||
|
||||
if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then
|
||||
echo -n "Starting SGX fixup for"
|
||||
echo " ES${ES_REVISION}.x"
|
||||
cp -a /usr/lib/ES${ES_REVISION}.0/* /usr/lib
|
||||
cp -a /usr/bin/ES${ES_REVISION}.0/* /usr/bin
|
||||
echo "${ES_REVISION}" > /etc/powervr-esrev
|
||||
fi
|
||||
|
||||
if ! /usr/bin/pvrsrvctl --start --no-module; then return; fi
|
||||
}
|
||||
|
||||
case $CPUTYPE in
|
||||
"OMAP3530")
|
||||
sgxprepare
|
||||
|
||||
devmem2 0x48004B48 w 0x2 > /dev/null
|
||||
devmem2 0x48004B10 w 0x1 > /dev/null
|
||||
devmem2 0x48004B00 w 0x2 > /dev/null
|
||||
|
||||
ES_REVISION="$(devmem2 0x50000014 | sed -e s:0x00010205:5: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
|
||||
|
||||
sgxfinish
|
||||
;;
|
||||
"TI33XX")
|
||||
sgxprepare
|
||||
|
||||
ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
|
||||
|
||||
sgxfinish
|
||||
;;
|
||||
"TI43XX")
|
||||
sgxprepare
|
||||
|
||||
ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
|
||||
|
||||
sgxfinish
|
||||
;;
|
||||
"TI816x")
|
||||
sgxprepare
|
||||
|
||||
devmem2 0x48180F04 w 0x0 > /dev/null
|
||||
devmem2 0x48180900 w 0x2 > /dev/null
|
||||
devmem2 0x48180920 w 0x2 > /dev/null
|
||||
|
||||
ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:6: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
|
||||
|
||||
sgxfinish
|
||||
;;
|
||||
*)
|
||||
echo No SGX hardware, not starting PVR
|
||||
;;
|
||||
esac
|
||||
145
recipes-graphics/libgles/libgles-omap3-5.01.01.01/rc_dri.pvr
Executable file
145
recipes-graphics/libgles/libgles-omap3-5.01.01.01/rc_dri.pvr
Executable file
@@ -0,0 +1,145 @@
|
||||
#!/bin/sh
|
||||
PATH=$PATH:/usr/sbin
|
||||
|
||||
# Check if an fb device is available. If not then just go ahead and
|
||||
# exit because we have no display.
|
||||
fbset > /dev/null 2>&1
|
||||
if [ "$?" == "1" ]
|
||||
then
|
||||
# looks like there is no display, so let's exit
|
||||
exit 0
|
||||
fi
|
||||
|
||||
BITSPERPIXEL="$(fbset | grep geom | awk '{print $6}')"
|
||||
YRES="$(fbset | grep geom | awk '{print $3}')"
|
||||
|
||||
CPUTYPE="$(cputype)"
|
||||
|
||||
if [ "$1" = "" ]; then
|
||||
echo PVR-INIT: Please use start, stop, or restart.
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$1" = "stop" -o "$1" = "restart" ]; then
|
||||
echo Stopping PVR
|
||||
|
||||
# Stop the X Server.
|
||||
#
|
||||
[ -f /tmp/.X0-lock ] && read XPID < /tmp/.X0-lock && [ -n "$XPID" ] && kill $XPID && while [ -e /proc/$XPID ] ; do sleep 1; done
|
||||
|
||||
rmmod bufferclass_ti
|
||||
rmmod pvrsrvkm 2>/dev/null
|
||||
rmmod drm 2>/dev/null
|
||||
fi
|
||||
|
||||
if [ "$1" = "stop" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Set RGBA ordering to something the drivers like
|
||||
if [ "$BITSPERPIXEL" = "32" ] ; then
|
||||
fbset -rgba 8/16,8/8,8/0,8/24
|
||||
fi
|
||||
|
||||
# Try to enable triple buffering when there's enough VRAM
|
||||
fbset -vyres $(expr $YRES \* 3)
|
||||
|
||||
sgxprepare () {
|
||||
echo Starting PVR
|
||||
|
||||
# Start the X Server.
|
||||
# The X Server will load the PVR Services module.
|
||||
#
|
||||
/usr/local/XSGX/bin/X -verbose -config /usr/local/XSGX/etc/xorg.conf &
|
||||
|
||||
modprobe drm
|
||||
|
||||
lsmod | grep pvrsrvkm > /dev/null
|
||||
|
||||
if [ "$?" != "0" ]
|
||||
then
|
||||
insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
|
||||
|
||||
if [ "$?" != "0" ]
|
||||
then
|
||||
echo "Could not find pvrsrvkm driver"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
modprobe bufferclass_ti
|
||||
|
||||
pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`
|
||||
bc_maj=`grep "bc" /proc/devices | cut -b1,2,3`
|
||||
|
||||
if [ -e /dev/pvrsrvkm ] ; then
|
||||
rm -f /dev/pvrsrvkm
|
||||
fi
|
||||
|
||||
mknod /dev/pvrsrvkm c $pvr_maj 0
|
||||
chmod 666 /dev/pvrsrvkm
|
||||
|
||||
touch /etc/powervr-esrev
|
||||
|
||||
SAVED_ESREVISION="$(cat /etc/powervr-esrev)"
|
||||
}
|
||||
|
||||
sgxfinish () {
|
||||
# Fix up a bug in opkg
|
||||
if [ $(readlink /usr/lib/libsrv_um.so) != $(readlink /usr/lib/libsrv_um.so.1) ] ; then
|
||||
cd /usr/lib
|
||||
ln -sf $(readlink /usr/lib/libsrv_um.so.1) libsrv_um.so
|
||||
fi
|
||||
|
||||
if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then
|
||||
echo -n "Starting SGX fixup for"
|
||||
echo " ES${ES_REVISION}.x"
|
||||
cp -a /usr/lib/ES${ES_REVISION}.0/* /usr/lib
|
||||
cp -a /usr/bin/ES${ES_REVISION}.0/* /usr/bin
|
||||
echo "${ES_REVISION}" > /etc/powervr-esrev
|
||||
fi
|
||||
|
||||
if ! /usr/bin/pvrsrvctl --start --no-module; then return; fi
|
||||
}
|
||||
|
||||
case $CPUTYPE in
|
||||
"OMAP3530")
|
||||
sgxprepare
|
||||
|
||||
devmem2 0x48004B48 w 0x2 > /dev/null
|
||||
devmem2 0x48004B10 w 0x1 > /dev/null
|
||||
devmem2 0x48004B00 w 0x2 > /dev/null
|
||||
|
||||
ES_REVISION="$(devmem2 0x50000014 | sed -e s:0x00010205:5: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
|
||||
|
||||
sgxfinish
|
||||
;;
|
||||
"TI33XX")
|
||||
sgxprepare
|
||||
|
||||
ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
|
||||
|
||||
sgxfinish
|
||||
;;
|
||||
"TI43XX")
|
||||
sgxprepare
|
||||
|
||||
ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
|
||||
|
||||
sgxfinish
|
||||
;;
|
||||
"TI816x")
|
||||
sgxprepare
|
||||
|
||||
devmem2 0x48180F04 w 0x0 > /dev/null
|
||||
devmem2 0x48180900 w 0x2 > /dev/null
|
||||
devmem2 0x48180920 w 0x2 > /dev/null
|
||||
|
||||
ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:6: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
|
||||
|
||||
sgxfinish
|
||||
;;
|
||||
*)
|
||||
echo No SGX hardware, not starting PVR
|
||||
;;
|
||||
esac
|
||||
@@ -158,24 +158,14 @@ do_install () {
|
||||
|
||||
#Create different folders for ease of installing into different platforms with different display drivers/ SGX core
|
||||
|
||||
install -d ${D}${libdir}/ES9.0
|
||||
install -d ${D}${libdir}/ES8.0
|
||||
install -d ${D}${libdir}/ES6.0
|
||||
install -d ${D}${libdir}/ES5.0
|
||||
install -d ${D}${libdir}/ES3.0
|
||||
|
||||
install -d ${D}${bindir}/ES9.0
|
||||
install -d ${D}${bindir}/ES8.0
|
||||
install -d ${D}${bindir}/ES6.0
|
||||
install -d ${D}${bindir}/ES5.0
|
||||
install -d ${D}${bindir}/ES3.0
|
||||
|
||||
shared_prog="eglinfo pvr2d_test ${PVR_INIT} services_test sgx_blit_test sgx_clipblit_test sgx_flip_test sgx_init_test sgx_render_flip_test"
|
||||
raw_prog="gles1test1 gles2test1"
|
||||
|
||||
for esrev in 3 5 6 8 9 ; do
|
||||
ESLOCATION=$(eval echo $(echo \$\{ES${esrev}LOCATION\}))
|
||||
if [ -e ${ESLOCATION} ] ; then
|
||||
install -d ${D}${libdir}/ES${esrev}.0
|
||||
install -d ${D}${bindir}/ES${esrev}.0
|
||||
cp -pPR ${ESLOCATION}/lib*${IMGPV} ${ESLOCATION}/pvr_drv.so ${ESLOCATION}/*.a ${D}${libdir}/ES${esrev}.0/
|
||||
for esprog in $shared_prog $raw_prog ; do
|
||||
install -m 0755 ${ESLOCATION}/$esprog ${D}${bindir}/ES${esrev}.0/ 2>/dev/null || true
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
require libgles-omap3-x11.inc
|
||||
|
||||
LICENSE = "TSPA"
|
||||
LICENSE = "TI-TSPA"
|
||||
|
||||
PR = "${INC_PR}.2"
|
||||
PR = "${INC_PR}.3"
|
||||
|
||||
DEFAULT_PREFERENCE = "-1"
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
require libgles-omap3.inc
|
||||
|
||||
LICENSE = "TSPA"
|
||||
LICENSE = "TI-TSPA"
|
||||
|
||||
BINLOCATION_omap3 = "${S}/gfx_rel_es3.x"
|
||||
BINLOCATION_ti816x = "${S}/gfx_rel_es6.x"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
require libgles-omap3.inc
|
||||
|
||||
LICENSE = "TSPA"
|
||||
LICENSE = "TI-TSPA"
|
||||
|
||||
BINLOCATION_omap3 = "${S}/gfx_rel_es3.x"
|
||||
BINLOCATION_ti816x = "${S}/gfx_rel_es6.x"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
require libgles-omap3-no-x.inc
|
||||
|
||||
LICENSE = "TSPA"
|
||||
LICENSE = "TI-TSPA"
|
||||
|
||||
PR = "${INC_PR}.2"
|
||||
PR = "${INC_PR}.3"
|
||||
|
||||
BINLOCATION_omap3 = "${S}/gfx_rel_es3.x"
|
||||
BINLOCATION_ti816x = "${S}/gfx_rel_es6.x"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
require libgles-omap3-no-x.inc
|
||||
|
||||
LICENSE = "TSPA"
|
||||
LICENSE = "TI-TSPA"
|
||||
|
||||
PR = "${INC_PR}.1"
|
||||
PR = "${INC_PR}.2"
|
||||
|
||||
BINLOCATION_omap3 = "${S}/gfx_rel_es3.x"
|
||||
BINLOCATION_ti816x = "${S}/gfx_rel_es6.x"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
require libgles-omap3-no-x.inc
|
||||
|
||||
LICENSE = "TSPA"
|
||||
LICENSE = "TI-TSPA"
|
||||
|
||||
PR = "${INC_PR}.1"
|
||||
PR = "${INC_PR}.2"
|
||||
|
||||
BINLOCATION_omap3 = "${S}/gfx_rel_es3.x"
|
||||
BINLOCATION_ti816x = "${S}/gfx_rel_es6.x"
|
||||
|
||||
50
recipes-graphics/libgles/libgles-omap3_5.01.01.01.bb
Normal file
50
recipes-graphics/libgles/libgles-omap3_5.01.01.01.bb
Normal file
@@ -0,0 +1,50 @@
|
||||
require libgles-omap3-no-x.inc
|
||||
|
||||
LICENSE = "TI-TSPA"
|
||||
|
||||
PR = "${INC_PR}.1"
|
||||
|
||||
BINLOCATION_omap3 = "${S}/gfx_rel_es3.x"
|
||||
BINLOCATION_ti816x = "${S}/gfx_rel_es6.x"
|
||||
BINLOCATION_ti814x = "${S}/gfx_rel_es6.x"
|
||||
BINLOCATION_ti33x = "${S}/gfx_rel_es8.x"
|
||||
BINLOCATION_ti43x = "${S}/gfx_rel_es9.x"
|
||||
|
||||
PLATFORM = "LinuxARMV7"
|
||||
PVR_INIT = "pvrsrvctl"
|
||||
|
||||
SGXPV = "5_01_01_01"
|
||||
IMGPV = "1.10.2359475"
|
||||
|
||||
TI_BIN_UNPK_WDEXT := "/Graphics_SDK_${SGXPV}"
|
||||
|
||||
BINFILE_HARDFP = "Graphics_SDK_setuplinux_hardfp_${SGXPV}.bin"
|
||||
MD5SUM_HARDFP = "94acdbd20152c905939c2448d5e80a72"
|
||||
SHA256SUM_HARDFP = "7f647bf45a5ce8ba9aaa28c4afe85fced4275f9a4567a1886d4460b76c9051ae"
|
||||
|
||||
# For now we only have hardfp version
|
||||
python __anonymous() {
|
||||
tunes = bb.data.getVar("TUNE_FEATURES", d, 1)
|
||||
if not tunes:
|
||||
return
|
||||
pkgn = bb.data.getVar("PN", d, 1)
|
||||
pkgv = bb.data.getVar("PV", d, 1)
|
||||
if "callconvention-hard" not in tunes:
|
||||
bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
|
||||
raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
|
||||
}
|
||||
|
||||
BINFILE := "${BINFILE_HARDFP}"
|
||||
|
||||
SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/${SGXPV}/exports/${BINFILE} \
|
||||
file://cputype \
|
||||
file://rc.pvr \
|
||||
file://99-bufferclass.rules \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] := "${MD5SUM_HARDFP}"
|
||||
SRC_URI[sha256sum] := "${SHA256SUM_HARDFP}"
|
||||
|
||||
S = "${WORKDIR}/Graphics_SDK_${SGXPV}"
|
||||
|
||||
LIBGLESWINDOWSYSTEM ?= "libpvrPVR2D_FRONTWSEGL.so.1"
|
||||
@@ -1,26 +0,0 @@
|
||||
DESCRIPTION = "Userspace libraries for omap5 sgx"
|
||||
HOMEPAGE = "http://downloads.ti.com/dsps/dsps_public_sw/gfxsdk"
|
||||
LICENSE = "TSPA"
|
||||
LIC_FILES_CHKSUM = "file://OMAP5-Linux-Graphics-DDK-UM-Manifest.doc;md5=d280df8e94bb2e7b9251c8526078eeb8"
|
||||
|
||||
COMPATIBLE_MACHINE = "omap-a15"
|
||||
|
||||
INHIBIT_PACKAGE_STRIP = "1"
|
||||
|
||||
SRC_URI = "http://downloads.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/OMAP5_1_09_00_10//exports/${PN}-${PV}.tar.gz;protocol=http"
|
||||
|
||||
PR = "r0"
|
||||
|
||||
SRC_URI[md5sum] = "3cfb875de031098a4c1eeeaf4e442367"
|
||||
SRC_URI[sha256sum] = "20b849088c0fd3ee5dd6bad8ddf16fb2b3267aa053cf3488c762fbc72f22489a"
|
||||
|
||||
S = "${WORKDIR}/${PN}-${PV}"
|
||||
|
||||
do_install () {
|
||||
oe_runmake install DESTDIR=${D}
|
||||
}
|
||||
|
||||
FILES_${PN} += "${libdir}/gbm/"
|
||||
|
||||
INSANE_SKIP_${PN} = "useless-rpaths"
|
||||
INSANE_SKIP_${PN}-dev = "useless-rpaths"
|
||||
28
recipes-graphics/libgles/omap5-sgx-ddk-um-linux_1.9.0.12.bb
Normal file
28
recipes-graphics/libgles/omap5-sgx-ddk-um-linux_1.9.0.12.bb
Normal file
@@ -0,0 +1,28 @@
|
||||
DESCRIPTION = "Userspace libraries for SGX"
|
||||
HOMEPAGE = "http://downloads.ti.com/dsps/dsps_public_sw/gfxsdk"
|
||||
LICENSE = "TI-TSPA"
|
||||
LIC_FILES_CHKSUM = "file://OMAP5-Linux-Graphics-DDK-UM-Manifest.doc;md5=360d293df455e4f2d363bb4014a49603"
|
||||
|
||||
SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-um-linux.git;protocol=git"
|
||||
SRCREV = "994922a5655c63b05343a9238cb30e6ef61744be"
|
||||
|
||||
PR = "r2"
|
||||
PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2"
|
||||
|
||||
RREPLACES_${PN} = "libegl libgles1 libgles2"
|
||||
RREPLACES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev"
|
||||
RREPLACES_${PN}-dbg = "libegl-dbg"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
do_install () {
|
||||
oe_runmake install DESTDIR=${D}
|
||||
}
|
||||
|
||||
FILES_${PN} = "${bindir}/*"
|
||||
FILES_${PN} += " ${libdir}/*"
|
||||
FILES_${PN} += "${includedir}/* /usr/share/sgx-lib/"
|
||||
|
||||
INHIBIT_PACKAGE_STRIP = "1"
|
||||
|
||||
INSANE_SKIP_${PN} += "dev-so"
|
||||
1
recipes-kernel/linux/linux-keystone-rt/defconfig
Normal file
1
recipes-kernel/linux/linux-keystone-rt/defconfig
Normal file
@@ -0,0 +1 @@
|
||||
use-kernel-config=keystone2_fullrt_defconfig
|
||||
33
recipes-kernel/linux/linux-keystone-rt_3.10.bb
Normal file
33
recipes-kernel/linux/linux-keystone-rt_3.10.bb
Normal file
@@ -0,0 +1,33 @@
|
||||
SECTION = "kernel"
|
||||
DESCRIPTION = "Linux RT kernel for TI Keystone devices"
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
|
||||
|
||||
COMPATIBLE_MACHINE = "keystone"
|
||||
|
||||
inherit kernel
|
||||
|
||||
require recipes-kernel/linux/linux-dtb.inc
|
||||
require recipes-kernel/linux/setup-defconfig.inc
|
||||
|
||||
MACHINE_KERNEL_PR_append = "c+gitr${SRCPV}"
|
||||
PR = "${MACHINE_KERNEL_PR}"
|
||||
|
||||
KERNEL_DEVICETREE_k2hk-evm = "k2hk-evm.dtb"
|
||||
KERNEL_DEVICETREE_k2e-evm = "k2e-evm.dtb"
|
||||
KERNEL_DEVICETREE_k2l-evm = "k2l-evm.dtb"
|
||||
|
||||
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
|
||||
|
||||
# This commit corresponds to "K2_RT_LINUX_03.10.10_14.03_03"
|
||||
SRCREV = "6b482abe6a18d004230ca54da866f4627f02125b"
|
||||
PV = "3.10.10"
|
||||
|
||||
BRANCH = "master-rt"
|
||||
SRC_URI = "git://git.ti.com/keystone-linux/linux.git;protocol=git;branch=${BRANCH}\
|
||||
file://defconfig\
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
RDEPENDS_kernel-base = ""
|
||||
33
recipes-kernel/linux/linux-keystone_3.10.bb
Normal file
33
recipes-kernel/linux/linux-keystone_3.10.bb
Normal file
@@ -0,0 +1,33 @@
|
||||
SECTION = "kernel"
|
||||
DESCRIPTION = "Linux kernel for TI Keystone devices"
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
|
||||
|
||||
COMPATIBLE_MACHINE = "keystone"
|
||||
|
||||
inherit kernel
|
||||
|
||||
require recipes-kernel/linux/linux-dtb.inc
|
||||
require recipes-kernel/linux/setup-defconfig.inc
|
||||
|
||||
MACHINE_KERNEL_PR_append = "c+gitr${SRCPV}"
|
||||
PR = "${MACHINE_KERNEL_PR}"
|
||||
|
||||
KERNEL_DEVICETREE_k2hk-evm = "k2hk-evm.dtb"
|
||||
KERNEL_DEVICETREE_k2e-evm = "k2e-evm.dtb"
|
||||
KERNEL_DEVICETREE_k2l-evm = "k2l-evm.dtb"
|
||||
|
||||
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
|
||||
|
||||
# This commit corresponds to "K2_LINUX_03.10.10_14.03_03"
|
||||
SRCREV = "07176920ed86dfdae97d272f574c3e2760d687ef"
|
||||
PV = "3.10.10"
|
||||
|
||||
BRANCH = "master"
|
||||
SRC_URI = "git://git.ti.com/keystone-linux/linux.git;protocol=git;branch=${BRANCH}\
|
||||
file://defconfig\
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
RDEPENDS_kernel-base = ""
|
||||
@@ -1,28 +0,0 @@
|
||||
SECTION = "kernel"
|
||||
DESCRIPTION = "Linux kernel for TI Keystone devices"
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
|
||||
|
||||
inherit kernel
|
||||
|
||||
require recipes-kernel/linux/linux-dtb.inc
|
||||
require recipes-kernel/linux/setup-defconfig.inc
|
||||
|
||||
KERNEL_DEVICETREE_keystone-evm = "k2hk-evm.dtb"
|
||||
|
||||
COMPATIBLE_MACHINE = "keystone"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
BRANCH = "sept-2013/master"
|
||||
|
||||
# This commit corresponds to K2_LINUX_03.08.04_13.09 tag
|
||||
SRCREV = "20a48dc5309c4434650baef2b6072b5f1016f946"
|
||||
|
||||
# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
|
||||
MACHINE_KERNEL_PR_append = "a+gitr${SRCPV}"
|
||||
PR = "${MACHINE_KERNEL_PR}"
|
||||
|
||||
SRC_URI = "git://arago-project.org/git/projects/linux-keystone.git;protocol=git;branch=${BRANCH}\
|
||||
file://defconfig\
|
||||
"
|
||||
37
recipes-kernel/linux/linux-mainline_3.14.bb
Normal file
37
recipes-kernel/linux/linux-mainline_3.14.bb
Normal file
@@ -0,0 +1,37 @@
|
||||
SECTION = "kernel"
|
||||
DESCRIPTION = "Mainline Linux kernel"
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
|
||||
|
||||
inherit kernel
|
||||
|
||||
require recipes-kernel/linux/linux-dtb.inc
|
||||
require recipes-kernel/linux/setup-defconfig.inc
|
||||
|
||||
# Pull in the devicetree files into the rootfs
|
||||
RDEPENDS_kernel-base += "kernel-devicetree"
|
||||
|
||||
# Add a run-time dependency for the PM firmware to be installed
|
||||
# on the target file system.
|
||||
RDEPENDS_kernel-base_append_ti33x = " am33x-cm3"
|
||||
|
||||
# Default is to package all dtb files for ti33x devices unless building
|
||||
# for the specific beaglebone machine.
|
||||
KERNEL_DEVICETREE_ti33x = "am335x-evm.dtb am335x-evmsk.dtb am335x-bone.dtb am335x-boneblack.dtb"
|
||||
KERNEL_DEVICETREE_beaglebone = "am335x-bone.dtb am335x-boneblack.dtb"
|
||||
|
||||
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
|
||||
|
||||
COMPATIBLE_MACHINE = "ti33x"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
BRANCH = "master"
|
||||
|
||||
# Corresponds to tag v3.14-rc8
|
||||
SRCREV = "b098d6726bbfb94c06d6e1097466187afddae61f"
|
||||
PV = "3.13+3.14rc8"
|
||||
|
||||
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=git;branch=${BRANCH} \
|
||||
file://defconfig \
|
||||
"
|
||||
@@ -8,12 +8,14 @@ COMPATIBLE_MACHINE = "omap3"
|
||||
# SRCREV corresponds to tag v2.6.37_OMAPPSP_04.02.00.07
|
||||
SRCREV= "adcd067326836777c049e3cb32a5b7d9d401fc31"
|
||||
|
||||
BRANCH = "OMAPPSP_04.02.00.07"
|
||||
|
||||
# The main PR is now using MACHINE_KERNEL_PR, for omap3 devices
|
||||
# see conf/machine/include/omap3.inc
|
||||
MACHINE_KERNEL_PR_append = "b"
|
||||
PR = "${MACHINE_KERNEL_PR}"
|
||||
|
||||
SRC_URI = "git://arago-project.org/git/projects/linux-omap3.git;protocol=git \
|
||||
SRC_URI = "git://arago-project.org/git/projects/linux-omap3.git;protocol=git;branch=${BRANCH} \
|
||||
file://defconfig"
|
||||
|
||||
# The following patches below have been upstreamed to linux kernel 2.6.39 tree
|
||||
|
||||
@@ -0,0 +1,256 @@
|
||||
From b9ebe46e251c5c8becd02f92893ef514e834bf67 Mon Sep 17 00:00:00 2001
|
||||
From: Ivan Djelic <ivan.djelic@parrot.com>
|
||||
Date: Wed, 6 Mar 2013 20:09:27 +0100
|
||||
Subject: [PATCH 3/4] ARM: 7668/1: fix memset-related crashes caused by recent
|
||||
GCC (4.7.2) optimizations
|
||||
|
||||
Recent GCC versions (e.g. GCC-4.7.2) perform optimizations based on
|
||||
assumptions about the implementation of memset and similar functions.
|
||||
The current ARM optimized memset code does not return the value of
|
||||
its first argument, as is usually expected from standard implementations.
|
||||
|
||||
For instance in the following function:
|
||||
|
||||
void debug_mutex_lock_common(struct mutex *lock, struct mutex_waiter *waiter)
|
||||
{
|
||||
memset(waiter, MUTEX_DEBUG_INIT, sizeof(*waiter));
|
||||
waiter->magic = waiter;
|
||||
INIT_LIST_HEAD(&waiter->list);
|
||||
}
|
||||
|
||||
compiled as:
|
||||
|
||||
800554d0 <debug_mutex_lock_common>:
|
||||
800554d0: e92d4008 push {r3, lr}
|
||||
800554d4: e1a00001 mov r0, r1
|
||||
800554d8: e3a02010 mov r2, #16 ; 0x10
|
||||
800554dc: e3a01011 mov r1, #17 ; 0x11
|
||||
800554e0: eb04426e bl 80165ea0 <memset>
|
||||
800554e4: e1a03000 mov r3, r0
|
||||
800554e8: e583000c str r0, [r3, #12]
|
||||
800554ec: e5830000 str r0, [r3]
|
||||
800554f0: e5830004 str r0, [r3, #4]
|
||||
800554f4: e8bd8008 pop {r3, pc}
|
||||
|
||||
GCC assumes memset returns the value of pointer 'waiter' in register r0; causing
|
||||
register/memory corruptions.
|
||||
|
||||
This patch fixes the return value of the assembly version of memset.
|
||||
It adds a 'mov' instruction and merges an additional load+store into
|
||||
existing load/store instructions.
|
||||
For ease of review, here is a breakdown of the patch into 4 simple steps:
|
||||
|
||||
Step 1
|
||||
======
|
||||
Perform the following substitutions:
|
||||
ip -> r8, then
|
||||
r0 -> ip,
|
||||
and insert 'mov ip, r0' as the first statement of the function.
|
||||
At this point, we have a memset() implementation returning the proper result,
|
||||
but corrupting r8 on some paths (the ones that were using ip).
|
||||
|
||||
Step 2
|
||||
======
|
||||
Make sure r8 is saved and restored when (! CALGN(1)+0) == 1:
|
||||
|
||||
save r8:
|
||||
- str lr, [sp, #-4]!
|
||||
+ stmfd sp!, {r8, lr}
|
||||
|
||||
and restore r8 on both exit paths:
|
||||
- ldmeqfd sp!, {pc} @ Now <64 bytes to go.
|
||||
+ ldmeqfd sp!, {r8, pc} @ Now <64 bytes to go.
|
||||
(...)
|
||||
tst r2, #16
|
||||
stmneia ip!, {r1, r3, r8, lr}
|
||||
- ldr lr, [sp], #4
|
||||
+ ldmfd sp!, {r8, lr}
|
||||
|
||||
Step 3
|
||||
======
|
||||
Make sure r8 is saved and restored when (! CALGN(1)+0) == 0:
|
||||
|
||||
save r8:
|
||||
- stmfd sp!, {r4-r7, lr}
|
||||
+ stmfd sp!, {r4-r8, lr}
|
||||
|
||||
and restore r8 on both exit paths:
|
||||
bgt 3b
|
||||
- ldmeqfd sp!, {r4-r7, pc}
|
||||
+ ldmeqfd sp!, {r4-r8, pc}
|
||||
(...)
|
||||
tst r2, #16
|
||||
stmneia ip!, {r4-r7}
|
||||
- ldmfd sp!, {r4-r7, lr}
|
||||
+ ldmfd sp!, {r4-r8, lr}
|
||||
|
||||
Step 4
|
||||
======
|
||||
Rewrite register list "r4-r7, r8" as "r4-r8".
|
||||
|
||||
Signed-off-by: Ivan Djelic <ivan.djelic@parrot.com>
|
||||
Reviewed-by: Nicolas Pitre <nico@linaro.org>
|
||||
Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
|
||||
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
arch/arm/lib/memset.S | 85 ++++++++++++++++++++++++++-------------------------
|
||||
1 file changed, 44 insertions(+), 41 deletions(-)
|
||||
|
||||
diff --git a/arch/arm/lib/memset.S b/arch/arm/lib/memset.S
|
||||
index 650d592..d912e73 100644
|
||||
--- a/arch/arm/lib/memset.S
|
||||
+++ b/arch/arm/lib/memset.S
|
||||
@@ -19,9 +19,9 @@
|
||||
1: subs r2, r2, #4 @ 1 do we have enough
|
||||
blt 5f @ 1 bytes to align with?
|
||||
cmp r3, #2 @ 1
|
||||
- strltb r1, [r0], #1 @ 1
|
||||
- strleb r1, [r0], #1 @ 1
|
||||
- strb r1, [r0], #1 @ 1
|
||||
+ strltb r1, [ip], #1 @ 1
|
||||
+ strleb r1, [ip], #1 @ 1
|
||||
+ strb r1, [ip], #1 @ 1
|
||||
add r2, r2, r3 @ 1 (r2 = r2 - (4 - r3))
|
||||
/*
|
||||
* The pointer is now aligned and the length is adjusted. Try doing the
|
||||
@@ -29,10 +29,14 @@
|
||||
*/
|
||||
|
||||
ENTRY(memset)
|
||||
- ands r3, r0, #3 @ 1 unaligned?
|
||||
+/*
|
||||
+ * Preserve the contents of r0 for the return value.
|
||||
+ */
|
||||
+ mov ip, r0
|
||||
+ ands r3, ip, #3 @ 1 unaligned?
|
||||
bne 1b @ 1
|
||||
/*
|
||||
- * we know that the pointer in r0 is aligned to a word boundary.
|
||||
+ * we know that the pointer in ip is aligned to a word boundary.
|
||||
*/
|
||||
orr r1, r1, r1, lsl #8
|
||||
orr r1, r1, r1, lsl #16
|
||||
@@ -43,29 +47,28 @@ ENTRY(memset)
|
||||
#if ! CALGN(1)+0
|
||||
|
||||
/*
|
||||
- * We need an extra register for this loop - save the return address and
|
||||
- * use the LR
|
||||
+ * We need 2 extra registers for this loop - use r8 and the LR
|
||||
*/
|
||||
- str lr, [sp, #-4]!
|
||||
- mov ip, r1
|
||||
+ stmfd sp!, {r8, lr}
|
||||
+ mov r8, r1
|
||||
mov lr, r1
|
||||
|
||||
2: subs r2, r2, #64
|
||||
- stmgeia r0!, {r1, r3, ip, lr} @ 64 bytes at a time.
|
||||
- stmgeia r0!, {r1, r3, ip, lr}
|
||||
- stmgeia r0!, {r1, r3, ip, lr}
|
||||
- stmgeia r0!, {r1, r3, ip, lr}
|
||||
+ stmgeia ip!, {r1, r3, r8, lr} @ 64 bytes at a time.
|
||||
+ stmgeia ip!, {r1, r3, r8, lr}
|
||||
+ stmgeia ip!, {r1, r3, r8, lr}
|
||||
+ stmgeia ip!, {r1, r3, r8, lr}
|
||||
bgt 2b
|
||||
- ldmeqfd sp!, {pc} @ Now <64 bytes to go.
|
||||
+ ldmeqfd sp!, {r8, pc} @ Now <64 bytes to go.
|
||||
/*
|
||||
* No need to correct the count; we're only testing bits from now on
|
||||
*/
|
||||
tst r2, #32
|
||||
- stmneia r0!, {r1, r3, ip, lr}
|
||||
- stmneia r0!, {r1, r3, ip, lr}
|
||||
+ stmneia ip!, {r1, r3, r8, lr}
|
||||
+ stmneia ip!, {r1, r3, r8, lr}
|
||||
tst r2, #16
|
||||
- stmneia r0!, {r1, r3, ip, lr}
|
||||
- ldr lr, [sp], #4
|
||||
+ stmneia ip!, {r1, r3, r8, lr}
|
||||
+ ldmfd sp!, {r8, lr}
|
||||
|
||||
#else
|
||||
|
||||
@@ -74,54 +77,54 @@ ENTRY(memset)
|
||||
* whole cache lines at once.
|
||||
*/
|
||||
|
||||
- stmfd sp!, {r4-r7, lr}
|
||||
+ stmfd sp!, {r4-r8, lr}
|
||||
mov r4, r1
|
||||
mov r5, r1
|
||||
mov r6, r1
|
||||
mov r7, r1
|
||||
- mov ip, r1
|
||||
+ mov r8, r1
|
||||
mov lr, r1
|
||||
|
||||
cmp r2, #96
|
||||
- tstgt r0, #31
|
||||
+ tstgt ip, #31
|
||||
ble 3f
|
||||
|
||||
- and ip, r0, #31
|
||||
- rsb ip, ip, #32
|
||||
- sub r2, r2, ip
|
||||
- movs ip, ip, lsl #(32 - 4)
|
||||
- stmcsia r0!, {r4, r5, r6, r7}
|
||||
- stmmiia r0!, {r4, r5}
|
||||
- tst ip, #(1 << 30)
|
||||
- mov ip, r1
|
||||
- strne r1, [r0], #4
|
||||
+ and r8, ip, #31
|
||||
+ rsb r8, r8, #32
|
||||
+ sub r2, r2, r8
|
||||
+ movs r8, r8, lsl #(32 - 4)
|
||||
+ stmcsia ip!, {r4, r5, r6, r7}
|
||||
+ stmmiia ip!, {r4, r5}
|
||||
+ tst r8, #(1 << 30)
|
||||
+ mov r8, r1
|
||||
+ strne r1, [ip], #4
|
||||
|
||||
3: subs r2, r2, #64
|
||||
- stmgeia r0!, {r1, r3-r7, ip, lr}
|
||||
- stmgeia r0!, {r1, r3-r7, ip, lr}
|
||||
+ stmgeia ip!, {r1, r3-r8, lr}
|
||||
+ stmgeia ip!, {r1, r3-r8, lr}
|
||||
bgt 3b
|
||||
- ldmeqfd sp!, {r4-r7, pc}
|
||||
+ ldmeqfd sp!, {r4-r8, pc}
|
||||
|
||||
tst r2, #32
|
||||
- stmneia r0!, {r1, r3-r7, ip, lr}
|
||||
+ stmneia ip!, {r1, r3-r8, lr}
|
||||
tst r2, #16
|
||||
- stmneia r0!, {r4-r7}
|
||||
- ldmfd sp!, {r4-r7, lr}
|
||||
+ stmneia ip!, {r4-r7}
|
||||
+ ldmfd sp!, {r4-r8, lr}
|
||||
|
||||
#endif
|
||||
|
||||
4: tst r2, #8
|
||||
- stmneia r0!, {r1, r3}
|
||||
+ stmneia ip!, {r1, r3}
|
||||
tst r2, #4
|
||||
- strne r1, [r0], #4
|
||||
+ strne r1, [ip], #4
|
||||
/*
|
||||
* When we get here, we've got less than 4 bytes to zero. We
|
||||
* may have an unaligned pointer as well.
|
||||
*/
|
||||
5: tst r2, #2
|
||||
- strneb r1, [r0], #1
|
||||
- strneb r1, [r0], #1
|
||||
+ strneb r1, [ip], #1
|
||||
+ strneb r1, [ip], #1
|
||||
tst r2, #1
|
||||
- strneb r1, [r0], #1
|
||||
+ strneb r1, [ip], #1
|
||||
mov pc, lr
|
||||
ENDPROC(memset)
|
||||
--
|
||||
1.8.2.1
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
From 78429023fbec3428238e8dbdd81fa67e4619d04c Mon Sep 17 00:00:00 2001
|
||||
From: Nicolas Pitre <nicolas.pitre@linaro.org>
|
||||
Date: Tue, 12 Mar 2013 13:00:42 +0100
|
||||
Subject: [PATCH 4/4] ARM: 7670/1: fix the memset fix
|
||||
|
||||
Commit 455bd4c430b0 ("ARM: 7668/1: fix memset-related crashes caused by
|
||||
recent GCC (4.7.2) optimizations") attempted to fix a compliance issue
|
||||
with the memset return value. However the memset itself became broken
|
||||
by that patch for misaligned pointers.
|
||||
|
||||
This fixes the above by branching over the entry code from the
|
||||
misaligned fixup code to avoid reloading the original pointer.
|
||||
|
||||
Also, because the function entry alignment is wrong in the Thumb mode
|
||||
compilation, that fixup code is moved to the end.
|
||||
|
||||
While at it, the entry instructions are slightly reworked to help dual
|
||||
issue pipelines.
|
||||
|
||||
Signed-off-by: Nicolas Pitre <nico@linaro.org>
|
||||
Tested-by: Alexander Holler <holler@ahsoftware.de>
|
||||
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
|
||||
---
|
||||
arch/arm/lib/memset.S | 33 +++++++++++++--------------------
|
||||
1 file changed, 13 insertions(+), 20 deletions(-)
|
||||
|
||||
diff --git a/arch/arm/lib/memset.S b/arch/arm/lib/memset.S
|
||||
index d912e73..94b0650 100644
|
||||
--- a/arch/arm/lib/memset.S
|
||||
+++ b/arch/arm/lib/memset.S
|
||||
@@ -14,31 +14,15 @@
|
||||
|
||||
.text
|
||||
.align 5
|
||||
- .word 0
|
||||
-
|
||||
-1: subs r2, r2, #4 @ 1 do we have enough
|
||||
- blt 5f @ 1 bytes to align with?
|
||||
- cmp r3, #2 @ 1
|
||||
- strltb r1, [ip], #1 @ 1
|
||||
- strleb r1, [ip], #1 @ 1
|
||||
- strb r1, [ip], #1 @ 1
|
||||
- add r2, r2, r3 @ 1 (r2 = r2 - (4 - r3))
|
||||
-/*
|
||||
- * The pointer is now aligned and the length is adjusted. Try doing the
|
||||
- * memset again.
|
||||
- */
|
||||
|
||||
ENTRY(memset)
|
||||
-/*
|
||||
- * Preserve the contents of r0 for the return value.
|
||||
- */
|
||||
- mov ip, r0
|
||||
- ands r3, ip, #3 @ 1 unaligned?
|
||||
- bne 1b @ 1
|
||||
+ ands r3, r0, #3 @ 1 unaligned?
|
||||
+ mov ip, r0 @ preserve r0 as return value
|
||||
+ bne 6f @ 1
|
||||
/*
|
||||
* we know that the pointer in ip is aligned to a word boundary.
|
||||
*/
|
||||
- orr r1, r1, r1, lsl #8
|
||||
+1: orr r1, r1, r1, lsl #8
|
||||
orr r1, r1, r1, lsl #16
|
||||
mov r3, r1
|
||||
cmp r2, #16
|
||||
@@ -127,4 +111,13 @@ ENTRY(memset)
|
||||
tst r2, #1
|
||||
strneb r1, [ip], #1
|
||||
mov pc, lr
|
||||
+
|
||||
+6: subs r2, r2, #4 @ 1 do we have enough
|
||||
+ blt 5b @ 1 bytes to align with?
|
||||
+ cmp r3, #2 @ 1
|
||||
+ strltb r1, [ip], #1 @ 1
|
||||
+ strleb r1, [ip], #1 @ 1
|
||||
+ strb r1, [ip], #1 @ 1
|
||||
+ add r2, r2, r3 @ 1 (r2 = r2 - (4 - r3))
|
||||
+ b 1b
|
||||
ENDPROC(memset)
|
||||
--
|
||||
1.8.2.1
|
||||
|
||||
@@ -13,6 +13,8 @@ SRCREV = "c34a43ec74168b892a948b45695486f1a3d700af"
|
||||
|
||||
SRC_URI = "git://dev.omapzoom.org/pub/scm/integration/kernel-ubuntu.git;protocol=git;branch=ti-ubuntu-3.4-1487 \
|
||||
file://defconfig \
|
||||
file://0003-ARM-7668-1-fix-memset-related-crashes-caused-by-rece.patch \
|
||||
file://0004-ARM-7670-1-fix-the-memset-fix.patch \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
From bd9c0b09db8798815cb577f82beebf7e6c03edcd Mon Sep 17 00:00:00 2001
|
||||
From: Santosh Shilimkar <santosh.shilimkar@ti.com>
|
||||
Date: Thu, 13 Feb 2014 08:52:41 -0500
|
||||
Subject: [PATCH] Not-for-merge: ARM: config: omap: Disable SMP for AM335x
|
||||
build
|
||||
|
||||
SMP and SMP_ON_UP introduces some extra barriers and code many fast paths
|
||||
including kernel lock functions.
|
||||
|
||||
Performance sensitive usecases like networking gets impacted because of this.
|
||||
In typical production kernel which is targeted for single core device
|
||||
like AM335x family, you don't want to take this hit.
|
||||
|
||||
Ideally one should just create a device specific config feed as done by all
|
||||
typical distro's. Other option is to apply this specifically during build
|
||||
time using recipe.
|
||||
|
||||
Whichever option, one definitely don't want this overhead for performance
|
||||
critical usecases.
|
||||
|
||||
Disabling SMP in the build introduces one warining in cpuidle44xx.c driver
|
||||
and fix is included in the series
|
||||
|
||||
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
|
||||
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
|
||||
---
|
||||
arch/arm/configs/omap2plus_defconfig | 2 --
|
||||
1 file changed, 2 deletions(-)
|
||||
|
||||
diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig
|
||||
index ff579a7..25217e3 100644
|
||||
--- a/arch/arm/configs/omap2plus_defconfig
|
||||
+++ b/arch/arm/configs/omap2plus_defconfig
|
||||
@@ -36,8 +36,6 @@ CONFIG_OMAP4_ERRATA_I688=y
|
||||
CONFIG_ARM_THUMBEE=y
|
||||
CONFIG_ARM_ERRATA_411920=y
|
||||
CONFIG_PCIE_DRA7XX=y
|
||||
-CONFIG_SMP=y
|
||||
-CONFIG_NR_CPUS=2
|
||||
CONFIG_CMA=y
|
||||
CONFIG_PREEMPT_VOLUNTARY=y
|
||||
CONFIG_LEDS=y
|
||||
--
|
||||
1.8.3.2
|
||||
|
||||
8
recipes-kernel/linux/linux-ti-staging-3.12/baseport.cfg
Normal file
8
recipes-kernel/linux/linux-ti-staging-3.12/baseport.cfg
Normal file
@@ -0,0 +1,8 @@
|
||||
##################################################
|
||||
# Baseport Config Options
|
||||
##################################################
|
||||
CONFIG_CRYPTO_HW=y
|
||||
CONFIG_CRYPTO_DEV_OMAP_AES=y
|
||||
CONFIG_CRYPTO_DEV_OMAP_SHAM=y
|
||||
CONFIG_CRYPTO_TEST=m
|
||||
CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=n
|
||||
14
recipes-kernel/linux/linux-ti-staging-3.12/connectivity.cfg
Normal file
14
recipes-kernel/linux/linux-ti-staging-3.12/connectivity.cfg
Normal file
@@ -0,0 +1,14 @@
|
||||
##################################################
|
||||
# Connectivity Configs
|
||||
##################################################
|
||||
CONFIG_MTD_NAND_OMAP_BCH=y
|
||||
CONFIG_MTD_TESTS=m
|
||||
CONFIG_SPI_SPIDEV=y
|
||||
CONFIG_USB_TEST=m
|
||||
CONFIG_USB_ACM=y
|
||||
CONFIG_USB_SERIAL_PL2303=y
|
||||
CONFIG_USB_PRINTER=y
|
||||
CONFIG_USB_NET_AX8817X=y
|
||||
CONFIG_USB_G_MULTI=m
|
||||
CONFIG_USB_G_MULTI_RNDIS=y
|
||||
CONFIG_USB_G_MULTI_CDC=y
|
||||
1
recipes-kernel/linux/linux-ti-staging-3.12/defconfig
Normal file
1
recipes-kernel/linux/linux-ti-staging-3.12/defconfig
Normal file
@@ -0,0 +1 @@
|
||||
use-kernel-config=omap2plus_defconfig
|
||||
18
recipes-kernel/linux/linux-ti-staging-3.12/ipc.cfg
Normal file
18
recipes-kernel/linux/linux-ti-staging-3.12/ipc.cfg
Normal file
@@ -0,0 +1,18 @@
|
||||
##################################################
|
||||
# IPC config options
|
||||
##################################################
|
||||
CONFIG_IOMMU_API=y
|
||||
CONFIG_IOMMU_SUPPORT=y
|
||||
CONFIG_OF_IOMMU=y
|
||||
CONFIG_OMAP_IOMMU=y
|
||||
CONFIG_OMAP_IOVMM=y
|
||||
CONFIG_OMAP_IOMMU_DEBUG=y
|
||||
CONFIG_VIRTIO=m
|
||||
CONFIG_RPMSG=m
|
||||
CONFIG_RPMSG_RPC=m
|
||||
CONFIG_REMOTEPROC=m
|
||||
CONFIG_OMAP_REMOTEPROC=m
|
||||
CONFIG_OMAP_REMOTEPROC_IPU=y
|
||||
CONFIG_OMAP_REMOTEPROC_DSP=y
|
||||
CONFIG_OMAP_REMOTEPROC_IPU1=y
|
||||
CONFIG_OMAP_REMOTEPROC_DSP2=y
|
||||
20
recipes-kernel/linux/linux-ti-staging-3.12/systest.cfg
Normal file
20
recipes-kernel/linux/linux-ti-staging-3.12/systest.cfg
Normal file
@@ -0,0 +1,20 @@
|
||||
##################################################
|
||||
# Systest config options
|
||||
##################################################
|
||||
CONFIG_DEBUG_SPINLOCK=y
|
||||
CONFIG_DEBUG_MUTEXES=y
|
||||
CONFIG_DEBUG_KMEMLEAK=y
|
||||
CONFIG_DEVKMEM=y
|
||||
CONFIG_HAVE_DEBUG_KMEMLEAK=y
|
||||
CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE=400
|
||||
CONFIG_DEBUG_KMEMLEAK_TEST=n
|
||||
CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF=n
|
||||
CONFIG_DEBUG_LOCK_ALLOC=y
|
||||
CONFIG_DEBUG_INFO=y
|
||||
CONFIG_DEBUG_FS=y
|
||||
CONFIG_DEBUG_KERNEL=y
|
||||
CONFIG_PM_DEBUG=y
|
||||
CONFIG_DEBUG_GPIO=y
|
||||
CONFIG_USB_DEBUG=y
|
||||
CONFIG_SND_DEBUG=y
|
||||
CONFIG_RTC_DEBUG=y
|
||||
1
recipes-kernel/linux/linux-ti-staging-3.15/defconfig
Normal file
1
recipes-kernel/linux/linux-ti-staging-3.15/defconfig
Normal file
@@ -0,0 +1 @@
|
||||
use-kernel-config=omap2plus_defconfig
|
||||
18
recipes-kernel/linux/linux-ti-staging-3.15/ipc.cfg
Normal file
18
recipes-kernel/linux/linux-ti-staging-3.15/ipc.cfg
Normal file
@@ -0,0 +1,18 @@
|
||||
##################################################
|
||||
# IPC config options
|
||||
##################################################
|
||||
CONFIG_IOMMU_API=y
|
||||
CONFIG_IOMMU_SUPPORT=y
|
||||
CONFIG_OF_IOMMU=y
|
||||
CONFIG_OMAP_IOMMU=y
|
||||
CONFIG_OMAP_IOVMM=y
|
||||
CONFIG_OMAP_IOMMU_DEBUG=y
|
||||
CONFIG_VIRTIO=m
|
||||
CONFIG_RPMSG=m
|
||||
CONFIG_RPMSG_RPC=m
|
||||
CONFIG_REMOTEPROC=m
|
||||
CONFIG_OMAP_REMOTEPROC=m
|
||||
CONFIG_OMAP_REMOTEPROC_IPU=y
|
||||
CONFIG_OMAP_REMOTEPROC_DSP=y
|
||||
CONFIG_OMAP_REMOTEPROC_IPU1=y
|
||||
CONFIG_OMAP_REMOTEPROC_DSP2=y
|
||||
5
recipes-kernel/linux/linux-ti-staging-3.15/non-smp.cfg
Normal file
5
recipes-kernel/linux/linux-ti-staging-3.15/non-smp.cfg
Normal file
@@ -0,0 +1,5 @@
|
||||
##################################################
|
||||
# Non-SMP config options
|
||||
##################################################
|
||||
CONFIG_SMP=n
|
||||
CONFIG_NR_CPUS=n
|
||||
20
recipes-kernel/linux/linux-ti-staging-3.15/systest.cfg
Normal file
20
recipes-kernel/linux/linux-ti-staging-3.15/systest.cfg
Normal file
@@ -0,0 +1,20 @@
|
||||
##################################################
|
||||
# Systest config options
|
||||
##################################################
|
||||
CONFIG_DEBUG_SPINLOCK=y
|
||||
CONFIG_DEBUG_MUTEXES=y
|
||||
CONFIG_DEBUG_KMEMLEAK=y
|
||||
CONFIG_DEVKMEM=y
|
||||
CONFIG_HAVE_DEBUG_KMEMLEAK=y
|
||||
CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE=400
|
||||
CONFIG_DEBUG_KMEMLEAK_TEST=n
|
||||
CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF=n
|
||||
CONFIG_DEBUG_LOCK_ALLOC=y
|
||||
CONFIG_DEBUG_INFO=y
|
||||
CONFIG_DEBUG_FS=y
|
||||
CONFIG_DEBUG_KERNEL=y
|
||||
CONFIG_PM_DEBUG=y
|
||||
CONFIG_DEBUG_GPIO=y
|
||||
CONFIG_USB_DEBUG=y
|
||||
CONFIG_SND_DEBUG=y
|
||||
CONFIG_RTC_DEBUG=y
|
||||
@@ -8,6 +8,9 @@ inherit kernel
|
||||
require recipes-kernel/linux/linux-dtb.inc
|
||||
require recipes-kernel/linux/setup-defconfig.inc
|
||||
|
||||
# Look in the generic major.minor directory for files
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-3.12:"
|
||||
|
||||
# Pull in the devicetree files into the rootfs
|
||||
RDEPENDS_kernel-base += "kernel-devicetree"
|
||||
|
||||
@@ -36,13 +39,24 @@ S = "${WORKDIR}/git"
|
||||
|
||||
BRANCH = "ti-linux-3.12.y"
|
||||
|
||||
SRCREV = "ae99216c5588fc0f9f6a48cb3da47c15f19e6415"
|
||||
PV = "3.12.9"
|
||||
SRCREV = "ffe21d87399ec09620878613a9ebfbc6c1d7c548"
|
||||
PV = "3.12.20"
|
||||
|
||||
# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
|
||||
MACHINE_KERNEL_PR_append = "a+gitr${SRCPV}"
|
||||
PR = "${MACHINE_KERNEL_PR}"
|
||||
|
||||
KERNEL_CONFIG_FRAGMENTS = "${WORKDIR}/baseport.cfg ${WORKDIR}/connectivity.cfg \
|
||||
${WORKDIR}/ipc.cfg"
|
||||
|
||||
SRC_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=${BRANCH} \
|
||||
file://defconfig \
|
||||
file://baseport.cfg \
|
||||
file://connectivity.cfg \
|
||||
file://ipc.cfg \
|
||||
file://systest.cfg \
|
||||
"
|
||||
|
||||
# Disable SMP in defconfig on single-core platforms to reduce overhead
|
||||
SRC_URI_append_ti33x = "file://0001-Not-for-merge-ARM-config-omap-Disable-SMP-for-AM335x.patch"
|
||||
SRC_URI_append_ti43x = "file://0001-Not-for-merge-ARM-config-omap-Disable-SMP-for-AM335x.patch"
|
||||
|
||||
61
recipes-kernel/linux/linux-ti-staging_3.15.bb
Normal file
61
recipes-kernel/linux/linux-ti-staging_3.15.bb
Normal file
@@ -0,0 +1,61 @@
|
||||
SECTION = "kernel"
|
||||
DESCRIPTION = "Linux kernel for TI devices"
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
|
||||
|
||||
DEFAULT_PREFERENCE = "-1"
|
||||
|
||||
inherit kernel
|
||||
|
||||
require recipes-kernel/linux/linux-dtb.inc
|
||||
require recipes-kernel/linux/setup-defconfig.inc
|
||||
|
||||
# Look in the generic major.minor directory for files
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-3.15:"
|
||||
|
||||
# Pull in the devicetree files into the rootfs
|
||||
RDEPENDS_kernel-base += "kernel-devicetree"
|
||||
|
||||
# Add a run-time dependency for the PM firmware to be installed
|
||||
# on the target file system.
|
||||
RDEPENDS_kernel-base_append_ti33x = " am33x-cm3"
|
||||
RDEPENDS_kernel-base_append_ti43x = " am33x-cm3"
|
||||
|
||||
# Add a run-time dependency for the VPE VPDMA firmware to be installed
|
||||
# on the target file system.
|
||||
RDEPENDS_kernel-base_append_dra7xx-evm = " vpe-vpdma-fw"
|
||||
|
||||
# Default is to package all dtb files for ti33x devices unless building
|
||||
# for the specific beaglebone machine.
|
||||
KERNEL_DEVICETREE_ti33x = "am335x-evm.dtb am335x-evmsk.dtb am335x-bone.dtb am335x-boneblack.dtb"
|
||||
KERNEL_DEVICETREE_ti43x = "am43x-epos-evm.dtb am437x-gp-evm.dtb"
|
||||
KERNEL_DEVICETREE_beaglebone = "am335x-bone.dtb am335x-boneblack.dtb"
|
||||
KERNEL_DEVICETREE_omap5-evm = "omap5-uevm.dtb"
|
||||
KERNEL_DEVICETREE_dra7xx-evm = "dra7-evm.dtb"
|
||||
|
||||
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
|
||||
|
||||
COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
BRANCH = "ti-linux-3.15.y"
|
||||
|
||||
SRCREV = "3fd9aad17d3b4d1d7ee50ae788c0a096921e7216"
|
||||
PV = "3.14+3.15-rc6"
|
||||
|
||||
# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
|
||||
MACHINE_KERNEL_PR_append = "b+gitr${SRCPV}"
|
||||
PR = "${MACHINE_KERNEL_PR}"
|
||||
|
||||
KERNEL_CONFIG_DIR = "ti_config_fragments"
|
||||
KERNEL_CONFIG_FRAGMENTS = "${WORKDIR}/ipc.cfg"
|
||||
KERNEL_CONFIG_FRAGMENTS_append_ti33x = " ${WORKDIR}/non-smp.cfg"
|
||||
KERNEL_CONFIG_FRAGMENTS_append_ti43x = " ${WORKDIR}/non-smp.cfg"
|
||||
|
||||
SRC_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=${BRANCH} \
|
||||
file://defconfig \
|
||||
file://ipc.cfg \
|
||||
file://systest.cfg \
|
||||
file://non-smp.cfg \
|
||||
"
|
||||
@@ -1,39 +0,0 @@
|
||||
SECTION = "kernel"
|
||||
DESCRIPTION = "Linux kernel for TI devices"
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
|
||||
KERNEL_IMAGETYPE = "uImage"
|
||||
|
||||
inherit kernel
|
||||
|
||||
require recipes-kernel/linux/linux-dtb.inc
|
||||
require recipes-kernel/linux/setup-defconfig.inc
|
||||
|
||||
# Add a run-time dependency for the PM firmware to be installed
|
||||
# on the target file system.
|
||||
RDEPENDS_kernel-base_append_ti33x = " am33x-cm3 am33x-cm3-initscript"
|
||||
|
||||
# Default is to package all dtb files for ti33x devices unless building
|
||||
# for the specific beaglebone machine.
|
||||
KERNEL_DEVICETREE_ti33x = "am335x-evm.dtb am335x-evmsk.dtb am335x-bone.dtb"
|
||||
KERNEL_DEVICETREE_beaglebone = "am335x-bone.dtb"
|
||||
KERNEL_DEVICETREE_omap5-evm = "omap5-sevm.dtb omap5-uevm.dtb"
|
||||
KERNEL_DEVICETREE_dra7xx-evm = "dra7-evm.dtb"
|
||||
|
||||
COMPATIBLE_MACHINE = "ti33x|omap-a15"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
BRANCH = "ti-linux-3.8.y"
|
||||
|
||||
# This commit corresponds to ti2013.04.02 release tag
|
||||
SRCREV = "f3cb62a800ae37f17a3382b10d155ee02dbc83fc"
|
||||
PV = "3.8.13"
|
||||
|
||||
# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
|
||||
MACHINE_KERNEL_PR_append = "g+gitr${SRCPV}"
|
||||
PR = "${MACHINE_KERNEL_PR}"
|
||||
|
||||
SRC_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=${BRANCH} \
|
||||
file://defconfig \
|
||||
"
|
||||
@@ -5,28 +5,54 @@ KERNEL_LOCALVERSION ?= ""
|
||||
# Check the defconfig file and see if it points to an in kernel
|
||||
# defconfig that should be used, or if it is a complete config file
|
||||
|
||||
addtask setup_defconfig before do_configure after do_patch
|
||||
do_setup_defconfig() {
|
||||
# define our own do_configure that will:
|
||||
# 1. Check the .config file and see if string use-kernel-config= is present
|
||||
# 2. If the use-kernel-config string is present parse out the config to use
|
||||
# and run make $config
|
||||
# 3. else run yes '' | oe_runmake oldconfig like the default do_configure
|
||||
# does
|
||||
do_configure() {
|
||||
# Always copy the defconfig file to .config to keep consistency
|
||||
# between the case where there is a real config and the in kernel
|
||||
# tree config
|
||||
cp ${WORKDIR}/defconfig ${S}/.config
|
||||
}
|
||||
|
||||
# define our own do_configure that will:
|
||||
# 1. Check the .config file and see if string use-kernel-config= is present
|
||||
# 2. If the use-kernel-config string is present parse out the config to use
|
||||
# and run make ${config}
|
||||
# 3. else run yes '' | oe_runmake oldconfig like the default do_configure
|
||||
# does
|
||||
do_configure() {
|
||||
echo ${KERNEL_LOCALVERSION} > ${B}/.scmversion
|
||||
echo ${KERNEL_LOCALVERSION} > ${S}/.scmversion
|
||||
config=`cat ${S}/.config | grep use-kernel-config | cut -d= -f2`
|
||||
if [ "x${config}" != "x" ]
|
||||
if [ ! -z "$config" ]
|
||||
then
|
||||
oe_runmake ${config}
|
||||
oe_runmake $config
|
||||
else
|
||||
yes '' | oe_runmake oldconfig
|
||||
fi
|
||||
|
||||
# Check for kernel config fragments. The assumption is that the config
|
||||
# fragment will be specified with the absolute path. For example:
|
||||
# * ${WORKDIR}/config1.cfg
|
||||
# * ${S}/config2.cfg
|
||||
# Iterate through the list of configs and make sure that you can find
|
||||
# each one. If not then error out.
|
||||
# NOTE: If you want to override a configuration that is kept in the kernel
|
||||
# with one from the OE meta data then you should make sure that the
|
||||
# OE meta data version (i.e. ${WORKDIR}/config1.cfg) is listed
|
||||
# after the in kernel configuration fragment.
|
||||
# Check if any config fragments are specified.
|
||||
if [ ! -z "${KERNEL_CONFIG_FRAGMENTS}" ]
|
||||
then
|
||||
for f in ${KERNEL_CONFIG_FRAGMENTS}
|
||||
do
|
||||
# Check if the config fragment was copied into the WORKDIR from
|
||||
# the OE meta data
|
||||
if [ ! -e "$f" ]
|
||||
then
|
||||
echo "Could not find kernel config fragment $f"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
# Now that all the fragments are located merge them.
|
||||
( cd ${WORKDIR} && ${S}/scripts/kconfig/merge_config.sh -m -r -O ${S} ${S}/.config ${KERNEL_CONFIG_FRAGMENTS} 1>&2 )
|
||||
yes '' | oe_runmake oldconfig
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ DESCRIPTION = "TI C6Accel - DSP Software Libraries on ARM"
|
||||
HOMEPAGE = "https://gforge01.dal.design.ti.com/gf/project/dsplib4arm/"
|
||||
|
||||
SECTION = "devel"
|
||||
LICENSE = "TI TSPA"
|
||||
LICENSE = "TI-TSPA"
|
||||
|
||||
require recipes-ti/includes/ti-paths.inc
|
||||
require recipes-ti/includes/ti-staging.inc
|
||||
|
||||
24
recipes-ti/dspdce-fw/dspdce-fw_1.00.00.02.bb
Normal file
24
recipes-ti/dspdce-fw/dspdce-fw_1.00.00.02.bb
Normal file
@@ -0,0 +1,24 @@
|
||||
DESCRIPTION = "Firmware for DSP "
|
||||
LICENSE = "TI-TSPA"
|
||||
LIC_FILES_CHKSUM = "file://DSPDCE-${PV}-Manifest.doc;md5=587a7b9fdd99f98fbe99af4a4ba3362a"
|
||||
|
||||
COMPATIBLE_MACHINE = "dra7xx-evm"
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
SRC_URI = "http://downloads.ti.com/dsps/dsps_public_sw/glsdk/dspdce/1_00_00_02/exports/dspdce-${MACHINE}-1.00.00.02.tar.gz;protocol=http"
|
||||
|
||||
S = "${WORKDIR}/dspdce-${MACHINE}-${PV}"
|
||||
|
||||
SRC_URI[md5sum] = "df19baf16f828b5d32b4eed50f0364f5"
|
||||
SRC_URI[sha256sum] = "0c0f34674110d1ef0300b61b572a326daffb95a31cc9d45888b2e50a83c6f555"
|
||||
|
||||
TARGET = "dra7-dsp1-fw.xe66"
|
||||
|
||||
do_install() {
|
||||
mkdir -p ${D}${base_libdir}/firmware
|
||||
cp ${S}/firmware/${TARGET} ${D}${base_libdir}/firmware/${TARGET}
|
||||
}
|
||||
|
||||
FILES_${PN} += "${base_libdir}/firmware/${TARGET}"
|
||||
|
||||
INSANE_SKIP_${PN} = "arch"
|
||||
@@ -1,36 +1,58 @@
|
||||
DESCRIPTION = "TI Inter Process Ccommunication (IPC) Mechanisms (for Uni- and Multi- Processor Configurations)"
|
||||
HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ipc/index.html"
|
||||
DESCRIPTION = "TI Inter Process Communication (IPC) Mechanisms (for Uni- and Multi- Processor Configurations)"
|
||||
HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:IPC"
|
||||
|
||||
SECTION = "devel"
|
||||
LICENSE = "BSD"
|
||||
LICENSE = "BSD"
|
||||
LIC_FILES_CHKSUM = "file://${S}/ipc-linux.mak;beginline=1;endline=30;md5=f2518e421e230f06fe6d449718d02edc"
|
||||
|
||||
require ../includes/ti-paths.inc
|
||||
require ../includes/ti-staging.inc
|
||||
require ../includes/ti-eula-unpack.inc
|
||||
DEPENDS += "virtual/kernel"
|
||||
|
||||
S = "${WORKDIR}/ipc_${PV}"
|
||||
PR = "r1"
|
||||
|
||||
SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ipc/${PV}/exports/ipc_setuplinux_${PV}.bin;name=ipcbin"
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
SRC_URI =+ "file://ipc.pc"
|
||||
PLATFORM = "UNKNOWN"
|
||||
PLATFORM_omap5-evm = "OMAP54XX"
|
||||
PLATFORM_dra7xx-evm = "DRA7XX"
|
||||
PLATFORM_keystone = "TCI6638"
|
||||
|
||||
DEPENDS = "ti-sysbios ti-cgt6x ti-xdctools"
|
||||
DAEMON = "UNKNOWN"
|
||||
DAEMON_omap5-evm = "lad_omap54xx_smp"
|
||||
DAEMON_dra7xx-evm = "lad_dra7xx"
|
||||
DAEMON_keystone = "lad_tci6638"
|
||||
|
||||
BINFILE="ipc_setuplinux_${PV}.bin"
|
||||
TI_BIN_UNPK_CMDS="Y: q:workdir:Y"
|
||||
inherit autotools pkgconfig update-rc.d
|
||||
|
||||
SRC_URI = "git://git.ti.com/ipc/ipcdev.git;protocol=git \
|
||||
file://0002-ipc-Added-installation-prefix-feature-to-products.ma.patch \
|
||||
file://tiipclad-daemon.sh \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
INITSCRIPT_NAME = "tiipclad-daemon.sh"
|
||||
INITSCRIPT_PARAMS = "defaults 10"
|
||||
|
||||
EXTRA_OEMAKE += "KERNEL_INSTALL_DIR=${STAGING_KERNEL_DIR} TOOLCHAIN_INSTALL_DIR=${TOOLCHAIN_PATH} TOOLCHAIN_LONGNAME=${TOOLCHAIN_SYS} PLATFORM=${PLATFORM} PREFIX=${prefix}"
|
||||
|
||||
do_configure() {
|
||||
sed -i -e s:@VERSION@:${PV}:g ${WORKDIR}/ipc.pc
|
||||
|
||||
cp ${WORKDIR}/ipc.pc ${S}
|
||||
oe_runmake -f ${S}/ipc-linux.mak config
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${IPC_INSTALL_DIR_RECIPE}
|
||||
cp -pPrf ${S}/* ${D}${IPC_INSTALL_DIR_RECIPE}
|
||||
|
||||
install -d ${D}/${libdir}/pkgconfig
|
||||
install ${S}/ipc.pc ${D}/${libdir}/pkgconfig/
|
||||
do_install_append() {
|
||||
install -d ${D}${sysconfdir}/init.d/
|
||||
|
||||
# Modify the tiipclad-daemon.sh script to point to the right
|
||||
# lad daemon executable.
|
||||
sed -i -e "s/__LAD_DAEMON__/${DAEMON}/" ${WORKDIR}/tiipclad-daemon.sh
|
||||
install -c -m 755 ${WORKDIR}/tiipclad-daemon.sh ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
|
||||
}
|
||||
|
||||
FILES_${PN}-dev = "${libdir}/*"
|
||||
PACKAGES =+ "${PN}-test"
|
||||
RDEPENDS_${PN}-test += "${PN}"
|
||||
|
||||
FILES_${PN}-test = " \
|
||||
${bindir}/NameServerApp \
|
||||
${bindir}/MessageQApp \
|
||||
${bindir}/MessageQMulti \
|
||||
${bindir}/ping_rpmsg"
|
||||
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
From 26d09063063593aec760151393226b96bc7ab9f8 Mon Sep 17 00:00:00 2001
|
||||
From: Mrinmayee Hingolikar <mrinmayee@ti.com>
|
||||
Date: Thu, 5 Sep 2013 17:01:15 +0530
|
||||
Subject: [PATCH] ipc: Added installation prefix feature to products.mak
|
||||
|
||||
Signed-off-by: Mrinmayee Hingolikar <mrinmayee@ti.com>
|
||||
---
|
||||
ipc-linux.mak | 1 +
|
||||
products.mak | 1 +
|
||||
2 files changed, 2 insertions(+)
|
||||
|
||||
diff --git a/ipc-linux.mak b/ipc-linux.mak
|
||||
index 788a5a2..01579e4 100644
|
||||
--- a/ipc-linux.mak
|
||||
+++ b/ipc-linux.mak
|
||||
@@ -38,6 +38,7 @@ include products.mak
|
||||
config:
|
||||
@echo "Configuring Linux Ipc ..."
|
||||
./configure --host=$(TOOLCHAIN_LONGNAME) \
|
||||
+ --prefix=$(PREFIX) \
|
||||
CC=$(TOOLCHAIN_PREFIX)gcc \
|
||||
PLATFORM=$(PLATFORM) \
|
||||
CMEM_INSTALL_DIR=$(CMEM_INSTALL_DIR) \
|
||||
diff --git a/products.mak b/products.mak
|
||||
index e418d2f..4578a1e 100644
|
||||
--- a/products.mak
|
||||
+++ b/products.mak
|
||||
@@ -55,6 +55,7 @@ PLATFORM ?=
|
||||
TOOLCHAIN_LONGNAME = arm-none-linux-gnueabi
|
||||
TOOLCHAIN_INSTALL_DIR = $(DEPOT)/_your_arm_code_gen_install_
|
||||
TOOLCHAIN_PREFIX = $(TOOLCHAIN_INSTALL_DIR)/bin/$(TOOLCHAIN_LONGNAME)-
|
||||
+PREFIX = /usr/local
|
||||
|
||||
# Optional: Path to Linux Kernel - needed to build the MmRpc user libraries
|
||||
# (for devices that support it)
|
||||
--
|
||||
1.7.9.5
|
||||
|
||||
24
recipes-ti/ipc/ti-ipc/tiipclad-daemon.sh
Normal file
24
recipes-ti/ipc/ti-ipc/tiipclad-daemon.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#! /bin/sh
|
||||
|
||||
tiipclad_daemon=/usr/bin/__LAD_DAEMON__
|
||||
tiipclad_params=lad.txt
|
||||
|
||||
test -x "$tiipclad_daemon" || exit 0
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting tiipclad daemon"
|
||||
start-stop-daemon --start --quiet --exec $tiipclad_daemon $tiipclad_params
|
||||
echo "."
|
||||
;;
|
||||
stop)
|
||||
echo -n "Stopping tiipclad daemon"
|
||||
start-stop-daemon --stop --quiet --pidfile /var/run/tiipclad.pid
|
||||
echo "."
|
||||
;;
|
||||
*)
|
||||
echo "Usage: /etc/init.d/tiipclad-daemon.sh {start|stop}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit 0
|
||||
@@ -1,8 +1,41 @@
|
||||
require ti-ipc.inc
|
||||
DESCRIPTION = "TI Inter Process Ccommunication (IPC) Mechanisms (for Uni- and Multi- Processor Configurations)"
|
||||
HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ipc/index.html"
|
||||
SECTION = "devel"
|
||||
LICENSE = "BSD"
|
||||
LIC_FILES_CHKSUM = "file://ipc_${PV}_manifest.html;md5=573f5a5c0448d28bf8db35f438244d7f"
|
||||
|
||||
|
||||
require ../includes/ti-paths.inc
|
||||
require ../includes/ti-staging.inc
|
||||
require ../includes/ti-eula-unpack.inc
|
||||
|
||||
PV = "1_24_00_16"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://ipc_${PV}_manifest.html;md5=573f5a5c0448d28bf8db35f438244d7f"
|
||||
S = "${WORKDIR}/ipc_${PV}"
|
||||
|
||||
SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ipc/${PV}/exports/ipc_setuplinux_${PV}.bin;name=ipcbin \
|
||||
file://ipc.pc"
|
||||
|
||||
DEPENDS = "ti-sysbios ti-cgt6x ti-xdctools"
|
||||
|
||||
BINFILE="ipc_setuplinux_${PV}.bin"
|
||||
TI_BIN_UNPK_CMDS="Y: q:workdir:Y"
|
||||
|
||||
do_configure() {
|
||||
sed -i -e s:@VERSION@:${PV}:g ${WORKDIR}/ipc.pc
|
||||
|
||||
cp ${WORKDIR}/ipc.pc ${S}
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${IPC_INSTALL_DIR_RECIPE}
|
||||
cp -pPrf ${S}/* ${D}${IPC_INSTALL_DIR_RECIPE}
|
||||
|
||||
install -d ${D}/${libdir}/pkgconfig
|
||||
install ${S}/ipc.pc ${D}/${libdir}/pkgconfig/
|
||||
}
|
||||
|
||||
FILES_${PN}-dev = "${libdir}/*"
|
||||
|
||||
SRC_URI[ipcbin.md5sum] = "d2f7cc82310d555ca039dcd353bd94c5"
|
||||
SRC_URI[ipcbin.sha256sum] = "96df7835e920c7dabcd63d30ec8bc2aea7cd0c6197c9fb9ca0f8a9b681aa5396"
|
||||
|
||||
7
recipes-ti/ipc/ti-ipc_3.00.00.bb
Normal file
7
recipes-ti/ipc/ti-ipc_3.00.00.bb
Normal file
@@ -0,0 +1,7 @@
|
||||
require ti-ipc.inc
|
||||
|
||||
# For this version of IPC the PLATFORM value is lowercase
|
||||
PLATFORM_keystone = "tci6638"
|
||||
|
||||
# The following commit corresponds to 3.00.04.29
|
||||
SRCREV = "12794ea33870b782bffe1fe4398e86e93fb64396"
|
||||
4
recipes-ti/ipc/ti-ipc_3.21.00.07.bb
Normal file
4
recipes-ti/ipc/ti-ipc_3.21.00.07.bb
Normal file
@@ -0,0 +1,4 @@
|
||||
require ti-ipc.inc
|
||||
|
||||
# This commit corresponds to 3.21.00.07
|
||||
SRCREV = "c18fece0c9f0dc76361dc1ee11b7ee2417479847"
|
||||
30
recipes-ti/ipumm-fw/ipumm-fw_3.00.04.02.bb
Normal file
30
recipes-ti/ipumm-fw/ipumm-fw_3.00.04.02.bb
Normal file
@@ -0,0 +1,30 @@
|
||||
DESCRIPTION = "Firmware for IPU "
|
||||
|
||||
LICENSE = "TI-TSPA"
|
||||
LIC_FILES_CHKSUM_dra7xx-evm = "file://MMIP-${PV}-Manifest.doc;md5=64ca6f9d7e5243b8a4084eb918a543bc"
|
||||
LIC_FILES_CHKSUM_omap5-evm = "file://MMIP-${PV}-Manifest.doc;md5=39a593dd8fc2a9654c74f679ed329c45"
|
||||
|
||||
COMPATIBLE_MACHINE = "omap-a15"
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
SRC_URI = "http://downloads.ti.com/dsps/dsps_public_sw/glsdk/ipumm/3_00_04_02/exports/ipumm-${MACHINE}-3.00.04.02.tar.gz;protocol=http;name=${MACHINE}"
|
||||
|
||||
# DRA7xx checksums
|
||||
SRC_URI[dra7xx-evm.md5sum] = "da04c03b0fd57901e8283afa80f81379"
|
||||
SRC_URI[dra7xx-evm.sha256sum] = "0b26fd13f9c318b52c18b9bff56862ef1f58a768b19285b87c035e65bc828ddc"
|
||||
|
||||
# OMAP5 checksums
|
||||
SRC_URI[omap5-evm.md5sum] = "1572073ebd4f6d127c4e8cf47d270b6a"
|
||||
SRC_URI[omap5-evm.sha256sum] = "2fdb469f19e3c9984854f5bc82444fca4d7da869f5e645da22ec0d5beaa5cc65"
|
||||
|
||||
S = "${WORKDIR}/ipumm-${MACHINE}-${PV}"
|
||||
|
||||
TARGET_dra7xx-evm = "dra7-ipu2-fw.xem4"
|
||||
TARGET_omap5-evm = "ducati-m3-core0.xem3"
|
||||
|
||||
do_install() {
|
||||
mkdir -p ${D}${base_libdir}/firmware
|
||||
cp ${S}/firmware/${TARGET} ${D}${base_libdir}/firmware/${TARGET}
|
||||
}
|
||||
|
||||
FILES_${PN} += "${base_libdir}/firmware/${TARGET}"
|
||||
@@ -1,6 +1,6 @@
|
||||
DESCRIPTION = "eZ430 Chronos Tools - MSP430 Development Kit/Watch"
|
||||
HOMEPAGE = "http://processors.wiki.ti.com/index.php/EZ430-Chronos"
|
||||
LICENSE = "TI-BSD"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
# We can't use the actualy source file, since it has space in its name :(
|
||||
LIC_FILES_CHKSUM = "file://eZ430-Chronos_CC_1_1.tcl;md5=59ba6ee0a26650ec660a4e65a9462806"
|
||||
|
||||
|
||||
31
recipes-ti/vis-fw/vis_01.50.07.15.bb
Normal file
31
recipes-ti/vis-fw/vis_01.50.07.15.bb
Normal file
@@ -0,0 +1,31 @@
|
||||
DESCRIPTION = "Radio Application Firmware"
|
||||
LICENSE = "TI-TSPA"
|
||||
LIC_FILES_CHKSUM = "file://${S}/J6_VIS_DEMO_LINUX_BINARY_01.50.07.15-Manifest.html;md5=a59aa54b9470f555cf086b91dca0afa3"
|
||||
|
||||
COMPATIBLE_MACHINE = "dra7xx-evm"
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
SRC_URI = "http://downloads.ti.com/dsps/dsps_public_sw/glsdk/vis/01_50_07_15/exports/vis-${MACHINE}-01.50.07.15.tar.gz;protocol=http"
|
||||
|
||||
SRC_URI[md5sum] = "fe8b00e398fb3b7ada0c15b601867acb"
|
||||
SRC_URI[sha256sum] = "6e2aa47ae892910616ebdc96646af778af9a59ca0657716ab4fa4b24a9afae69"
|
||||
|
||||
S = "${WORKDIR}"
|
||||
|
||||
DSPAPP = "dra7-dsp1-fw-radio.xe66"
|
||||
GPPAPP = "RadioApp"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${base_libdir}/firmware
|
||||
install -d ${D}${bindir}
|
||||
install ${S}/prebuilt/${DSPAPP} ${D}${base_libdir}/firmware/${DSPAPP}
|
||||
install -m 0755 ${S}/prebuilt/${GPPAPP} ${D}${bindir}/${GPPAPP}
|
||||
}
|
||||
|
||||
PACKAGES += "${PN}-fw"
|
||||
RDEPENDS_${PN} += "${PN}-fw"
|
||||
|
||||
FILES_${PN}-fw += "${base_libdir}/firmware/${DSPAPP}"
|
||||
|
||||
INSANE_SKIP_${PN}-fw = "arch"
|
||||
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
|
||||
Reference in New Issue
Block a user