Skip to content

Commit a585796

Browse files
authored
POSIX Simulator: Remove unused __APPLE__ mach_vm.h include (#1225)
Remove unused __APPLE__ mach_vm.h include
1 parent 78e0cc7 commit a585796

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

.github/workflows/kernel-demos.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,16 +150,25 @@ jobs:
150150
with:
151151
path: ./FreeRTOS/Source
152152

153-
- name: Install MSP430 Toolchain
153+
- env:
154+
stepName: Install MSP430 Toolchain
154155
shell: bash
155156
run: |
156-
sudo apt-get -y update
157-
sudo apt-get -y install gcc-msp430 build-essential
157+
# ${{ env.stepName }}
158+
echo -e "::group::${{ env.bashInfo }} ${{ env.stepName }} ${{ env.bashEnd }}"
159+
curl -L -O https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-LlCjWuAbzH/9.3.1.2/msp430-gcc-full-linux-x64-installer-9.3.1.2.7z
160+
sudo apt update -y
161+
sudo apt install -y p7zip-full
162+
7z x ./msp430-gcc-full-linux-x64-installer-9.3.1.2.7z
163+
chmod +x ./msp430-gcc-full-linux-x64-installer-9.3.1.2.run
164+
sudo ./msp430-gcc-full-linux-x64-installer-9.3.1.2.run --prefix /usr/bin/msp430-gcc --mode unattended
165+
echo "::endgroup::"
166+
echo -e "${{ env.bashPass }} ${{ env.stepName }} ${{ env.bashEnd }}"
158167
159168
- name: Build msp430_GCC Demo
160169
shell: bash
161170
working-directory: FreeRTOS/Demo/msp430_GCC
162-
run: make -j
171+
run: make -j CC=/usr/bin/msp430-gcc/bin/msp430-elf-gcc OPT="-Os -I/usr/bin/msp430-gcc/include -L/usr/bin/msp430-gcc/include"
163172

164173
MicroBlaze-GCC:
165174
name: GCC MicroBlaze Toolchain

portable/ThirdParty/GCC/Posix/port.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@
6565
#include <time.h>
6666
#include <unistd.h>
6767

68-
#ifdef __APPLE__
69-
#include <mach/mach_vm.h>
70-
#endif
71-
7268
/* Scheduler includes. */
7369
#include "FreeRTOS.h"
7470
#include "task.h"

0 commit comments

Comments
 (0)