Compare commits
761 Commits
glued-1.9.
...
master
Author | SHA1 | Date |
---|---|---|
Diogo Cordeiro | c33ae26742 | |
Diogo Cordeiro | 2a82e92e04 | |
Diogo Cordeiro | cc98513b14 | |
Jose Pinto | 8418458d6e | |
Jose Pinto | 78a8e0099d | |
Pedro Gonçalves | 9824634051 | |
Pedro Gonçalves | a21f7a4835 | |
Tiago Sá Marques | ca8a965f1f | |
Tiago Sá Marques | 623bac0c38 | |
mariacosta | c66054cafd | |
Pedro Gonçalves | c425981fa4 | |
Pedro Gonçalves | b69cfb9682 | |
Pedro Gonçalves | 568f2abbbf | |
Pedro Gonçalves | 0dd5539b48 | |
Pedro Gonçalves | d1872860fa | |
mariacosta | 4cf1db0317 | |
Paulo Dias | 00255e4608 | |
Paulo Dias | 72a786508e | |
Paulo Dias | 8bda2a4551 | |
Kristoffer Gryte | 4e0d51b548 | |
Kristoffer Gryte | 20a8911a04 | |
zepinto | 7542b861c3 | |
Paulo Dias | 580816dde8 | |
João Teixeira | 4c8324abc3 | |
João Teixeira | 4316b4c9f7 | |
João Teixeira | 9015c36df9 | |
mariacosta | 3e002e3ec5 | |
Tiago Marques | b15293ee66 | |
Tiago Marques | e2da8b7586 | |
Tiago Marques | 0cf9ba8b9c | |
Tiago Marques | 5967c0b13f | |
Tiago Marques | 459c14e7f4 | |
Pedro Gonçalves | d2a0d5208c | |
Pedro Gonçalves | 644b98c753 | |
Pedro Gonçalves | fcad38b6d7 | |
Pedro Gonçalves | 853e7ea553 | |
Pedro Gonçalves | b0633cd82c | |
Pedro Gonçalves | 7e8e9cbad0 | |
Tiago Marques | 19855db2da | |
Ricardo Martins | a8a131e19c | |
Ricardo Martins | bbbd691fb3 | |
Tiago Marques | 200dfc2205 | |
Tiago Marques | 1a95420340 | |
Tiago Marques | aec36f560b | |
Tiago Marques | 13b3b18b5d | |
Tiago Marques | 87e70a6615 | |
Tiago Marques | 7dc03d18c5 | |
Tiago Marques | dbae4f69f6 | |
Tiago Marques | 29298872e8 | |
Tiago Marques | a55b6dbc6a | |
Tiago Marques | 5919324f1b | |
Tiago Marques | 020e2c7fe9 | |
Tiago Marques | b4674e5cb6 | |
Tiago Marques | 1c2f480dbd | |
Tiago Sá Marques | 63ce5fa404 | |
Tiago Sá Marques | 8097d2679b | |
Tiago Marques | d352a68acc | |
Tiago Marques | 81052b54a6 | |
Tiago Marques | b28a6d787e | |
Tiago Marques | 347ef94fd4 | |
Tiago Marques | eacd69fe0f | |
tsmarques | d1adbb7b9c | |
tsmarques | c8e3e6fc59 | |
tsmarques | a911af2fa0 | |
tsmarques | fb7aa49ab0 | |
Tiago Marques | ee477076c8 | |
Pedro Gonçalves | 8faf53ef3e | |
Pedro Gonçalves | aa786393e6 | |
Pedro Gonçalves | 592571c75a | |
Pedro Gonçalves | d87b79cecd | |
Pedro Gonçalves | 8f5aa75fae | |
Pedro Gonçalves | 2601d6a4a4 | |
Pedro Gonçalves | 770821bbcd | |
Pedro Gonçalves | 6bcbaced95 | |
Pedro Gonçalves | 6607a06504 | |
Pedro Gonçalves | a4f6e5c9d8 | |
Pedro Gonçalves | e034305031 | |
Pedro Gonçalves | 07219a7e82 | |
Pedro Gonçalves | 4b13bb96d6 | |
Tiago Marques | d4be30bec6 | |
Tiago Marques | a6564e1b5d | |
Tiago Marques | 6f0b948b98 | |
Kristian Klausen | 277501513a | |
Kristian Klausen | 40b48c2b35 | |
Kristian Klausen | 1069e42b8b | |
Kristian Klausen | 88718f7a36 | |
Kristian Klausen | 88ca152faa | |
Kristian Klausen | 970bddfa6e | |
Kristian Klausen | a564932f4f | |
Kristian Klausen | de5fb6e33d | |
Kristian Klausen | 51f08c2d3d | |
Kristian Klausen | 79aa224ed3 | |
Kristian Klausen | 49fb0d28cd | |
Kristian Klausen | 438cfa26eb | |
Kristian Klausen | 792d11ca1c | |
Kristian Klausen | 115cfa3727 | |
Tiago Marques | 1369cb7f34 | |
Tiago Marques | e12f3dc414 | |
Tiago Marques | 52880f1754 | |
Tiago Marques | 5a8237118f | |
José Braga | f6f03a67dd | |
José Braga | 7f2247ae3b | |
Jose Pinto | 84bbaf4bca | |
Tiago Marques | 3704b05ffa | |
Jose Pinto | 3164e87a8e | |
Ricardo Martins | 3496db07d2 | |
Jose Pinto | 699fa27067 | |
Jose Pinto | a153ccca60 | |
Jose Pinto | 4e13aec0a1 | |
Jose Pinto | 3d8202f28c | |
Tiago Marques | 8b15f2d169 | |
Pedro Gonçalves | fa4d1cf7f5 | |
João Teixeira | 7aef5753e3 | |
Pedro Gonçalves | 1b51c79e8d | |
Pedro Gonçalves | d6757ac880 | |
Pedro Gonçalves | 949348e239 | |
João Teixeira | 7fd5b0ca82 | |
Pedro Gonçalves | d79bfb5739 | |
Pedro Gonçalves | 2ffbea8fa9 | |
Pedro Gonçalves | c6ad9ec474 | |
Pedro Gonçalves | cb5e6a5d87 | |
Pedro Gonçalves | e6c7b8fc82 | |
Tiago Marques | a7e2cbedda | |
Tiago Marques | 422c024635 | |
Tiago Marques | 5819ff41e4 | |
Tiago Marques | 78da3914b4 | |
Tiago Marques | 1ab074d0bd | |
Tiago Marques | db04cf06cb | |
Tiago Marques | ce7839830b | |
Tiago Marques | d02fa39ddb | |
Manuel R | eeefa5908d | |
João Teixeira | cfd9f7064b | |
mariacosta | 9c63f6a0e5 | |
Jose Pinto | 4f81df3ca9 | |
Pedro Gonçalves | fc77579bf4 | |
Pedro Gonçalves | d9a1157878 | |
Pedro Gonçalves | e5dbc2924c | |
Pedro Gonçalves | 7d77726e80 | |
Pedro Gonçalves | cb4c8a5739 | |
Pedro Gonçalves | 910862e084 | |
Pedro Gonçalves | 560f4d8930 | |
Pedro Gonçalves | bc788dc955 | |
Pedro Gonçalves | 206460e467 | |
Pedro Gonçalves | 4691e93747 | |
Pedro Gonçalves | 735b5f2e79 | |
Pedro Gonçalves | b530b76581 | |
Pedro Gonçalves | 5cfdd6d3d9 | |
Pedro Gonçalves | 55641a6693 | |
João Teixeira | dd0212bfa0 | |
mariacosta | 49f31934f7 | |
mariacosta | 66de780258 | |
mariacosta | 7977480161 | |
mariacosta | 6f09fed5b2 | |
mariacosta | 333f3ebe55 | |
mariacosta | bed09c213e | |
mariacosta | 714aa28c92 | |
mariacosta | e66fdc9adc | |
mariacosta | 842160dd4a | |
Pedro Gonçalves | c428102633 | |
Manuel R | f79aec516f | |
Manuel R | d273414068 | |
Manuel R | a95d7a868a | |
Manuel R | b0ceda4ea2 | |
mariacosta | 2b5b6b3c2f | |
João Teixeira | 4ee4dadaaf | |
Pedro Gonçalves | fc659cd451 | |
Pedro Gonçalves | bb0a00c1ee | |
Pedro Gonçalves | e5f7d6bfdd | |
Pedro Gonçalves | eee43266c8 | |
João Teixeira | ff0a567462 | |
João Teixeira | d91631f542 | |
João Teixeira | b77d33441b | |
Tiago Marques | 2eaaab820a | |
João Teixeira | 501217ff0e | |
João Teixeira | e6d5014b2a | |
João Teixeira | fd15ab19d9 | |
Pedro Gonçalves | 05a6f19cf3 | |
Pedro Gonçalves | 9d95b45410 | |
Pedro Gonçalves | b17eeece35 | |
Pedro Gonçalves | 29358c9c3e | |
Pedro Gonçalves | f0b77fdfc5 | |
Pedro Gonçalves | c6ef0368e7 | |
Pedro Gonçalves | 4e63f7ea02 | |
Pedro Gonçalves | 1b13099af1 | |
Pedro Gonçalves | 082c614dde | |
Pedro Gonçalves | 18c53ad585 | |
Pedro Gonçalves | a7df46d61a | |
Pedro Gonçalves | 6a3376b24a | |
João Teixeira | 4510993b5a | |
mariacosta | 1bcbd2d2fb | |
mariacosta | 04f268c481 | |
Pedro Gonçalves | 24f7c187a9 | |
Pedro Gonçalves | f4933e8c15 | |
Pedro Gonçalves | a45a415415 | |
Pedro Gonçalves | b2230b577f | |
Pedro Gonçalves | 0c9e3b6622 | |
Pedro Gonçalves | 8e99dc6870 | |
Pedro Gonçalves | 28372cd2fd | |
tsmarques | 996c2c6fa0 | |
João Teixeira | 7c15c5d1c4 | |
João Teixeira | 6fe196ad09 | |
João Teixeira | b5dba77554 | |
Ricardo Martins | cce9bdb98c | |
Pedro Gonçalves | 61dc4d2094 | |
tsmarques | 0ec6de7ea4 | |
tsmarques | e5bfb87131 | |
tsmarques | 0eeb5362b9 | |
mariacosta | 15dd2b7bd6 | |
Ricardo Martins | eddb1c7611 | |
Ricardo Martins | 6b7b82786e | |
Ricardo Martins | f9b7edea6e | |
Ricardo Martins | 62730377b2 | |
Ricardo Martins | 4ff07d69e0 | |
João Teixeira | 77752d3db9 | |
Ricardo Martins | 79e474bd3d | |
Ricardo Martins | 0e030cb595 | |
Ricardo Martins | 08117b4b9a | |
Ricardo Martins | e24efe0258 | |
Ricardo Martins | b648eab591 | |
Ricardo Martins | c3f5888e1a | |
Ricardo Martins | 4ad474f096 | |
Ricardo Martins | a61c8e20da | |
Ricardo Martins | 79439e298c | |
Kristian Klausen | 8b680c11b2 | |
Kristian Klausen | 10bf35de62 | |
Kristian Klausen | 96006e300a | |
Kristian Klausen | 6022716e2d | |
Kristian Klausen | 8d81ce635f | |
Kristian Klausen | 2b75ec733c | |
Kristian Klausen | 3b99e3575c | |
Kristian Klausen | 9eed676b32 | |
Kristian Klausen | 62c74adb09 | |
Jose Braga | 46e9d9194d | |
Jose Braga | 56381e306f | |
Jose Braga | e0635fc1a3 | |
Ricardo Martins | 38fd2c73bf | |
Ricardo Martins | 699240998f | |
Ricardo Martins | 908cfbb684 | |
Ricardo Martins | b31058e7c1 | |
Ricardo Martins | 0d04b0f7c8 | |
Ricardo Martins | 108bc4601d | |
Ricardo Martins | 8626adb881 | |
Ricardo Martins | 323bbf7998 | |
Ricardo Martins | aae5c9d856 | |
Kristian Klausen | 3c4cbb7d63 | |
José Braga | 72627f94f3 | |
José Braga | 378cb85275 | |
Ricardo Martins | 7699d8c06a | |
Ricardo Martins | 0e01d8363e | |
Ricardo Martins | 73fbb71575 | |
Ricardo Martins | 584337e5bd | |
Ricardo Martins | 2ed29cdea0 | |
Kristian Klausen | c5d0e3040f | |
Ricardo Martins | 6f91882231 | |
Ricardo Martins | 7c382bdfaf | |
Kristian Klausen | 9765c4e8b0 | |
Kristian Klausen | 4aec63ad80 | |
Kristian Klausen | e231dc351c | |
Kristian Klausen | efecd4c1d6 | |
Kristian Klausen | fa6027292d | |
Kristian Klausen | b1aedc92b4 | |
Kristian Klausen | 545559fe7f | |
Kristian Klausen | 6bc755fc4f | |
Kristian Klausen | 8d14d197fa | |
Kristian Klausen | 70063de02f | |
Kjetil Sørbø | e4127668e3 | |
Ricardo Martins | 4dc98209b7 | |
José Braga | fd6fcdeb7b | |
Ricardo Martins | d7964b4c14 | |
Ricardo Martins | a4ac22d3f2 | |
José Braga | 473148fed2 | |
José Braga | e12ae5d839 | |
José Braga | 98d9eb21f7 | |
mariacosta | 8bfe1eb5c0 | |
mariacosta | 18fb81b606 | |
mariacosta | 23c58281c6 | |
José Braga | 45b3108cb4 | |
José Braga | 11becbd486 | |
Ricardo Martins | dfb270ae35 | |
José Braga | 31911be6d5 | |
Ricardo Martins | 6075393a97 | |
Ricardo Martins | febcfa0425 | |
Kristian Klausen | 70f86e932b | |
Ricardo Martins | fe76470a31 | |
Ricardo Martins | 06af4b5492 | |
Ricardo Martins | 91ab44c833 | |
Ricardo Martins | daf3745e8d | |
Ricardo Martins | dc982505a0 | |
José Braga | 628ae3fefe | |
Ricardo Martins | e8bbadc1d1 | |
Ricardo Martins | b1daef0319 | |
Ricardo Martins | 5f732c892b | |
Ricardo Martins | 90bf3d8bf8 | |
Ricardo Martins | f9fb2fe49b | |
Ricardo Martins | fd18050b8f | |
Ricardo Martins | 3ac1f523e4 | |
Ricardo Martins | e0a4f27dee | |
José Braga | e3a519e46a | |
José Braga | f991959696 | |
Ricardo Martins | 7c8a3aec6f | |
Ricardo Martins | 262b2f01d2 | |
Ricardo Martins | b2ed7f6185 | |
Ricardo Martins | 965171f488 | |
Ricardo Martins | 8a3ebb9519 | |
Ricardo Martins | 4db766c7c3 | |
Ricardo Martins | f29c6c624a | |
Ricardo Martins | eeedb2be55 | |
Ricardo Martins | e3a9b36e2c | |
Ricardo Martins | ed4aa926ce | |
Ricardo Martins | 8ab12cbb31 | |
Ricardo Martins | 0738ed2cca | |
Ricardo Martins | e91cdef22f | |
Kristian Klausen | 9a503dd066 | |
Kristian Klausen | ddbce85c15 | |
Kristian Klausen | 9b3b8defc6 | |
Kristian Klausen | 0fd2bcea84 | |
Kristian Klausen | a53baec382 | |
Kristian Klausen | 07cd482677 | |
Kristian Klausen | bb7b375e12 | |
Kristian Klausen | f459d4ab3c | |
Kristian Klausen | 63e11ff550 | |
Kristian Klausen | 8940c89ffb | |
Kristian Klausen | b2935756e5 | |
Kristian Klausen | 9d194efc9a | |
Kristian Klausen | a02c06b55b | |
Kristian Klausen | c5ac20cc4c | |
Kristian Klausen | ac8811ccef | |
Kristian Klausen | 82c6769448 | |
Kristian Klausen | 0f7b1613b6 | |
Kristian Klausen | 313cc1abc8 | |
Kristian Klausen | 49e344be66 | |
Kristian Klausen | b534d4d992 | |
Kristian Klausen | 87b021ab77 | |
Kristian Klausen | 6cb46ea056 | |
Kristian Klausen | fb15a41221 | |
Kristian Klausen | b41f62aca1 | |
Kristian Klausen | e8c8ef29b9 | |
Ricardo Martins | bb98b140ba | |
Ricardo Martins | 06dbd478e3 | |
José Braga | 34fb3c85c2 | |
José Braga | 2e512d38cf | |
Ricardo Martins | f0f20735fe | |
Ricardo Martins | 8ff1bf1d76 | |
Ricardo Martins | 6accae5757 | |
Ricardo Martins | 8f19e7c93a | |
Ricardo Martins | 90bda9a5c6 | |
Ricardo Martins | 35bfba1b11 | |
Ricardo Martins | f2a98f9654 | |
Ricardo Martins | 7577cd278a | |
Ricardo Martins | 823ea58578 | |
Ricardo Martins | cdd4e61144 | |
Ricardo Martins | cab7439296 | |
Ricardo Martins | 8c45ce252c | |
Ricardo Martins | 38470c2340 | |
Ricardo Martins | c718a942c3 | |
Ricardo Martins | a22c7ed60b | |
Ricardo Martins | 06114dd484 | |
Ricardo Martins | 2685c24f42 | |
Ricardo Martins | 188d926e1e | |
Ricardo Martins | 3b77d530dc | |
Ricardo Martins | aea118b878 | |
Ricardo Martins | adb9286caa | |
Ricardo Martins | 93a5cf5a12 | |
Ricardo Martins | 6e025fac0f | |
Ricardo Martins | 8d90e03838 | |
Ricardo Martins | 6ca98cb0a1 | |
Ricardo Martins | 75e6b2b07d | |
José Braga | 5c80630ba7 | |
José Braga | cb201ab833 | |
José Braga | 8d03c57239 | |
José Braga | e1f1290809 | |
Ricardo Martins | 3a9a91d06e | |
Ricardo Martins | 329d92fbbc | |
Ricardo Martins | ab6c5f7927 | |
Ricardo Martins | f0db652d81 | |
Ricardo Martins | 42e277e24f | |
Ricardo Martins | a3512efa21 | |
Ricardo Martins | 136c9ae48b | |
Ricardo Martins | bbac306988 | |
Ricardo Martins | d82a072036 | |
Ricardo Martins | 6239ec2931 | |
Ricardo Martins | c617d028d3 | |
Kristian Klausen | ec55819469 | |
Ricardo Martins | ed9e3393d1 | |
Ricardo Martins | 85a1378b8f | |
Ricardo Martins | 2c17a66e08 | |
Ricardo Martins | 9a91ede3c6 | |
Ricardo Martins | ed40748169 | |
Ricardo Martins | a3301165c1 | |
Ricardo Martins | 19f0bb64ea | |
Ricardo Martins | a894c5ba33 | |
Ricardo Martins | 60606194dd | |
Ricardo Martins | 0e10ec5c26 | |
Ricardo Martins | f5b5040f5b | |
Ricardo Martins | aaecdeb071 | |
Ricardo Martins | f5b6dedad9 | |
Kristian Klausen | 0a087bbaa8 | |
Ricardo Martins | dd33112a94 | |
Ricardo Martins | b21b36718b | |
Kristian Klausen | e231a507e1 | |
Kristian Klausen | 8d348881ab | |
Ricardo Martins | b188c773b3 | |
Ricardo Martins | e20bb0082a | |
Ricardo Martins | d7627a9b36 | |
Ricardo Martins | 8837ab35e8 | |
Ricardo Martins | 1afee2214f | |
Ricardo Martins | e3731bdaa7 | |
José Braga | 6ee7cf59ba | |
Ricardo Martins | 3c728953b2 | |
Ricardo Martins | 207baf47d5 | |
Ricardo Martins | 89ac709159 | |
Ricardo Martins | 8f7fc2b452 | |
Ricardo Martins | 342137c4a7 | |
Ricardo Martins | e31403f964 | |
Ricardo Martins | 26644c1ced | |
Ricardo Martins | 646f3049a7 | |
Ricardo Martins | b48bc59ee4 | |
José Braga | 8e51b2b405 | |
José Braga | 7e75f00332 | |
José Braga | d5df6f7836 | |
Ricardo Martins | 0dc1c507f2 | |
Ricardo Martins | 2d624a72f3 | |
Ricardo Martins | d1ab406c20 | |
Ricardo Martins | b637b297e1 | |
Ricardo Martins | d269ef392c | |
Ricardo Martins | b42267f548 | |
Ricardo Martins | ecfb7619c0 | |
Krzysztof Cisek | bd5e01fe71 | |
Ricardo Martins | 466a53c1f3 | |
Krzysztof Cisek | 086b84253d | |
Ricardo Martins | cf11934132 | |
Ricardo Martins | 779283c960 | |
Ricardo Martins | a4bcbfa5f9 | |
Ricardo Martins | 21afcd8566 | |
Ricardo Martins | 8aaf72cd19 | |
Ricardo Martins | c92da8191e | |
Ricardo Martins | 27c5f2764d | |
Ricardo Martins | 0a6ba4ef78 | |
Jose Pinto | d1474af68a | |
Ricardo Martins | 347b99e4ab | |
Ricardo Martins | 0805319ae0 | |
Ricardo Martins | 2fb3283c8c | |
José Braga | c06e6bde52 | |
Ricardo Martins | 49a5682de1 | |
Ricardo Martins | 9c34ddfb81 | |
Ricardo Martins | 756705da70 | |
Ricardo Martins | d5f146d6d6 | |
Ricardo Martins | 900e6ae753 | |
Jose Pinto | 7312395055 | |
Jose Pinto | 78ddba34e6 | |
Jose Pinto | d95b1c8287 | |
Jose Pinto | 023e27ebbf | |
Renato Caldas | a9b52e2436 | |
Ricardo Martins | d9d9e0d249 | |
Ricardo Martins | c633c1963f | |
Ricardo Martins | 1a1b504676 | |
Ricardo Martins | 1873f904dd | |
Ricardo Martins | bb4485ec29 | |
Ricardo Martins | 6f91d5c6e5 | |
Ricardo Martins | cfbf86afe3 | |
Ricardo Martins | 974a888f55 | |
Ricardo Martins | 4b0d068287 | |
Ricardo Martins | 14e91089fb | |
Renato Caldas | f2b07a7ab8 | |
Renato Caldas | 67d24b316f | |
Renato Caldas | ac1ee7efd9 | |
Renato Caldas | 419d313a0c | |
Renato Caldas | 03713da7e2 | |
Renato Caldas | 27818fd3f7 | |
Ricardo Martins | 94e05e581f | |
Ricardo Martins | 94c685de8f | |
Renato Caldas | d5f8a21580 | |
Renato Caldas | f022a98f07 | |
Renato Caldas | dbe5e873ab | |
mariacosta | 01ec09831e | |
Ricardo Martins | 4b2daa4ef8 | |
Ricardo Martins | caef675567 | |
Ricardo Martins | dc9a0be12f | |
Ricardo Martins | 3cfd62da49 | |
Ricardo Martins | 7e2a4f9e0c | |
Ricardo Martins | b19eb70d84 | |
Ricardo Martins | 2ab3dadef9 | |
Ricardo Martins | fae2ab9bb4 | |
Ricardo Martins | 0d3903b374 | |
Ricardo Martins | a3ef5d1a7b | |
Ricardo Martins | 4352339fe0 | |
Ricardo Martins | 2ccad90ad4 | |
Ricardo Martins | cfaaaa1476 | |
Ricardo Martins | 2c33d08785 | |
Ricardo Martins | 02e988e4bd | |
Ricardo Martins | a0052cbc1a | |
Ricardo Martins | adda9f7614 | |
Ricardo Martins | 2cba596d8d | |
Ricardo Martins | 0759db5937 | |
Ricardo Martins | 40e67343ca | |
Ricardo Martins | 8e96dcf771 | |
Ricardo Martins | bbbdb9d54e | |
Ricardo Martins | 0456bd2193 | |
Ricardo Martins | 01135c56e3 | |
Ricardo Martins | cae6aa46ff | |
Ricardo Martins | 08611f5df5 | |
Ricardo Martins | 5b78d1f5b5 | |
Ricardo Martins | 722d66e44f | |
Ricardo Martins | d803cebac2 | |
Ricardo Martins | 56d4d48814 | |
Ricardo Martins | b5e6423a35 | |
Ricardo Martins | 4bc42cd533 | |
Ricardo Martins | 31d6679322 | |
Ricardo Martins | 8c6f3dc50c | |
Ricardo Martins | a677c5cde0 | |
Ricardo Martins | 3ef893936b | |
Ricardo Martins | d8049825b3 | |
Ricardo Martins | bc74969ead | |
Ricardo Martins | ae17be3a42 | |
Ricardo Martins | fca7f8bdcf | |
Ricardo Martins | 996d6a78eb | |
Ricardo Martins | 597a4a709c | |
Ricardo Martins | 7a79621a3c | |
Ricardo Martins | eee2296f59 | |
Ricardo Martins | f1265e4e7a | |
Ricardo Martins | 25856c4fb9 | |
Ricardo Martins | 92a037b248 | |
Ricardo Martins | cb8cc42660 | |
Ricardo Martins | 2ef9f90110 | |
Ricardo Martins | e43d6393e2 | |
Ricardo Martins | 20ccf0f4f7 | |
Ricardo Martins | 3d0a0d189b | |
Ricardo Martins | de06f16d02 | |
Ricardo Martins | 764fd6670a | |
Kristian Klausen | 7409a86722 | |
Kristian Klausen | f7ba7d9b4d | |
Kristian Klausen | e467dab07c | |
Kristian Klausen | fe2b81d6d5 | |
Ricardo Martins | 5951983d1e | |
Ricardo Martins | 45078ae86b | |
Ricardo Martins | df4184c67b | |
Ricardo Martins | 5bfb823a47 | |
Kristian Klausen | e8894c9c3f | |
Kristian Klausen | 7d86c823f3 | |
Kristian Klausen | c43c52c548 | |
Ricardo Martins | 41a67a24da | |
Ricardo Martins | 500bf28fd0 | |
Kristian Klausen | 02376a4469 | |
Kristian Klausen | 179c9fa196 | |
Ricardo Martins | 60f9017b34 | |
Kristian Klausen | f5ef0e428a | |
Kristian Klausen | 98b25e5234 | |
Kristian Klausen | ffd083ebcc | |
Kristian Klausen | 4a19d17380 | |
Ricardo Martins | 132c020910 | |
Ricardo Martins | 1f57d7ab08 | |
Ricardo Martins | 5e8bb91f6f | |
Ricardo Martins | 9517ff6b8a | |
Ricardo Martins | e731c8b8cf | |
Ricardo Martins | fb61cca332 | |
Ricardo Martins | 5f6f35f211 | |
Ricardo Martins | 1ad4b0b16f | |
Kristian Klausen | a8fc01df80 | |
Kristian Klausen | 02517c3931 | |
Kristian Klausen | a0e223dff8 | |
Ricardo Martins | 306e07e50c | |
Ricardo Martins | 75c4714bca | |
Ricardo Martins | 0c6465b23c | |
Ricardo Martins | 489ddb9119 | |
Ricardo Martins | 7d4b8f71c9 | |
Ricardo Martins | 51972ed4cc | |
Ricardo Martins | 131ee3b4a9 | |
Ricardo Martins | e5e82d2ba6 | |
Ricardo Martins | bbba4bf9ac | |
Ricardo Martins | c0782c4310 | |
Ricardo Martins | 3080065a4e | |
Ricardo Martins | 5c2bc141df | |
Ricardo Martins | 7f735200d0 | |
Ricardo Martins | f68f6c95f8 | |
Ricardo Martins | 2276ca19fa | |
Ricardo Martins | ecd45a9d8d | |
Ricardo Martins | 050fa7c849 | |
Ricardo Martins | 241e8a200d | |
Ricardo Martins | ef47422f3e | |
Ricardo Martins | 346e4b60a7 | |
Ricardo Martins | f1d49eba03 | |
Ricardo Martins | bed6cd2253 | |
Ricardo Martins | 7ab772c363 | |
Ricardo Martins | 10846e4f3d | |
Ricardo Martins | 38c382470d | |
Ricardo Martins | 9e3c75a0ab | |
Ricardo Martins | dd4841ca02 | |
Ricardo Martins | f065b339fc | |
Ricardo Martins | 82e1ada242 | |
Ricardo Martins | f5a53a6378 | |
Ricardo Martins | 0ac97ce889 | |
Ricardo Martins | 0dc888df33 | |
Ricardo Martins | 0b43b299e8 | |
Ricardo Martins | 5974184000 | |
José Braga | 3bc6b3dec0 | |
Ricardo Martins | 87599fc9f4 | |
Ricardo Martins | 3ef84d36e8 | |
Ricardo Martins | 7b61512978 | |
Ricardo Martins | 63cae9d437 | |
Ricardo Martins | 3afc4d7e93 | |
Ricardo Martins | 6b454f1a52 | |
Ricardo Martins | de2abe89c7 | |
Ricardo Martins | 84157535da | |
Ricardo Martins | 7be96bd7dd | |
Ricardo Martins | 29d3378dc8 | |
Ricardo Martins | ee8eae8520 | |
Ricardo Martins | 9898f97491 | |
José Braga | 5ce97d6921 | |
Joao Fortuna | 897a147fcd | |
Joao Fortuna | a5ca7f0cae | |
Ricardo Martins | 63d60d4c02 | |
Ricardo Martins | 2e28260682 | |
Ricardo Martins | 05ca6917e6 | |
Jose Braga | 3422f09171 | |
Ricardo Martins | 01c8b31a6b | |
Ricardo Martins | e124fbd933 | |
Ricardo Martins | b09fc122bb | |
Ricardo Martins | 6f4d20747f | |
Ricardo Martins | d8b985474c | |
Ricardo Martins | 4f76b5e091 | |
Ricardo Martins | 2d60ba874c | |
Ricardo Martins | f3c4d8a793 | |
Ricardo Martins | d3fffebd36 | |
Ricardo Martins | af1c9e2e5a | |
Ricardo Martins | 52515e0854 | |
Ricardo Martins | 9ec68a7f99 | |
Ricardo Martins | dd980c2220 | |
Ricardo Martins | 178dfec636 | |
Ricardo Martins | b356406c7e | |
Ricardo Martins | a05cd25ffa | |
Ricardo Martins | bef85cd228 | |
Jose Braga | d559f5fd72 | |
Jose Pinto | 6830d49697 | |
Jose Pinto | fa4914abb3 | |
José Pinto | ab0accd012 | |
Ricardo Martins | effad90f25 | |
Jose Braga | 074e6518c3 | |
Jose Braga | fc6b7d700a | |
Ricardo Martins | 5ae68aaf7b | |
Ricardo Martins | 039639982b | |
Ricardo Martins | 1ee48444f2 | |
Ricardo Martins | d7432d39ea | |
Ricardo Martins | 8fe415232d | |
Ricardo Martins | 6d110a03f9 | |
Ricardo Martins | 6b37797193 | |
Ricardo Martins | 08d73a4667 | |
Ricardo Martins | f8f71d49da | |
Ricardo Martins | 4c47cf9bb1 | |
Ricardo Martins | ff6257a6ca | |
Ricardo Martins | ce006946d3 | |
Ricardo Martins | b5b200d9bf | |
Ricardo Martins | 40ca3c2f6f | |
Ricardo Martins | 55179a6a95 | |
Ricardo Martins | 64cfe628dc | |
Ricardo Martins | ddb004cb14 | |
Ricardo Martins | 587b422db7 | |
Ricardo Martins | ddd0f2714d | |
Ricardo Martins | 69afe31569 | |
Ricardo Martins | d11f1edbd2 | |
Ricardo Martins | 932c6aed4a | |
Ricardo Martins | 1779cb1156 | |
Ricardo Martins | 806e9839d7 | |
Ricardo Martins | da30019e2a | |
Ricardo Martins | f7a8d8c433 | |
Ricardo Martins | 8f541724ba | |
Ricardo Martins | ba16f069b0 | |
Ricardo Martins | d70ea5668d | |
Ricardo Martins | 7e1449f0be | |
Ricardo Martins | 1902de8be2 | |
Ricardo Martins | 79840465ad | |
Ricardo Martins | 3713a4548f | |
Ricardo Martins | 1776a7f9f9 | |
Ricardo Martins | 2f143b5697 | |
Ricardo Martins | c02b3f3e00 | |
Ricardo Martins | bebfb9e2b4 | |
Ricardo Martins | a29015ba33 | |
Ricardo Martins | 2b6ae382c9 | |
Ricardo Martins | 4dcbe0b787 | |
Ricardo Martins | eaf0c7d347 | |
Ricardo Martins | 6420cb1823 | |
Ricardo Martins | ae75cb017f | |
Ricardo Martins | bfb17158e6 | |
Ricardo Martins | 96e867964a | |
Ricardo Martins | 4a840271f3 | |
Ricardo Martins | 82dea6e18b | |
Ricardo Martins | 842d6da359 | |
Ricardo Martins | 2b744185dd | |
Ricardo Martins | 56dd20083d | |
Ricardo Martins | 0868d856c1 | |
Ricardo Martins | f51e0a604d | |
Ricardo Martins | b3f8e3a3af | |
Ricardo Martins | 1259bc6928 | |
Ricardo Martins | 116e0ce235 | |
Ricardo Martins | f582c053ac | |
Ricardo Martins | 14ea580d6d | |
Jose Braga | 2fc8349a50 | |
Ricardo Martins | 1c5f9b8a7f | |
Ricardo Martins | 2307adfc8b | |
Ricardo Martins | 26e028f142 | |
Ricardo Martins | bc9064fcce | |
Ricardo Martins | 0d7a4a8308 | |
Jose Braga | f68d95b29c | |
Jose Braga | 1a3c4aafdd | |
Jose Braga | e7d24740cb | |
Jose Braga | 40e678ddf5 | |
João Fortuna | 0b5525d2dd | |
Jose Braga | 2ed1e7f1cb | |
Jose Braga | 866a0d0a62 | |
Ricardo Martins | 5b67da014a | |
Ricardo Martins | ed699ec2aa | |
Ricardo Martins | 3266b92172 | |
Ricardo Martins | c54efd3d76 | |
Ricardo Martins | 518a0af694 | |
Ricardo Martins | b3cf64ddc3 | |
Ricardo Martins | 8cc2c75a3c | |
Ricardo Martins | 5dc43cb8cf | |
Ricardo Martins | 4385db8758 | |
Ricardo Martins | bdb5effbf8 | |
Ricardo Martins | 886d2217ae | |
Ricardo Martins | ebed4a1738 | |
Ricardo Martins | 2aa9510159 | |
Ricardo Martins | c6def817f8 | |
Ricardo Martins | aa596e2980 | |
Ricardo Martins | 84c92934a0 | |
Ricardo Martins | 1f589b02cf | |
Ricardo Martins | 37fc0728bb | |
Ricardo Martins | 11506f7697 | |
Ricardo Martins | 9cb6141508 | |
Ricardo Martins | 7d5ce0c2e4 | |
Ricardo Martins | be7eac325d | |
Ricardo Martins | f1df793465 | |
Ricardo Martins | d5930d76d2 | |
Ricardo Martins | 930348e7fa | |
Ricardo Martins | c53a963048 | |
Ricardo Martins | 87ba2c2876 | |
Ricardo Martins | ff654d7e9a | |
Ricardo Martins | 772ee47676 | |
Ricardo Martins | 9bebfe527c | |
Ricardo Martins | e4923485cf | |
Ricardo Martins | 9e120b528c | |
Ricardo Martins | 982207507a | |
Ricardo Martins | 857c442b97 | |
Ricardo Martins | aa023f7765 | |
Ricardo Martins | b16839538d | |
Ricardo Martins | fac4f7c532 | |
Ricardo Martins | e707a403cc | |
Ricardo Martins | 61867d7f74 | |
Ricardo Martins | 6ac8e69acd | |
Ricardo Martins | d30869adba | |
Ricardo Martins | 7bfe490e3b | |
Ricardo Martins | ede06d07c8 | |
Ricardo Martins | b1a87076a3 | |
Ricardo Martins | 9c2e8b4c8a | |
Ricardo Martins | 362a668c25 | |
Ricardo Martins | 287da9073b | |
Ricardo Martins | 3512bba3ca | |
Ricardo Martins | 78e00599cc | |
Ricardo Martins | 3bfa7e176c | |
Ricardo Martins | c28411208a | |
Ricardo Martins | 5bda410e3e | |
Ricardo Martins | 194d6116eb |
|
@ -1,8 +1,14 @@
|
|||
downloads
|
||||
lctr-a4xx
|
||||
lctr-a6xx
|
||||
lctr-a8xx
|
||||
lctr-a9xx
|
||||
lctr-b1xx
|
||||
lctr-b2xx
|
||||
qemu-i686
|
||||
/downloads
|
||||
/lctr-a4xx
|
||||
/lctr-a6xx
|
||||
/lctr-a8xx
|
||||
/lctr-a9xx
|
||||
/lctr-b1xx
|
||||
/lctr-b2xx
|
||||
/qemu-i686
|
||||
/lauv-aux
|
||||
/lauv-aux-rpi
|
||||
/ntnu-b2xx
|
||||
/stamp9g20
|
||||
/lctr-rpi
|
||||
build.bash
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
cfg_target_canonical="armv11-$cfg_glued_vendor-linux-gnueabi"
|
||||
cfg_target_linux='arm'
|
||||
cfg_target_uboot_arch='arm'
|
||||
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfloat-abi=softfp -mfpu=vfpv3'
|
||||
cfg_target_gcc_configure_flags='--with-arch=armv7-a --with-cpu=arm1176jzf-s --with-tune=arm1176jzf-s --with-fpu=vfpv3 --with-float=softfp'
|
||||
cfg_target_ar_flags='elf32-littlearm'
|
|
@ -0,0 +1,4 @@
|
|||
cfg_target_canonical="armv5te-$cfg_glued_vendor-linux-gnueabi"
|
||||
cfg_target_linux='arm'
|
||||
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mtune=arm926ej-s -mfloat-abi=soft'
|
||||
cfg_target_gcc_configure_flags='--with-arch=armv5te --with-tune=arm926ej-s --with-float=soft'
|
|
@ -0,0 +1,6 @@
|
|||
cfg_target_canonical="armv11-$cfg_glued_vendor-linux-gnueabi"
|
||||
cfg_target_linux='arm'
|
||||
cfg_target_uboot_arch='arm'
|
||||
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mcpu=cortex-a72 -mtune=cortex-a72 -mfloat-abi=hard -mfpu=neon-fp-armv8'
|
||||
cfg_target_gcc_configure_flags='--with-cpu=cortex-a72 --with-tune=cortex-a72 --with-fpu=neon-fp-armv8 --with-float=hard'
|
||||
cfg_target_ar_flags='aarch64-elf'
|
|
@ -0,0 +1,6 @@
|
|||
cfg_target_canonical="armv7-$cfg_glued_vendor-linux-gnueabihf"
|
||||
cfg_target_linux='arm'
|
||||
cfg_target_uboot_arch='arm'
|
||||
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=hard -mfpu=vfpv3'
|
||||
cfg_target_gcc_configure_flags='--with-arch=armv7-a --with-cpu=cortex-a8 --with-tune=cortex-a8 --with-fpu=vfpv3 --with-float=hard'
|
||||
cfg_target_ar_flags='elf32-littlearm'
|
|
@ -1,6 +1,6 @@
|
|||
cfg_target_canonical="armv7-$cfg_glued_vendor-linux-gnueabi"
|
||||
cfg_target_linux='arm'
|
||||
cfg_target_uboot_arch='arm'
|
||||
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=softfp -mfpu=vfpv3'
|
||||
cfg_target_gcc_configure_flags='--with-arch=armv7-a --with-cpu=cortex-a8 --with-tune=cortex-a8 --with-fpu=vfpv3 --with-float=softfp'
|
||||
cfg_target_ar_flags='elf32-littlearm'
|
||||
cfg_target_uboot_arch='arm'
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
cfg_target_canonical="armv7-$cfg_glued_vendor-linux-gnueabihf"
|
||||
cfg_target_linux='arm'
|
||||
cfg_target_uboot_arch='arm'
|
||||
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mcpu=cortex-a9 -mtune=cortex-a9 -mfloat-abi=hard -mfpu=vfpv3'
|
||||
cfg_target_gcc_configure_flags='--with-arch=armv7-a --with-cpu=cortex-a9 --with-tune=cortex-a9 --with-fpu=vfpv3 --with-float=hard'
|
||||
cfg_target_ar_flags='elf32-littlearm'
|
|
@ -2,4 +2,4 @@ cfg_target_canonical="i586-$cfg_glued_vendor-linux-gnu"
|
|||
cfg_target_linux='x86'
|
||||
cfg_target_gcc_configure_flags='--with-arch=i586 --with-cpu=i586 --with-tune=i586'
|
||||
cfg_target_gcc_flags='-O2 -pipe -march=i586 -funit-at-a-time'
|
||||
cfg_target_eglibc_configure_flags='--with-cpu=i586'
|
||||
cfg_target_glibc_configure_flags='--with-cpu=i586'
|
||||
|
|
|
@ -2,5 +2,5 @@ cfg_target_canonical="i686-$cfg_glued_vendor-linux-gnu"
|
|||
cfg_target_linux='x86'
|
||||
cfg_target_gcc_flags='-O2 -pipe -march=i686 -funit-at-a-time'
|
||||
cfg_target_gcc_configure_flags='--with-cpu=i686'
|
||||
cfg_target_eglibc_configure_flags='--with-cpu=i686'
|
||||
cfg_target_glibc_configure_flags='--with-cpu=i686'
|
||||
cfg_target_linux_kernel='arch/x86/boot/bzImage'
|
||||
|
|
|
@ -2,4 +2,4 @@ cfg_target_canonical="mipsisa32r2-$cfg_glued_vendor-linux-gnu"
|
|||
cfg_target_linux='mips'
|
||||
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mabi=32 -mips32r2 -mtune=mips32r2 -msoft-float'
|
||||
cfg_target_gcc_configure_flags='--with-abi=32 --with-tune=mips32r2 --with-float=soft'
|
||||
cfg_target_eglibc_configure_flags='--without-fp'
|
||||
cfg_target_glibc_configure_flags='--without-fp'
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2016 OceanScan - Marine Systems & Technology, Lda. #
|
||||
###########################################################################
|
||||
# This program is free software; you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU General Public License as published by #
|
||||
# the Free Software Foundation; either version 2 of the License, or (at #
|
||||
# your option) any later version. #
|
||||
# #
|
||||
# This program is distributed in the hope that it will be useful, but #
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
|
||||
# General Public License for more details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License #
|
||||
# along with this program; if not, write to the Free Software #
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
|
||||
# 02110-1301 USA. #
|
||||
###########################################################################
|
||||
# Author: Ricardo Martins #
|
||||
###########################################################################
|
||||
|
||||
FROM debian:8
|
||||
|
||||
MAINTAINER Ricardo Martins <rasm@oceanscan-mst.com>
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
# Update distro.
|
||||
RUN apt-get update -y
|
||||
RUN apt-get dist-upgrade -y
|
||||
RUN apt-get install -y wget
|
||||
RUN apt-get install -y bzip2
|
||||
RUN apt-get install -y git
|
||||
RUN apt-get install -y g++-multilib
|
||||
RUN apt-get install -y cmake
|
||||
RUN apt-get install -y file
|
||||
RUN apt-get install -y kmod
|
|
@ -0,0 +1,32 @@
|
|||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2016 OceanScan - Marine Systems & Technology, Lda. #
|
||||
###########################################################################
|
||||
# This program is free software; you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU General Public License as published by #
|
||||
# the Free Software Foundation; either version 2 of the License, or (at #
|
||||
# your option) any later version. #
|
||||
# #
|
||||
# This program is distributed in the hope that it will be useful, but #
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
|
||||
# General Public License for more details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License #
|
||||
# along with this program; if not, write to the Free Software #
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
|
||||
# 02110-1301 USA. #
|
||||
###########################################################################
|
||||
# Author: Ricardo Martins #
|
||||
###########################################################################
|
||||
|
||||
TAG := glued
|
||||
VERSION := 2016.05.0
|
||||
VOLUME := $(CURDIR)/..
|
||||
DNS := 8.8.8.8
|
||||
|
||||
all:
|
||||
docker build -t $(TAG):$(VERSION) .
|
||||
|
||||
shell:
|
||||
docker run -w $(VOLUME) --dns=$(DNS) -i -a stdin -a stdout -v $(VOLUME):$(VOLUME) -t $(TAG):$(VERSION)
|
|
@ -1,6 +1,6 @@
|
|||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2013 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
||||
###########################################################################
|
||||
# This program is free software; you can redistribute it and/or modify #
|
||||
|
@ -18,6 +18,8 @@
|
|||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
|
||||
# 02110-1301 USA. #
|
||||
###########################################################################
|
||||
# Author: Ricardo Martins #
|
||||
###########################################################################
|
||||
|
||||
nfo1()
|
||||
{
|
||||
|
@ -38,3 +40,15 @@ err()
|
|||
{
|
||||
echo -e "[$(date +"%Y-%m-%d %H:%M:%S")] \033[0m\033[1;31mERROR: $*\033[0m"
|
||||
}
|
||||
|
||||
ucat()
|
||||
{
|
||||
case "$1" in
|
||||
*.gz)
|
||||
zcat "$1"
|
||||
;;
|
||||
*)
|
||||
cat "$1"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#! /bin/bash
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2013 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
||||
###########################################################################
|
||||
# This program is free software; you can redistribute it and/or modify #
|
||||
|
@ -19,9 +19,11 @@
|
|||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
|
||||
# 02110-1301 USA. #
|
||||
###########################################################################
|
||||
# Author: Ricardo Martins #
|
||||
###########################################################################
|
||||
|
||||
# Config: GLUED version.
|
||||
cfg_glued_version='1.9.0'
|
||||
cfg_glued_version='2017.11'
|
||||
# Config: GLUED vendor.
|
||||
cfg_glued_vendor='lsts'
|
||||
|
||||
|
@ -88,14 +90,15 @@ if ! [ -f "architectures/$cfg_architecture.cfg" ]; then
|
|||
fi
|
||||
source "architectures/$cfg_architecture.cfg"
|
||||
|
||||
# Creating the mac address if not set in configuration file we create one derivated from the IP address:
|
||||
if [ -n $cfg_eth_ext_ip ]; then
|
||||
ips=(`echo $cfg_eth_ext_ip | sed -e 's/\./\n/g'`)
|
||||
for i in "${ips[@]}"
|
||||
do
|
||||
hip=("${hip[@]}" `printf '%x' $i`)
|
||||
done
|
||||
cfg_eth_ext_mac="80:c1:${hip[0]}:${hip[1]}:${hip[2]}:${hip[3]}"
|
||||
# Create a MAC address based on the IP address if cfg_eth_ext_soft_mac
|
||||
# is set.
|
||||
if [ -n "$cfg_eth_ext_ip" ] && [ -n "$cfg_eth_ext_soft_mac" ]; then
|
||||
ips=(`echo $cfg_eth_ext_ip | sed -e 's/\./\n/g'`)
|
||||
for i in "${ips[@]}"
|
||||
do
|
||||
hip=("${hip[@]}" `printf '%x' $i`)
|
||||
done
|
||||
cfg_eth_ext_mac="80:c1:${hip[0]}:${hip[1]}:${hip[2]}:${hip[3]}"
|
||||
fi
|
||||
|
||||
# Config: system name.
|
||||
|
@ -109,7 +112,7 @@ cfg_dir_base="$PWD"
|
|||
# Config: system configuration folder.
|
||||
cfg_dir_system="$cfg_dir_base/$family_dir"
|
||||
# Config: package rules folder.
|
||||
cfg_dir_packages="$cfg_dir_base/packages"
|
||||
cfg_dir_rules="$cfg_dir_base/rules"
|
||||
# Config: configuration rules folder.
|
||||
cfg_dir_postconfiguration="$cfg_dir_base/postconfiguration"
|
||||
# Config: package sources folder.
|
||||
|
@ -163,6 +166,19 @@ if [ -z $cfg_toolchain_tar ]; then
|
|||
cfg_toolchain_tar="$cfg_dir_base/$cfg_sys_family/glued-$cfg_glued_version-$cfg_sys_family-toolchain-$cfg_host_canonical-$cfg_target_canonical.tar.bz2"
|
||||
fi
|
||||
|
||||
# Config: Git revision.
|
||||
git_branch=$(echo $(git rev-parse --symbolic-full-name --abbrev-ref HEAD 2> /dev/null))
|
||||
git_revision=$(echo $(git rev-parse --short HEAD 2> /dev/null))
|
||||
git_status=$(echo $(git status -s 2> /dev/null))
|
||||
if [ -z "$git_branch" ] || [ -z "$git_revision" ]; then
|
||||
cfg_glued_git_version='unknown'
|
||||
else
|
||||
cfg_glued_git_version="$git_branch-$git_revision"
|
||||
if [ -n "$git_status" ]; then
|
||||
cfg_glued_git_version="$cfg_glued_git_version-dirty"
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! [ -d "$cfg_sys_family" ]; then
|
||||
mkdir -p "$cfg_sys_family"
|
||||
fi &&
|
||||
|
|
134
mkdisk.bash
134
mkdisk.bash
|
@ -1,7 +1,7 @@
|
|||
#! /bin/bash
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2013 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
||||
###########################################################################
|
||||
# This program is free software; you can redistribute it and/or modify #
|
||||
|
@ -19,19 +19,21 @@
|
|||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
|
||||
# 02110-1301 USA. #
|
||||
###########################################################################
|
||||
# Author: Ricardo Martins #
|
||||
###########################################################################
|
||||
|
||||
cmd_parted()
|
||||
{
|
||||
dev="$1"; shift
|
||||
"$cmd_parted" "$dev" -a cylinder -s -- $@
|
||||
bdev="$1"; shift
|
||||
"$cmd_parted" "$bdev" -a cylinder -s -- $@
|
||||
}
|
||||
|
||||
cmd_mount()
|
||||
{
|
||||
fs="$1"
|
||||
dev="$2"
|
||||
bdev="$2"
|
||||
mkdir -p mount &&
|
||||
mount -t "$fs" "$dev" mount
|
||||
mount -t "$fs" "$bdev" mount
|
||||
}
|
||||
|
||||
cmd_unmount()
|
||||
|
@ -45,7 +47,7 @@ cmd_unmount()
|
|||
|
||||
die()
|
||||
{
|
||||
umount mount > /dev/null 2>&1
|
||||
umount -v mount > /dev/null 2>&1
|
||||
rmdir mount > /dev/null 2>&1
|
||||
[ -n "$dev_loop" ] && losetup -d "$dev_loop"
|
||||
exit 1
|
||||
|
@ -82,6 +84,44 @@ create_part_xboot()
|
|||
cmd_parted "$dev_loop" print > /dev/null
|
||||
}
|
||||
|
||||
create_part_rpiboot()
|
||||
{
|
||||
nfo1 "RPi-Boot partition ($part_label)"
|
||||
|
||||
nfo2 "Creating partition"
|
||||
cmd_parted "$dev_loop" \
|
||||
mkpart primary fat32 "$part_start" "$part_end" \
|
||||
set "$part_nr" boot on \
|
||||
align-check minimal "$part_nr" \
|
||||
|| die
|
||||
|
||||
nfo2 "Creating filesystem"
|
||||
$cmd_mkdosfs -n "$part_label" "$part_dev" > /dev/null || die
|
||||
|
||||
nfo2 "Populating filesystem"
|
||||
cmd_mount vfat "$part_dev" || die
|
||||
|
||||
for f in "$cfg_sys_family/rootfs/boot/"*; do
|
||||
nfo2 installing $f to boot partition
|
||||
cp -r "$f" mount || die
|
||||
done
|
||||
|
||||
nfo2 renaming kernel to kernel7.img
|
||||
mv mount/kernel mount/kernel7.img
|
||||
|
||||
if [ -f mount/board.dtb ]; then
|
||||
dtb=$(basename "$cfg_target_linux_dtb")
|
||||
nfo2 renaming board.dtb to "$dtb"
|
||||
mv "mount/board.dtb" "mount/$dtb"
|
||||
fi
|
||||
|
||||
cmd_parted "$dev_loop" \
|
||||
set "$part_nr" lba on \
|
||||
|| die
|
||||
|
||||
cmd_parted "$dev_loop" print > /dev/null
|
||||
}
|
||||
|
||||
create_part_root()
|
||||
{
|
||||
nfo1 "Root partition ($part_label)"
|
||||
|
@ -93,7 +133,7 @@ create_part_root()
|
|||
|| die
|
||||
|
||||
nfo2 "Creating filesystem"
|
||||
mkfs.ext2 -q -L "$part_label" "$part_dev" || die
|
||||
"$cmd_mkfs_ext2" -q -F -L "$part_label" "$part_dev" > /dev/null 2>&1 || die
|
||||
|
||||
nfo2 "Populating filesystem"
|
||||
cmd_mount ext2 "$part_dev" || die
|
||||
|
@ -126,7 +166,7 @@ create_part_data()
|
|||
|| die
|
||||
|
||||
nfo2 "Creating filesystem"
|
||||
mkfs.ext4 -q -L "$part_label" -O dir_index "$part_dev" || die
|
||||
"$cmd_mkfs_ext4" -q -F -L "$part_label" -O dir_index "$part_dev" > /dev/null 2>&1 || die
|
||||
|
||||
nfo2 "Populating filesystem"
|
||||
cmd_mount ext4 "$part_dev" || die
|
||||
|
@ -165,6 +205,13 @@ else
|
|||
cmd_parted="parted"
|
||||
fi
|
||||
|
||||
if [ -x "$cfg_dir_toolchain/sbin/fdisk" ]; then
|
||||
cmd_fdisk="$cfg_dir_toolchain/sbin/fdisk"
|
||||
else
|
||||
echo "Warning: using system fdisk, this might lead to errors"
|
||||
cmd_fdisk="fdisk"
|
||||
fi
|
||||
|
||||
if [ -x "$cfg_dir_toolchain/sbin/mkdosfs" ]; then
|
||||
cmd_mkdosfs="$cfg_dir_toolchain/sbin/mkdosfs"
|
||||
else
|
||||
|
@ -172,6 +219,20 @@ else
|
|||
cmd_mkdosfs="mkdosfs"
|
||||
fi
|
||||
|
||||
if [ -x "$cfg_dir_toolchain/sbin/mkfs.ext2" ]; then
|
||||
cmd_mkfs_ext2="$cfg_dir_toolchain/sbin/mkfs.ext2"
|
||||
else
|
||||
echo "Warning: using system mkfs.ext2, this might lead to errors"
|
||||
cmd_mkfs_ext2="mkfs.ext2"
|
||||
fi
|
||||
|
||||
if [ -x "$cfg_dir_toolchain/sbin/mkfs.ext4" ]; then
|
||||
cmd_mkfs_ext4="$cfg_dir_toolchain/sbin/mkfs.ext4"
|
||||
else
|
||||
echo "Warning: using system mkfs.ext4, this might lead to errors"
|
||||
cmd_mkfs_ext4="mkfs.ext4"
|
||||
fi
|
||||
|
||||
source "functions.bash"
|
||||
|
||||
dev="$2"
|
||||
|
@ -194,26 +255,46 @@ if [ -z "$cfg_partitions" ]; then
|
|||
)
|
||||
fi
|
||||
|
||||
# Loop device.
|
||||
dev_loop="$(losetup -f)"
|
||||
cmd_loop_attach()
|
||||
{
|
||||
export dev="$1"
|
||||
export dev_loop="$(losetup -f)"
|
||||
|
||||
nfo1 "Attaching $dev to $dev_loop"
|
||||
losetup -v "$dev_loop" "$dev"
|
||||
if [ $? -ne 0 ]; then
|
||||
nfo1 "Attaching $dev to $dev_loop"
|
||||
losetup -v "$dev_loop" "$dev"
|
||||
if [ $? -ne 0 ]; then
|
||||
unset dev_loop
|
||||
die
|
||||
fi
|
||||
}
|
||||
|
||||
cmd_loop_detach()
|
||||
{
|
||||
nfo1 "Detaching $dev_loop"
|
||||
sync && sync && sync && sync
|
||||
blockdev --flushbufs "$dev_loop"
|
||||
losetup -v -d "$dev_loop"
|
||||
sync && sync && sync && sync
|
||||
unset dev_loop
|
||||
die
|
||||
fi
|
||||
}
|
||||
|
||||
nfo1 "Obliterating partition table"
|
||||
cmd_loop_attach "$dev"
|
||||
dd if=/dev/zero of="$dev_loop" bs=1 count=1M count=32 > /dev/null 2>&1 || die
|
||||
losetup -a
|
||||
cmd_loop_detach
|
||||
losetup -a
|
||||
|
||||
nfo1 "Creating empty partition table"
|
||||
cmd_parted "$dev_loop" \
|
||||
mklabel msdos \
|
||||
|| die
|
||||
cmd_loop_attach "$dev"
|
||||
cmd_parted "$dev_loop" mklabel msdos || die
|
||||
cmd_loop_detach
|
||||
|
||||
part_nr=1
|
||||
xboot_system_id=0
|
||||
for ((i = 0; i < ${#cfg_partitions[@]}; i += 4)); do
|
||||
cmd_loop_attach "$dev"
|
||||
|
||||
part_type="${cfg_partitions[$i+0]}"
|
||||
part_label="${cfg_partitions[$i+1]}"
|
||||
part_start="${cfg_partitions[$i+2]}"
|
||||
|
@ -223,6 +304,11 @@ for ((i = 0; i < ${#cfg_partitions[@]}; i += 4)); do
|
|||
case $part_type in
|
||||
'x-boot')
|
||||
create_part_xboot
|
||||
xboot_system_id=1
|
||||
;;
|
||||
'rpi-boot')
|
||||
create_part_rpiboot
|
||||
xboot_system_id=1
|
||||
;;
|
||||
'root')
|
||||
create_part_root
|
||||
|
@ -236,17 +322,23 @@ for ((i = 0; i < ${#cfg_partitions[@]}; i += 4)); do
|
|||
;;
|
||||
esac
|
||||
|
||||
cmd_loop_detach
|
||||
let part_nr++
|
||||
done
|
||||
|
||||
if [ -f "$cfg_sys_family/rootfs/boot/extlinux/mbr.bin" ]; then
|
||||
nfo1 "Installing bootloader in MBR..."
|
||||
cmd_loop_attach "$dev"
|
||||
dd if="$cfg_sys_family/rootfs/boot/extlinux/mbr.bin" of="$dev_loop" > /dev/null 2>&1
|
||||
cmd_loop_detach
|
||||
fi
|
||||
|
||||
nfo1 "Synchronizing caches"
|
||||
sync && sync && sync && sync && sync && sync
|
||||
blockdev --flushbufs "$dev_loop" || die
|
||||
|
||||
nfo1 "Detaching loop device $dev_loop"
|
||||
losetup -v -d "$dev_loop"
|
||||
# Make sure the partition has 0x0e type.
|
||||
if [ $xboot_system_id -eq 1 ]; then
|
||||
cmd_loop_attach "$dev"
|
||||
echo -en "t\n1\ne\nw\n" | $cmd_fdisk "$dev_loop" > /dev/null 2>&1
|
||||
cmd_loop_detach
|
||||
fi
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#! /bin/bash
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2013 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
||||
###########################################################################
|
||||
# This program is free software; you can redistribute it and/or modify #
|
||||
|
@ -19,6 +19,8 @@
|
|||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
|
||||
# 02110-1301 USA. #
|
||||
###########################################################################
|
||||
# Author: Ricardo Martins #
|
||||
###########################################################################
|
||||
|
||||
source "functions.bash"
|
||||
|
||||
|
@ -29,11 +31,12 @@ download_tool()
|
|||
return 0
|
||||
fi
|
||||
|
||||
curl -C - "$1" -o "$2"
|
||||
curl -f -C - "$1" -o "$2"
|
||||
if [ $? -eq 0 ]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
rm -f "$2"
|
||||
return 1
|
||||
}
|
||||
|
||||
|
@ -54,6 +57,7 @@ md5sum_tool()
|
|||
download()
|
||||
{
|
||||
n=0; while [ -n "${url[$n]}" ]; do
|
||||
|
||||
u="${url[$n]}"
|
||||
s="${md5[$n]}"
|
||||
file=$(basename "$u")
|
||||
|
@ -67,11 +71,22 @@ download()
|
|||
fi
|
||||
fi
|
||||
|
||||
download_tool "$u" "$cfg_dir_downloads/$file"
|
||||
# First try LSTS mirror.
|
||||
lsts_url="https://www.lsts.pt/glued/$(basename $u)"
|
||||
download_tool "$lsts_url" "$cfg_dir_downloads/$file"
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "ERROR: download failed"
|
||||
exit 1
|
||||
fi
|
||||
# Then try OceanScan-MST mirror.
|
||||
omst_url="http://www.omst.pt/glued/$(basename $u)"
|
||||
download_tool "$omst_url" "$cfg_dir_downloads/$file"
|
||||
if [ $? -ne 0 ]; then
|
||||
# On failure try upstream URL.
|
||||
download_tool "$u" "$cfg_dir_downloads/$file"
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "ERROR: download failed"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
md5="$(md5sum_tool "$cfg_dir_downloads/$file")"
|
||||
if [ "$s" != "$md5" ]; then
|
||||
|
@ -95,7 +110,7 @@ download()
|
|||
u="$(echo ${git[$n]} | cut -f1 -d'#')"
|
||||
b="$(echo ${git[$n]} | cut -f2 -d'#')"
|
||||
dir=$(basename $u)
|
||||
des="${cfg_dir_builds}/$PKG/$dir-git"
|
||||
des="${cfg_dir_builds}/$pkg/$dir-git"
|
||||
|
||||
if [[ "$u" == git* ]]; then
|
||||
git clone --verbose --branch "$b" "$u" "$des"
|
||||
|
@ -123,10 +138,10 @@ unpack()
|
|||
|
||||
case $file in
|
||||
*tar*|*tgz|*tbz*)
|
||||
tar -C "$cfg_dir_builds/$PKG" -x -f "$cfg_dir_downloads/$file" || exit 1
|
||||
tar -C "$cfg_dir_builds/$pkg" -x -f "$cfg_dir_downloads/$file" || exit 1
|
||||
;;
|
||||
*zip)
|
||||
unzip "$cfg_dir_downloads/$file" -d "$cfg_dir_builds/$PKG" || exit 1
|
||||
unzip "$cfg_dir_downloads/$file" -d "$cfg_dir_builds/$pkg" || exit 1
|
||||
;;
|
||||
*)
|
||||
echo "File $file can't be handled."
|
||||
|
@ -137,11 +152,11 @@ unpack()
|
|||
|
||||
dir_gnu_cfg="$cfg_dir_toolchain/share/gnu-config"
|
||||
if [ "$cfg_dir_cfg/config.sub" ]; then
|
||||
find "$cfg_dir_builds/$PKG" -name config.sub -exec install -v -m 0755 "$dir_gnu_cfg/config.sub" '{}' \;
|
||||
find "$cfg_dir_builds/$pkg" -name config.sub -exec install -v -m 0755 "$dir_gnu_cfg/config.sub" '{}' \;
|
||||
fi
|
||||
|
||||
if [ "$cfg_dir_cfg/config.guess" ]; then
|
||||
find "$cfg_dir_builds/$PKG" -name config.guess -exec install -v -m 0755 "$dir_gnu_cfg/config.guess" '{}' \;
|
||||
find "$cfg_dir_builds/$pkg" -name config.guess -exec install -v -m 0755 "$dir_gnu_cfg/config.guess" '{}' \;
|
||||
fi
|
||||
|
||||
return 0
|
||||
|
@ -179,48 +194,48 @@ postconfigure()
|
|||
|
||||
perform_clean()
|
||||
{
|
||||
rm -rf "$cfg_dir_builds/$PKG/$PKG_VAR"
|
||||
rm -rf "$cfg_dir_builds/$pkg/$pkg_var"
|
||||
}
|
||||
|
||||
perform_all()
|
||||
{
|
||||
start="$(date +%s)"
|
||||
nfo1 "$PKG / $PKG_VAR"
|
||||
nfo1 "$pkg / $pkg_var"
|
||||
|
||||
export pkg_build_dir="$cfg_dir_builds/$PKG/$PKG_VAR"
|
||||
export pkg_build_dir="$cfg_dir_builds/$pkg/$pkg_var"
|
||||
|
||||
for rule in download unpack post_unpack refresh configure build host_install target_install postconfigure; do
|
||||
case $rule in
|
||||
download | unpack | post_unpack)
|
||||
marker="$cfg_dir_builds/$PKG/.$rule"
|
||||
marker="$cfg_dir_builds/$pkg/.$rule"
|
||||
;;
|
||||
*)
|
||||
marker="$cfg_dir_builds/$PKG/$PKG_VAR/.$rule"
|
||||
marker="$cfg_dir_builds/$pkg/$pkg_var/.$rule"
|
||||
;;
|
||||
esac
|
||||
|
||||
mkdir -p "$cfg_dir_builds/$PKG/$PKG_VAR" && cd "$cfg_dir_builds/$PKG/$PKG_VAR"
|
||||
mkdir -p "$cfg_dir_builds/$pkg/$pkg_var" && cd "$cfg_dir_builds/$pkg/$pkg_var"
|
||||
|
||||
if [ -z "$build_dir" ]; then
|
||||
build_dir="$PKG-$version"
|
||||
build_dir="$pkg-$version"
|
||||
fi
|
||||
|
||||
if [ -n "$build_dir" ]; then
|
||||
mkdir -p "$cfg_dir_builds/$PKG/$build_dir" && cd "$cfg_dir_builds/$PKG/$build_dir"
|
||||
mkdir -p "$cfg_dir_builds/$pkg/$build_dir" && cd "$cfg_dir_builds/$pkg/$build_dir"
|
||||
fi
|
||||
|
||||
if [ -n "$build_always" ] || [ "$rule" = 'refresh' ]; then
|
||||
nfo2 "$rule"
|
||||
$rule > "$cfg_dir_builds/$PKG/$PKG_VAR/$rule.log" 2>&1
|
||||
$rule > "$cfg_dir_builds/$pkg/$pkg_var/$rule.log" 2>&1
|
||||
else
|
||||
if ! [ -f "$marker" ]; then
|
||||
nfo2 "$rule"
|
||||
$rule > "$cfg_dir_builds/$PKG/$PKG_VAR/$rule.log" 2>&1
|
||||
$rule > "$cfg_dir_builds/$pkg/$pkg_var/$rule.log" 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
touch "$marker"
|
||||
else
|
||||
err "failed to execute rule $rule of $PKG / $PKG_VAR"
|
||||
tail "$cfg_dir_builds/$PKG/$PKG_VAR/$rule.log"
|
||||
err "failed to execute rule $rule of $pkg / $pkg_var"
|
||||
tail "$cfg_dir_builds/$pkg/$pkg_var/$rule.log"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
@ -229,7 +244,7 @@ perform_all()
|
|||
|
||||
elapsed=$[ $(date +%s)-$start ]
|
||||
ok "completed in ${elapsed}s"
|
||||
touch "$cfg_dir_builds/$PKG/$PKG_VAR/.complete"
|
||||
touch "$cfg_dir_builds/$pkg/$pkg_var/.complete"
|
||||
}
|
||||
|
||||
# Check shell.
|
||||
|
@ -296,17 +311,17 @@ if [ "$pkg_var" = "$pkg" ]; then
|
|||
pkg_var='default'
|
||||
fi
|
||||
|
||||
export PKG="$pkg"
|
||||
export PKG_VAR="$pkg_var"
|
||||
export PKG_COMMON="$cfg_dir_packages/$PKG/common.bash"
|
||||
export pkg
|
||||
export pkg_var
|
||||
export pkg_common="$cfg_dir_rules/$pkg/common.bash"
|
||||
|
||||
if ! [ -d "$cfg_dir_packages/$PKG" ]; then
|
||||
echo "ERROR: package '$PKG' does not exist."
|
||||
if ! [ -d "$cfg_dir_rules/$pkg" ]; then
|
||||
echo "ERROR: package '$pkg' does not exist."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! [ -f "$cfg_dir_packages/$PKG/$PKG_VAR.bash" ]; then
|
||||
echo "ERROR: variant '$PKG_VAR' of package '$PKG' does not exist."
|
||||
if ! [ -f "$cfg_dir_rules/$pkg/$pkg_var.bash" ]; then
|
||||
echo "ERROR: variant '$pkg_var' of package '$pkg' does not exist."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@ -316,18 +331,18 @@ else
|
|||
rule="$3"
|
||||
fi
|
||||
|
||||
mkdir -p "$cfg_dir_downloads" "$cfg_dir_rootfs" "$cfg_dir_toolchain" "$cfg_dir_builds/$PKG"
|
||||
mkdir -p "$cfg_dir_downloads" "$cfg_dir_rootfs" "$cfg_dir_toolchain" "$cfg_dir_builds/$pkg"
|
||||
|
||||
export cfg_package_spec_dir="$cfg_dir_base/packages/$PKG"
|
||||
export pkg_dir="$cfg_dir_rules/$pkg"
|
||||
|
||||
. "$cfg_dir_packages/$PKG/$PKG_VAR.bash"
|
||||
. "$cfg_dir_rules/$pkg/$pkg_var.bash"
|
||||
|
||||
# Postconfiguration:
|
||||
if [ -e "$cfg_dir_postconfiguration/$PKG/$cfg_sys_name.bash" ]; then
|
||||
# echo "ERROR: postconfiguration exists '$PKG'."
|
||||
# echo "$cfg_dir_postconfiguration/$PKG/$cfg_sys_name.bash"
|
||||
if [ -e "$cfg_dir_postconfiguration/$pkg/$cfg_sys_name.bash" ]; then
|
||||
# echo "ERROR: postconfiguration exists '$pkg'."
|
||||
# echo "$cfg_dir_postconfiguration/$pkg/$cfg_sys_name.bash"
|
||||
# exit 1
|
||||
. "$cfg_dir_postconfiguration/$PKG/$cfg_sys_name.bash"
|
||||
. "$cfg_dir_postconfiguration/$pkg/$cfg_sys_name.bash"
|
||||
fi
|
||||
|
||||
# Handle dependencies.
|
||||
|
@ -345,7 +360,7 @@ n=0; while [ -n "${requires[$n]}" ]; do
|
|||
|
||||
"$0" "$1" "$req"
|
||||
if [ $? -ne 0 ]; then
|
||||
err "failed to build dependency for package $PKG / $PKG_VAR"
|
||||
err "failed to build dependency for package $pkg / $pkg_var"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#! /bin/bash
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2013 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
||||
###########################################################################
|
||||
# This program is free software; you can redistribute it and/or modify #
|
||||
|
@ -19,6 +19,8 @@
|
|||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
|
||||
# 02110-1301 USA. #
|
||||
###########################################################################
|
||||
# Author: Ricardo Martins #
|
||||
###########################################################################
|
||||
|
||||
# Check shell type.
|
||||
if [ -z "$BASH_VERSION" ]; then
|
||||
|
|
|
@ -0,0 +1,68 @@
|
|||
#! /bin/bash
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
||||
###########################################################################
|
||||
# This program is free software; you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU General Public License as published by #
|
||||
# the Free Software Foundation; either version 2 of the License, or (at #
|
||||
# your option) any later version. #
|
||||
# #
|
||||
# This program is distributed in the hope that it will be useful, but #
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
|
||||
# General Public License for more details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License #
|
||||
# along with this program; if not, write to the Free Software #
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
|
||||
# 02110-1301 USA. #
|
||||
###########################################################################
|
||||
# Author: Tiago Marques #
|
||||
###########################################################################
|
||||
|
||||
update_tool()
|
||||
{
|
||||
rsync -v "$1" root@"$2":/opt/"$cfg_glued_vendor"/glued/
|
||||
if [ $? -eq 0 ]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
scp "$1" root@"$2":/opt/"$cfg_glued_vendor"/glued/
|
||||
if [ $? -eq 0 ]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
# Check command line arguments.
|
||||
if [ $# -lt 1 ]; then
|
||||
echo "Usage: $0 <config>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Read system configuration file.
|
||||
if ! [ -f "$1" ]; then
|
||||
echo -e "\e[1;31mERROR: invalid configuration file '$1'\e[0m"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Read system configuration file.
|
||||
source "$1"
|
||||
|
||||
if [ ! -f "$cfg_rootfs_tar" ];
|
||||
then
|
||||
echo -e "\e[1;31mERROR: You should run ./pkrootfs $1\e[0m"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# check for dirty repo
|
||||
if [[ "$cfg_glued_git_version" =~ .*-dirty$ ]]
|
||||
then
|
||||
echo -e "\e[1;31mThis glued's version is dirty\e[0m"
|
||||
fi
|
||||
|
||||
# send package to the system
|
||||
update_tool "$cfg_rootfs_tar" "$cfg_eth_ext_ip"
|
|
@ -1,48 +0,0 @@
|
|||
version=\
|
||||
(
|
||||
"2.22"
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://mirrors.kernel.org/gnu/binutils/binutils-$version.tar.bz2"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
"ee0f10756c84979622b992a4a61ea3f5"
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
"Ricardo Martins <rasm@fe.up.pt>"
|
||||
)
|
||||
|
||||
build_dir=$PKG_VAR
|
||||
|
||||
configure()
|
||||
{
|
||||
../binutils-$version/configure $extra_flags \
|
||||
--prefix=$cfg_dir_toolchain \
|
||||
--target=${cfg_target_canonical} \
|
||||
--host=${cfg_host_canonical} \
|
||||
--build=${cfg_host_canonical} \
|
||||
--with-sysroot=$cfg_dir_toolchain_sysroot \
|
||||
--with-mpfr=${cfg_dir_toolchain} \
|
||||
--with-gmp=${cfg_dir_toolchain} \
|
||||
--with-mpc=${cfg_dir_toolchain} \
|
||||
--disable-nls \
|
||||
--disable-werror \
|
||||
--disable-multilib
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
$cmd_make install
|
||||
rm -rf $cfg_dir_toolchain/{info,man}
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
--- boost_1_47_0/boost/config/stdlib/libstdcpp3.hpp 2011-04-25 14:10:48.000000000 +0200
|
||||
+++ boost_1_47_0/boost/config/stdlib/libstdcpp3.hpp 2013-04-08 16:26:05.222543782 +0200
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
#ifdef __GLIBCXX__ // gcc 3.4 and greater:
|
||||
# if defined(_GLIBCXX_HAVE_GTHR_DEFAULT) \
|
||||
- || defined(_GLIBCXX__PTHREADS)
|
||||
+ || defined(_GLIBCXX__PTHREADS) || defined(_GLIBCXX_HAS_GTHREADS)
|
||||
//
|
||||
// If the std lib has thread support turned on, then turn it on in Boost
|
||||
// as well. We do this because some gcc-3.4 std lib headers define _REENTANT
|
|
@ -1,53 +0,0 @@
|
|||
version=\
|
||||
(
|
||||
"5.0-20120323"
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"ftp://invisible-island.net/cdk/cdk.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
"929969d06ce034e862976bb7d1a36b25"
|
||||
)
|
||||
|
||||
requires=\
|
||||
(
|
||||
'ncurses/default'
|
||||
)
|
||||
|
||||
configure()
|
||||
{
|
||||
# --target="${cfg_target_canonical}" \
|
||||
./configure \
|
||||
--prefix="$cfg_dir_toolchain_sysroot/usr" \
|
||||
--host="${cfg_target_canonical}" \
|
||||
--build="${cfg_host_canonical}" \
|
||||
--target="${cfg_target_canonical}" \
|
||||
--with-ncursesw \
|
||||
--with-shared \
|
||||
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
$cmd_make install
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
for f in "$cfg_dir_toolchain_sysroot/usr/lib/libcdk"* ; do
|
||||
if [ -L "$f" ]; then
|
||||
cp -av "$f" "$cfg_dir_rootfs/usr/lib"
|
||||
else
|
||||
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")"
|
||||
fi
|
||||
done
|
||||
}
|
|
@ -1,79 +0,0 @@
|
|||
version=\
|
||||
(
|
||||
'1.0'
|
||||
)
|
||||
|
||||
ns_version=\
|
||||
(
|
||||
'2.34'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://www.lsts.pt/glued/desert-$version.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'5b83d1d6e5390a44f1dc0c5a3794581c'
|
||||
)
|
||||
|
||||
requires=\
|
||||
(
|
||||
'ns-miracle/default'
|
||||
)
|
||||
|
||||
post_unpack()
|
||||
{
|
||||
patches=$(ls "$cfg_package_spec_dir/patches/"*.patch)
|
||||
if [ -n "$patches" ]; then
|
||||
cat $patches | patch -p0
|
||||
fi
|
||||
}
|
||||
|
||||
configure()
|
||||
{
|
||||
find . -name "*.o" -exec rm {} \;
|
||||
/usr/bin/aclocal -I m4 --force && /usr/bin/libtoolize --force && /usr/bin/automake --foreign --add-missing && /usr/bin/autoconf
|
||||
|
||||
prefix="/DESERT_lib"
|
||||
|
||||
sed "s#@TCL2CPP@#qemu-arm -L ${cfg_dir_rootfs} ${cfg_dir_rootfs}/lib/ld-linux.so.3 ${cfg_dir_toolchain_sysroot}/usr/bin/tcl2c++#g" "./m4/Makefile.in" -i
|
||||
sed "s#@TCL2CPP@#qemu-arm -L ${cfg_dir_rootfs} ${cfg_dir_rootfs}/lib/ld-linux.so.3 ${cfg_dir_toolchain_sysroot}/usr/bin/tcl2c++#g" "./Makefile.in" -i
|
||||
|
||||
"./configure" \
|
||||
--target="$cfg_target_canonical" \
|
||||
--host="$cfg_target_canonical" \
|
||||
--build="$cfg_host_canonical" \
|
||||
--with-ns-allinone=${cfg_dir_builds}/ns/ \
|
||||
--with-nsmiracle=${cfg_dir_builds}/ns-miracle/ns-miracle-1.0/trunk/main/ \
|
||||
--prefix="$prefix"
|
||||
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make -j1 \
|
||||
TCL2CPP="qemu-arm -L ${cfg_dir_rootfs} ${cfg_dir_rootfs}/lib/ld-linux.so.3 ${cfg_dir_toolchain_sysroot}/usr/bin/tcl2c++"
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
$cmd_mkdir \
|
||||
"$cfg_dir_toolchain_sysroot/ns2/DESERT_lib/lib" &&
|
||||
|
||||
$cmd_make \
|
||||
DESTDIR="$cfg_dir_toolchain_sysroot/ns2/" \
|
||||
install
|
||||
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
cp -r "${cfg_dir_toolchain_sysroot}/ns2/DESERT_lib/lib" "${cfg_dir_rootfs}/usr/ns2/DESERT/"
|
||||
|
||||
for f in "$cfg_dir_toolchain_sysroot/ns2/DESERT_lib/lib/"lib*.so.0.0.0; do
|
||||
$cmd_target_strip "$f" -o ${cfg_dir_rootfs}/usr/ns2/DESERT/"$(basename "$f")"
|
||||
done
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
--- ./m4/nsallinone.m4 2012-09-21 14:09:26.000000000 +0200
|
||||
+++ ./m4/nsallinone.m4 2012-09-21 17:08:21.807075643 +0200
|
||||
@@ -49,12 +49,10 @@
|
||||
NS_ALLINONE_PATH=$withval
|
||||
|
||||
NS_PATH=$NS_ALLINONE_PATH/`cd $NS_ALLINONE_PATH; ls -d ns-* | head -n 1`
|
||||
- TCL_PATH=$NS_ALLINONE_PATH/`cd $NS_ALLINONE_PATH; ls -d * | grep -e 'tcl[0-9].*' | head -n 1`
|
||||
- TCLCL_PATH=$NS_ALLINONE_PATH/`cd $NS_ALLINONE_PATH; ls -d tclcl-* | head -n 1`
|
||||
- OTCL_PATH=$NS_ALLINONE_PATH/`cd $NS_ALLINONE_PATH; ls -d otcl-* | head -n 1`
|
||||
-
|
||||
- NS_CPPFLAGS="-I$NS_ALLINONE_PATH/include -I$NS_PATH -I$TCLCL_PATH -I$OTCL_PATH"
|
||||
-
|
||||
+ TCL_PATH="${cfg_dir_builds}/tcl/"`cd "${cfg_dir_builds}/tcl/"; ls -d * | grep -e 'tcl[0-9].*' | head -n 1`
|
||||
+ TCLCL_PATH="${cfg_dir_builds}/tclcl/"`cd "${cfg_dir_builds}/tclcl"; ls -d tclcl-* | head -n 1`
|
||||
+ OTCL_PATH="${cfg_dir_builds}/otcl/"`cd "${cfg_dir_builds}/otcl/"; ls -d otcl-* | head -n 1`
|
||||
+ NS_CPPFLAGS="${cfg_dir_toolchain_sysroot}/usr/include -I$NS_PATH -I$TCLCL_PATH -I$OTCL_PATH"
|
||||
|
||||
NS_ALLINONE_DISTCHECK_CONFIGURE_FLAGS="--with-ns-allinone=$withval"
|
||||
AC_SUBST(NS_ALLINONE_DISTCHECK_CONFIGURE_FLAGS)
|
|
@ -1,11 +0,0 @@
|
|||
--- configure.ac 2012-09-27 11:57:58.190424449 +0200
|
||||
+++ configure.ac 2012-09-27 12:03:02.599357310 +0200
|
||||
@@ -42,6 +42,8 @@
|
||||
DESERT_CPPFLAGS="$DESERT_CPPFLAGS "'-I$(top_srcdir)/mobility/uwdriftposition'
|
||||
DESERT_CPPFLAGS="$DESERT_CPPFLAGS "'-I$(top_srcdir)/mobility/uwgmposition'
|
||||
|
||||
+TCL2CPP="qemu-arm -L ${cfg_dir_rootfs} ${cfg_dir_rootfs}/lib/ld-linux.so.3 ${cfg_dir_toolchain_sysroot}/usr/bin/tcl2c++"
|
||||
+
|
||||
AC_SUBST(DESERT_CPPFLAGS)
|
||||
|
||||
AC_SUBST(DESERT_LDFLAGS)
|
|
@ -1,33 +0,0 @@
|
|||
version=\
|
||||
(
|
||||
'3.0.20'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://daniel-baumann.ch/files/software/dosfstools/dosfstools-$version.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'7f1c1afd4ae4622e07b24ec0ddfc4184'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Ricardo Martins <rasm@fe.up.pt>'
|
||||
)
|
||||
|
||||
build()
|
||||
{
|
||||
CC="$cmd_host_cc" \
|
||||
$cmd_make \
|
||||
PREFIX="$cfg_dir_toolchain"
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
CC="$cmd_host_cc" \
|
||||
$cmd_make \
|
||||
PREFIX="$cfg_dir_toolchain" install
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
diff --git a/Makefile.in b/Makefile.in
|
||||
index cec35f1..46a9365 100644
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -56,7 +56,7 @@ HEADERS=options.h dbutil.h session.h packet.h algo.h ssh.h buffer.h kex.h \
|
||||
loginrec.h atomicio.h x11fwd.h agentfwd.h tcpfwd.h compat.h \
|
||||
listener.h fake-rfc2553.h
|
||||
|
||||
-dropbearobjs=$(COMMONOBJS) $(CLISVROBJS) $(SVROBJS) @CRYPTLIB@
|
||||
+dropbearobjs=$(COMMONOBJS) $(CLISVROBJS) $(SVROBJS)
|
||||
dbclientobjs=$(COMMONOBJS) $(CLISVROBJS) $(CLIOBJS)
|
||||
dropbearkeyobjs=$(COMMONOBJS) $(KEYOBJS)
|
||||
dropbearconvertobjs=$(COMMONOBJS) $(CONVERTOBJS)
|
||||
@@ -169,14 +169,14 @@ scp: $(SCPOBJS) $(HEADERS) Makefile
|
||||
# multi-binary compilation.
|
||||
MULTIOBJS=
|
||||
ifeq ($(MULTI),1)
|
||||
- MULTIOBJS=dbmulti.o $(sort $(foreach prog, $(PROGRAMS), $($(prog)objs))) @CRYPTLIB@
|
||||
+ MULTIOBJS=dbmulti.o $(sort $(foreach prog, $(PROGRAMS), $($(prog)objs)))
|
||||
CFLAGS+=$(addprefix -DDBMULTI_, $(PROGRAMS)) -DDROPBEAR_MULTI
|
||||
endif
|
||||
|
||||
dropbearmulti: multilink
|
||||
|
||||
multibinary: $(HEADERS) $(MULTIOBJS) $(LIBTOM_DEPS) Makefile
|
||||
- $(CC) $(LDFLAGS) -o dropbearmulti$(EXEEXT) $(MULTIOBJS) $(LIBS)
|
||||
+ $(CC) $(LDFLAGS) -o dropbearmulti$(EXEEXT) $(MULTIOBJS) $(LIBS) @CRYPTLIB@
|
||||
|
||||
multilink: multibinary $(addprefix link, $(PROGRAMS))
|
||||
|
|
@ -1,80 +0,0 @@
|
|||
version=\
|
||||
(
|
||||
'2.9.0'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://downloads.sourceforge.net/dtn/dtn-$version.tgz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'adfc25b561c1eeda30d9b68a6b088bd8'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Ricardo Martins <rasm@fe.up.pt>'
|
||||
)
|
||||
|
||||
requires=\
|
||||
(
|
||||
'db/default'
|
||||
'tcl/default'
|
||||
'xerces-c/default'
|
||||
'oasys/default'
|
||||
)
|
||||
|
||||
configure()
|
||||
{
|
||||
"../dtn-$version/configure" \
|
||||
--prefix="/usr" \
|
||||
--sysconfdir="/etc/dtn" \
|
||||
--target="$cfg_target_canonical" \
|
||||
--host="$cfg_target_canonical" \
|
||||
--build="$cfg_host_canonical" \
|
||||
--with-oasys="$cfg_dir_toolchain_sysroot/usr" \
|
||||
--enable-ecl \
|
||||
--without-python \
|
||||
--disable-python
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make -j1 -C servlib &&
|
||||
$cmd_make -j1 -C applib libdtnapi.a &&
|
||||
$cmd_make -j1 -C applib libdtnapi++.a &&
|
||||
$cmd_make -j1 -C applib libdtnapisrv.a &&
|
||||
$cmd_make -j1 -C daemon &&
|
||||
$cmd_make -j1 -C apps
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
cp -a servlib/libdtnserv.a "$cfg_dir_toolchain_sysroot/usr/lib" &&
|
||||
cp -a applib/libdtnapi++.a "$cfg_dir_toolchain_sysroot/usr/lib" &&
|
||||
cp -a applib/libdtnapi++-$version.a "$cfg_dir_toolchain_sysroot/usr/lib" &&
|
||||
cp -a applib/libdtnapi-$version.a "$cfg_dir_toolchain_sysroot/usr/lib" &&
|
||||
cp -a applib/libdtnapi.a "$cfg_dir_toolchain_sysroot/usr/lib" &&
|
||||
cp -a applib/libdtnapisrv.a "$cfg_dir_toolchain_sysroot/usr/lib" &&
|
||||
|
||||
mkdir -p "$cfg_dir_toolchain_sysroot/usr/include/dtn" &&
|
||||
cp -a applib/dtn_ipc.h "$cfg_dir_toolchain_sysroot/usr/include/dtn" &&
|
||||
cp -a applib/dtn_errno.h "$cfg_dir_toolchain_sysroot/usr/include/dtn" &&
|
||||
cp -a applib/sdnv-c.h "$cfg_dir_toolchain_sysroot/usr/include/dtn" &&
|
||||
cp -a applib/dtn_api.h "$cfg_dir_toolchain_sysroot/usr/include/dtn" &&
|
||||
cp -a applib/dtn_types.h "$cfg_dir_toolchain_sysroot/usr/include/dtn"
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
$cmd_target_strip apps/dtnsend/dtnsend -o "$cfg_dir_rootfs/usr/bin/dtnsend" &&
|
||||
$cmd_target_strip apps/dtnrecv/dtnrecv -o "$cfg_dir_rootfs/usr/bin/dtnrecv" &&
|
||||
$cmd_target_strip apps/dtncp/dtncp -o "$cfg_dir_rootfs/usr/bin/dtncp" &&
|
||||
$cmd_target_strip apps/dtnping/dtnping -o "$cfg_dir_rootfs/usr/bin/dtnping" &&
|
||||
$cmd_target_strip daemon/dtnd -o "$cfg_dir_rootfs/usr/bin/dtnd" &&
|
||||
$cmd_mkdir "$cfg_dir_rootfs/etc/dtn" "$cfg_dir_rootfs/usr/share/dtn" &&
|
||||
cp servlib/conv_layers/clevent.xsd "$cfg_dir_rootfs/usr/share/dtn" &&
|
||||
tar -C "$cfg_package_spec_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
|
||||
}
|
|
@ -1,29 +0,0 @@
|
|||
# Configuration parameters
|
||||
# cfg_dtnd_config: DTN Daemon configuration file.
|
||||
# cfg_dtnd_name: DTN node name.
|
||||
|
||||
start()
|
||||
{
|
||||
export DTN_NODE="$cfg_dtnd_name"
|
||||
db="/opt/lsts/dtn/var/$DTN_NODE/db"
|
||||
|
||||
if [ -f "$cfg_dtnd_config" ]; then
|
||||
mkdir -p /opt/lsts/dtn
|
||||
|
||||
if ! [ -d "$db" ]; then
|
||||
mkdir -p "$db"
|
||||
/usr/bin/dtnd \
|
||||
-c "$cfg_dtnd_config" \
|
||||
--init-db
|
||||
fi
|
||||
|
||||
/usr/bin/dtnd -d \
|
||||
-c "$cfg_dtnd_config" \
|
||||
-o /opt/lsts/dtn/log.txt
|
||||
fi
|
||||
}
|
||||
|
||||
stop()
|
||||
{
|
||||
killall dtnd > /dev/null 2>&1
|
||||
}
|
|
@ -1,199 +0,0 @@
|
|||
/*
|
||||
* timepps.h -- PPS API main header
|
||||
*
|
||||
* Copyright (C) 2005-2007 Rodolfo Giometti <giometti@linux.it>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#ifndef _SYS_TIMEPPS_H_
|
||||
#define _SYS_TIMEPPS_H_
|
||||
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/pps.h>
|
||||
|
||||
#define LINUXPPS 1 /* signal we are using LinuxPPS */
|
||||
|
||||
/*
|
||||
* New data structures
|
||||
*/
|
||||
|
||||
struct ntp_fp {
|
||||
unsigned int integral;
|
||||
unsigned int fractional;
|
||||
};
|
||||
|
||||
union pps_timeu {
|
||||
struct timespec tspec;
|
||||
struct ntp_fp ntpfp;
|
||||
unsigned long longpad[3];
|
||||
};
|
||||
|
||||
struct pps_info {
|
||||
unsigned long assert_sequence; /* seq. num. of assert event */
|
||||
unsigned long clear_sequence; /* seq. num. of clear event */
|
||||
union pps_timeu assert_tu; /* time of assert event */
|
||||
union pps_timeu clear_tu; /* time of clear event */
|
||||
int current_mode; /* current mode bits */
|
||||
};
|
||||
|
||||
struct pps_params {
|
||||
int api_version; /* API version # */
|
||||
int mode; /* mode bits */
|
||||
union pps_timeu assert_off_tu; /* offset compensation for assert */
|
||||
union pps_timeu clear_off_tu; /* offset compensation for clear */
|
||||
};
|
||||
|
||||
typedef int pps_handle_t; /* represents a PPS source */
|
||||
typedef unsigned long pps_seq_t; /* sequence number */
|
||||
typedef struct ntp_fp ntp_fp_t; /* NTP-compatible time stamp */
|
||||
typedef union pps_timeu pps_timeu_t; /* generic data type for time stamps */
|
||||
typedef struct pps_info pps_info_t;
|
||||
typedef struct pps_params pps_params_t;
|
||||
|
||||
#define assert_timestamp assert_tu.tspec
|
||||
#define clear_timestamp clear_tu.tspec
|
||||
|
||||
#define assert_timestamp_ntpfp assert_tu.ntpfp
|
||||
#define clear_timestamp_ntpfp clear_tu.ntpfp
|
||||
|
||||
#define assert_offset assert_off_tu.tspec
|
||||
#define clear_offset clear_off_tu.tspec
|
||||
|
||||
#define assert_offset_ntpfp assert_off_tu.ntpfp
|
||||
#define clear_offset_ntpfp clear_off_tu.ntpfp
|
||||
|
||||
/*
|
||||
* The PPS API
|
||||
*/
|
||||
|
||||
static __inline int time_pps_create(int source, pps_handle_t *handle)
|
||||
{
|
||||
int ret;
|
||||
struct pps_kparams dummy;
|
||||
|
||||
if (!handle) {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* First we check if current device is a valid PPS one by
|
||||
* doing a dummy PPS_GETPARAMS...
|
||||
*/
|
||||
ret = ioctl(source, PPS_GETPARAMS, &dummy);
|
||||
if (ret) {
|
||||
errno = EOPNOTSUPP;
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* ... then since in LinuxPPS there are no differences between a
|
||||
* "PPS source" and a "PPS handle", we simply return the same value.
|
||||
*/
|
||||
*handle = source;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static __inline int time_pps_destroy(pps_handle_t handle)
|
||||
{
|
||||
return close(handle);
|
||||
}
|
||||
|
||||
static __inline int time_pps_getparams(pps_handle_t handle,
|
||||
pps_params_t *ppsparams)
|
||||
{
|
||||
int ret;
|
||||
struct pps_kparams __ppsparams;
|
||||
|
||||
ret = ioctl(handle, PPS_GETPARAMS, &__ppsparams);
|
||||
|
||||
ppsparams->api_version = __ppsparams.api_version;
|
||||
ppsparams->mode = __ppsparams.mode;
|
||||
ppsparams->assert_off_tu.tspec.tv_sec = __ppsparams.assert_off_tu.sec;
|
||||
ppsparams->assert_off_tu.tspec.tv_nsec = __ppsparams.assert_off_tu.nsec;
|
||||
ppsparams->clear_off_tu.tspec.tv_sec = __ppsparams.clear_off_tu.sec;
|
||||
ppsparams->clear_off_tu.tspec.tv_nsec = __ppsparams.clear_off_tu.nsec;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static __inline int time_pps_setparams(pps_handle_t handle,
|
||||
const pps_params_t *ppsparams)
|
||||
{
|
||||
struct pps_kparams __ppsparams;
|
||||
|
||||
__ppsparams.api_version = ppsparams->api_version;
|
||||
__ppsparams.mode = ppsparams->mode;
|
||||
__ppsparams.assert_off_tu.sec = ppsparams->assert_off_tu.tspec.tv_sec;
|
||||
__ppsparams.assert_off_tu.nsec = ppsparams->assert_off_tu.tspec.tv_nsec;
|
||||
__ppsparams.clear_off_tu.sec = ppsparams->clear_off_tu.tspec.tv_sec;
|
||||
__ppsparams.clear_off_tu.nsec = ppsparams->clear_off_tu.tspec.tv_nsec;
|
||||
|
||||
return ioctl(handle, PPS_SETPARAMS, &__ppsparams);
|
||||
}
|
||||
|
||||
/* Get capabilities for handle */
|
||||
static __inline int time_pps_getcap(pps_handle_t handle, int *mode)
|
||||
{
|
||||
return ioctl(handle, PPS_GETCAP, mode);
|
||||
}
|
||||
|
||||
static __inline int time_pps_fetch(pps_handle_t handle, const int tsformat,
|
||||
pps_info_t *ppsinfobuf,
|
||||
const struct timespec *timeout)
|
||||
{
|
||||
struct pps_fdata __fdata;
|
||||
int ret;
|
||||
|
||||
/* Sanity checks */
|
||||
if (tsformat != PPS_TSFMT_TSPEC) {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (timeout) {
|
||||
__fdata.timeout.sec = timeout->tv_sec;
|
||||
__fdata.timeout.nsec = timeout->tv_nsec;
|
||||
__fdata.timeout.flags = ~PPS_TIME_INVALID;
|
||||
} else
|
||||
__fdata.timeout.flags = PPS_TIME_INVALID;
|
||||
|
||||
ret = ioctl(handle, PPS_FETCH, &__fdata);
|
||||
|
||||
ppsinfobuf->assert_sequence = __fdata.info.assert_sequence;
|
||||
ppsinfobuf->clear_sequence = __fdata.info.clear_sequence;
|
||||
ppsinfobuf->assert_tu.tspec.tv_sec = __fdata.info.assert_tu.sec;
|
||||
ppsinfobuf->assert_tu.tspec.tv_nsec = __fdata.info.assert_tu.nsec;
|
||||
ppsinfobuf->clear_tu.tspec.tv_sec = __fdata.info.clear_tu.sec;
|
||||
ppsinfobuf->clear_tu.tspec.tv_nsec = __fdata.info.clear_tu.nsec;
|
||||
ppsinfobuf->current_mode = __fdata.info.current_mode;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static __inline int time_pps_kcbind(pps_handle_t handle,
|
||||
const int kernel_consumer,
|
||||
const int edge, const int tsformat)
|
||||
{
|
||||
/* LinuxPPS doesn't implement kernel consumer feature */
|
||||
errno = EOPNOTSUPP;
|
||||
return -1;
|
||||
}
|
||||
|
||||
#endif /* _SYS_TIMEPPS_H_ */
|
|
@ -1,39 +0,0 @@
|
|||
source $PKG_COMMON
|
||||
|
||||
requires=\
|
||||
(
|
||||
'eglibc/cross'
|
||||
)
|
||||
|
||||
configure()
|
||||
{
|
||||
"../eglibc-$version/localedef/configure" \
|
||||
--prefix="$cfg_dir_toolchain_sysroot/usr" \
|
||||
--with-glibc=."./eglibc-$version/libc"
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
$cmd_mkdir "$cfg_dir_toolchain_sysroot/usr/lib/locale" &&
|
||||
if [ -f "$cfg_dir_toolchain_sysroot/usr/share/i18n/charmaps/UTF-8.gz" ]; then
|
||||
gunzip -f "$cfg_dir_toolchain_sysroot/usr/share/i18n/charmaps/UTF-8.gz"
|
||||
fi &&
|
||||
if [ -f "$cfg_dir_toolchain_sysroot/usr/share/i18n/charmaps/ISO-8859-1.gz" ]; then
|
||||
gunzip -f "$cfg_dir_toolchain_sysroot/usr/share/i18n/charmaps/ISO-8859-1.gz"
|
||||
fi &&
|
||||
|
||||
./localedef -v -c -i pt_PT -f UTF-8 pt_PT
|
||||
./localedef -v -c -i ru_RU -f UTF-8 ru_RU
|
||||
true
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
$cmd_mkdir "$cfg_dir_rootfs/usr/lib/locale" &&
|
||||
cp -v "$cfg_dir_toolchain_sysroot/usr/lib/locale/locale-archive" "$cfg_dir_rootfs/usr/lib/locale"
|
||||
}
|
|
@ -1,24 +0,0 @@
|
|||
diff -Nru eglibc-2.15-16611/libc/include/libc-symbols.h eglibc-2.15-16611-rasm/libc/include/libc-symbols.h
|
||||
--- eglibc-2.15-16611/libc/include/libc-symbols.h 2012-01-09 21:16:30.000000000 +0000
|
||||
+++ eglibc-2.15-16611-rasm/libc/include/libc-symbols.h 2012-01-10 23:37:36.863616530 +0000
|
||||
@@ -647,7 +647,7 @@
|
||||
# define libc_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
|
||||
# define libc_hidden_def(name) hidden_def (name)
|
||||
# define libc_hidden_weak(name) hidden_weak (name)
|
||||
-# define libc_hidden_nolink(name, version) hidden_nolink (name, libc, version)
|
||||
+# define libc_hidden_nolink(name, version) hidden_def (name)
|
||||
# define libc_hidden_ver(local, name) hidden_ver (local, name)
|
||||
# define libc_hidden_data_def(name) hidden_data_def (name)
|
||||
# define libc_hidden_data_weak(name) hidden_data_weak (name)
|
||||
diff -Nru eglibc-2.15-16611/libc/sunrpc/Makefile eglibc-2.15-16611-rasm/libc/sunrpc/Makefile
|
||||
--- eglibc-2.15-16611/libc/sunrpc/Makefile 2012-01-09 21:16:30.000000000 +0000
|
||||
+++ eglibc-2.15-16611-rasm/libc/sunrpc/Makefile 2012-01-10 23:38:14.574076188 +0000
|
||||
@@ -55,7 +55,7 @@
|
||||
des_crypt.h)
|
||||
headers-not-in-tirpc = $(addprefix rpc/,key_prot.h rpc_des.h) \
|
||||
$(rpcsvc:%=rpcsvc/%) rpcsvc/bootparam.h
|
||||
-headers = rpc/netdb.h
|
||||
+headers = rpc/netdb.h $(headers-in-tirpc) $(headers-not-in-tirpc)
|
||||
generated = $(rpcsvc:%.x=rpcsvc/%.h) $(rpcsvc:%.x=x%.c) $(rpcsvc:%.x=x%.stmp) \
|
||||
$(rpcsvc:%.x=rpcsvc/%.stmp) rpcgen
|
||||
generated-dirs := rpcsvc
|
|
@ -1,15 +0,0 @@
|
|||
diff -Nru eglibc-2.15-16611/libc/nis/Makefile eglibc-2.15-16611-rasm/libc/nis/Makefile
|
||||
--- eglibc-2.15-16611/libc/nis/Makefile 2012-01-09 21:16:30.000000000 +0000
|
||||
+++ eglibc-2.15-16611-rasm/libc/nis/Makefile 2012-01-10 23:40:26.409018009 +0000
|
||||
@@ -25,9 +25,9 @@
|
||||
|
||||
aux := nis_hash
|
||||
|
||||
+headers := $(wildcard rpcsvc/*.[hx])
|
||||
distribute := nss-nis.h nss-nisplus.h nis_intern.h Banner \
|
||||
- nisplus-parser.h nis_xdr.h nss \
|
||||
- $(wildcard rpcsvc/*.[hx])
|
||||
+ nisplus-parser.h nis_xdr.h nss
|
||||
|
||||
# These are the databases available for the nis (and perhaps later nisplus)
|
||||
# service. This must be a superset of the services in nss.
|
|
@ -1,107 +0,0 @@
|
|||
diff -Nru eglibc-2.15.17955/libc/elf/dl-close.c eglibc-2.15.17955.rasm/libc/elf/dl-close.c
|
||||
--- eglibc-2.15.17955/libc/elf/dl-close.c 2012-04-07 20:58:55.000000000 +0100
|
||||
+++ eglibc-2.15.17955.rasm/libc/elf/dl-close.c 2012-10-23 22:33:33.351846745 +0100
|
||||
@@ -119,17 +119,8 @@
|
||||
if (map->l_direct_opencount > 0 || map->l_type != lt_loaded
|
||||
|| dl_close_state != not_pending)
|
||||
{
|
||||
- if (map->l_direct_opencount == 0)
|
||||
- {
|
||||
- if (map->l_type == lt_loaded)
|
||||
- dl_close_state = rerun;
|
||||
- else if (map->l_type == lt_library)
|
||||
- {
|
||||
- struct link_map **oldp = map->l_initfini;
|
||||
- map->l_initfini = map->l_orig_initfini;
|
||||
- _dl_scope_free (oldp);
|
||||
- }
|
||||
- }
|
||||
+ if (map->l_direct_opencount == 0 && map->l_type == lt_loaded)
|
||||
+ dl_close_state = rerun;
|
||||
|
||||
/* There are still references to this object. Do nothing more. */
|
||||
if (__builtin_expect (GLRO_dl_debug_mask & DL_DEBUG_FILES, 0))
|
||||
diff -Nru eglibc-2.15.17955/libc/elf/dl-deps.c eglibc-2.15.17955.rasm/libc/elf/dl-deps.c
|
||||
--- eglibc-2.15.17955/libc/elf/dl-deps.c 2012-04-07 20:58:55.000000000 +0100
|
||||
+++ eglibc-2.15.17955.rasm/libc/elf/dl-deps.c 2012-10-23 22:38:17.124208092 +0100
|
||||
@@ -689,6 +689,7 @@
|
||||
l_initfini[nlist] = NULL;
|
||||
atomic_write_barrier ();
|
||||
map->l_initfini = l_initfini;
|
||||
+ map->l_free_initfini = 1;
|
||||
if (l_reldeps != NULL)
|
||||
{
|
||||
atomic_write_barrier ();
|
||||
@@ -697,7 +698,7 @@
|
||||
_dl_scope_free (old_l_reldeps);
|
||||
}
|
||||
if (old_l_initfini != NULL)
|
||||
- map->l_orig_initfini = old_l_initfini;
|
||||
+ _dl_scope_free (old_l_initfini);
|
||||
|
||||
if (errno_reason)
|
||||
_dl_signal_error (errno_reason == -1 ? 0 : errno_reason, objname,
|
||||
diff -Nru eglibc-2.15.17955/libc/elf/dl-libc.c eglibc-2.15.17955.rasm/libc/elf/dl-libc.c
|
||||
--- eglibc-2.15.17955/libc/elf/dl-libc.c 2012-04-07 20:58:55.000000000 +0100
|
||||
+++ eglibc-2.15.17955.rasm/libc/elf/dl-libc.c 2012-10-23 22:39:02.388449874 +0100
|
||||
@@ -270,13 +270,13 @@
|
||||
|
||||
for (Lmid_t ns = 0; ns < GL(dl_nns); ++ns)
|
||||
{
|
||||
- /* Remove all additional names added to the objects. */
|
||||
for (l = GL(dl_ns)[ns]._ns_loaded; l != NULL; l = l->l_next)
|
||||
{
|
||||
struct libname_list *lnp = l->l_libname->next;
|
||||
|
||||
l->l_libname->next = NULL;
|
||||
|
||||
+ /* Remove all additional names added to the objects. */
|
||||
while (lnp != NULL)
|
||||
{
|
||||
struct libname_list *old = lnp;
|
||||
@@ -284,6 +284,10 @@
|
||||
if (! old->dont_free)
|
||||
free (old);
|
||||
}
|
||||
+
|
||||
+ /* Free the initfini dependency list. */
|
||||
+ if (l->l_free_initfini)
|
||||
+ free (l->l_initfini);
|
||||
}
|
||||
|
||||
if (__builtin_expect (GL(dl_ns)[ns]._ns_global_scope_alloc, 0) != 0
|
||||
diff -Nru eglibc-2.15.17955/libc/elf/rtld.c eglibc-2.15.17955.rasm/libc/elf/rtld.c
|
||||
--- eglibc-2.15.17955/libc/elf/rtld.c 2012-04-07 20:58:55.000000000 +0100
|
||||
+++ eglibc-2.15.17955.rasm/libc/elf/rtld.c 2012-10-23 22:39:30.692348894 +0100
|
||||
@@ -2277,6 +2277,8 @@
|
||||
lnp->dont_free = 1;
|
||||
lnp = lnp->next;
|
||||
}
|
||||
+ /* Also allocated with the fake malloc(). */
|
||||
+ l->l_free_initfini = 0;
|
||||
|
||||
if (l != &GL(dl_rtld_map))
|
||||
_dl_relocate_object (l, l->l_scope, GLRO(dl_lazy) ? RTLD_LAZY : 0,
|
||||
diff -Nru eglibc-2.15.17955/libc/include/link.h eglibc-2.15.17955.rasm/libc/include/link.h
|
||||
--- eglibc-2.15.17955/libc/include/link.h 2012-04-07 20:58:55.000000000 +0100
|
||||
+++ eglibc-2.15.17955.rasm/libc/include/link.h 2012-10-23 22:40:31.526900046 +0100
|
||||
@@ -192,6 +192,9 @@
|
||||
during LD_TRACE_PRELINKING=1
|
||||
contains any DT_SYMBOLIC
|
||||
libraries. */
|
||||
+ unsigned int l_free_initfini:1; /* Nonzero if l_initfini can be
|
||||
+ freed, ie. not allocated with
|
||||
+ the dummy malloc in ld.so. */
|
||||
|
||||
/* Collected information about own RPATH directories. */
|
||||
struct r_search_path_struct l_rpath_dirs;
|
||||
@@ -240,9 +243,6 @@
|
||||
|
||||
/* List of object in order of the init and fini calls. */
|
||||
struct link_map **l_initfini;
|
||||
- /* The init and fini list generated at startup, saved when the
|
||||
- object is also loaded dynamically. */
|
||||
- struct link_map **l_orig_initfini;
|
||||
|
||||
/* List of the dependencies introduced through symbol binding. */
|
||||
struct link_map_reldeps
|
|
@ -1,12 +0,0 @@
|
|||
diff -Naur eglibc-2.15-16526.orig/config.make.in eglibc-2.15-16526/config.make.in
|
||||
--- eglibc-2.15-16526.orig/libc/config.make.in 2012-07-24 17:49:58.000000000 -0400
|
||||
+++ eglibc-2.15-16526/libc/config.make.in 2012-07-24 17:51:01.000000000 -0400
|
||||
@@ -5,7 +5,7 @@
|
||||
release = @RELEASE@
|
||||
|
||||
# Installation prefixes.
|
||||
-install_root = $(DESTDIR)
|
||||
+install_root ?= $(DESTDIR)
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
datadir = @datadir@
|
|
@ -1,3 +0,0 @@
|
|||
/usr/bin/setescc 0 0x200 5 0 0 0
|
||||
/usr/bin/esccclock 0 0x5d1460 23
|
||||
/usr/bin/esccsettings 0 /etc/escc/hg1700.cfg
|
|
@ -1,30 +0,0 @@
|
|||
version=\
|
||||
(
|
||||
"20080329"
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://andrzejekiert.ovh.org/software/fconfig/fconfig-$version.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
"dac355e9f2a0f48c414c52e2034b6346"
|
||||
)
|
||||
|
||||
post_unpack()
|
||||
{
|
||||
patch -d ../fconfig -p1 < "$cfg_package_spec_dir"/patches/limits.patch
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make -C ../fconfig CC=$cmd_target_cc
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
cp -a ../fconfig/fconfig $cfg_dir_rootfs/usr/sbin
|
||||
$cmd_target_strip $cfg_dir_rootfs/usr/sbin/fconfig
|
||||
}
|
|
@ -1,24 +0,0 @@
|
|||
diff -uNr fconfig/fconfig.c fconfig.mod/fconfig.c
|
||||
--- fconfig/fconfig.c 2010-02-05 05:01:14.000000000 +0000
|
||||
+++ fconfig.mod/fconfig.c 2010-02-05 05:02:37.000000000 +0000
|
||||
@@ -103,7 +103,7 @@
|
||||
struct config_data *get_fconfig_handle(struct config_data *data,
|
||||
uint8_t *dev, int offset, mode_t mode)
|
||||
{
|
||||
- uint16_t count;
|
||||
+ uint32_t count;
|
||||
|
||||
if ((data->fd = open(dev, mode)) < 0) {
|
||||
MESSAGE(VERB_LOW, "Failed to open device or file %s!\n", dev);
|
||||
diff -uNr fconfig/ftypes.h fconfig.mod/ftypes.h
|
||||
--- fconfig/ftypes.h 2010-02-05 05:01:14.000000000 +0000
|
||||
+++ fconfig.mod/ftypes.h 2010-02-05 05:02:11.000000000 +0000
|
||||
@@ -32,7 +32,7 @@
|
||||
#define MAX_STRING_LENGTH 128
|
||||
|
||||
//CYGNUM_REDBOOT_FLASH_CONFIG_SIZE
|
||||
-#define MAX_CONFIG_DATA 4096
|
||||
+#define MAX_CONFIG_DATA 0x20000
|
||||
|
||||
/*
|
||||
* RedBoot flash configuration type description.
|
|
@ -1,10 +0,0 @@
|
|||
start()
|
||||
{
|
||||
mount -t debugfs debugfs /sys/kernel/debug &&
|
||||
|
||||
# UART1.
|
||||
echo 0 > /sys/kernel/debug/omap_mux/uart1_txd &&
|
||||
echo 20 > /sys/kernel/debug/omap_mux/uart1_rxd &&
|
||||
|
||||
umount /sys/kernel/debug
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
start()
|
||||
{
|
||||
/opt/lsts/dune/bin/dune-gsmux \
|
||||
/dev/ttyO1 \
|
||||
/opt/lsts/dune/log \
|
||||
< /dev/null \
|
||||
>> /opt/lsts/dune/log/gsmux.log 2>&1 &
|
||||
}
|
||||
|
||||
stop()
|
||||
{
|
||||
killall dune-gsmux
|
||||
}
|
|
@ -1,192 +0,0 @@
|
|||
#! /bin/sh
|
||||
#############################################################################
|
||||
# Copyright (C) 2012 Laboratório de Sistemas e Tecnologia Subaquática #
|
||||
# Departamento de Engenharia Electrotécnica e de Computadores #
|
||||
# Rua Dr. Roberto Frias, 4200-465 Porto, Portugal #
|
||||
#############################################################################
|
||||
# Author: Ricardo Martins #
|
||||
#############################################################################
|
||||
|
||||
GSM_USER='vodafone'
|
||||
GSM_PASS='vodafone'
|
||||
GSM_APN='internet.vodafone.pt'
|
||||
GSM_MODE='AT\^SYSCFG=2,2,3fffffff,0,1'
|
||||
GSM_PIN='AT'
|
||||
|
||||
FWL_EXT_ITF='ppp0'
|
||||
FWL_INT_ITF='eth0'
|
||||
|
||||
CHAT_SCRIPT=$(cat <<EOF
|
||||
ABORT 'BUSY' \
|
||||
ABORT 'NO CARRIER' \
|
||||
ABORT 'VOICE' \
|
||||
ABORT 'NO DIALTONE' \
|
||||
ABORT 'NO DIAL TONE' \
|
||||
ABORT 'NO ANSWER' \
|
||||
ABORT 'DELAYED' \
|
||||
REPORT CONNECT \
|
||||
TIMEOUT 6 \
|
||||
'' 'ATQ0' \
|
||||
'OK-AT-OK' 'ATZ' \
|
||||
TIMEOUT 3 \
|
||||
'OK' '$GSM_PIN' \
|
||||
'OK-AT-OK' 'ATI' \
|
||||
'OK' 'ATZ' \
|
||||
'OK' 'ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0' \
|
||||
'OK' '$GSM_MODE' \
|
||||
'OK-AT-OK' 'AT+CGDCONT=1,\"IP\",\"$GSM_APN\"' \
|
||||
'OK' 'ATDT*99***1#' \
|
||||
TIMEOUT 30 \
|
||||
CONNECT ''
|
||||
EOF
|
||||
)
|
||||
|
||||
modem_probe()
|
||||
{
|
||||
nr="$(cat /proc/tty/driver/usbserial | grep GSM | head -n 1 | cut -f1 -d:)"
|
||||
if [ -z "$nr" ]; then
|
||||
echo ""
|
||||
else
|
||||
echo "/dev/ttyUSB$nr"
|
||||
fi
|
||||
}
|
||||
|
||||
ppp_start()
|
||||
{
|
||||
modem="$(modem_probe)"
|
||||
|
||||
if [ -z "$modem" ]; then
|
||||
echo -e "\nERROR: failed to find GSM modem.\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
auth=''
|
||||
if [ -n "$GSM_USER" ] && [ -n "$GSM_PASS" ]; then
|
||||
auth="user \"$GSM_USER\" password \"$GSM_PASS\""
|
||||
fi
|
||||
|
||||
echo -e "\n* Removing default route"
|
||||
|
||||
/sbin/route del default dev eth0 > /dev/null 2>&1
|
||||
|
||||
echo -e "\n* Starting PPP"
|
||||
|
||||
/usr/sbin/pppd \
|
||||
"$modem" \
|
||||
921600 \
|
||||
$auth \
|
||||
lock \
|
||||
crtscts \
|
||||
modem \
|
||||
passive \
|
||||
novj \
|
||||
defaultroute \
|
||||
noipdefault \
|
||||
usepeerdns \
|
||||
noauth \
|
||||
hide-password \
|
||||
persist \
|
||||
holdoff 10 \
|
||||
maxfail 2 \
|
||||
updetach \
|
||||
connect "/usr/sbin/chat -E -v -t15 $CHAT_SCRIPT" > /var/run/ppp.log 2>&1
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo -e "\nERROR: PPP failed to establish a connection.\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ip=$(ifconfig ppp0 | grep inet | cut -f2 -d: | cut -f1 -d' ')
|
||||
echo " - External IP is $ip"
|
||||
}
|
||||
|
||||
ppp_stop()
|
||||
{
|
||||
pid="$(cat /var/run/ppp0.pid 2> /dev/null)"
|
||||
|
||||
echo -e "\n* Stopping PPP"
|
||||
|
||||
if [ -z "$pid" ]; then
|
||||
echo " - Daemon is not running"
|
||||
return 0
|
||||
fi
|
||||
|
||||
for n in 1 2 3 4 5; do
|
||||
if ! [ -d "/proc/$pid" ]; then
|
||||
echo " - Daemon stopped"
|
||||
return 0
|
||||
fi
|
||||
|
||||
echo " - Sending SIGTERM to '$pid' (try $n)"
|
||||
kill "$pid" > /dev/null 2>&1
|
||||
sleep 2
|
||||
done
|
||||
|
||||
kill -9 "$pid" > /dev/null 2>&1
|
||||
echo " - Daemon terminated"
|
||||
return 0
|
||||
}
|
||||
|
||||
nat_start()
|
||||
{
|
||||
echo -e "\n* Enabling NAT"
|
||||
|
||||
echo " - Enabling IP forwarding"
|
||||
echo '1' > /proc/sys/net/ipv4/ip_forward
|
||||
echo '1' > /proc/sys/net/ipv4/ip_dynaddr
|
||||
|
||||
echo " - Flushing rules"
|
||||
iptables -P INPUT ACCEPT
|
||||
iptables -F INPUT
|
||||
iptables -P OUTPUT ACCEPT
|
||||
iptables -F OUTPUT
|
||||
iptables -P FORWARD DROP
|
||||
iptables -F FORWARD
|
||||
iptables -t nat -F
|
||||
|
||||
echo " - Installing rules"
|
||||
iptables -A FORWARD -i "$FWL_EXT_ITF" -o "$FWL_INT_ITF" -m state --state ESTABLISHED,RELATED -j ACCEPT
|
||||
iptables -A FORWARD -i "$FWL_EXT_ITF" -o "$FWL_EXT_ITF" -j ACCEPT
|
||||
iptables -A FORWARD -i "$FWL_EXT_ITF" -o "$FWL_INT_ITF" -j ACCEPT
|
||||
iptables -A FORWARD -i "$FWL_INT_ITF" -o "$FWL_EXT_ITF" -j ACCEPT
|
||||
iptables -A FORWARD -j LOG
|
||||
iptables -t nat -A POSTROUTING -o "$FWL_EXT_ITF" -j MASQUERADE
|
||||
}
|
||||
|
||||
nat_stop()
|
||||
{
|
||||
echo -e "\n* Disabling NAT"
|
||||
|
||||
echo " - Disabling IP forwarding"
|
||||
echo '0' > /proc/sys/net/ipv4/ip_forward
|
||||
echo '0' > /proc/sys/net/ipv4/ip_dynaddr
|
||||
|
||||
echo " - Flushing NAT rules"
|
||||
iptables -P INPUT ACCEPT
|
||||
iptables -F INPUT
|
||||
iptables -P OUTPUT ACCEPT
|
||||
iptables -F OUTPUT
|
||||
iptables -P FORWARD DROP
|
||||
iptables -F FORWARD
|
||||
iptables -t nat -F
|
||||
}
|
||||
|
||||
start()
|
||||
{
|
||||
ppp_start && nat_start
|
||||
if [ $? -eq 0 ]; then
|
||||
echo -e "\n* Connection Established\n"
|
||||
else
|
||||
echo -e "\nERROR: failed to establish a connection\n"
|
||||
fi
|
||||
}
|
||||
|
||||
stop()
|
||||
{
|
||||
nat_stop && ppp_stop
|
||||
if [ $? -eq 0 ]; then
|
||||
echo -e "\n* Service stopped\n"
|
||||
else
|
||||
echo -e "\nERROR: failed to stop service.\n"
|
||||
fi
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
start()
|
||||
{
|
||||
/usr/bin/ldattach PPS "$cfg_pps_attach_dev"
|
||||
}
|
||||
|
||||
stop()
|
||||
{
|
||||
killall ldattach
|
||||
}
|
|
@ -1,168 +0,0 @@
|
|||
#! /bin/sh
|
||||
#############################################################################
|
||||
# Copyright (C) 2007-2009 Laboratório de Sistemas e Tecnologia Subaquática #
|
||||
# Departamento de Engenharia Electrotécnica e de Computadores #
|
||||
# Rua Dr. Roberto Frias, 4200-465 Porto, Portugal #
|
||||
#############################################################################
|
||||
# Author: Ricardo Martins #
|
||||
#############################################################################
|
||||
# $Id:: upgrade 1244 2012-10-08 07:21:07Z rasm $:#
|
||||
#############################################################################
|
||||
|
||||
base='/opt/lsts/glued'
|
||||
hostname="$(hostname)"
|
||||
flashcp='/usr/sbin/flashcp'
|
||||
scratch="$base/.glued"
|
||||
|
||||
clean()
|
||||
{
|
||||
if [ -d "$base"/.glued-new ]; then
|
||||
rm -rf "$base"/.glued-new
|
||||
fi
|
||||
|
||||
if [ -d "$base"/.glued-old ]; then
|
||||
rm -rf "$base"/.glued-old
|
||||
fi
|
||||
}
|
||||
|
||||
version()
|
||||
{
|
||||
file="$(ls -1 $base/glued-*-*-rootfs.tar.bz2 2> /dev/null | head -n 1)"
|
||||
|
||||
if [ -z "$file" ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Filter version.
|
||||
ver="$(echo $file | sed "s%$base/glued-%%")"
|
||||
ver="$(echo $ver | sed "s%-$hostname-bundle\.tar%%")"
|
||||
|
||||
export fw_version="$ver"
|
||||
export fw_file="$file"
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
new_unpack()
|
||||
{
|
||||
echo -n "* Unpacking new rootfs... "
|
||||
mkdir ${base}/.glued-new
|
||||
tar -C ${base}/.glued-new -x -f "$fw_file"; rv=$?
|
||||
if [ -d /etc/dropbear ]; then
|
||||
cp -a /etc/dropbear ${base}/.glued-new/etc
|
||||
fi
|
||||
|
||||
if [ $rv -eq 0 ]; then
|
||||
rm "$fw_file"
|
||||
echo "done"
|
||||
return 0
|
||||
fi
|
||||
|
||||
echo "failed"
|
||||
return 1
|
||||
}
|
||||
|
||||
kernel_dst()
|
||||
{
|
||||
echo -n "* Detecting kernel destination... "
|
||||
|
||||
# Kernel resides in the root filesystem.
|
||||
if [ -d /boot/extlinux ]; then
|
||||
echo "filesystem"
|
||||
return 0
|
||||
fi
|
||||
|
||||
if ! [ -f /proc/mtd ]; then
|
||||
echo "filesystem"
|
||||
return 0
|
||||
fi
|
||||
|
||||
grep 'uboot=ext2' /proc/cmdline > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "filesystem"
|
||||
return 0
|
||||
fi
|
||||
|
||||
export fw_kernel_mtd="$(grep \"kernel\" /proc/mtd | cut -f1 -d':')"
|
||||
if [ -z "$fw_kernel_mtd" ]; then
|
||||
export fw_kernel_mtd="$(grep \"Kernel\" /proc/mtd | cut -f1 -d':')"
|
||||
if [ -z "$fw_kernel_mtd" ]; then
|
||||
echo "failed to detect kernel's MTD partition"
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "mtd"
|
||||
return 0
|
||||
}
|
||||
|
||||
kernel_upgrade()
|
||||
{
|
||||
# Upgrade MTD
|
||||
if [ -n "$fw_kernel_mtd" ]; then
|
||||
echo -n "* Upgrading kernel... "
|
||||
"$flashcp" -v "$base/.glued-new/boot/kernel" /dev/"$fw_kernel_mtd" > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "failed"
|
||||
return 1
|
||||
fi
|
||||
echo "done"
|
||||
return 0
|
||||
fi
|
||||
}
|
||||
|
||||
old_move()
|
||||
{
|
||||
echo "* Mounting rootfs read-write..."
|
||||
mount -o remount,rw /
|
||||
|
||||
echo "* Unmounting pseudo filesystems..."
|
||||
umount /sys
|
||||
umount /dev/pts
|
||||
umount /dev/shm
|
||||
umount /proc
|
||||
|
||||
if [ -f /boot/extlinux/extlinux.sys ]; then
|
||||
/bin/chattr -i /boot/extlinux/extlinux.sys
|
||||
fi
|
||||
|
||||
echo "* Moving old rootfs..."
|
||||
mkdir $base/.glued-old &&
|
||||
mv /bin /boot /etc /init /lib /proc /root /sbin /sys /tmp /usr /var $base/.glued-old &&
|
||||
$base/.glued-old/bin/echo "* Moving new rootfs into place..." &&
|
||||
$base/.glued-old/bin/busybox cp -a $base/.glued-new/* / &&
|
||||
$base/.glued-old/bin/echo "* Mounting procfs..." &&
|
||||
$base/.glued-old/bin/busybox mount -t proc proc /proc &&
|
||||
if [ -d "/boot/extlinux" ]; then
|
||||
$base/.glued-old/usr/sbin/extlinux -i /boot/extlinux
|
||||
fi
|
||||
|
||||
$base/.glued-old/bin/echo "* Flushing filesystem cache... "
|
||||
$base/.glued-old/bin/busybox sync
|
||||
$base/.glued-old/bin/busybox sync
|
||||
$base/.glued-old/bin/busybox sync
|
||||
$base/.glued-old/bin/busybox sync
|
||||
$base/.glued-old/bin/busybox sync
|
||||
|
||||
$base/.glued-old/bin/echo "* Preparing reboot... "
|
||||
$base/.glued-old/bin/busybox mount -o remount,ro /opt
|
||||
$base/.glued-old/bin/busybox umount /proc
|
||||
$base/.glued-old/bin/busybox touch /.reboot
|
||||
$base/.glued-old/bin/busybox kill -SIGQUIT 1
|
||||
exit 0
|
||||
}
|
||||
|
||||
start()
|
||||
{
|
||||
clean
|
||||
version || return 1
|
||||
kernel_dst || return 1
|
||||
new_unpack || return 1
|
||||
kernel_upgrade || return 1
|
||||
old_move || return 1
|
||||
}
|
||||
|
||||
stop()
|
||||
{
|
||||
echo -n ""
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
ssh 22/tcp # The Secure Shell (SSH) Protocol
|
||||
ssh 22/udp # The Secure Shell (SSH) Protocol
|
||||
ntp 123/tcp # Network Time Protocol
|
||||
ntp 123/udp # Network Time Protocol
|
|
@ -1,11 +0,0 @@
|
|||
--- gcc-4.6.3/libjava/configure.host 2010-12-06 00:50:04.000000000 +0000
|
||||
+++ gcc-4.6.3.rasm/libjava/configure.host 2012-10-30 20:29:06.192935517 +0000
|
||||
@@ -115,7 +115,7 @@
|
||||
mips*-*)
|
||||
libgcj_interpreter=yes
|
||||
;;
|
||||
- i686-*|i586-*|i486-*|i386-*)
|
||||
+ i786-*|i686-*|i586-*|i486-*|i386-*)
|
||||
sysdeps_dir=i386
|
||||
# With -fomit-frame-pointer -maccumulate-outgoing-args (implied),
|
||||
# the .text section of libgcj.so is 30k larger, and the .eh_frame
|
|
@ -1,14 +0,0 @@
|
|||
diff -Nru gcc-4.6.3/gcc/config/i386/t-linux64 gcc-4.6.3.rasm/gcc/config/i386/t-linux64
|
||||
--- gcc-4.6.3/gcc/config/i386/t-linux64 2009-04-21 20:03:23.000000000 +0100
|
||||
+++ gcc-4.6.3.rasm/gcc/config/i386/t-linux64 2012-12-11 19:01:42.549964639 +0000
|
||||
@@ -24,8 +24,8 @@
|
||||
# MULTILIB_OSDIRNAMES according to what is found on the target.
|
||||
|
||||
MULTILIB_OPTIONS = m64/m32
|
||||
-MULTILIB_DIRNAMES = 64 32
|
||||
-MULTILIB_OSDIRNAMES = ../lib64 $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)
|
||||
+MULTILIB_DIRNAMES = 64 32
|
||||
+MULTILIB_OSDIRNAMES = ../lib $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)
|
||||
|
||||
LIBGCC = stmp-multilib
|
||||
INSTALL_LIBGCC = install-multilib
|
|
@ -1,14 +0,0 @@
|
|||
version=\
|
||||
(
|
||||
'7.5.1'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://ftp.gnu.org/gnu/gdb/gdb-$version.tar.bz2"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'3f48f468b24447cf24820054ff6e85b1'
|
||||
)
|
|
@ -1,57 +0,0 @@
|
|||
version=\
|
||||
(
|
||||
"4.6.1"
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"ftp://ftp.dante.de/pub/tex/graphics/gnuplot/${version}/gnuplot-${version}.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
"4c9a06461f402482c30cf94e267eb877"
|
||||
)
|
||||
|
||||
configure()
|
||||
{
|
||||
./configure \
|
||||
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
|
||||
--target="$cfg_target_canonical" \
|
||||
--host="$cfg_target_canonical" \
|
||||
--build="$cfg_host_canonical" \
|
||||
--disable-history-file \
|
||||
--without-x \
|
||||
--disable-raise-console \
|
||||
--disable-mouse \
|
||||
--without-tutorial \
|
||||
--without-demo \
|
||||
--disable-demo \
|
||||
--without-row-help \
|
||||
--disable-history-file \
|
||||
--without-lisp-files \
|
||||
--disable-wxwidgets \
|
||||
--without-lua \
|
||||
--without-latex \
|
||||
--without-cairo
|
||||
|
||||
sed -i "s#demo ##g" Makefile
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
$cmd_make install
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
$cmd_target_strip -v "$cfg_dir_toolchain_sysroot/usr/bin/gnuplot" -o "$cfg_dir_rootfs/usr/bin/gnuplot"
|
||||
$cmd_cp "$cfg_dir_toolchain_sysroot/usr/share/gnuplot" "$cfg_dir_rootfs/usr/share"
|
||||
}
|
||||
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
version=\
|
||||
(
|
||||
"2.95"
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://download.berlios.de/gpsd/gpsd-$version.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
"12535a9ed9fecf9ea2c5bdc9840da5ae"
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
"Ricardo Martins <rasm@fe.up.pt>"
|
||||
)
|
||||
|
||||
configure()
|
||||
{
|
||||
../gpsd-$version/configure \
|
||||
--prefix="$cfg_dir_rootfs/usr" \
|
||||
--target=$cfg_target_canonical \
|
||||
--host=$cfg_target_canonical \
|
||||
--build=$cfg_host_canonical \
|
||||
--disable-dbus \
|
||||
--disable-libQgpsmm
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
$cmd_target_strip .libs/gpsd -o $cfg_dir_rootfs/usr/bin/gpsd &&
|
||||
for l in .libs/libgps*so*; do
|
||||
$cmd_target_strip "$l" -o $cfg_dir_rootfs/usr/lib/"$(basename $l)"
|
||||
done
|
||||
|
||||
cp "$cfg_package_spec_dir"/services/gpsd "$cfg_dir_rootfs/etc/rc.d"
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
# Configuration Parameters
|
||||
# cfg_gpsd_dev: serial port device.
|
||||
# cfg_gpsd_baud: serial port baud rate.
|
||||
|
||||
start()
|
||||
{
|
||||
stty -F "$cfg_gpsd_dev" "$cfg_gpsd_baud"
|
||||
gpsd -n "$cfg_gpsd_dev"
|
||||
}
|
||||
|
||||
stop()
|
||||
{
|
||||
killall gpsd
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
version=\
|
||||
(
|
||||
'3.0.2'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://dl.lm-sensors.org/i2c-tools/releases/i2c-tools-$version.tar.bz2"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'b546345ac19db56719dea6b8199f11e0'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Ricardo Martins <rasm@fe.up.pt>'
|
||||
)
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make CC="$cmd_target_cc"
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
$cmd_target_strip tools/i2cdetect -o "$cfg_dir_rootfs/usr/bin/i2cdetect" &&
|
||||
$cmd_target_strip tools/i2cget -o "$cfg_dir_rootfs/usr/bin/i2cget" &&
|
||||
$cmd_target_strip tools/i2cset -o "$cfg_dir_rootfs/usr/bin/i2cset"
|
||||
}
|
|
@ -1,36 +0,0 @@
|
|||
version=\
|
||||
(
|
||||
'9'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/kmod-$version.tar.bz2"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'29bd0fec976c1664a4abc83f1c7e57ed'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Ricardo Martins <rasm@fe.up.pt>'
|
||||
)
|
||||
|
||||
configure()
|
||||
{
|
||||
./configure \
|
||||
--prefix="$cfg_dir_toolchain"
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
$cmd_make install &&
|
||||
ln -fs kmod "$cfg_dir_toolchain/sbin/depmod"
|
||||
}
|
|
@ -1,180 +0,0 @@
|
|||
Debian-specific modifications to the upstream Makefile.in to
|
||||
build a shared library.
|
||||
|
||||
---
|
||||
Makefile.in | 49 +++++++++++++++++++++++++++++++++++++++++--------
|
||||
aclocal.m4 | 4 ++--
|
||||
configure | 4 ++--
|
||||
3 files changed, 45 insertions(+), 12 deletions(-)
|
||||
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -40,6 +40,14 @@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
+# some defines for shared library compilation
|
||||
+MAJ=1.0
|
||||
+LIBVERSION=1
|
||||
+LIBNAME=pcap
|
||||
+LIBRARY=lib$(LIBNAME).a
|
||||
+SOLIBRARY=lib$(LIBNAME).so
|
||||
+SHAREDLIB=$(SOLIBRARY).$(LIBVERSION)
|
||||
+
|
||||
#
|
||||
# You shouldn't need to edit anything below.
|
||||
#
|
||||
@@ -59,6 +67,7 @@
|
||||
|
||||
# Standard CFLAGS
|
||||
CFLAGS = $(CCOPT) $(INCLS) $(DEFS)
|
||||
+CFLAGS_SHARED = -shared -Wl,-soname,$(SOLIBRARY).$(MAJ)
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
@@ -78,7 +87,11 @@
|
||||
# problem if you don't own the file but can write to the directory.
|
||||
.c.o:
|
||||
@rm -f $@
|
||||
- $(CC) $(CFLAGS) -c $(srcdir)/$*.c
|
||||
+ $(CC) $(CFLAGS) -c -o $@ $(srcdir)/$*.c
|
||||
+
|
||||
+%_pic.o: %.c
|
||||
+ @rm -f $@
|
||||
+ $(CC) -fPIC $(CFLAGS) -c -o $@ $(srcdir)/$*.c
|
||||
|
||||
PSRC = pcap-@V_PCAP@.c @USB_SRC@ @BT_SRC@ @CAN_SRC@
|
||||
FSRC = fad-@V_FINDALLDEVS@.c
|
||||
@@ -94,6 +107,7 @@
|
||||
# We would like to say "OBJ = $(SRC:.c=.o)" but Ultrix's make cannot
|
||||
# hack the extra indirection
|
||||
OBJ = $(PSRC:.c=.o) $(FSRC:.c=.o) $(CSRC:.c=.o) $(SSRC:.c=.o) $(GENSRC:.c=.o) $(LIBOBJS)
|
||||
+OBJ_PIC = $(PSRC:.c=_pic.o) $(FSRC:.c=_pic.o) $(CSRC:.c=_pic.o) $(SSRC:.c=_pic.o) $(GENSRC:.c=_pic.o)
|
||||
PUBHDR = \
|
||||
pcap.h \
|
||||
pcap-bpf.h \
|
||||
@@ -131,7 +145,7 @@
|
||||
|
||||
CLEANFILES = $(OBJ) libpcap.* filtertest findalldevstest selpolltest \
|
||||
opentest $(PROG)-`cat $(srcdir)/VERSION`.tar.gz $(GENSRC) $(GENHDR) \
|
||||
- lex.yy.c pcap-config
|
||||
+ lex.yy.c pcap-config $(OBJ_PIC)
|
||||
|
||||
MAN1 = pcap-config.1
|
||||
|
||||
@@ -331,7 +345,7 @@
|
||||
ar rc $@ $(OBJ) $(ADDLARCHIVEOBJS)
|
||||
$(RANLIB) $@
|
||||
|
||||
-shared: libpcap.$(DYEXT)
|
||||
+shared: $(SHAREDLIB)
|
||||
|
||||
libpcap.so: $(OBJ)
|
||||
@rm -f $@
|
||||
@@ -409,6 +423,13 @@
|
||||
#
|
||||
libpcap.none:
|
||||
|
||||
+$(SHAREDLIB): $(OBJ_PIC)
|
||||
+ -@rm -f $@
|
||||
+ -@rm -f $(SOLIBRARY) $(SOLIBRARY).$(MAJ)
|
||||
+ $(CC) $(CFLAGS_SHARED) -o $(SHAREDLIB) $(OBJ_PIC) -lc
|
||||
+ ln -s $(SHAREDLIB) $(SOLIBRARY).$(MAJ)
|
||||
+ ln -s $(SOLIBRARY).$(MAJ) $(SOLIBRARY)
|
||||
+
|
||||
scanner.c: $(srcdir)/scanner.l
|
||||
@rm -f $@
|
||||
$(srcdir)/runlex.sh $(LEX) -o$@ $<
|
||||
@@ -416,6 +437,9 @@
|
||||
scanner.o: scanner.c tokdefs.h
|
||||
$(CC) $(CFLAGS) -c scanner.c
|
||||
|
||||
+scanner_pic.o: scanner.c tokdefs.h
|
||||
+ $(CC) -fPIC $(CFLAGS) -o $@ -c scanner.c
|
||||
+
|
||||
pcap.o: version.h
|
||||
|
||||
tokdefs.h: grammar.c
|
||||
@@ -429,9 +453,17 @@
|
||||
@rm -f $@
|
||||
$(CC) $(CFLAGS) -Dyylval=pcap_lval -c grammar.c
|
||||
|
||||
+grammar_pic.o: grammar.c
|
||||
+ @rm -f $@
|
||||
+ $(CC) -fPIC $(CFLAGS) -Dyylval=pcap_lval -o $@ -c grammar.c
|
||||
+
|
||||
version.o: version.c
|
||||
$(CC) $(CFLAGS) -c version.c
|
||||
|
||||
+version_pic.o: version.c
|
||||
+ $(CC) -fPIC $(CFLAGS) -c version.c -o $@
|
||||
+
|
||||
+
|
||||
snprintf.o: $(srcdir)/missing/snprintf.c
|
||||
$(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/snprintf.c
|
||||
|
||||
@@ -469,6 +501,9 @@
|
||||
bpf_filter.o: bpf_filter.c
|
||||
$(CC) $(CFLAGS) -c bpf_filter.c
|
||||
|
||||
+bpf_filter_pic.o: bpf_filter.c
|
||||
+ $(CC) -fPIC $(CFLAGS) -c bpf_filter.c -o $@
|
||||
+
|
||||
#
|
||||
# Generate the pcap-config script.
|
||||
#
|
||||
@@ -565,11 +600,9 @@
|
||||
install-shared-so: libpcap.so
|
||||
[ -d $(DESTDIR)$(libdir) ] || \
|
||||
(mkdir -p $(DESTDIR)$(libdir); chmod 755 $(DESTDIR)$(libdir))
|
||||
- VER=`cat $(srcdir)/VERSION`; \
|
||||
- MAJOR_VER=`sed 's/\([0-9][0-9]*\)\..*/\1/' $(srcdir)/VERSION`; \
|
||||
- $(INSTALL_PROGRAM) libpcap.so.$$VER $(DESTDIR)$(libdir)/libpcap.so.$$VER; \
|
||||
- ln -sf libpcap.so.$$VER $(DESTDIR)$(libdir)/libpcap.so.$$MAJOR_VER; \
|
||||
- ln -sf libpcap.so.$$MAJOR_VER $(DESTDIR)$(libdir)/libpcap.so
|
||||
+ $(INSTALL_DATA) $(SHAREDLIB) $(DESTDIR)$(libdir)/
|
||||
+ ln -sf $(SHAREDLIB) $(DESTDIR)$(libdir)/$(SOLIBRARY).$(MAJ)
|
||||
+ ln -sf $(SOLIBRARY).$(MAJ) $(DESTDIR)$(libdir)/$(SOLIBRARY)
|
||||
install-shared-dylib: libpcap.dylib
|
||||
[ -d $(DESTDIR)$(libdir) ] || \
|
||||
(mkdir -p $(DESTDIR)$(libdir); chmod 755 $(DESTDIR)$(libdir))
|
||||
--- a/aclocal.m4
|
||||
+++ b/aclocal.m4
|
||||
@@ -245,7 +245,7 @@
|
||||
# or accepts command-line arguments like
|
||||
# those the GNU linker accepts.
|
||||
#
|
||||
- V_CCOPT="$V_CCOPT -fpic"
|
||||
+ V_CCOPT="$V_CCOPT"
|
||||
V_SONAME_OPT="-Wl,-soname,"
|
||||
V_RPATH_OPT="-Wl,-rpath,"
|
||||
;;
|
||||
@@ -308,7 +308,7 @@
|
||||
#
|
||||
# "cc" is GCC.
|
||||
#
|
||||
- V_CCOPT="$V_CCOPT -fpic"
|
||||
+ V_CCOPT="$V_CCOPT"
|
||||
V_SHLIB_CMD="\$(CC)"
|
||||
V_SHLIB_OPT="-shared"
|
||||
V_SONAME_OPT="-Wl,-soname,"
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -3229,7 +3229,7 @@
|
||||
# or accepts command-line arguments like
|
||||
# those the GNU linker accepts.
|
||||
#
|
||||
- V_CCOPT="$V_CCOPT -fpic"
|
||||
+ V_CCOPT="$V_CCOPT"
|
||||
V_SONAME_OPT="-Wl,-soname,"
|
||||
V_RPATH_OPT="-Wl,-rpath,"
|
||||
;;
|
||||
@@ -3292,7 +3292,7 @@
|
||||
#
|
||||
# "cc" is GCC.
|
||||
#
|
||||
- V_CCOPT="$V_CCOPT -fpic"
|
||||
+ V_CCOPT="$V_CCOPT"
|
||||
V_SHLIB_CMD="\$(CC)"
|
||||
V_SHLIB_OPT="-shared"
|
||||
V_SONAME_OPT="-Wl,-soname,"
|
|
@ -1,103 +0,0 @@
|
|||
Use a linker script.
|
||||
---
|
||||
Makefile.in | 2 -
|
||||
libpcap.lds | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
2 files changed, 84 insertions(+), 1 deletion(-)
|
||||
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
# Standard CFLAGS
|
||||
CFLAGS = $(CCOPT) $(INCLS) $(DEFS)
|
||||
-CFLAGS_SHARED = -shared -Wl,-soname,$(SOLIBRARY).$(MAJ)
|
||||
+CFLAGS_SHARED = -shared -Wl,-soname,$(SOLIBRARY).$(MAJ) -Wl,--version-script=libpcap.lds
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
--- /dev/null
|
||||
+++ b/libpcap.lds
|
||||
@@ -0,0 +1,83 @@
|
||||
+{
|
||||
+ global:
|
||||
+ bpf_dump;
|
||||
+ bpf_filter;
|
||||
+ bpf_image;
|
||||
+ bpf_validate;
|
||||
+ eproto_db;
|
||||
+ pcap_breakloop;
|
||||
+ pcap_can_set_rfmon;
|
||||
+ pcap_close;
|
||||
+ pcap_compile;
|
||||
+ pcap_compile_nopcap;
|
||||
+ pcap_datalink;
|
||||
+ pcap_datalink_name_to_val;
|
||||
+ pcap_datalink_val_to_description;
|
||||
+ pcap_datalink_val_to_name;
|
||||
+ pcap_dispatch;
|
||||
+ pcap_dump;
|
||||
+ pcap_dump_close;
|
||||
+ pcap_dump_file;
|
||||
+ pcap_dump_flush;
|
||||
+ pcap_dump_fopen;
|
||||
+ pcap_dump_ftell;
|
||||
+ pcap_dump_open;
|
||||
+ pcap_ether_aton;
|
||||
+ pcap_ether_hostton;
|
||||
+ pcap_file;
|
||||
+ pcap_fileno;
|
||||
+ pcap_findalldevs;
|
||||
+ pcap_fopen_offline;
|
||||
+ pcap_freealldevs;
|
||||
+ pcap_freecode;
|
||||
+ pcap_get_selectable_fd;
|
||||
+ pcap_geterr;
|
||||
+ pcap_getnonblock;
|
||||
+ pcap_inject;
|
||||
+ pcap_is_swapped;
|
||||
+ pcap_lib_version;
|
||||
+ pcap_list_datalinks;
|
||||
+ pcap_lookupdev;
|
||||
+ pcap_lookupnet;
|
||||
+ pcap_loop;
|
||||
+ pcap_major_version;
|
||||
+ pcap_minor_version;
|
||||
+ pcap_nametoaddr;
|
||||
+ pcap_nametoaddrinfo;
|
||||
+ pcap_nametoeproto;
|
||||
+ pcap_nametollc;
|
||||
+ pcap_nametonetaddr;
|
||||
+ pcap_nametoport;
|
||||
+ pcap_nametoportrange;
|
||||
+ pcap_nametoproto;
|
||||
+ pcap_next;
|
||||
+ pcap_next_etherent;
|
||||
+ pcap_next_ex;
|
||||
+ pcap_open_dead;
|
||||
+ pcap_open_live;
|
||||
+ pcap_open_offline;
|
||||
+ pcap_perror;
|
||||
+ pcap_sendpacket;
|
||||
+ pcap_set_datalink;
|
||||
+ pcap_setdirection;
|
||||
+ pcap_setfilter;
|
||||
+ pcap_setnonblock;
|
||||
+ pcap_snapshot;
|
||||
+ pcap_stats;
|
||||
+ pcap_statustostr;
|
||||
+ pcap_strerror;
|
||||
+ pcap_version;
|
||||
+ /* introduced in pcap 1.0 */
|
||||
+ pcap_activate;
|
||||
+ pcap_create;
|
||||
+ pcap_datalink_ext;
|
||||
+ pcap_free_datalinks;
|
||||
+ pcap_offline_filter;
|
||||
+ pcap_set_buffer_size;
|
||||
+ pcap_set_promisc;
|
||||
+ pcap_set_rfmon;
|
||||
+ pcap_set_snaplen;
|
||||
+ pcap_set_timeout;
|
||||
+ local:
|
||||
+ *;
|
||||
+};
|
|
@ -1,17 +0,0 @@
|
|||
Misc. fixes to the upstream man page.
|
||||
|
||||
---
|
||||
pcap.3pcap.in | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- a/pcap.3pcap.in
|
||||
+++ b/pcap.3pcap.in
|
||||
@@ -363,7 +363,7 @@
|
||||
script or some other configuration script to check whether the libpcap
|
||||
1.0 APIs are available and use them only if they are.
|
||||
.SH SEE ALSO
|
||||
-autoconf(1), tcpdump(1), tcpslice(1), pcap-filter(@MAN_MISC_INFO@), pfconfig(8),
|
||||
+autoconf(1), tcpdump(8), tcpslice(1), pcap-filter(@MAN_MISC_INFO@), pfconfig(8),
|
||||
usermod(1M)
|
||||
.SH AUTHORS
|
||||
The original authors of libpcap are:
|
|
@ -1,16 +0,0 @@
|
|||
Fix USB bus path; /proc/bus/usb is deprecated.
|
||||
---
|
||||
pcap-usb-linux.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- a/pcap-usb-linux.c
|
||||
+++ b/pcap-usb-linux.c
|
||||
@@ -68,7 +68,7 @@
|
||||
#define USB_TEXT_DIR_OLD "/sys/kernel/debug/usbmon"
|
||||
#define USB_TEXT_DIR "/sys/kernel/debug/usb/usbmon"
|
||||
#define SYS_USB_BUS_DIR "/sys/bus/usb/devices"
|
||||
-#define PROC_USB_BUS_DIR "/proc/bus/usb"
|
||||
+#define PROC_USB_BUS_DIR "/dev/bus/usb"
|
||||
#define USB_LINE_LEN 4096
|
||||
|
||||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
|
@ -1,147 +0,0 @@
|
|||
Support for GNU/kFreeBSD, by Aurelien Jarno and others.
|
||||
---
|
||||
configure | 62 ++---------------------------------------------------------
|
||||
configure.in | 19 ++----------------
|
||||
2 files changed, 6 insertions(+), 75 deletions(-)
|
||||
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -104,6 +104,7 @@
|
||||
dnl
|
||||
AC_CHECK_HEADERS(sys/ioccom.h sys/sockio.h limits.h paths.h)
|
||||
AC_CHECK_HEADERS(net/pfvar.h, , , [#include <sys/types.h>
|
||||
+#include <net/if_pflog.h>
|
||||
#include <sys/socket.h>
|
||||
#include <net/if.h>])
|
||||
if test "$ac_cv_header_net_pfvar_h" = yes; then
|
||||
@@ -304,7 +305,7 @@
|
||||
#
|
||||
V_PCAP=bpf
|
||||
AC_DEFINE(HAVE_CLONING_BPF,1,[define if you have a cloning BPF device])
|
||||
-elif test -r /dev/bpf0 ; then
|
||||
+elif test -r /dev/bpf0 || test -r /usr/include/net/bpf.h ; then
|
||||
V_PCAP=bpf
|
||||
elif test -r /usr/include/net/pfilt.h ; then
|
||||
V_PCAP=pf
|
||||
@@ -464,20 +465,6 @@
|
||||
#
|
||||
AC_CHECK_HEADERS(net/if_media.h)
|
||||
|
||||
- AC_MSG_CHECKING(whether the system supports zerocopy BPF)
|
||||
- AC_TRY_COMPILE(
|
||||
- [#include <sys/socket.h>
|
||||
- #include <sys/ioctl.h>
|
||||
- #include <net/if.h>
|
||||
- #include <net/bpf.h>],
|
||||
- [return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);],
|
||||
- [
|
||||
- AC_MSG_RESULT(yes)
|
||||
- AC_DEFINE(HAVE_ZEROCOPY_BPF, 1,
|
||||
- [define if the system supports zerocopy BPF])
|
||||
- ],
|
||||
- AC_MSG_RESULT(no))
|
||||
-
|
||||
#
|
||||
# Check whether we have struct BPF_TIMEVAL.
|
||||
#
|
||||
@@ -1234,7 +1221,7 @@
|
||||
MAN_MISC_INFO=5
|
||||
;;
|
||||
|
||||
-linux*|freebsd*|netbsd*|openbsd*|dragonfly*)
|
||||
+linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*)
|
||||
DYEXT="so"
|
||||
|
||||
#
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -5440,6 +5440,7 @@
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
#include <sys/types.h>
|
||||
+#include <net/if_pflog.h>
|
||||
#include <sys/socket.h>
|
||||
#include <net/if.h>
|
||||
|
||||
@@ -6923,7 +6924,7 @@
|
||||
#define HAVE_CLONING_BPF 1
|
||||
_ACEOF
|
||||
|
||||
-elif test -r /dev/bpf0 ; then
|
||||
+elif test -r /dev/bpf0 || test -r /usr/include/net/bpf.h ; then
|
||||
V_PCAP=bpf
|
||||
elif test -r /usr/include/net/pfilt.h ; then
|
||||
V_PCAP=pf
|
||||
@@ -7665,63 +7666,6 @@
|
||||
|
||||
done
|
||||
|
||||
-
|
||||
- { echo "$as_me:$LINENO: checking whether the system supports zerocopy BPF" >&5
|
||||
-echo $ECHO_N "checking whether the system supports zerocopy BPF... $ECHO_C" >&6; }
|
||||
- cat >conftest.$ac_ext <<_ACEOF
|
||||
-/* confdefs.h. */
|
||||
-_ACEOF
|
||||
-cat confdefs.h >>conftest.$ac_ext
|
||||
-cat >>conftest.$ac_ext <<_ACEOF
|
||||
-/* end confdefs.h. */
|
||||
-#include <sys/socket.h>
|
||||
- #include <sys/ioctl.h>
|
||||
- #include <net/if.h>
|
||||
- #include <net/bpf.h>
|
||||
-int
|
||||
-main ()
|
||||
-{
|
||||
-return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
|
||||
- ;
|
||||
- return 0;
|
||||
-}
|
||||
-_ACEOF
|
||||
-rm -f conftest.$ac_objext
|
||||
-if { (ac_try="$ac_compile"
|
||||
-case "(($ac_try" in
|
||||
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||
- *) ac_try_echo=$ac_try;;
|
||||
-esac
|
||||
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
||||
- (eval "$ac_compile") 2>conftest.er1
|
||||
- ac_status=$?
|
||||
- grep -v '^ *+' conftest.er1 >conftest.err
|
||||
- rm -f conftest.er1
|
||||
- cat conftest.err >&5
|
||||
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
- (exit $ac_status); } && {
|
||||
- test -z "$ac_c_werror_flag" ||
|
||||
- test ! -s conftest.err
|
||||
- } && test -s conftest.$ac_objext; then
|
||||
-
|
||||
- { echo "$as_me:$LINENO: result: yes" >&5
|
||||
-echo "${ECHO_T}yes" >&6; }
|
||||
-
|
||||
-cat >>confdefs.h <<\_ACEOF
|
||||
-#define HAVE_ZEROCOPY_BPF 1
|
||||
-_ACEOF
|
||||
-
|
||||
-
|
||||
-else
|
||||
- echo "$as_me: failed program was:" >&5
|
||||
-sed 's/^/| /' conftest.$ac_ext >&5
|
||||
-
|
||||
- { echo "$as_me:$LINENO: result: no" >&5
|
||||
-echo "${ECHO_T}no" >&6; }
|
||||
-fi
|
||||
-
|
||||
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
-
|
||||
#
|
||||
# Check whether we have struct BPF_TIMEVAL.
|
||||
#
|
||||
@@ -9607,7 +9551,7 @@
|
||||
MAN_MISC_INFO=5
|
||||
;;
|
||||
|
||||
-linux*|freebsd*|netbsd*|openbsd*|dragonfly*)
|
||||
+linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*)
|
||||
DYEXT="so"
|
||||
|
||||
#
|
|
@ -1,18 +0,0 @@
|
|||
diff -Nru libusb-compat-0.1.4/libusb/core.c libusb-compat-0.1.4.rasm/libusb/core.c
|
||||
--- libusb-compat-0.1.4/libusb/core.c 2012-04-24 06:37:34.000000000 +0100
|
||||
+++ libusb-compat-0.1.4.rasm/libusb/core.c 2012-08-07 01:45:40.251527822 +0100
|
||||
@@ -32,12 +32,14 @@
|
||||
static libusb_context *ctx = NULL;
|
||||
static int usb_debug = 0;
|
||||
|
||||
+#if 0
|
||||
enum usbi_log_level {
|
||||
LOG_LEVEL_DEBUG,
|
||||
LOG_LEVEL_INFO,
|
||||
LOG_LEVEL_WARNING,
|
||||
LOG_LEVEL_ERROR,
|
||||
};
|
||||
+#endif
|
||||
|
||||
#ifdef ENABLE_LOGGING
|
||||
#define _usbi_log(level, fmt...) usbi_log(level, __FUNCTION__, fmt)
|
|
@ -1,27 +0,0 @@
|
|||
source "$PKG_COMMON"
|
||||
|
||||
version=\
|
||||
(
|
||||
'3.2.0-psp04.06.00.10'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://www.lsts.pt/glued/linux-$version.tar.bz2"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'e2f71c151b44df5552b04c73b14d2c98'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Ricardo Martins <rasm@fe.up.pt>'
|
||||
)
|
||||
|
||||
requires=\
|
||||
(
|
||||
'u-boot'
|
||||
'kmod/host'
|
||||
)
|
|
@ -1,92 +0,0 @@
|
|||
post_unpack()
|
||||
{
|
||||
patches=$(ls "$cfg_package_spec_dir/patches-$version/"*.patch\
|
||||
"$cfg_dir_system/patches/linux/patches-${version}/"*.patch 2>/dev/null)
|
||||
if [ -n "$patches" ]; then
|
||||
cat $patches | patch -p1
|
||||
fi
|
||||
}
|
||||
|
||||
refresh()
|
||||
{
|
||||
for rule in configure build target_install; do
|
||||
if [ "$cfg_dir_system/cfg/linux-${version}.cfg" -nt "$cfg_dir_builds/linux/$PKG_VAR/.$rule" ]; then
|
||||
rm "$cfg_dir_builds/linux/$PKG_VAR/.$rule"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
configure()
|
||||
{
|
||||
$cmd_make \
|
||||
ARCH=${cfg_target_linux} \
|
||||
mrproper &&
|
||||
cp "$cfg_dir_system/cfg/linux-${version}.cfg" .config &&
|
||||
yes '' | $cmd_make \
|
||||
CROSS_COMPILE=${cfg_target_canonical}- \
|
||||
ARCH=${cfg_target_linux} \
|
||||
oldconfig
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
if [ -n "$cfg_target_linux_load_addr" ]; then
|
||||
export LOADADDR="$cfg_target_linux_load_addr"
|
||||
fi
|
||||
|
||||
$cmd_make \
|
||||
CROSS_COMPILE=$cfg_target_canonical- \
|
||||
ARCH=$cfg_target_linux &&
|
||||
$cmd_make \
|
||||
CROSS_COMPILE=$cfg_target_canonical- \
|
||||
ARCH=$cfg_target_linux \
|
||||
modules &&
|
||||
|
||||
if [ "$(basename $cfg_target_linux_kernel)" = 'uImage' ]; then
|
||||
$cmd_make \
|
||||
CROSS_COMPILE=$cfg_target_canonical- \
|
||||
ARCH=$cfg_target_linux \
|
||||
uImage
|
||||
fi
|
||||
|
||||
if [ -n "${cfg_target_linux_size}" ]; then
|
||||
dd if="$cfg_target_linux_kernel" of="${cfg_target_linux_kernel}.padded" \
|
||||
ibs="${cfg_target_linux_size}" conv=sync &&
|
||||
mv "${cfg_target_linux_kernel}.padded" "${cfg_target_linux_kernel}"
|
||||
fi
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
kernel="$cfg_dir_base/${cfg_sys_family}/glued-${cfg_glued_version}-${cfg_sys_family}-kernel.bin"
|
||||
|
||||
if [ -n "$(file "$cfg_target_linux_kernel" | grep ELF)" ]; then
|
||||
strip="$(echo $cfg_dir_toolchain/bin/*-strip)"
|
||||
$strip -s -R .comment "$cfg_target_linux_kernel"
|
||||
fi
|
||||
|
||||
case "$cfg_target_linux_kernel_compress" in
|
||||
gzip)
|
||||
gzip "$cfg_target_linux_kernel" -c > "$kernel"
|
||||
;;
|
||||
*)
|
||||
cp -v "$cfg_target_linux_kernel" "$kernel"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -z "$cfg_target_linux_kernel_standalone" ]; then
|
||||
cp "$kernel" $cfg_dir_rootfs/boot/kernel
|
||||
fi
|
||||
|
||||
$cmd_make \
|
||||
CROSS_COMPILE="$cfg_target_canonical-" \
|
||||
ARCH="$cfg_target_linux" \
|
||||
INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \
|
||||
modules_install
|
||||
|
||||
$cmd_make \
|
||||
CROSS_COMPILE="$cfg_target_canonical-" \
|
||||
ARCH="$cfg_target_linux" \
|
||||
INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \
|
||||
firmware_install
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
source "$PKG_COMMON"
|
||||
|
||||
version=\
|
||||
(
|
||||
'3.5.4'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://www.kernel.org/pub/linux/kernel/v3.0/linux-$version.tar.bz2"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'95d5c7271ad448bc965bdb29339b6923'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Ricardo Martins <rasm@fe.up.pt>'
|
||||
)
|
||||
|
||||
requires=\
|
||||
(
|
||||
'kmod/host'
|
||||
)
|
|
@ -1,27 +0,0 @@
|
|||
source "$PKG_COMMON"
|
||||
|
||||
version=\
|
||||
(
|
||||
'3.5.4'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://www.kernel.org/pub/linux/kernel/v3.0/linux-$version.tar.bz2"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'95d5c7271ad448bc965bdb29339b6923'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Ricardo Martins <rasm@fe.up.pt>'
|
||||
)
|
||||
|
||||
requires=\
|
||||
(
|
||||
'u-boot'
|
||||
'kmod/host'
|
||||
)
|
|
@ -1,12 +0,0 @@
|
|||
--- linux-3.2.0-psp04.06.00.10/arch/arm/mach-omap2/board-am335xevm.c 2013-04-05 05:43:27.000000000 +0100
|
||||
+++ linux-3.2.0-psp04.06.00.10.rasm/arch/arm/mach-omap2/board-am335xevm.c 2013-05-29 17:34:03.003915746 +0100
|
||||
@@ -2362,6 +2362,9 @@
|
||||
setup_beaglebone_old();
|
||||
else
|
||||
setup_beaglebone();
|
||||
+ } else if (!strncmp("A335BNLT", config.name, 8)) {
|
||||
+ daughter_brd_detected = false;
|
||||
+ setup_beaglebone();
|
||||
} else if (!strncmp("A335X_SK", config.name, 8)) {
|
||||
daughter_brd_detected = false;
|
||||
setup_starterkit();
|
|
@ -1,12 +0,0 @@
|
|||
diff -Nru a/scripts/depmod.sh b/scripts/depmod.sh
|
||||
--- a/scripts/depmod.sh 2012-07-21 21:58:29.000000000 +0100
|
||||
+++ b/scripts/depmod.sh 2012-08-07 00:31:44.400656765 +0100
|
||||
@@ -14,7 +14,7 @@
|
||||
fi
|
||||
# older versions of depmod require the version string to start with three
|
||||
# numbers, so we cheat with a symlink here
|
||||
-depmod_hack_needed=true
|
||||
+depmod_hack_needed=false
|
||||
tmp_dir=$(mktemp -d ${TMPDIR:-/tmp}/depmod.XXXXXX)
|
||||
mkdir -p "$tmp_dir/lib/modules/$KERNELRELEASE"
|
||||
if "$DEPMOD" -b "$tmp_dir" $KERNELRELEASE 2>/dev/null; then
|
|
@ -1,47 +0,0 @@
|
|||
version=\
|
||||
(
|
||||
"v2_2_0"
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://downloads.sourceforge.net/muparser/muparser_$version.zip"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
"27024148b389b98f1821252a7ba87b19"
|
||||
)
|
||||
|
||||
configure()
|
||||
{
|
||||
# Unzip has some issue:
|
||||
../muparser_$version/configure \
|
||||
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
|
||||
--target=$cfg_target_canonical \
|
||||
--host=$cfg_target_canonical \
|
||||
--build=$cfg_host_canonical \
|
||||
--enable-shared \
|
||||
--enable-samples=no
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
$cmd_make install
|
||||
|
||||
# One step is missing:
|
||||
$cmd_mkdir "${cfg_dir_toolchain_sysroot}/usr/include/muParser"
|
||||
mv -v ${cfg_dir_toolchain_sysroot}/usr/include/muParser*.* ${cfg_dir_toolchain_sysroot}/usr/include/muParser
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
for f in "${cfg_dir_toolchain_sysroot}/usr/lib/"libmuparser.so*; do
|
||||
$cmd_target_strip "$f" -o "${cfg_dir_rootfs}/lib/$(basename "$f")"
|
||||
done
|
||||
}
|
|
@ -1,42 +0,0 @@
|
|||
version=\
|
||||
(
|
||||
'0.29.5'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://www.webdav.org/neon/neon-$version.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'ff369e69ef0f0143beb5626164e87ae2'
|
||||
)
|
||||
|
||||
requires=\
|
||||
(
|
||||
'gnutls/default'
|
||||
)
|
||||
|
||||
configure()
|
||||
{
|
||||
"../neon-$version/configure" \
|
||||
--target="$cfg_target_canonical" \
|
||||
--host="$cfg_target_canonical" \
|
||||
--build="$cfg_host_canonical" \
|
||||
--prefix="$cfg_dir_toolchain_sysroot/usr" \
|
||||
--disable-static \
|
||||
--enable-shared \
|
||||
--with-ssl=gnutls \
|
||||
--without-libproxy
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
$cmd_make install
|
||||
}
|
|
@ -1,50 +0,0 @@
|
|||
version=\
|
||||
(
|
||||
'1.6.0'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://downloads.sourceforge.net/dtn/oasys-$version.tgz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'fc52baea5fd1db8bceb3031356c7acca'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Ricardo Martins <rasm@fe.up.pt>'
|
||||
)
|
||||
|
||||
configure()
|
||||
{
|
||||
"../oasys-$version/configure" \
|
||||
--prefix="$cfg_dir_toolchain_sysroot/usr" \
|
||||
--with-dbver=4.8 \
|
||||
--disable-static \
|
||||
--target="$cfg_target_canonical" \
|
||||
--host="$cfg_target_canonical" \
|
||||
--build="$cfg_host_canonical" \
|
||||
--with-tcl="$cfg_dir_toolchain_sysroot/usr" \
|
||||
--with-xerces-c="$cfg_dir_toolchain_sysroot/usr"
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make -j1
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
$cmd_make -j1 install
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
cp -a "$cfg_dir_toolchain_sysroot/usr/lib/"liboasys* $cfg_dir_rootfs/lib &&
|
||||
for f in "$cfg_dir_rootfs/lib/"liboasys*so; do
|
||||
$cmd_target_strip "$f"
|
||||
done
|
||||
}
|
|
@ -1,55 +0,0 @@
|
|||
version=\
|
||||
(
|
||||
2.0.0
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://garr.dl.sourceforge.net/project/opencvlibrary/opencv-unix/2.0/OpenCV-$version.tar.bz2"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'ed27520514baacc5edad7b06ad24130e'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Ricardo Martins <rasm@fe.up.pt>'
|
||||
)
|
||||
|
||||
configure()
|
||||
{
|
||||
"../OpenCV-$version/configure" \
|
||||
--prefix="$cfg_dir_toolchain_sysroot/usr" \
|
||||
--target="$cfg_target_canonical" \
|
||||
--host="$cfg_target_canonical" \
|
||||
--build="$cfg_host_canonical" \
|
||||
--without-gtk \
|
||||
--without-python \
|
||||
--without-swig \
|
||||
--disable-sse \
|
||||
--disable-apps
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
$cmd_make install
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
for f in $cfg_dir_toolchain_sysroot/usr/lib/{libcv.*so*,libcvaux.so*,libcxcore.so*,libhighgui.so*,libml.so*}; do
|
||||
dst="$cfg_dir_rootfs/lib/$(basename $f)"
|
||||
if [ -f "$f" ]; then
|
||||
$cmd_target_strip "$f" -o "$dst"
|
||||
else
|
||||
cp -a "$f" -o "$dst"
|
||||
fi
|
||||
done
|
||||
}
|
|
@ -1,52 +0,0 @@
|
|||
version=\
|
||||
(
|
||||
"1.0.1c"
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://www.openssl.org/source/openssl-$version.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
"ae412727c8c15b67880aef7bd2999b2e"
|
||||
)
|
||||
|
||||
requires=\
|
||||
(
|
||||
'zlib/default'
|
||||
)
|
||||
|
||||
configure()
|
||||
{
|
||||
./Configure \
|
||||
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
|
||||
shared \
|
||||
dist
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
CC="${cmd_target_cc}" \
|
||||
CXX="${cmd_target_cpp}" \
|
||||
AR="${cmd_target_ar}" \
|
||||
RANLIB="${cmd_target_ranlib}" \
|
||||
ARFLAGS="${cfg_target_ar_flags}" \
|
||||
$cmd_make build_libs
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
# Can not use the install as it throws an error.
|
||||
# $cmd_make install
|
||||
$cmd_cp include/ ${cfg_dir_toolchain_sysroot}/usr
|
||||
$cmd_cp lib* ${cfg_dir_toolchain_sysroot}/usr/lib
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
$cmd_cp lib*so* ${cfg_dir_toolchain_sysroot}/usr/lib
|
||||
$cmd_cp lib*.a ${cfg_dir_toolchain_sysroot}/usr/lib
|
||||
}
|
||||
|
|
@ -1,91 +0,0 @@
|
|||
version=\
|
||||
(
|
||||
'1.0'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
'http://search.cpan.org/CPAN/authors/id/M/MS/MSCHWERN/ExtUtils-MakeMaker-6.56.tar.gz'
|
||||
'http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/IO-Tty-1.10.tar.gz'
|
||||
'http://search.cpan.org/CPAN/authors/id/R/RG/RGIERSIG/Expect-1.21.tar.gz'
|
||||
'http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Class-Trigger-0.14.tar.gz'
|
||||
'http://search.cpan.org/CPAN/authors/id/K/KA/KASEI/Class-Accessor-0.34.tar.gz'
|
||||
'http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/Class-Data-Inheritable-0.08.tar.gz'
|
||||
'http://search.cpan.org/CPAN/authors/id/R/RD/RDF/Clone-0.31.tar.gz'
|
||||
'http://search.cpan.org/CPAN/authors/id/K/KA/KASEI/UNIVERSAL-moniker-0.08.tar.gz'
|
||||
'http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-1.616.tar.gz'
|
||||
'http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/DBIx-ContextualFetch-1.03.tar.gz'
|
||||
'http://search.cpan.org/CPAN/authors/id/P/PE/PERRIN/Ima-DBI-0.35.tar.gz'
|
||||
'http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/DBD-SQLite-1.31.tar.gz'
|
||||
'http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/Class-DBI-v3.0.17.tar.gz'
|
||||
'http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Class-DBI-SQLite-0.11.tar.gz'
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'af7e032a1e845e4decf7672929510b98'
|
||||
'46baec86a145e57f0ec661fa412b097c'
|
||||
'a151b0dc4d1a35c73941c65b7c26da5b'
|
||||
'b0a95ebe359a3c4e768d81fc58031c83'
|
||||
'0d9640d237a13276145f7e44b4855b89'
|
||||
'fc0fe65926eb8fb932743559feb54eb9'
|
||||
'65f34e7280d7b7dfb72ab6224e5767f5'
|
||||
'e59b97ccf88f9fa68c3e5c18d7059d57'
|
||||
'799313e54a693beb635b47918458f7c4'
|
||||
'20a78432ae26b266216b7b30ff7941c3'
|
||||
'f3c5c0b1fe509556ca35f08aae91b3f5'
|
||||
'67b3575104efd606c8093bc416e3338d'
|
||||
'df59962bab98a0d31bf1d04d7270831b'
|
||||
'25e80b9d2f2d66e6fc51d487f0894802'
|
||||
)
|
||||
|
||||
requires=\
|
||||
(
|
||||
'perl/default'
|
||||
'qemu/host'
|
||||
)
|
||||
|
||||
post_unpack()
|
||||
{
|
||||
sed "s!%cfg_dir_rootfs%!$cfg_dir_rootfs!g" "$cfg_package_spec_dir"/perl.in > "$pkg_build_dir"/perl &&
|
||||
chmod 0755 "$pkg_build_dir"/perl
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
export CC="$cfg_target_canonical-gcc"
|
||||
export PATH="$pkg_build_dir":$PATH
|
||||
export PERL_LIB="$cfg_dir_rootfs/usr/lib/perl5/5.10.0"
|
||||
export PERL_SITELIB="$cfg_dir_rootfs/usr/lib/perl5/site_perl/5.10.0/arm-linux-thread-multi"
|
||||
export PERL5LIB="$cfg_dir_rootfs/usr/lib/perl5/5.10.0"
|
||||
export PERL_MM_USE_DEFAULT=1
|
||||
export PERL_ARCHLIB="$cfg_dir_rootfs/usr/lib/perl5/5.10.0/arm-linux-thread-multi"
|
||||
export INST_MAN1DIR=/tmp/perl-modules
|
||||
export INST_MAN3DIR=/tmp/perl-modules
|
||||
export PREFIX="$cfg_dir_rootfs/usr"
|
||||
export INSTALLSITELIB="$PERL_SITELIB"
|
||||
export INSTALLSITEARCH="$PERL_SITELIB"
|
||||
export INSTALLARCHLIB="$PERL_SITELIB"
|
||||
|
||||
n=0; while [ -n "${url[$n]}" ]; do
|
||||
pkg="$(basename "${url[$n]}" .tar.gz)"
|
||||
|
||||
cd "$pkg_build_dir/../$pkg"
|
||||
|
||||
"$pkg_build_dir/perl" Makefile.PL \
|
||||
PERL="$pkg_build_dir/perl" \
|
||||
FULLPERL="$pkg_build_dir/perl" \
|
||||
PERL_ARCHLIB=${PERL_ARCHLIB} \
|
||||
INST_MAN1DIR=${INST_MAN1DIR} \
|
||||
INST_MAN3DIR=${INST_MAN3DIR} \
|
||||
PREFIX=${PREFIX} \
|
||||
INSTALLSITELIB=${INSTALLSITELIB} \
|
||||
INSTALLSITEARCH=${INSTALLSITEARCH} \
|
||||
INSTALLARCHLIB=${INSTALLARCHLIB} &&
|
||||
|
||||
make install UNINST=1 || return 1
|
||||
|
||||
cd "$pkg_build_dir"
|
||||
let n++
|
||||
done
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
#! /bin/sh
|
||||
|
||||
export LANG='C'
|
||||
export LC_ALL='C'
|
||||
|
||||
qemu-arm \
|
||||
-L "%cfg_dir_rootfs%" \
|
||||
"%cfg_dir_rootfs%/lib/ld-linux.so.3" \
|
||||
"%cfg_dir_rootfs%/usr/bin/perl" \
|
||||
-I"%cfg_dir_rootfs%/usr/lib/perl5/site_perl/5.10.0" -I"%cfg_dir_rootfs%/usr/lib/perl5/5.10.0/arm-linux-thread-multi" "$@"
|
|
@ -1,72 +0,0 @@
|
|||
version=\
|
||||
(
|
||||
"git"
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://localhost/rtl-sdr-${version}.tar.bz2"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'74fb22d71d08a8cb6dd6948a80cbe45f'
|
||||
)
|
||||
|
||||
requires=\
|
||||
(
|
||||
'libusbx'
|
||||
'libusb-compat'
|
||||
)
|
||||
|
||||
configure()
|
||||
{
|
||||
mkdir build && cd build
|
||||
cmake \
|
||||
-DCMAKE_FIND_ROOT_PATH="${cfg_dir_toolchain_sysroot}/usr" \
|
||||
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="NEVER" \
|
||||
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY="ONLY_CMAKE_FIND_ROOT_PATH" \
|
||||
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="ONLY_CMAKE_FIND_ROOT_PATH" \
|
||||
-DCMAKE_C_COMPILER="${cmd_target_cc}" \
|
||||
-DCMAKE_CXX_COMPILER="${cmd_target_cxx}" \
|
||||
-DCMAKE_INSTALL_PREFIX="$cfg_dir_toolchain_sysroot/usr" \
|
||||
-DCMAKE_C_FLAGS="${cfg_target_gcc_flags}" \
|
||||
..
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
cd build
|
||||
$cmd_make
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
cd build
|
||||
$cmd_make install
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
# Libs:
|
||||
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"librtlsdr*.so*; do
|
||||
if [ -L "$f" ]; then
|
||||
$cmd_cp "$f" "$cfg_dir_rootfs/usr/lib"
|
||||
else
|
||||
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")"
|
||||
fi
|
||||
done
|
||||
|
||||
# Bins:
|
||||
for f in "$cfg_dir_toolchain_sysroot/usr/bin/"rtl_*; do
|
||||
if [ -L "$f" ]; then
|
||||
$cmd_cp "$f" "$cfg_dir_rootfs/usr/bin"
|
||||
else
|
||||
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/bin/$(basename "$f")"
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
version=\
|
||||
(
|
||||
'1.6.15'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://subversion.tigris.org/downloads/subversion-$version.tar.bz2"
|
||||
"http://www.sqlite.org/sqlite-amalgamation-3.6.13.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'113fca1d9e4aa389d7dc2b210010fa69'
|
||||
'681722e7cdc6d9ab3be836736ed50641'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Ricardo Martins <rasm@fe.up.pt>'
|
||||
)
|
||||
|
||||
requires=\
|
||||
(
|
||||
'neon/default'
|
||||
'zlib/default'
|
||||
'apr/default'
|
||||
'apr-utils/default'
|
||||
)
|
||||
|
||||
post_unpack()
|
||||
{
|
||||
mkdir sqlite-amalgamation &&
|
||||
cp ../sqlite-3.6.13/sqlite3.{c,h} sqlite-amalgamation
|
||||
}
|
||||
|
||||
configure()
|
||||
{
|
||||
"../subversion-$version/configure" \
|
||||
--target="$cfg_target_canonical" \
|
||||
--host="$cfg_target_canonical" \
|
||||
--build="$cfg_host_canonical" \
|
||||
--prefix="$cfg_dir_toolchain_sysroot/usr" \
|
||||
--without-apxs \
|
||||
--with-neon="$cfg_dir_toolchain_sysroot/usr" \
|
||||
--with-zlib="$cfg_dir_toolchain_sysroot/usr" \
|
||||
--with-apr="$cfg_dir_toolchain_sysroot/usr" \
|
||||
--with-apr-util="$cfg_dir_toolchain_sysroot/usr" \
|
||||
--disable-static
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
$cmd_make -j1 install
|
||||
}
|
|
@ -1,64 +0,0 @@
|
|||
trex_base='/opt/lsts/trex'
|
||||
|
||||
maybe_upgrade()
|
||||
{
|
||||
echo -n "* Searching TREX upgrade... "
|
||||
if ! [ -f $trex_base/trex-*.tar.gz ]; then
|
||||
echo "none found"
|
||||
return 1
|
||||
fi
|
||||
echo "found"
|
||||
|
||||
echo -n "* Starting TREX upgrade... "
|
||||
rm -rf $trex_base/.trex-upgrade &&
|
||||
mkdir $trex_base/.trex-upgrade &&
|
||||
tar -x -C $trex_base/.trex-upgrade -f $trex_base/trex-*.tar.gz &&
|
||||
rm $trex_base/trex-*.tar.gz &&
|
||||
for dir in $trex_base/.trex-upgrade/trex-*/*; do
|
||||
d="$(basename "$dir")"
|
||||
rm -rf "$trex_base/$d"
|
||||
mv -v "$dir" $trex_base
|
||||
done
|
||||
|
||||
rm -rf $trex_base/.trex-upgrade
|
||||
echo "done"
|
||||
}
|
||||
|
||||
start()
|
||||
{
|
||||
maybe_upgrade
|
||||
|
||||
export TREX_LOG_DIR=$trex_base/log
|
||||
export TREX_EXTRA=$trex_base
|
||||
export EUROPA_HOME='/usr/share/europa'
|
||||
mkdir -p "$TREX_LOG_DIR"
|
||||
|
||||
if [ -z "$cfg_trex_config" ]; then
|
||||
export cfg_trex_config="$TREX_EXTRA/cfg/lsts.cfg"
|
||||
fi
|
||||
|
||||
export TREX_PATH=$PATH:$TREX_EXTRA/cfg:$TREX_EXTRA/plugins:$EUROPA_HOME/lib
|
||||
/usr/bin/amc "$cfg_trex_config" < /dev/null > /dev/null 2>&1 &
|
||||
}
|
||||
|
||||
stop()
|
||||
{
|
||||
while [ 1 ]; do
|
||||
echo "* Stopping TREX..."
|
||||
killall amc > /dev/null 2>&1
|
||||
|
||||
for r in 0 1 2 3 4 5 6 7 8 9; do
|
||||
if [ -n "$(pidof amc)" ]; then
|
||||
echo "* Waiting for TREX to exit ($r)..."
|
||||
sleep 1
|
||||
else
|
||||
echo "* TREX not running."
|
||||
return 1
|
||||
fi
|
||||
done
|
||||
|
||||
echo "* Forcing TREX to exit..."
|
||||
killall -9 amc > /dev/null 2>&1
|
||||
sleep 1
|
||||
done
|
||||
}
|
|
@ -1,41 +0,0 @@
|
|||
post_unpack()
|
||||
{
|
||||
patches=$(ls "$cfg_package_spec_dir/patches-$version/"*.patch\
|
||||
"$cfg_dir_system/patches/u-boot/patches-${version}/"*.patch 2>/dev/null)
|
||||
if [ -n "$patches" ]; then
|
||||
cat $patches | patch -p1
|
||||
fi
|
||||
}
|
||||
|
||||
configure()
|
||||
{
|
||||
$cmd_make \
|
||||
ARCH="$cfg_target_uboot_arch" \
|
||||
CROSS_COMPILE="$cfg_target_canonical"- \
|
||||
"$cfg_target_uboot_config"
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make \
|
||||
ARCH="$cfg_target_uboot_arch" \
|
||||
CROSS_COMPILE="$cfg_target_canonical"-
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
$cmd_cp \
|
||||
tools/mkimage \
|
||||
"$cfg_dir_toolchain/bin"
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
if [ -f MLO ]; then
|
||||
$cmd_cp MLO "$cfg_dir_rootfs/boot"
|
||||
fi
|
||||
|
||||
if [ -f u-boot.img ]; then
|
||||
$cmd_cp u-boot.img "$cfg_dir_rootfs/boot"
|
||||
fi
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
source "$PKG_COMMON"
|
||||
|
||||
version=\
|
||||
(
|
||||
2013.01.01
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"ftp://ftp.denx.de/pub/u-boot/u-boot-$version.tar.bz2"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'73939f78606f89a1775c7e9acb2ca617'
|
||||
)
|
|
@ -1,12 +0,0 @@
|
|||
source "$cfg_dir_packages/$PKG/default.bash"
|
||||
|
||||
host_install()
|
||||
{
|
||||
$cmd_mkdir ${cfg_dir_rootfs}/../boot/
|
||||
$cmd_cp u-boot.bin ${cfg_dir_rootfs}/../boot/
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
echo "using dummy 'target_install'."
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
--- u-boot-2013.01/board/ti/am335x/board.c 2013-01-15 21:47:42.000000000 +0000
|
||||
+++ u-boot-2013.01.rasm/board/ti/am335x/board.c 2013-04-09 18:39:45.938442622 +0100
|
||||
@@ -73,6 +73,14 @@
|
||||
return !strncmp(header.config, "SKU#02", 6);
|
||||
}
|
||||
|
||||
+#ifndef CONFIG_SYS_DCACHE_OFF
|
||||
+void enable_caches(void)
|
||||
+{
|
||||
+ /* Enable D-cache. I-cache is already enabled in start.S */
|
||||
+ dcache_enable();
|
||||
+}
|
||||
+#endif
|
||||
+
|
||||
/*
|
||||
* Read header information from EEPROM into global structure.
|
||||
*/
|
|
@ -1,58 +0,0 @@
|
|||
--- a/include/configs/igep00x0.h
|
||||
+++ b/include/configs/igep00x0.h
|
||||
@@ -104,6 +104,8 @@
|
||||
/* commands to include */
|
||||
#include <config_cmd_default.h>
|
||||
|
||||
+#undef CONFIG_BOOT_ONENAND
|
||||
+
|
||||
#define CONFIG_CMD_CACHE
|
||||
#define CONFIG_CMD_EXT2 /* EXT2 Support */
|
||||
#define CONFIG_CMD_FAT /* FAT support */
|
||||
@@ -119,8 +121,8 @@
|
||||
#define CONFIG_CMD_DHCP
|
||||
#define CONFIG_CMD_PING
|
||||
#define CONFIG_CMD_NFS /* NFS support */
|
||||
-#define CONFIG_CMD_MTDPARTS /* Enable MTD parts commands */
|
||||
-#define CONFIG_MTD_DEVICE
|
||||
+/* #define CONFIG_CMD_MTDPARTS /\* Enable MTD parts commands *\/ */
|
||||
+/* #define CONFIG_MTD_DEVICE */
|
||||
|
||||
#undef CONFIG_CMD_FLASH /* flinfo, erase, protect */
|
||||
#undef CONFIG_CMD_IMLS /* List all found images */
|
||||
@@ -142,6 +144,7 @@
|
||||
#define CONFIG_ZERO_BOOTDELAY_CHECK
|
||||
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
+ "bootfile=uImage\0" \
|
||||
"usbtty=cdc_acm\0" \
|
||||
"loadaddr=0x82000000\0" \
|
||||
"usbtty=cdc_acm\0" \
|
||||
@@ -150,7 +153,7 @@
|
||||
"vram=12M\0" \
|
||||
"dvimode=1024x768MR-16@60\0" \
|
||||
"defaultdisplay=dvi\0" \
|
||||
- "mmcdev=0\0" \
|
||||
+ "mmcdev=0:1\0" \
|
||||
"mmcroot=/dev/mmcblk0p2 rw\0" \
|
||||
"mmcrootfstype=ext4 rootwait\0" \
|
||||
"nandroot=/dev/mtdblock4 rw\0" \
|
||||
@@ -174,7 +177,7 @@
|
||||
"loadbootenv=fatload mmc ${mmcdev} ${loadaddr} uEnv.txt\0" \
|
||||
"importbootenv=echo Importing environment from mmc ...; " \
|
||||
"env import -t $loadaddr $filesize\0" \
|
||||
- "loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \
|
||||
+ "loaduimage=ext2load mmc ${mmcdev} ${loadaddr} ${bootfile}\0" \
|
||||
"mmcboot=echo Booting from mmc ...; " \
|
||||
"run mmcargs; " \
|
||||
"bootm ${loadaddr}\0" \
|
||||
@@ -234,6 +237,9 @@
|
||||
#define CONFIG_SYS_PTV 2 /* Divisor: 2^(PTV+1) => 8 */
|
||||
#define CONFIG_SYS_HZ 1000
|
||||
|
||||
+#define CONFIG_ENV_IS_NOWHERE
|
||||
+#define CONFIG_ENV_SIZE (512 << 10) /* Total Size Environment */
|
||||
+
|
||||
/*
|
||||
* Physical Memory Map
|
||||
*
|
|
@ -1,56 +0,0 @@
|
|||
--- u-boot-2013.01/include/configs/am335x_evm.h 2013-01-15 21:47:42.000000000 +0000
|
||||
+++ u-boot-2013.01.rasm/include/configs/am335x_evm.h 2013-04-09 18:25:22.027878365 +0100
|
||||
@@ -46,7 +46,9 @@
|
||||
#define CONFIG_VERSION_VARIABLE
|
||||
|
||||
/* set to negative value for no autoboot */
|
||||
-#define CONFIG_BOOTDELAY 1
|
||||
+#define CONFIG_BOOTDELAY 0
|
||||
+#define CONFIG_ZERO_BOOTDELAY_CHECK
|
||||
+
|
||||
#define CONFIG_ENV_VARS_UBOOT_CONFIG
|
||||
#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
@@ -241,6 +243,7 @@
|
||||
#define CONFIG_SPL_LDSCRIPT "$(CPUDIR)/omap-common/u-boot-spl.lds"
|
||||
|
||||
#define CONFIG_SPL_BOARD_INIT
|
||||
+#if 0
|
||||
#define CONFIG_SPL_NAND_AM33XX_BCH
|
||||
#define CONFIG_SPL_NAND_SUPPORT
|
||||
#define CONFIG_SPL_NAND_BASE
|
||||
@@ -271,6 +274,7 @@
|
||||
#define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE
|
||||
|
||||
#define CONFIG_SYS_NAND_U_BOOT_OFFS 0x80000
|
||||
+#endif
|
||||
|
||||
/*
|
||||
* 1MB into the SDRAM to allow for SPL's bss at the beginning of SDRAM
|
||||
@@ -292,6 +296,7 @@
|
||||
/*
|
||||
* USB configuration
|
||||
*/
|
||||
+#if 0
|
||||
#define CONFIG_USB_MUSB_DSPS
|
||||
#define CONFIG_ARCH_MISC_INIT
|
||||
#define CONFIG_MUSB_GADGET
|
||||
@@ -302,6 +307,7 @@
|
||||
#define CONFIG_AM335X_USB0_MODE MUSB_PERIPHERAL
|
||||
#define CONFIG_AM335X_USB1
|
||||
#define CONFIG_AM335X_USB1_MODE MUSB_HOST
|
||||
+#endif
|
||||
|
||||
#ifdef CONFIG_MUSB_HOST
|
||||
#define CONFIG_CMD_USB
|
||||
@@ -334,7 +340,9 @@
|
||||
#define CONFIG_PHY_ADDR 0
|
||||
#define CONFIG_PHY_SMSC
|
||||
|
||||
-#define CONFIG_NAND
|
||||
+#undef CONFIG_NAND
|
||||
+#define CONFIG_ENV_SIZE (128 << 10) /* 128 KiB */
|
||||
+
|
||||
/* NAND support */
|
||||
#ifdef CONFIG_NAND
|
||||
#define CONFIG_CMD_NAND
|
|
@ -1,14 +0,0 @@
|
|||
diff -Nru u-boot-2013.01.01/board/isee/igep0020/igep0020.h u-boot-2013.01.01.rasm/board/isee/igep0020/igep0020.h
|
||||
--- u-boot-2013.01.01/board/isee/igep0020/igep0020.h 2013-01-31 19:47:42.000000000 +0000
|
||||
+++ u-boot-2013.01.01.rasm/board/isee/igep0020/igep0020.h 2013-06-24 01:56:54.066266486 +0100
|
||||
@@ -146,6 +146,10 @@
|
||||
MUX_VAL(CP(SYS_BOOT4), (IEN | PTD | DIS | M4)) /* GPIO_6 */\
|
||||
MUX_VAL(CP(SYS_BOOT5), (IEN | PTD | DIS | M4)) /* GPIO_7 */\
|
||||
MUX_VAL(CP(SYS_BOOT6), (IEN | PTD | DIS | M4)) /* GPIO_8 */\
|
||||
+ MUX_VAL(CP(MCBSP2_FSX), (IEN | PTD | DIS | M0)) /*McBSP2_FSX*/\
|
||||
+ MUX_VAL(CP(MCBSP2_CLKX), (IEN | PTD | DIS | M0)) /*McBSP2_CLKX*/\
|
||||
+ MUX_VAL(CP(MCBSP2_DR), (IEN | PTD | DIS | M0)) /*McBSP2_DR*/\
|
||||
+ MUX_VAL(CP(MCBSP2_DX), (IDIS | PTD | DIS | M0)) /*McBSP2_DX*/\
|
||||
MUX_VAL(CP(SDRC_CKE0), (IDIS | PTU | EN | M0)) /* SDRC_CKE0 */\
|
||||
MUX_VAL(CP(SDRC_CKE1), (IDIS | PTU | EN | M0)) /* SDRC_CKE1 */
|
||||
#endif
|
|
@ -1,12 +0,0 @@
|
|||
--- a/include/configs/igep00x0.h
|
||||
+++ b/include/configs/igep00x0.h
|
||||
@@ -138,7 +138,8 @@
|
||||
*/
|
||||
#define CONFIG_TWL4030_POWER 1
|
||||
|
||||
-#define CONFIG_BOOTDELAY 3
|
||||
+#define CONFIG_BOOTDELAY 0
|
||||
+#define CONFIG_ZERO_BOOTDELAY_CHECK
|
||||
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
"usbtty=cdc_acm\0" \
|
|
@ -1,25 +0,0 @@
|
|||
source "$PKG_COMMON"
|
||||
|
||||
configure()
|
||||
{
|
||||
cd "$pkg_build_dir" &&
|
||||
"../util-linux-$version/configure" \
|
||||
--prefix="$cfg_dir_toolchain" \
|
||||
--target="$cfg_target_canonical" \
|
||||
--host="$cfg_target_canonical" \
|
||||
--build="$cfg_host_canonical" \
|
||||
--disable-wall \
|
||||
--disable-static \
|
||||
--enable-shared \
|
||||
--without-ncurses
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make -C $pkg_build_dir
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
$cmd_target_strip $pkg_build_dir/sys-utils/ldattach -o $cfg_dir_rootfs/usr/bin/ldattach
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
version=\
|
||||
(
|
||||
"1.14"
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"ftp://ftp.igh.cnrs.fr/pub/gnu/wget/wget-$version.tar.xz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
"316f6f59292c9098ad81fd54f658c579"
|
||||
)
|
|
@ -1,74 +0,0 @@
|
|||
version=\
|
||||
(
|
||||
"2.8.0"
|
||||
)
|
||||
|
||||
vendor_version="$(echo $version | tr . _)"
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://mirrors.fe.up.pt/pub/apache/xerces/c/2/sources/xerces-c-src_$vendor_version.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
"5daf514b73f3e0de9e3fce704387c0d2"
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
"Ricardo Martins <rasm@fe.up.pt>"
|
||||
)
|
||||
|
||||
post_unpack()
|
||||
{
|
||||
patches=$(ls "$cfg_package_spec_dir"/patches/*.patch)
|
||||
|
||||
if [ -n "$patches" ]; then
|
||||
cd ../xerces-c-src_$vendor_version &&
|
||||
cat $patches | patch -p1
|
||||
fi
|
||||
}
|
||||
|
||||
configure()
|
||||
{
|
||||
export LDFLAGS="-L$cfg_dir_toolchain_sysroot/usr/lib"
|
||||
export XERCESCROOT=$PWD/../xerces-c-src_$vendor_version
|
||||
cd $XERCESCROOT/src/xercesc &&
|
||||
./runConfigure -plinux \
|
||||
-P "$cfg_dir_toolchain_sysroot/usr" \
|
||||
-nfileonly \
|
||||
-tnative \
|
||||
-rpthread \
|
||||
-c"$cfg_target_canonical"-gcc \
|
||||
-x"$cfg_target_canonical"-g++ \
|
||||
-C "--host=$cfg_target_canonical"
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
export XERCESCROOT=$PWD/../xerces-c-src_$vendor_version
|
||||
|
||||
$cmd_make -j1 \
|
||||
VERBOSE=1 \
|
||||
XERCESCROOT="$PWD/../xerces-c-src_$vendor_version" \
|
||||
-C "$XERCESCROOT/src/xercesc"
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
export XERCESCROOT=$PWD/../xerces-c-src_$vendor_version
|
||||
|
||||
$cmd_make -j1 \
|
||||
VERBOSE=1 \
|
||||
XERCESCROOT="$PWD/../xerces-c-src_$vendor_version" \
|
||||
-C "$XERCESCROOT/src/xercesc" install
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
cp -a "$cfg_dir_toolchain_sysroot/usr/lib/libxerces-"* $cfg_dir_rootfs/lib &&
|
||||
for f in $cfg_dir_rootfs/lib/libxerces-*; do
|
||||
$cmd_target_strip "$f"
|
||||
done
|
||||
}
|
|
@ -1,23 +0,0 @@
|
|||
diff -Nru xerces-c-src_2_8_0.ori/src/xercesc/Makefile.incl xerces-c-src_2_8_0/src/xercesc/Makefile.incl
|
||||
--- xerces-c-src_2_8_0.ori/src/xercesc/Makefile.incl 2007-08-30 13:10:20.000000000 +0100
|
||||
+++ xerces-c-src_2_8_0/src/xercesc/Makefile.incl 2011-01-21 15:01:12.000000000 +0000
|
||||
@@ -531,7 +531,7 @@
|
||||
ifeq (${TRANSCODER}, ICU)
|
||||
ALLLIBS = ${LIBS} -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib -licuuc -licudata
|
||||
else
|
||||
- ALLLIBS = ${LIBS} -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib
|
||||
+ ALLLIBS = ${LIBS} #-L/usr/lib -L/usr/local/lib -L/usr/ccs/lib
|
||||
endif
|
||||
|
||||
ifeq (${MESSAGELOADER}, ICU)
|
||||
diff -Nru xerces-c-src_2_8_0.ori/src/xercesc/util/Transcoders/IconvGNU/IconvGNUTransService.cpp xerces-c-src_2_8_0/src/xercesc/util/Transcoders/IconvGNU/IconvGNUTransService.cpp
|
||||
--- xerces-c-src_2_8_0.ori/src/xercesc/util/Transcoders/IconvGNU/IconvGNUTransService.cpp 2007-08-28 19:44:40.000000000 +0100
|
||||
+++ xerces-c-src_2_8_0/src/xercesc/util/Transcoders/IconvGNU/IconvGNUTransService.cpp 2011-01-21 15:01:44.000000000 +0000
|
||||
@@ -23,6 +23,7 @@
|
||||
// Includes
|
||||
// ---------------------------------------------------------------------------
|
||||
#include <ctype.h>
|
||||
+#include <cstdio>
|
||||
|
||||
#include <locale.h>
|
||||
#include <iconv.h>
|
|
@ -1,13 +1,26 @@
|
|||
#! /bin/bash
|
||||
#############################################################################
|
||||
# Copyright (C) 2007-2012 Laboratório de Sistemas e Tecnologia Subaquática #
|
||||
# Departamento de Engenharia Electrotécnica e de Computadores #
|
||||
# Rua Dr. Roberto Frias, 4200-465 Porto, Portugal #
|
||||
#############################################################################
|
||||
# Author: Ricardo Martins #
|
||||
#############################################################################
|
||||
# $Id:: $:#
|
||||
#############################################################################
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
||||
###########################################################################
|
||||
# This program is free software; you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU General Public License as published by #
|
||||
# the Free Software Foundation; either version 2 of the License, or (at #
|
||||
# your option) any later version. #
|
||||
# #
|
||||
# This program is distributed in the hope that it will be useful, but #
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
|
||||
# General Public License for more details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License #
|
||||
# along with this program; if not, write to the Free Software #
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
|
||||
# 02110-1301 USA. #
|
||||
###########################################################################
|
||||
# Author: Ricardo Martins #
|
||||
###########################################################################
|
||||
|
||||
# Check shell type.
|
||||
if [ -z "$BASH_VERSION" ]; then
|
||||
|
@ -45,6 +58,11 @@ for d in dev boot etc; do
|
|||
$fakeroot -- chmod -vR 0644 "$cfg_dir_rootfs"/$d/*
|
||||
done
|
||||
|
||||
# Copy DTB.
|
||||
if [ -n "$cfg_target_linux_dtb" ]; then
|
||||
cp -v "$cfg_dir_rootfs/boot/$(basename $cfg_target_linux_dtb)" "$cfg_dir_rootfs/boot/board.dtb"
|
||||
fi
|
||||
|
||||
# Write config vars.
|
||||
set | sort | grep ^cfg_ | egrep -v '^cfg_dir|^cfg_target|^cfg_host_|^cfg_toolchain|^cfg_rootfs_tar|^cfg_partitions' > "$cfg_dir_rootfs/etc/config"
|
||||
|
||||
|
|
|
@ -1,13 +1,26 @@
|
|||
#! /bin/bash
|
||||
#############################################################################
|
||||
# Copyright (C) 2007-2012 Laboratório de Sistemas e Tecnologia Subaquática #
|
||||
# Departamento de Engenharia Electrotécnica e de Computadores #
|
||||
# Rua Dr. Roberto Frias, 4200-465 Porto, Portugal #
|
||||
#############################################################################
|
||||
# Author: Ricardo Martins #
|
||||
#############################################################################
|
||||
# $Id:: $:#
|
||||
#############################################################################
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
||||
###########################################################################
|
||||
# This program is free software; you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU General Public License as published by #
|
||||
# the Free Software Foundation; either version 2 of the License, or (at #
|
||||
# your option) any later version. #
|
||||
# #
|
||||
# This program is distributed in the hope that it will be useful, but #
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
|
||||
# General Public License for more details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License #
|
||||
# along with this program; if not, write to the Free Software #
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
|
||||
# 02110-1301 USA. #
|
||||
###########################################################################
|
||||
# Author: Ricardo Martins #
|
||||
###########################################################################
|
||||
|
||||
# Check shell type.
|
||||
if [ -z "$BASH_VERSION" ]; then
|
||||
|
@ -27,10 +40,13 @@ fi
|
|||
|
||||
source "$1"
|
||||
|
||||
toolchain_prefix="glued-$cfg_glued_version-$cfg_sys_family-toolchain-$cfg_host_canonical-$cfg_target_canonical"
|
||||
|
||||
tar \
|
||||
-v \
|
||||
-j \
|
||||
-c \
|
||||
--transform="s,^\./,$toolchain_prefix/," \
|
||||
-C "$cfg_dir_toolchain" \
|
||||
-f "$cfg_toolchain_tar" \
|
||||
.
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
version=\
|
||||
(
|
||||
'v05.00.00.01'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
'git://arago-project.org/git/projects/am33x-cm3.git'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Ricardo Martins <rasm@fe.up.pt>'
|
||||
)
|
||||
|
||||
download()
|
||||
{
|
||||
git clone "$url" "$cfg_dir_builds/$pkg/$pkg-$version"
|
||||
}
|
||||
|
||||
unpack()
|
||||
{
|
||||
git checkout "$version"
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
$cmd_mkdir "$cfg_dir_toolchain/firmware"
|
||||
cp -v "bin/am335x-pm-firmware.bin" "$cfg_dir_toolchain/firmware"
|
||||
}
|
|
@ -5,7 +5,7 @@ version=\
|
|||
|
||||
url=\
|
||||
(
|
||||
"http://www.eu.apache.org/dist/ant/binaries/apache-ant-$version-bin.tar.bz2"
|
||||
"http://www.lsts.pt/glued/apache-ant-$version-bin.tar.bz2"
|
||||
)
|
||||
|
||||
md5=\
|
|
@ -21,7 +21,7 @@ requires=\
|
|||
|
||||
post_unpack()
|
||||
{
|
||||
patches=$(ls "$cfg_package_spec_dir/patches-$version/"*.patch 2>/dev/null)
|
||||
patches=$(ls "$pkg_dir/patches-$version/"*.patch 2>/dev/null)
|
||||
if [ -n "$patches" ]; then
|
||||
cat $patches | patch -p1
|
||||
fi
|
|
@ -1,16 +1,16 @@
|
|||
version=\
|
||||
(
|
||||
'1.5.2'
|
||||
'1.5.3'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://www.eu.apache.org/dist/apr/apr-util-$version.tar.bz2"
|
||||
"http://archive.apache.org/dist/apr/apr-util-$version.tar.bz2"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'89c1348aa79e898d7c34a6206311c9c2'
|
||||
'6f3417691c7a27090f36e7cf4d94b36e'
|
||||
)
|
||||
|
||||
maintainer=\
|
|
@ -5,7 +5,7 @@ version=\
|
|||
|
||||
url=\
|
||||
(
|
||||
"http://www.eu.apache.org/dist/apr/apr-util-$version.tar.bz2"
|
||||
"http://archive.apache.org/dist/apr/apr-util-$version.tar.bz2"
|
||||
)
|
||||
|
||||
md5=\
|
|
@ -1,16 +1,16 @@
|
|||
version=\
|
||||
(
|
||||
'1.4.6'
|
||||
'1.5.1'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://www.eu.apache.org/dist/apr/apr-$version.tar.bz2"
|
||||
"http://archive.apache.org/dist/apr/apr-$version.tar.bz2"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'ffee70a111fd07372982b0550bbb14b7'
|
||||
'5486180ec5a23efb5cae6d4292b300ab'
|
||||
)
|
||||
|
||||
maintainer=\
|
|
@ -5,7 +5,7 @@ version=\
|
|||
|
||||
url=\
|
||||
(
|
||||
"http://mirror.nohup.it/apache/apr/apr-$version.tar.bz2"
|
||||
"http://archive.apache.org/dist/apr/apr-$version.tar.bz2"
|
||||
)
|
||||
|
||||
md5=\
|
||||
|
@ -15,7 +15,6 @@ md5=\
|
|||
|
||||
# @todo patch.
|
||||
|
||||
|
||||
configure()
|
||||
{
|
||||
cd apr-${version}
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue