Skip to content

Commit

Permalink
Fix bb-install naming conventions, add hashes (#30535)
Browse files Browse the repository at this point in the history
* Fix `bb-install` naming conventions, add hashes

* Set `DEP_LIBS` to include `openblas` on Appveyor

* When guessing BB libc, default to `glibc` on Linux

* Fix bb-install bash parsing failure

Quote to avoid bash freaking out from spurious `)` from compilers that
have fancy version strings such as `(Red Hat 7.3.1-5)`, which gets
`lastword`'ed down to `7.3.1-5)`.

* Add `contrib/refresh_bb_tarballs.sh` to aid in batch-grabbing BB hashes

(cherry picked from commit 8b189ec)
  • Loading branch information
staticfloat authored and KristofferC committed Jan 11, 2019
1 parent a5f63ff commit 05a8951
Show file tree
Hide file tree
Showing 92 changed files with 143 additions and 11 deletions.
4 changes: 4 additions & 0 deletions contrib/normalize_triplet.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ def get_field(m, mapping):
gcc_version = get_field(m, gcc_version_mapping)
cxx_abi = get_field(m, cxx_abi_mapping)

# The default libc on Linux is glibc
if platform == "linux" and libc == "blank_libc":
libc = "gnu"

def r(x):
x = x.replace("blank_call_abi", "")
x = x.replace("blank_gcc", "")
Expand Down
31 changes: 31 additions & 0 deletions contrib/refresh_bb_tarballs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/sh

# Get this list via:
# using BinaryBuilder
# print("TRIPLETS=\"$(join(triplet.(BinaryBuilder.supported_platforms()), " "))\"")
TRIPLETS="i686-linux-gnu x86_64-linux-gnu aarch64-linux-gnu arm-linux-gnueabihf powerpc64le-linux-gnu i686-linux-musl x86_64-linux-musl aarch64-linux-musl arm-linux-musleabihf x86_64-apple-darwin14 x86_64-unknown-freebsd11.1 i686-w64-mingw32 x86_64-w64-mingw32"

# These are the projects currently using BinaryBuilder; both GCC-expanded and non-GCC-expanded:
BB_PROJECTS="llvm"
BB_GCC_EXPANDED_PROJECTS="openblas"

# Get "contrib/" directory path
CONTRIB_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)

set -x
# For each triplet and each project, download the BB tarball and save its hash:
for triplet in ${TRIPLETS}; do
for proj in ${BB_PROJECTS}; do
PROJ="$(echo ${proj} | tr [a-z] [A-Z])"
make -C "${CONTRIB_DIR}/../deps" USE_BINARYBUILDER_${PROJ}=1 ${PROJ}_BB_TRIPLET=${triplet} distclean-${proj}
make -C "${CONTRIB_DIR}/../deps" USE_BINARYBUILDER_${PROJ}=1 ${PROJ}_BB_TRIPLET=${triplet} compile-${proj}
done

for proj in ${BB_GCC_EXPANDED_PROJECTS}; do
PROJ="$(echo ${proj} | tr [a-z] [A-Z])"
for gcc in gcc4 gcc7 gcc8; do
make -C "${CONTRIB_DIR}/../deps" USE_BINARYBUILDER_${PROJ}=1 ${PROJ}_BB_TRIPLET=${triplet}-${gcc} distclean-${proj}
make -C "${CONTRIB_DIR}/../deps" USE_BINARYBUILDER_${PROJ}=1 ${PROJ}_BB_TRIPLET=${triplet}-${gcc} compile-${proj}
done
done
done
2 changes: 1 addition & 1 deletion contrib/windows/appveyor_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ else
echo 'USE_BINARYBUILDER_LLVM = 1' >> Make.user
echo 'USE_BINARYBUILDER_OPENBLAS = 1' >> Make.user
echo 'BINARYBUILDER_LLVM_ASSERTS = 1' >> Make.user
echo 'override DEP_LIBS += llvm openlibm' >> Make.user
echo 'override DEP_LIBS += llvm openlibm openblas' >> Make.user
export CCACHE_DIR=/cygdrive/c/ccache
echo 'USECCACHE=1' >> Make.user
make check-whitespace
Expand Down
1 change: 1 addition & 0 deletions deps/checksums/LLVM.v6.0.1.aarch64-linux-gnu.tar.gz/md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
46152d2b14fd1a9b052e0dcf341fdc60
1 change: 1 addition & 0 deletions deps/checksums/LLVM.v6.0.1.aarch64-linux-gnu.tar.gz/sha512
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0d0f0a2331d5c4fe6b0b81ce1d03df73faa418308b6bb59a3a663d398bb33f95a03a882d2abe1f962c9dd58f063ab8f6d571a3e9df1951ede2b6594fdb1e34b9
1 change: 1 addition & 0 deletions deps/checksums/LLVM.v6.0.1.arm-linux-gnueabihf.tar.gz/md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4969025231930de85f04ba2fcb15589a
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ee1df591b443e75a6359f1ee72635925a60f1fde2a21c62f818d7eaedff4e8aacfef16a18e417f29ee02f3a5e972dd59a25bcea8b4822efb688ce18a744e24a5
1 change: 1 addition & 0 deletions deps/checksums/LLVM.v6.0.1.i686-linux-gnu.tar.gz/md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8dbfc95c4b69b3a6dee154d73865fff8
1 change: 1 addition & 0 deletions deps/checksums/LLVM.v6.0.1.i686-linux-gnu.tar.gz/sha512
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6cc8bb7d76c4d606f1b02d99d81d320c5498fa851bbaac284162ac9306c5e8b10db43f0411c0c0b6e778bbb88bd86ce33dbc4ff1bd74bc2610514a536af367b4
1 change: 1 addition & 0 deletions deps/checksums/LLVM.v6.0.1.i686-w64-mingw32.tar.gz/md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20ef707d38a3ea744cc5748170c09dad
1 change: 1 addition & 0 deletions deps/checksums/LLVM.v6.0.1.i686-w64-mingw32.tar.gz/sha512
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
84343663f17b6aeea6114478c35741b509ff696e6d042d8666aa52adc9ed17f64d90823123be7eaef367dacf34daf4466c83e662d2b5aa9046e950d1b611f831
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
19afaeb0632a880777b88482f69ccdfc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3ecd22371aa4bb24b854467c40fa72d25e2e9d2f9e9b684b2d541d6003a151a763998b1a1171636207850f3f4da4656a4c62a4d7bc065d055b86f6380874e430
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fba99debe20aa1a131f61c539cf66b73
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
efc19110cd4b36a77249b20fb31b5b35cea0c0932d9ae8bb279064d93ead5869b608a27146a5f08e0aedde913bfa3435758e0a60b6e79087e3fbc2f61c7801ba
1 change: 1 addition & 0 deletions deps/checksums/LLVM.v6.0.1.x86_64-linux-gnu.tar.gz/md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
287274fe536cb5b241d1fd84be23b874
1 change: 1 addition & 0 deletions deps/checksums/LLVM.v6.0.1.x86_64-linux-gnu.tar.gz/sha512
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9d1419e594c88b9ac4c64745a79292e8a83d3e1b21b65a24bb8531e19b5044d178b975acefe67a71b468282ffebac6a906213a4f7345d9e111c92441fd9b674e
1 change: 1 addition & 0 deletions deps/checksums/LLVM.v6.0.1.x86_64-w64-mingw32.tar.gz/md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
f1c51ca218daf247a4119dfa68105ec5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
355e10041f4827bcc3409312cc0d069c10d731b91c3afaf9905f72b321818102bfab7032340282a11e0ddb4b946fb8aff5c874b9f884a856e3743b394ad601b5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
f088cf15546c4eedba5209b72a9f9ac5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7e43fa526bc31793a2b2a5c289cd8676741c01f2c5403da5da010dc057d8327dba46bbd6bbde6543d110f4c29529f344ed60c6648e8f0860e29b97b02b1900ec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
92628223024ec50dd3a4f9951a519627
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
83a3c1e457d1b3a5014171bfeb773cd6c9abbe0677f8825565c4b7dfe2c0006fa98432c9603fce65c0bfa303abfa1a5808215d83de0ce25cf82803c89ed090a7
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
311db7786512fd6d10d894aacf34585c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a960332431e19c7c81c8fbfd25807dd36b76467783e88d6786390ed380e44d573e83c412e5676099f399dabdd122225dc592f6550ea548df4d5bb855e669a197
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8a57c45906f45e3e23f45ad15342b86f
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e5746eacd59ab9d758a96887e704c3069756e64c492e803b39667c9fe0fb3f31630b107a8d3ed78d2f577998dcf05ef1b22635269f0b1d07f1f7a885c0a40de0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
784b3804c06102a2a5e921045128141d
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
42d9a646b9bf334366c6e8f10f97095182cbfa20a1d81767d2c7840807c6b119ac680805a49422594964d1595d840189a0a4237b77aa996f421035f7fa0724df
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
80847101ea313e3481c6b1eca511edba
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e213f0cccec17bcbc575a7892ebc3fef96fd7626af15dabe1e00d11dca1b7ecbdb703b76dded37567f01ad7c6c6bb1128d00deccea3f22b989e906331b90d048
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1725d3703e48a65202fd6a1b85939562
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
f0e37ff06cfe5e2e068209ae5606818e2237befb16df44fd37992d6fa4ab09f011163f1ee9bc7f402f01636e102a9aa76ab87b452739767ea5418504bb42e712
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d04050d4950af260d50b2776fd9644be
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8fe6db1d9f89728dff78d00a3baac433f1cb49cb4f2b4137200a5adc7e09ec1e6defdfacde0ff8b4f116bccc119d7a2446f393d72915d1fb6196bc5eebe6dd3b
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
27f231b907ad9eea5209e7162b7ee9ed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
13651977b234fd69dd784d3b302d3cc86c01aa5c6feade2a89a2141c0ae8d3e69ae45d8c821efae20bc5fd287675b761923ebe9dd16a6e43ef82b3c39f78efc8
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
c46ce6edbc149e7e50746d36f5dd39be
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
47e476d9f53678e7831e585bc2bb9da6b5ca52691e534a4ef9a6e4b1d47dab863ea4f40cbc0f280a275ebfe7158502ad8e87c318a099969da86268494ad5cdec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7436441c3396058e64aecaed35e0aaf7
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1855fdc531d9e22a8ea7312d766e1557d8534dee3db2d500815b6a07975a715ebbaa905a7a8e61dc4f187295ef6ac0f1cb88d761b6b219c98723164ce037a701
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
f288cefa5efdf8198baa34f2926efb5f
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
b64d8175bda0ef8f21913612118e2c778378edfd40076d5f4894d63f78275b6308b57fc398c818098c230d2cb5370c681348db01f894a36981315ed4fe231a75
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
c39eccd8437526a85d882b9361bf992f
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5450c993b3a5d51263b4566f4216539ddfd68a9d320ac2d1acd667aab32cade6dc23d419eb6661fed1da735fe002a1c8174a1587c852291adcba79569ecfbd57
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
586864e85249190e75aee1ff9efac507
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
99efda0f03a13663515451a8bd16dd0db575c92cce469d6eaa8197f59a0f49b485eaafa9746dde9bc362208d1033e0981c4c113436cbf6992155a84579cc2258
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ed4247b9afeed44c4fe6a8936450db0d
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ee5427db88236f800721ae5f68996da346a79223a6fc5a4a77241a39462090e9d04617efbf7f9af533002b2394785c408d60cb6dfe8217da6d83f3386df583f6
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0d5962eff8b08fa0bde0927ffba16ea6
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
02a8ebd0172acf789b9f91b9289424185bfbd23c8f7844c31df13eb598d99dcc654fe9f3a3b034b56bad0cae5f88318610a0981aa40ab1304121c2bf4c86f79b
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8ed451829c335e9149fb8bb8450186d9
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
975f17af10e9d3404d22bd85e2420594d84c142a0223705293a7a4f1f0533ddde1d8cd61db5e6749e1b6f75080d02719bda13a8618e6b751aff257dc01d451f6
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2bd3407e74930750863ef732ed4c436e
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d4af029f0ae70604f69d757f8bd6c02ff597984bb130099a8755fe8660dad04b1a22dbeea4008b5ec9462b0508524b6091a380d509f195857de5c82c4b7b058d
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
71fabfa2708eee2fc70d559059ea5292
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5814455eb15782f69b60493e5d4fcc6525c2ae942c8c4836a422401be0f9d89ef581bd6e45a2d85f148ec97a64197159ad7a9a49302b190b0bc0e4f6457b62c0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6837acfadac6150ca5da993fbfe49524
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
26724b8b34e1f435118636d767648c64e91e2f7a25393e5b685564b05d6960e41417a491477952c477ee623cfa66387d41ebde9267539261b851b66add1ba6ba
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bfb0a11291016152f5a8e7c7cd53b729
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
64f4121b4d9e242f034630d446cb841f242e48165ca8e9026463c825d42b8cd2720045fcd46d630a402672ba0e06c6519cdec9d7b78d96ab7a0ee6f00fcaf4fd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
212dbd606a757a433ca9b025b81d0b01
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1aa3d9309b1d1fbcf9fb4c8c0c8e178aed264efe3b60a81ab35328939ae63b141e8d87de9abafac6c488ae8438f3550cccb05200b78e6994fdc4d8be478aade3
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d85de52c6b2d2163da276fec2fb853e2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
35724cc9eead1a1b48c87b1f9924284382538904ba857778840258e98e45cc72898cac48736cd08007a20e9908a6f43ee26a3891e4de9e1d1988db3c4e140a70
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a064e25190a1b8e88e6ac5a23138b600
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9cf9658fa77c61b7a2f462ef5ce4097b288579aeb6e19e2fb3f4bc2e2d2697be16febda65b92a4061e7c007b9b5a317e6c318e5e7c7deaabd84a5a382f7f74b8
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
b45a0b6dbd411ca00674113086066fb1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
c3630ff607f78ec5007e72edec8c237ddd68b9b3bb5d15ce0695677d33107302aaca33e1fe7349762779a7ea327e6465a7edaeb114df44ff363074d8e69124fc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0914a5f99799b10515533d966088739a
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
160225f3afa22f1ce4698bea73597266a96a7483454283a5f17ab105731dadff7374b36e21b37eeff73afa9e725d224fb1e65262d2a737ff91a2e04825eddb5d
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7a19c9986027c6740d9ccf878fdf685a
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
582b285d2bc3f5d6984a60646356efa2a17c198d598a47f5060638fdaaca814cff0035946b408707d7269bbb9d5f30ca0cf1cec72d98b1c1f5893d94b5bf0e69
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cf06a7c6dbe8e72f7faf0e8b8dc45b5b
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ee6c8d7ab063151cc31384c8b5aac09930e43ad47eaf88ea6becc3fe63b45502979b2510df9c64866e2fe843b6c996b6e8f6c580557765262f48ddf05711ac77
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dd83850d3dccaf8a86c1dc2c92bd2722
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
f09ec01d77dd362afce2d801b07bbad3fd7bf4968f3675f7da199f6e36641fa4a1f39e0efdd29811f38af41e084a06999e183a5e9d8dd6b19ccc574009bbd56a
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
77dcaa22914d8a83bb430fa8da8f0e7d
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
b2b9141ca3ed0ffc7e6b65b6e066d7c18fd9d2db4cde0ffdf3ad4dfa6d6c6c2a0d58986e611d6628e36644f3fb50a844aac9a8b5aa2a70e29a26005b019a2592
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
21124a1f217460744ef6613d1227da03
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fddebd7bbd1e67e1ce3fb9887b2bfbdba53452ab445d25a718d6369a9d91957b45fbca24f246d2823bfcf51a1aa8f9bc3530f43cf66d7915e01da8810041342d
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a5203a3d0101c0f8af922ca4d9e9f63d
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
209107bb4d61494a90f7efecfaeb2074183e1f0ca4b28e6caf1bd87fd356ba7f82ba4ad34e9e34a27669ee55f9df38bb831bcc9c3ca3f4f45aacc1d1747cd2b5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
25b669075a95cdaf89f15970125d1f61
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
62dcd6e02b4d175eb2cf4a66fbd0bdc53b42e5cf7d710b999cf82cefe96abffe017b7e02821ea9f8da610d64a671414b92b8ae66750c0d828573f0c30161b223
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6f18d278fde2b975a87eb4bc4713535a
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6fed03c459cf4eb0237d838da1e0dfb2f57d6f13a345e74a4e7bdd0f11ef487646d00c1741a8965a2a05abdf61b4ed517a1bf955e5f8a93b590ed7824543d5da
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4adce6ef2ba3b74ae180302d511144de
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ca43770bbb021a0ffb2847bf45fbaa4d9b8fff78bc201094adf4dac1df4e5db52eee2646155c415fc9b5a0e419426f335b246c90c193c423cce86def172b034f
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e88ac7a195ddb48f71ecd13d91e62cf0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0a73eec901c3470c354468e0b961325eda1a1515dcbe9f25528856390eecf21f81fec37def9f9e1661ec84db1a4fa782a4607d16805661c743bd978050f82d6a
29 changes: 19 additions & 10 deletions deps/tools/bb-install.mk
Original file line number Diff line number Diff line change
@@ -1,33 +1,42 @@
define bb-install
# If the user has signified that this is a GCC-multiversioned tarball, then generate the proper tarball
ifeq ($(3),true)
$(2)_BB_TRIPLET := $(shell python $(call cygpath_w,$(JULIAHOME)/contrib/normalize_triplet.py) $(or $(XC_HOST),$(XC_HOST),$(BUILD_MACHINE)) $(lastword $(shell $(FC) --version | head -1)))
$(2)_BB_TRIPLET := $(shell python $(call cygpath_w,$(JULIAHOME)/contrib/normalize_triplet.py) $(or $(XC_HOST),$(XC_HOST),$(BUILD_MACHINE)) "$(lastword $(shell $(FC) --version | head -1))")
else
$(2)_BB_TRIPLET := $(shell python $(call cygpath_w,$(JULIAHOME)/contrib/normalize_triplet.py) $(or $(XC_HOST),$(XC_HOST),$(BUILD_MACHINE)))
endif
$(2)_BB_URL := $$($(2)_BB_URL_BASE)/$$($(2)_BB_NAME).$$($(2)_BB_TRIPLET).tar.gz
$(2)_BB_BASENAME := $$(shell basename $$($(2)_BB_URL))

$$(BUILDDIR)/$(1)-$$($(2)_BB_NAME):
$$(BUILDDIR)/$$($(2)_BB_NAME):
mkdir -p $$@

$$(BUILDDIR)/$(1)-$$($(2)_BB_NAME)/$(2).$$($(2)_BB_TRIPLET).tar.gz: | $$(BUILDDIR)/$(1)-$$($(2)_BB_NAME)
$$(SRCCACHE)/$$($(2)_BB_BASENAME): | $$(SRCCACHE)
$$(JLDOWNLOAD) $$@ $$($(2)_BB_URL)

$$(BUILDDIR)/$(1)-$$($(2)_BB_NAME)/build-compiled: | $$(BUILDDIR)/$(1)-$$($(2)_BB_NAME)/$(2).$$($(2)_BB_TRIPLET).tar.gz
$$(BUILDDIR)/$$($(2)_BB_NAME)/build-compiled: $$(BUILDDIR)/$$($(2)_BB_NAME) | $$(SRCCACHE)/$$($(2)_BB_BASENAME)
$$(JLCHECKSUM) $$(SRCCACHE)/$$($(2)_BB_BASENAME)
echo 1 > $$@

$$(eval $$(call staged-install,$(1),$(1)-$$$$($(2)_BB_NAME),,,,))
$$(eval $$(call staged-install,$(1),$$($(2)_BB_NAME),,,,))

#Override provision of stage tarball
$$(build_staging)/$(1)-$$($(2)_BB_NAME).tgz: $$(BUILDDIR)/$(1)-$$($(2)_BB_NAME)/$(2).$$($(2)_BB_TRIPLET).tar.gz | $$(build_staging)
$$(build_staging)/$$($(2)_BB_NAME).tgz: $$(SRCCACHE)/$$($(2)_BB_BASENAME) | $$(build_staging)
cp $$< $$@

clean-$(1):
distclean-$(1):
get-$(1): $$(BUILDDIR)/$(1)-$$($(2)_BB_NAME)/$(2).$$($(2)_BB_TRIPLET).tar.gz
clean-bb-$(1):
rm -f $$(build_staging)/$$($(2)_BB_BASENAME)
rm -f $$(BUILDDIR)/$$($(2)_BB_NAME)/build-compiled

clean-$(1): clean-bb-$(1)
distclean-$(1): clean-bb-$(1)
get-$(1): $$(SRCCACHE)/$$($(2)_BB_BASENAME)
extract-$(1):
configure-$(1):
compile-$(1):
compile-$(1): $$(BUILDDIR)/$$($(2)_BB_NAME)/build-compiled
install-$(1): compile-$(1)
fastcheck-$(1):
check-$(1):

.PHONY: clean-bb-$(1)
endef

0 comments on commit 05a8951

Please sign in to comment.