• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 Huawei Device Co., Ltd.
2# Redistribution and use in source and binary forms, with or without
3# modification, are permitted provided that the following conditions
4# are met:
5# 1. Redistributions of source code must retain the above copyright
6#    notice, this list of conditions and the following disclaimer.
7# 2. Redistributions in binary form must reproduce the above copyright
8#    notice, this list of conditions and the following disclaimer in
9#    the documentation and/or other materials provided with the
10#    distribution.
11#
12# THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS
13# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
14# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
15# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY
16# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
17# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
18# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
19# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
20# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
21# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
22# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23
24import("//build/ohos.gni")
25config("vfat-defaults") {
26  cflags = [
27    "-Wall",
28    "-Werror",
29    "-Wno-unused-function",
30    "-Wno-unused-parameter",
31    "-Wno-unused-variable",
32    "-D_FILE_OFFSET_BITS=64",
33    "-D_GNU_SOURCE",
34    "-DSIGINFO=SIGUSR2",
35    "-Dnitems(x)=(sizeof((x))/sizeof((x)[0]))",
36    "-Wno-implicit-function-declaration",
37    "-D_MACHINE_IOCTL_FD_H_",
38  ]
39  include_dirs = [ "../../sys" ]
40}
41
42###################################################
43##Build newfs_msdos
44ohos_executable("newfs_msdos") {
45  configs = [ ":vfat-defaults" ]
46  sources = [
47    "mkfs_msdos.c",
48    "newfs_msdos.c",
49  ]
50
51  include_dirs = []
52  install_enable = true
53  deps = []
54  subsystem_name = "thirdparty"
55  part_name = "FreeBSD"
56  install_images = [ "system" ]
57}
58