8000 qemu-arm: Add license and copyright to files missing them. · davidgiven/micropython@9bfb4ce · GitHub
[go: up one dir, main page]

Skip to content

Commit 9bfb4ce

Browse files
committed
qemu-arm: Add license and copyright to files missing them.
All of these files are first-party code written from scratch as part of this repository, and were added when the top-level MIT license was active, so they have an MIT license by default. Tracing back the git history show the original authors/source/copyright as follows: - main.c, mpconfigport.h: copied from the bare-arm port [1]. - test_main.c: added in [2]. - mphalport.h: added in [3] then updated in [4]. - mps2.ld, nrf51.ld, stm32.ld, uart.h: added in [4]. - imx6.ld, uart.c, startup.c: added in [4] and updated in [5]. [1] Commit c557215 in 2014, the initial bare-arm port; see related ee85785. [2] Commit c1c32d6 in 2014, initial qemu-arm CI tests. [3] Commit b0a15aa in 2016, enabling extmods and their tests. [4] Commit e7332b0 in 2018, big refactor. [5] Commit b84406f in 2021, adding Cortex-A9 support. Signed-off-by: Damien George <damien@micropython.org>
1 parent 5903ee5 commit 9bfb4ce

File tree

11 files changed

+202
-0
lines changed
  • 11 files changed

    +202
    -0
    lines changed

    ports/qemu-arm/imx6.ld

    Lines changed: 5 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -1,3 +1,8 @@
    1+
    /* This file is part of the MicroPython project, http://micropython.org/
    2+
    * The MIT License (MIT)
    3+
    * Copyright (c) 2021 Damien P. George
    4+
    */
    5+
    16
    /* Vector table is at 0x00000000, entry point is 0x10000000. */
    27

    38
    MEMORY

    ports/qemu-arm/main.c

    Lines changed: 26 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -1,3 +1,29 @@
    1+
    /*
    2+
    * This file is part of the MicroPython project, http://micropython.org/
    3+
    *
    4+
    * The MIT License (MIT)
    5+
    *
    6+
    * Copyright (c) 2014-2023 Damien P. George
    7+
    *
    8+
    * Permission is hereby granted, free of charge, to any person obtaining a copy
    9+
    * of this software and associated documentation files (the "Software"), to deal
    10+
    * in the Software without restriction, including without limitation the rights
    11+
    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    12+
    * copies of the Software, and to permit persons to whom the Software is
    13+
    * furnished to do so, subject to the following conditions:
    14+
    *
    15+
    * The above copyright notice and this permission notice shall be included in
    16+
    * all copies or substantial portions of the Software.
    17+
    *
    18+
    * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    19+
    * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    20+
    * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    21+
    * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    22+
    * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    23+
    * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    24+
    * THE SOFTWARE.
    25+
    */
    26+
    127
    #include <stdint.h>
    228
    #include <stdlib.h>
    329
    #include <stdio.h>

    ports/qemu-arm/mpconfigport.h

    Lines changed: 26 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -1,3 +1,29 @@
    1+
    /*
    2+
    * This file is part of the MicroPython project, http://micropython.org/
    3+
    *
    4+
    * The MIT License (MIT)
    5+
    *
    6+
    * Copyright (c) 2014-2024 Damien P. George
    7+
    *
    8+
    * Permission is hereby granted, free of charge, to any person obtaining a copy
    9+
    * of this software and associated documentation files (the "Software"), to deal
    10+
    * in the Software without restriction, including without limitation the rights
    11+
    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    12+
    * copies of the Software, and to permit persons to whom the Software is
    13+
    * furnished to do so, subject to the following conditions:
    14+
    *
    15+
    * The above copyright notice and this permission notice shall be included in
    16+
    * all copies or substantial portions of the Software.
    17+
    *
    18+
    * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    19+
    * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    20+
    * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    21+
    * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    22+
    * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    23+
    * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    24+
    * THE SOFTWARE.
    25+
    */
    26+
    127
    #include <stdint.h>
    228

    329
    // options to control how MicroPython is built

    ports/qemu-arm/mphalport.h

    Lines changed: 26 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -1,3 +1,29 @@
    1+
    /*
    2+
    * This file is part of the MicroPython project, http://micropython.org/
    3+
    *
    4+
    * The MIT License (MIT)
    5+
    *
    6+
    * Copyright (c) 2016-2018 Damien P. George
    7+
    *
    8+
    * Permission is hereby granted, free of charge, to any person obtaining a copy
    9+
    * of this software and associated documentation files (the "Software"), to deal
    10+
    * in the Software without restriction, including without limitation the rights
    11+
    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    12+
    * copies of the Software, and to permit persons to whom the Software is
    13+
    * furnished to do so, subject to the following conditions:
    14+
    *
    15+
    * The above copyright notice and this permission notice shall be included in
    16+
    * all copies or substantial portions of the Software.
    17+
    *
    18+
    * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    19+
    * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    20+
    * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    21+
    * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    22+
    * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    23+
    * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    24+
    * THE SOFTWARE.
    25+
    */
    26+
    127
    #include <stddef.h>
    228
    #include "uart.h"
    329

    ports/qemu-arm/mps2.ld

    Lines changed: 5 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -1,3 +1,8 @@
    1+
    /* This file is part of the MicroPython project, http://micropython.org/
    2+
    * The MIT License (MIT)
    3+
    * Copyright (c) 2018 Damien P. George
    4+
    */
    5+
    16
    MEMORY
    27
    {
    38
    RAM : ORIGIN = 0x00000000, LENGTH = 4M

    ports/qemu-arm/nrf51.ld

    Lines changed: 5 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -1,3 +1,8 @@
    1+
    /* This file is part of the MicroPython project, http://micropython.org/
    2+
    * The MIT License (MIT)
    3+
    * Copyright (c) 2018 Damien P. George
    4+
    */
    5+
    16
    MEMORY
    27
    {
    38
    ROM : ORIGIN = 0x00000000, LENGTH = 1M

    ports/qemu-arm/startup.c

    Lines changed: 26 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -1,3 +1,29 @@
    1+
    /*
    2+
    * This file is part of the MicroPython project, http://micropython.org/
    3+
    *
    4+
    * The MIT License (MIT)
    5+
    *
    6+
    * Copyright (c) 2018-2021 Damien P. George
    7+
    *
    8+
    * Permission is hereby granted, free of charge, to any person obtaining a copy
    9+
    * of this software and associated documentation files (the "Software"), to deal
    10+
    * in the Software without restriction, including without limitation the rights
    11+
    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    12+
    * copies of the Software, and to permit persons to whom the Software is
    13+
    * furnished to do so, subject to the following conditions:
    14+
    *
    15+
    * The above copyright notice and this permission notice shall be included in
    16+
    * all copies or substantial portions of the Software.
    17+
    *
    18+
    * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    19+
    * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    20+
    * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    21+
    * AUTHORS OR COPYRIGHT 10000 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    22+
    * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    23+
    * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    24+
    * THE SOFTWARE.
    25+
    */
    26+
    127
    #include <stdint.h>
    228
    #include <stdio.h>
    329
    #include <stdlib.h>

    ports/qemu-arm/stm32.ld

    Lines changed: 5 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -1,3 +1,8 @@
    1+
    /* This file is part of the MicroPython project, http://micropython.org/
    2+
    * The MIT License (MIT)
    3+
    * Copyright (c) 2018 Damien P. George
    4+
    */
    5+
    16
    MEMORY
    27
    {
    38
    ROM : ORIGIN = 0x00000000, LENGTH = 1M

    ports/qemu-arm/test_main.c

    Lines changed: 26 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -1,3 +1,29 @@
    1+
    /*
    2+
    * This file is part of the MicroPython project, http://micropython.org/
    3+
    *
    4+
    * The MIT License (MIT)
    5+
    *
    6+
    * Copyright (c) 2014 Ilya Dmitrichenko
    7+
    *
    8+
    * Permission is hereby granted, free of charge, to any person obtaining a copy
    9+
    * of this software and associated documentation files (the "Software"), to deal
    10+
    * in the Software without restriction, including without limitation the rights
    11+
    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    12+
    * copies of the Software, and to permit persons to whom the Software is
    13+
    * furnished to do so, subject to the following conditions:
    14+
    *
    15+
    * The above copyright notice and this permission notice shall be included in
    16+
    * all copies or substantial portions of the Software.
    17+
    *
    18+
    * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    19+
    * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    20+
    * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    21+
    * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    22+
    * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    23+
    * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    24+
    * THE SOFTWARE.
    25+
    */
    26+
    127
    #include <stdint.h>
    228
    #include <stdlib.h>
    329
    #include <stdio.h>

    ports/qemu-arm/uart.c

    Lines changed: 26 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -1,3 +1,29 @@
    1+
    /*
    2+
    * This file is part of the MicroPython project, http://micropython.org/
    3+
    *
    4+
    * The MIT License (MIT)
    5+
    *
    6+
    * Copyright (c) 2018-2021 Damien P. George
    7+
    *
    8+
    * Permission is hereby granted, free of charge, to any person obtaining a copy
    9+
    * of this software and associated documentation files (the "Software"), to deal
    10+
    * in the Software without restriction, including without limitation the rights
    11+
    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    12+
    * copies of the Software, and to permit persons to whom the Software is
    13+
    * furnished to do so, subject to the following conditions:
    14+
    *
    15+
    * The above copyright notice and this permission notice shall be included in
    16+
    * all copies or substantial portions of the Software.
    17+
    *
    18+
    * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    19+
    * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    20+
    * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    21+
    * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    22+
    * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    23+
    * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    24+
    * THE SOFTWARE.
    25+
    */
    26+
    127
    #include <stdint.h>
    228
    #include <stddef.h>
    329

    ports/qemu-arm/uart.h

    Lines changed: 2 DB7F 6 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -1,2 +1,28 @@
    1+
    /*
    2+
    * This file is part of the MicroPython project, http://micropython.org/
    3+
    *
    4+
    * The MIT License (MIT)
    5+
    *
    6+
    * Copyright (c) 2018 Damien P. George
    7+
    *
    8+
    * Permission is hereby granted, free of charge, to any person obtaining a copy
    9+
    * of this software and associated documentation files (the "Software"), to deal
    10+
    * in the Software without restriction, including without limitation the rights
    11+
    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    12+
    * copies of the Software, and to permit persons to whom the Software is
    13+
    * furnished to do so, subject to the following conditions:
    14+
    *
    15+
    * The above copyright notice and this permission notice shall be included in
    16+
    * all copies or substantial portions of the Software.
    17+
    *
    18+
    * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    19+
    * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    20+
    * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    21+
    * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    22+
    * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    23+
    * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    24+
    * THE SOFTWARE.
    25+
    */
    26+
    127
    void uart_init(void);
    228
    void uart_tx_strn(const char *buf, size_t len);

    0 commit comments

    Comments
     (0)
    0