mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-18 20:16:42 +00:00
License Makefile, shell scripts, assembly source code, Dockerfile
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
faaa4438d6
commit
0920a084e4
2
Makefile
2
Makefile
@ -1,3 +1,5 @@
|
|||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
# Make varaiables and defaults, you should refer to aster-runner for more details
|
# Make varaiables and defaults, you should refer to aster-runner for more details
|
||||||
AUTO_TEST ?= none
|
AUTO_TEST ?= none
|
||||||
BOOT_METHOD ?= qemu-grub
|
BOOT_METHOD ?= qemu-grub
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* SPDX-License-Identifier: MPL-2.0 */
|
||||||
|
|
||||||
// The boot header, initial boot setup code, temporary GDT and page tables are
|
// The boot header, initial boot setup code, temporary GDT and page tables are
|
||||||
// in the boot section. The boot section is mapped writable since kernel may
|
// in the boot section. The boot section is mapped writable since kernel may
|
||||||
// modify the initial page table.
|
// modify the initial page table.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* SPDX-License-Identifier: MPL-2.0 */
|
||||||
|
|
||||||
.text
|
.text
|
||||||
.global context_switch
|
.global context_switch
|
||||||
.code64
|
.code64
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* SPDX-License-Identifier: MPL-2.0 */
|
||||||
|
|
||||||
.section ".setup", "ax"
|
.section ".setup", "ax"
|
||||||
.code64
|
.code64
|
||||||
// start_of_setup32 should be loaded at CODE32_START, which is our base.
|
// start_of_setup32 should be loaded at CODE32_START, which is our base.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* SPDX-License-Identifier: MPL-2.0 */
|
||||||
|
|
||||||
// 32-bit setup code starts here, and will be loaded at CODE32_START.
|
// 32-bit setup code starts here, and will be loaded at CODE32_START.
|
||||||
.section ".setup", "ax"
|
.section ".setup", "ax"
|
||||||
.code32
|
.code32
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
|
MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
|
||||||
CUR_DIR := $(patsubst %/,%,$(dir $(MKFILE_PATH)))
|
CUR_DIR := $(patsubst %/,%,$(dir $(MKFILE_PATH)))
|
||||||
BUILD_DIR := $(CUR_DIR)/build
|
BUILD_DIR := $(CUR_DIR)/build
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
MAKEFLAGS += --no-builtin-rules # Prevent the implicit rules from compiling ".c" or ".s" files automatically.
|
MAKEFLAGS += --no-builtin-rules # Prevent the implicit rules from compiling ".c" or ".s" files automatically.
|
||||||
MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
|
MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
|
||||||
CUR_DIR := $(patsubst %/,%,$(dir $(MKFILE_PATH)))
|
CUR_DIR := $(patsubst %/,%,$(dir $(MKFILE_PATH)))
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
MAIN_MAKEFILE := $(firstword $(MAKEFILE_LIST))
|
MAIN_MAKEFILE := $(firstword $(MAKEFILE_LIST))
|
||||||
INCLUDE_MAKEFILE := $(lastword $(MAKEFILE_LIST))
|
INCLUDE_MAKEFILE := $(lastword $(MAKEFILE_LIST))
|
||||||
CUR_DIR := $(shell dirname $(realpath $(MAIN_MAKEFILE)))
|
CUR_DIR := $(shell dirname $(realpath $(MAIN_MAKEFILE)))
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
TESTS ?= chmod_test fsync_test getdents_test link_test lseek_test mkdir_test \
|
TESTS ?= chmod_test fsync_test getdents_test link_test lseek_test mkdir_test \
|
||||||
open_create_test open_test pty_test read_test rename_test stat_test \
|
open_create_test open_test pty_test read_test rename_test stat_test \
|
||||||
statfs_test symlink_test sync_test uidgid_test unlink_test \
|
statfs_test symlink_test sync_test uidgid_test unlink_test \
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
SCRIPT_DIR=$(dirname "$0")
|
SCRIPT_DIR=$(dirname "$0")
|
||||||
TEST_TMP_DIR=${SYSCALL_TEST_DIR:-/tmp}
|
TEST_TMP_DIR=${SYSCALL_TEST_DIR:-/tmp}
|
||||||
TEST_BIN_DIR=$SCRIPT_DIR/tests
|
TEST_BIN_DIR=$SCRIPT_DIR/tests
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
# This script is used to update Asterinas version numbers in all relevant files in the repository.
|
# This script is used to update Asterinas version numbers in all relevant files in the repository.
|
||||||
# Usage: ./tools/bump_version.sh <new_version>
|
# Usage: ./tools/bump_version.sh <new_version>
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
FROM ubuntu:22.04 as build-base
|
FROM ubuntu:22.04 as build-base
|
||||||
|
|
||||||
SHELL ["/bin/bash", "-c"]
|
SHELL ["/bin/bash", "-c"]
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||||
|
Reference in New Issue
Block a user