mirror of
https://github.com/libretro/Lakka.git
synced 2024-11-27 10:00:43 +00:00
Cubieboard port
This commit is contained in:
parent
228fdfa528
commit
22684ed1fd
36
packages/lakka/a10/package.mk
Normal file
36
packages/lakka/a10/package.mk
Normal file
@ -0,0 +1,36 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# 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, 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 OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="a10"
|
||||
PKG_VERSION=""
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://github.com/lakkatv/Lakka"
|
||||
PKG_URL=""
|
||||
PKG_DEPENDS_TARGET="retroarch 81 fuse-libretro gw-libretro beetle-sgx genesis-plus-gx mupen64plus lutro gpsp 2048 pcsx_rearmed snes9x-next vecx dinothawr prboom beetle-pce handy picodrive pocketsnes nxengine nestopia gambatte stella fba libretro-ffmpeg"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="virtual"
|
||||
PKG_SHORTDESC="Lakka metapackage for Cubieboard"
|
||||
PKG_LONGDESC=""
|
||||
|
||||
PKG_IS_ADDON="no"
|
||||
PKG_AUTORECONF="no"
|
||||
|
941
projects/a10/bootloader/board.fex
Normal file
941
projects/a10/bootloader/board.fex
Normal file
@ -0,0 +1,941 @@
|
||||
[product]
|
||||
version = "1.0"
|
||||
machine = "A10-EVB-V1.2"
|
||||
|
||||
[target]
|
||||
boot_clock = 1008
|
||||
dcdc2_vol = 1400
|
||||
dcdc3_vol = 1250
|
||||
ldo2_vol = 3000
|
||||
ldo3_vol = 2800
|
||||
ldo4_vol = 2800
|
||||
pll4_freq = 960
|
||||
pll6_freq = 960
|
||||
power_start = 0
|
||||
storage_type = 0
|
||||
|
||||
[card_boot]
|
||||
logical_start = 40960
|
||||
sprite_gpio0 =
|
||||
|
||||
[card_boot0_para]
|
||||
card_ctrl = 0
|
||||
card_high_speed = 1
|
||||
card_line = 4
|
||||
sdc_d1 = port:PF00<2><1><default><default>
|
||||
sdc_d0 = port:PF01<2><1><default><default>
|
||||
sdc_clk = port:PF02<2><1><default><default>
|
||||
sdc_cmd = port:PF03<2><1><default><default>
|
||||
sdc_d3 = port:PF04<2><1><default><default>
|
||||
sdc_d2 = port:PF05<2><1><default><default>
|
||||
|
||||
[card_boot2_para]
|
||||
card_ctrl = 2
|
||||
card_high_speed = 1
|
||||
card_line = 4
|
||||
sdc_cmd = port:PC06<3><1><default><default>
|
||||
sdc_clk = port:PC07<3><1><default><default>
|
||||
sdc_d0 = port:PC08<3><1><default><default>
|
||||
sdc_d1 = port:PC09<3><1><default><default>
|
||||
sdc_d2 = port:PC10<3><1><default><default>
|
||||
sdc_d3 = port:PC11<3><1><default><default>
|
||||
|
||||
[twi_para]
|
||||
twi_port = 0
|
||||
twi_scl = port:PB00<2><default><default><default>
|
||||
twi_sda = port:PB01<2><default><default><default>
|
||||
|
||||
[uart_para]
|
||||
uart_debug_port = 0
|
||||
uart_debug_tx = port:PB22<2><1><default><default>
|
||||
uart_debug_rx = port:PB23<2><1><default><default>
|
||||
|
||||
[uart_force_debug]
|
||||
uart_debug_port = 0
|
||||
uart_debug_tx = port:PF02<4><default><default><default>
|
||||
uart_debug_rx = port:PF04<4><default><default><default>
|
||||
|
||||
[jtag_para]
|
||||
jtag_enable = 1
|
||||
jtag_ms = port:PB14<3><default><default><default>
|
||||
jtag_ck = port:PB15<3><default><default><default>
|
||||
jtag_do = port:PB16<3><default><default><default>
|
||||
jtag_di = port:PB17<3><default><default><default>
|
||||
|
||||
[dram_para]
|
||||
dram_baseaddr = 0x40000000
|
||||
dram_clk = 480
|
||||
dram_type = 3
|
||||
dram_rank_num = 1
|
||||
dram_chip_density = 4096
|
||||
dram_io_width = 16
|
||||
dram_bus_width = 32
|
||||
dram_cas = 6
|
||||
dram_zq = 0x7b
|
||||
dram_odt_en = 0
|
||||
dram_size = 1024
|
||||
dram_tpr0 = 0x30926692
|
||||
dram_tpr1 = 0x1090
|
||||
dram_tpr2 = 0x1a0c8
|
||||
dram_tpr3 = 0x0
|
||||
dram_tpr4 = 0x0
|
||||
dram_tpr5 = 0x0
|
||||
dram_emr1 = 0x0
|
||||
dram_emr2 = 0x0
|
||||
dram_emr3 = 0x0
|
||||
|
||||
[mali_para]
|
||||
mali_used = 1
|
||||
mali_clkdiv = 3
|
||||
|
||||
[g2d_para]
|
||||
g2d_used = 1
|
||||
g2d_size = 0x1000000
|
||||
|
||||
[emac_para]
|
||||
emac_used = 1
|
||||
emac_rxd3 = port:PA00<2><default><default><default>
|
||||
emac_rxd2 = port:PA01<2><default><default><default>
|
||||
emac_rxd1 = port:PA02<2><default><default><default>
|
||||
emac_rxd0 = port:PA03<2><default><default><default>
|
||||
emac_txd3 = port:PA04<2><default><default><default>
|
||||
emac_txd2 = port:PA05<2><default><default><default>
|
||||
emac_txd1 = port:PA06<2><default><default><default>
|
||||
emac_txd0 = port:PA07<2><default><default><default>
|
||||
emac_rxclk = port:PA08<2><default><default><default>
|
||||
emac_rxerr = port:PA09<2><default><default><default>
|
||||
emac_rxdV = port:PA10<2><default><default><default>
|
||||
emac_mdc = port:PA11<2><default><default><default>
|
||||
emac_mdio = port:PA12<2><default><default><default>
|
||||
emac_txen = port:PA13<2><default><default><default>
|
||||
emac_txclk = port:PA14<2><default><default><default>
|
||||
emac_crs = port:PA15<2><default><default><default>
|
||||
emac_col = port:PA16<2><default><default><default>
|
||||
emac_reset = port:PA17<1><default><default><default>
|
||||
|
||||
[twi0_para]
|
||||
twi0_used = 1
|
||||
twi0_scl = port:PB00<2><default><default><default>
|
||||
twi0_sda = port:PB01<2><default><default><default>
|
||||
|
||||
[twi1_para]
|
||||
twi1_used = 1
|
||||
twi1_scl = port:PB18<2><default><default><default>
|
||||
twi1_sda = port:PB19<2><default><default><default>
|
||||
|
||||
[twi2_para]
|
||||
twi2_used = 1
|
||||
twi2_scl = port:PB20<2><default><default><default>
|
||||
twi2_sda = port:PB21<2><default><default><default>
|
||||
|
||||
[uart_para0]
|
||||
uart_used = 1
|
||||
uart_port = 0
|
||||
uart_type = 2
|
||||
uart_tx = port:PB22<2><1><default><default>
|
||||
uart_rx = port:PB23<2><1><default><default>
|
||||
|
||||
[uart_para1]
|
||||
uart_used = 0
|
||||
uart_port = 1
|
||||
uart_type = 8
|
||||
uart_tx = port:PA10<4><1><default><default>
|
||||
uart_rx = port:PA11<4><1><default><default>
|
||||
uart_rts = port:PA12<4><1><default><default>
|
||||
uart_cts = port:PA13<4><1><default><default>
|
||||
uart_dtr = port:PA14<4><1><default><default>
|
||||
uart_dsr = port:PA15<4><1><default><default>
|
||||
uart_dcd = port:PA16<4><1><default><default>
|
||||
uart_ring = port:PA17<4><1><default><default>
|
||||
|
||||
[uart_para2]
|
||||
uart_used = 1
|
||||
uart_port = 2
|
||||
uart_type = 4
|
||||
uart_tx = port:PI18<3><1><default><default>
|
||||
uart_rx = port:PI19<3><1><default><default>
|
||||
uart_rts = port:PI16<3><1><default><default>
|
||||
uart_cts = port:PI17<3><1><default><default>
|
||||
|
||||
[uart_para3]
|
||||
uart_used = 0
|
||||
uart_port = 3
|
||||
uart_type = 4
|
||||
uart_tx = port:PH00<4><1><default><default>
|
||||
uart_rx = port:PH01<4><1><default><default>
|
||||
uart_rts = port:PH02<4><1><default><default>
|
||||
uart_cts = port:PH03<4><1><default><default>
|
||||
|
||||
[uart_para4]
|
||||
uart_used = 0
|
||||
uart_port = 4
|
||||
uart_type = 2
|
||||
uart_tx = port:PH04<4><1><default><default>
|
||||
uart_rx = port:PH05<4><1><default><default>
|
||||
|
||||
[uart_para5]
|
||||
uart_used = 0
|
||||
uart_port = 5
|
||||
uart_type = 2
|
||||
uart_tx = port:PH06<4><1><default><default>
|
||||
uart_rx = port:PH07<4><1><default><default>
|
||||
|
||||
[uart_para6]
|
||||
uart_used = 0
|
||||
uart_port = 6
|
||||
uart_type = 2
|
||||
uart_tx = port:PA12<4><1><default><default>
|
||||
uart_rx = port:PA13<4><1><default><default>
|
||||
|
||||
[uart_para7]
|
||||
uart_used = 0
|
||||
uart_port = 7
|
||||
uart_type = 2
|
||||
uart_tx = port:PA14<4><1><default><default>
|
||||
uart_rx = port:PA15<4><1><default><default>
|
||||
|
||||
[spi0_para]
|
||||
spi_used = 0
|
||||
spi_cs_bitmap = 1
|
||||
spi_cs0 = port:PI10<3><default><default><default>
|
||||
spi_sclk = port:PI11<3><default><default><default>
|
||||
spi_mosi = port:PI12<3><default><default><default>
|
||||
spi_miso = port:PI13<3><default><default><default>
|
||||
|
||||
[spi1_para]
|
||||
spi_used = 0
|
||||
spi_cs_bitmap = 1
|
||||
spi_cs0 = port:PA00<4><default><default><default>
|
||||
spi_sclk = port:PA01<4><default><default><default>
|
||||
spi_mosi = port:PA02<4><default><default><default>
|
||||
spi_miso = port:PA03<4><default><default><default>
|
||||
|
||||
[spi2_para]
|
||||
spi_used = 0
|
||||
spi_cs_bitmap = 1
|
||||
spi_cs0 = port:PB14<2><default><default><default>
|
||||
spi_sclk = port:PB15<2><default><default><default>
|
||||
spi_mosi = port:PB16<2><default><default><default>
|
||||
spi_miso = port:PB17<2><default><default><default>
|
||||
spi_cs0 = port:PC19<3><default><default><default>
|
||||
spi_sclk = port:PC20<3><default><default><default>
|
||||
spi_mosi = port:PC21<3><default><default><default>
|
||||
spi_miso = port:PC22<3><default><default><default>
|
||||
|
||||
[spi3_para]
|
||||
spi_used = 0
|
||||
spi_cs_bitmap = 1
|
||||
spi_cs0 = port:PA05<3><default><default><default>
|
||||
spi_sclk = port:PI06<3><default><default><default>
|
||||
spi_mosi = port:PI07<3><default><default><default>
|
||||
spi_miso = port:PI08<3><default><default><default>
|
||||
spi_cs1 = port:PA09<3><default><default><default>
|
||||
|
||||
[spi_devices]
|
||||
spi_dev_num = 0
|
||||
|
||||
[spi_board0]
|
||||
modalias = "aaa"
|
||||
max_speed_hz = 12000000
|
||||
bus_num = 1
|
||||
chip_select = 0
|
||||
mode = 3
|
||||
full_duplex = 0
|
||||
manual_cs = 0
|
||||
|
||||
[rtp_para]
|
||||
rtp_used = 1
|
||||
rtp_screen_size = 5
|
||||
rtp_regidity_level = 5
|
||||
rtp_press_threshold_enable = 0
|
||||
rtp_press_threshold = 0x1f40
|
||||
rtp_sensitive_level = 0xf
|
||||
rtp_exchange_x_y_flag = 0
|
||||
|
||||
[ctp_para]
|
||||
ctp_used = 0
|
||||
ctp_name = "ft5x_ts"
|
||||
ctp_twi_id = 2
|
||||
ctp_twi_addr = 0x70
|
||||
ctp_screen_max_x = 800
|
||||
ctp_screen_max_y = 480
|
||||
ctp_revert_x_flag = 0
|
||||
ctp_revert_y_flag = 0
|
||||
ctp_exchange_x_y_flag = 0
|
||||
ctp_int_port = port:PH21<6><default><default><default>
|
||||
ctp_wakeup = port:PB13<1><default><default><1>
|
||||
ctp_io_port = port:PH21<0><default><default><default>
|
||||
|
||||
[tkey_para]
|
||||
tkey_used = 0
|
||||
tkey_name = "hv_keypad"
|
||||
tkey_twi_id = 2
|
||||
tkey_twi_addr = 0x62
|
||||
tkey_int = port:PI13<6><default><default><default>
|
||||
|
||||
[motor_para]
|
||||
motor_used = 0
|
||||
motor_shake = port:PB03<1><default><default><1>
|
||||
|
||||
[nand_para]
|
||||
nand_used = 1
|
||||
nand_we = port:PC00<2><default><default><default>
|
||||
nand_ale = port:PC01<2><default><default><default>
|
||||
nand_cle = port:PC02<2><default><default><default>
|
||||
nand_ce1 = port:PC03<2><default><default><default>
|
||||
nand_ce0 = port:PC04<2><default><default><default>
|
||||
nand_nre = port:PC05<2><default><default><default>
|
||||
nand_rb0 = port:PC06<2><default><default><default>
|
||||
nand_rb1 = port:PC07<2><default><default><default>
|
||||
nand_d0 = port:PC08<2><default><default><default>
|
||||
nand_d1 = port:PC09<2><default><default><default>
|
||||
nand_d2 = port:PC10<2><default><default><default>
|
||||
nand_d3 = port:PC11<2><default><default><default>
|
||||
nand_d4 = port:PC12<2><default><default><default>
|
||||
nand_d5 = port:PC13<2><default><default><default>
|
||||
nand_d6 = port:PC14<2><default><default><default>
|
||||
nand_d7 = port:PC15<2><default><default><default>
|
||||
nand_wp = port:PC16<2><default><default><default>
|
||||
nand_ce2 = port:PC17<2><default><default><default>
|
||||
nand_ce3 = port:PC18<2><default><default><default>
|
||||
nand_ce4 =
|
||||
nand_ce5 =
|
||||
nand_ce6 =
|
||||
nand_ce7 =
|
||||
nand_spi = port:PC23<3><default><default><default>
|
||||
nand_ndqs = port:PC24<2><default><default><default>
|
||||
|
||||
[disp_init]
|
||||
disp_init_enable = 1
|
||||
disp_mode = 0
|
||||
screen0_output_type = 3
|
||||
screen0_output_mode = 4
|
||||
screen1_output_type = 1
|
||||
screen1_output_mode = 4
|
||||
fb0_framebuffer_num = 2
|
||||
fb0_format = 10
|
||||
fb0_pixel_sequence = 0
|
||||
fb0_scaler_mode_enable = 0
|
||||
fb1_framebuffer_num = 2
|
||||
fb1_format = 10
|
||||
fb1_pixel_sequence = 0
|
||||
fb1_scaler_mode_enable = 0
|
||||
lcd0_bright = 197
|
||||
lcd1_bright = 197
|
||||
lcd0_screen_bright = 50
|
||||
lcd0_screen_contrast = 50
|
||||
lcd0_screen_saturation = 57
|
||||
lcd0_screen_hue = 50
|
||||
lcd1_screen_bright = 50
|
||||
lcd1_screen_contrast = 50
|
||||
lcd1_screen_saturation = 57
|
||||
lcd1_screen_hue = 50
|
||||
|
||||
[lcd0_para]
|
||||
lcd_used = 1
|
||||
lcd_x = 800
|
||||
lcd_y = 480
|
||||
lcd_dclk_freq = 33
|
||||
lcd_pwm_not_used = 0
|
||||
lcd_pwm_ch = 0
|
||||
lcd_pwm_freq = 10000
|
||||
lcd_pwm_pol = 0
|
||||
lcd_if = 0
|
||||
lcd_hbp = 46
|
||||
lcd_ht = 1055
|
||||
lcd_vbp = 23
|
||||
lcd_vt = 1050
|
||||
lcd_hv_if = 0
|
||||
lcd_hv_smode = 0
|
||||
lcd_hv_s888_if = 0
|
||||
lcd_hv_syuv_if = 0
|
||||
lcd_hv_vspw = 0
|
||||
lcd_hv_hspw = 0
|
||||
lcd_lvds_ch = 0
|
||||
lcd_lvds_mode = 0
|
||||
lcd_lvds_bitwidth = 0
|
||||
lcd_lvds_io_cross = 0
|
||||
lcd_cpu_if = 0
|
||||
lcd_frm = 0
|
||||
lcd_io_cfg0 = 268435456
|
||||
lcd_gamma_correction_en = 0
|
||||
lcd_gamma_tbl_0 = 0x0
|
||||
lcd_gamma_tbl_1 = 0x10101
|
||||
lcd_gamma_tbl_255 = 0xffffff
|
||||
lcd_bl_en_used = 1
|
||||
lcd_bl_en = port:PH07<1><0><default><1>
|
||||
lcd_power_used = 1
|
||||
lcd_power = port:PH08<1><0><default><1>
|
||||
lcd_pwm_used = 1
|
||||
lcd_pwm = port:PB02<2><0><default><default>
|
||||
lcd_gpio_0 =
|
||||
lcd_gpio_1 =
|
||||
lcd_gpio_2 =
|
||||
lcd_gpio_3 =
|
||||
lcdd0 = port:PD00<2><0><default><default>
|
||||
lcdd1 = port:PD01<2><0><default><default>
|
||||
lcdd2 = port:PD02<2><0><default><default>
|
||||
lcdd3 = port:PD03<2><0><default><default>
|
||||
lcdd4 = port:PD04<2><0><default><default>
|
||||
lcdd5 = port:PD05<2><0><default><default>
|
||||
lcdd6 = port:PD06<2><0><default><default>
|
||||
lcdd7 = port:PD07<2><0><default><default>
|
||||
lcdd8 = port:PD08<2><0><default><default>
|
||||
lcdd9 = port:PD09<2><0><default><default>
|
||||
lcdd10 = port:PD10<2><0><default><default>
|
||||
lcdd11 = port:PD11<2><0><default><default>
|
||||
lcdd12 = port:PD12<2><0><default><default>
|
||||
lcdd13 = port:PD13<2><0><default><default>
|
||||
lcdd14 = port:PD14<2><0><default><default>
|
||||
lcdd15 = port:PD15<2><0><default><default>
|
||||
lcdd16 = port:PD16<2><0><default><default>
|
||||
lcdd17 = port:PD17<2><0><default><default>
|
||||
lcdd18 = port:PD18<2><0><default><default>
|
||||
lcdd19 = port:PD19<2><0><default><default>
|
||||
lcdd20 = port:PD20<2><0><default><default>
|
||||
lcdd21 = port:PD21<2><0><default><default>
|
||||
lcdd22 = port:PD22<2><0><default><default>
|
||||
lcdd23 = port:PD23<2><0><default><default>
|
||||
lcdclk = port:PD24<2><0><default><default>
|
||||
lcdde = port:PD25<2><0><default><default>
|
||||
lcdhsync = port:PD26<2><0><default><default>
|
||||
lcdvsync = port:PD27<2><0><default><default>
|
||||
|
||||
[lcd1_para]
|
||||
lcd_used = 0
|
||||
lcd_x = 0
|
||||
lcd_y = 0
|
||||
lcd_dclk_freq = 0
|
||||
lcd_pwm_not_used = 0
|
||||
lcd_pwm_ch = 1
|
||||
lcd_pwm_freq = 0
|
||||
lcd_pwm_pol = 0
|
||||
lcd_if = 0
|
||||
lcd_hbp = 0
|
||||
lcd_ht = 0
|
||||
lcd_vbp = 0
|
||||
lcd_vt = 0
|
||||
lcd_hv_if = 0
|
||||
lcd_hv_smode = 0
|
||||
lcd_hv_s888_if = 0
|
||||
lcd_hv_syuv_if = 0
|
||||
lcd_hv_vspw = 0
|
||||
lcd_hv_hspw = 0
|
||||
lcd_lvds_ch = 0
|
||||
lcd_lvds_mode = 0
|
||||
lcd_lvds_bitwidth = 0
|
||||
lcd_lvds_io_cross = 0
|
||||
lcd_cpu_if = 0
|
||||
lcd_frm = 0
|
||||
lcd_io_cfg0 = 0
|
||||
lcd_gamma_correction_en = 0
|
||||
lcd_gamma_tbl_0 = 0x0
|
||||
lcd_gamma_tbl_1 = 0x10101
|
||||
lcd_gamma_tbl_255 = 0xffffff
|
||||
lcd_bl_en_used = 0
|
||||
lcd_bl_en =
|
||||
lcd_power_used = 0
|
||||
lcd_power =
|
||||
lcd_pwm_used = 1
|
||||
lcd_pwm = port:PI03<2><0><default><default>
|
||||
lcd_gpio_0 =
|
||||
lcd_gpio_1 =
|
||||
lcd_gpio_2 =
|
||||
lcd_gpio_3 =
|
||||
lcdd0 = port:PH00<2><0><default><default>
|
||||
lcdd1 = port:PH01<2><0><default><default>
|
||||
lcdd2 = port:PH02<2><0><default><default>
|
||||
lcdd3 = port:PH03<2><0><default><default>
|
||||
lcdd4 = port:PH04<2><0><default><default>
|
||||
lcdd5 = port:PH05<2><0><default><default>
|
||||
lcdd6 = port:PH06<2><0><default><default>
|
||||
lcdd7 = port:PH07<2><0><default><default>
|
||||
lcdd8 = port:PH08<2><0><default><default>
|
||||
lcdd9 = port:PH09<2><0><default><default>
|
||||
lcdd10 = port:PH10<2><0><default><default>
|
||||
lcdd11 = port:PH11<2><0><default><default>
|
||||
lcdd12 = port:PH12<2><0><default><default>
|
||||
lcdd13 = port:PH13<2><0><default><default>
|
||||
lcdd14 = port:PH14<2><0><default><default>
|
||||
lcdd15 = port:PH15<2><0><default><default>
|
||||
lcdd16 = port:PH16<2><0><default><default>
|
||||
lcdd17 = port:PH17<2><0><default><default>
|
||||
lcdd18 = port:PH18<2><0><default><default>
|
||||
lcdd19 = port:PH19<2><0><default><default>
|
||||
lcdd20 = port:PH20<2><0><default><default>
|
||||
lcdd21 = port:PH21<2><0><default><default>
|
||||
lcdd22 = port:PH22<2><0><default><default>
|
||||
lcdd23 = port:PH23<2><0><default><default>
|
||||
lcdclk = port:PH24<2><0><default><default>
|
||||
lcdde = port:PH25<2><0><default><default>
|
||||
lcdhsync = port:PH26<2><0><default><default>
|
||||
lcdvsync = port:PH27<2><0><default><default>
|
||||
|
||||
[tv_out_dac_para]
|
||||
dac_used = 1
|
||||
dac0_src = 4
|
||||
dac1_src = 5
|
||||
dac2_src = 6
|
||||
dac3_src = 0
|
||||
|
||||
[csi0_para]
|
||||
csi_used = 1
|
||||
csi_mode = 0
|
||||
csi_dev_qty = 1
|
||||
csi_stby_mode = 0
|
||||
csi_mname = "gc0308"
|
||||
csi_twi_id = 1
|
||||
csi_twi_addr = 0x42
|
||||
csi_if = 0
|
||||
csi_vflip = 0
|
||||
csi_hflip = 1
|
||||
csi_iovdd = ""
|
||||
csi_avdd = ""
|
||||
csi_dvdd = ""
|
||||
csi_flash_pol = 1
|
||||
csi_mname_b = ""
|
||||
csi_twi_id_b = 1
|
||||
csi_twi_addr_b = 0x78
|
||||
csi_if_b = 0
|
||||
csi_vflip_b = 1
|
||||
csi_hflip_b = 0
|
||||
csi_iovdd_b = ""
|
||||
csi_avdd_b = ""
|
||||
csi_dvdd_b = ""
|
||||
csi_flash_pol_b = 1
|
||||
csi_pck = port:PE00<3><default><default><default>
|
||||
csi_ck = port:PE01<3><default><default><default>
|
||||
csi_hsync = port:PE02<3><default><default><default>
|
||||
csi_vsync = port:PE03<3><default><default><default>
|
||||
csi_d0 = port:PE04<3><default><default><default>
|
||||
csi_d1 = port:PE05<3><default><default><default>
|
||||
csi_d2 = port:PE06<3><default><default><default>
|
||||
csi_d3 = port:PE07<3><default><default><default>
|
||||
csi_d4 = port:PE08<3><default><default><default>
|
||||
csi_d5 = port:PE09<3><default><default><default>
|
||||
csi_d6 = port:PE10<3><default><default><default>
|
||||
csi_d7 = port:PE11<3><default><default><default>
|
||||
csi_d8 =
|
||||
csi_d9 =
|
||||
csi_d10 =
|
||||
csi_d11 =
|
||||
csi_d12 =
|
||||
csi_d13 =
|
||||
csi_d14 =
|
||||
csi_d15 =
|
||||
csi_reset = port:PH13<1><default><default><0>
|
||||
csi_power_en =
|
||||
csi_stby = port:PH16<1><default><default><0>
|
||||
csi_flash =
|
||||
csi_af_en =
|
||||
csi_reset_b =
|
||||
csi_power_en_b =
|
||||
csi_stby_b =
|
||||
csi_flash_b =
|
||||
csi_af_en_b =
|
||||
|
||||
[csi1_para]
|
||||
csi_used = 0
|
||||
csi_mode = 0
|
||||
csi_dev_qty = 1
|
||||
csi_stby_mode = 1
|
||||
csi_mname = ""
|
||||
csi_twi_id = 1
|
||||
csi_twi_addr = 0xba
|
||||
csi_if = 0
|
||||
csi_vflip = 0
|
||||
csi_hflip = 0
|
||||
csi_iovdd = ""
|
||||
csi_avdd = ""
|
||||
csi_dvdd = ""
|
||||
csi_flash_pol = 1
|
||||
csi_mname_b = ""
|
||||
csi_twi_id_b = 1
|
||||
csi_twi_addr_b = 0x78
|
||||
csi_if_b = 0
|
||||
csi_vflip_b = 1
|
||||
csi_hflip_b = 0
|
||||
csi_iovdd_b = ""
|
||||
csi_avdd_b = ""
|
||||
csi_dvdd_b = ""
|
||||
csi_flash_pol_b = 1
|
||||
csi_pck = port:PG00<3><default><default><default>
|
||||
csi_ck = port:PG01<3><default><default><default>
|
||||
csi_hsync = port:PG02<3><default><default><default>
|
||||
csi_vsync = port:PG03<3><default><default><default>
|
||||
csi_field =
|
||||
csi_d0 = port:PG04<3><default><default><default>
|
||||
csi_d1 = port:PG05<3><default><default><default>
|
||||
csi_d2 = port:PG06<3><default><default><default>
|
||||
csi_d3 = port:PG07<3><default><default><default>
|
||||
csi_d4 = port:PG08<3><default><default><default>
|
||||
csi_d5 = port:PG09<3><default><default><default>
|
||||
csi_d6 = port:PG10<3><default><default><default>
|
||||
csi_d7 = port:PG11<3><default><default><default>
|
||||
csi_d8 =
|
||||
csi_d9 =
|
||||
csi_d10 =
|
||||
csi_d11 =
|
||||
csi_d12 =
|
||||
csi_d13 =
|
||||
csi_d14 =
|
||||
csi_d15 =
|
||||
csi_d16 =
|
||||
csi_d17 =
|
||||
csi_d18 =
|
||||
csi_d19 =
|
||||
csi_d20 =
|
||||
csi_d21 =
|
||||
csi_d22 =
|
||||
csi_d23 =
|
||||
csi_reset = port:PH14<1><default><default><0>
|
||||
csi_power_en =
|
||||
csi_stby = port:PH17<1><default><default><0>
|
||||
csi_flash =
|
||||
csi_af_en =
|
||||
csi_reset_b =
|
||||
csi_power_en_b =
|
||||
csi_stby_b =
|
||||
csi_flash_b =
|
||||
csi_af_en_b =
|
||||
|
||||
[tvout_para]
|
||||
tvout_used = 1
|
||||
tvout_channel_num = 1
|
||||
tv_en = port:PI12<1><default><default><0>
|
||||
|
||||
[tvin_para]
|
||||
tvin_used = 0
|
||||
tvin_channel_num = 4
|
||||
|
||||
[sata_para]
|
||||
sata_used = 1
|
||||
sata_power_en = port:PB08<1><default><default><0>
|
||||
|
||||
[mmc0_para]
|
||||
sdc_used = 1
|
||||
sdc_detmode = 1
|
||||
bus_width = 4
|
||||
sdc_d1 = port:PF00<2><1><2><default>
|
||||
sdc_d0 = port:PF01<2><1><2><default>
|
||||
sdc_clk = port:PF02<2><1><2><default>
|
||||
sdc_cmd = port:PF03<2><1><2><default>
|
||||
sdc_d3 = port:PF04<2><1><2><default>
|
||||
sdc_d2 = port:PF05<2><1><2><default>
|
||||
sdc_det = port:PH01<0><1><default><default>
|
||||
sdc_use_wp = 0
|
||||
sdc_wp =
|
||||
|
||||
[mmc1_para]
|
||||
sdc_used = 1
|
||||
sdc_detmode = 1
|
||||
bus_width = 4
|
||||
sdc_cmd = port:PH22<5><1><2><default>
|
||||
sdc_clk = port:PH23<5><1><2><default>
|
||||
sdc_d0 = port:PH24<5><1><2><default>
|
||||
sdc_d1 = port:PH25<5><1><2><default>
|
||||
sdc_d2 = port:PH26<5><1><2><default>
|
||||
sdc_d3 = port:PH27<5><1><2><default>
|
||||
sdc_det = port:PH02<0><1><default><default>
|
||||
sdc_use_wp = 0
|
||||
sdc_wp =
|
||||
|
||||
[mmc2_para]
|
||||
sdc_used = 0
|
||||
|
||||
[mmc3_para]
|
||||
sdc_used = 1
|
||||
sdc_detmode = 4
|
||||
bus_width = 4
|
||||
sdc_cmd = port:PI04<2><1><2><default>
|
||||
sdc_clk = port:PI05<2><1><2><default>
|
||||
sdc_d0 = port:PI06<2><1><2><default>
|
||||
sdc_d1 = port:PI07<2><1><2><default>
|
||||
sdc_d2 = port:PI08<2><1><2><default>
|
||||
sdc_d3 = port:PI09<2><1><2><default>
|
||||
sdc_det =
|
||||
sdc_use_wp = 0
|
||||
sdc_wp =
|
||||
|
||||
[ms_para]
|
||||
ms_used = 0
|
||||
ms_bs = port:PH06<5><default><default><default>
|
||||
ms_clk = port:PH07<5><default><default><default>
|
||||
ms_d0 = port:PH08<5><default><default><default>
|
||||
ms_d1 = port:PH09<5><default><default><default>
|
||||
ms_d2 = port:PH10<5><default><default><default>
|
||||
ms_d3 = port:PH11<5><default><default><default>
|
||||
ms_det =
|
||||
|
||||
[smc_para]
|
||||
smc_used = 0
|
||||
smc_rst = port:PH13<5><default><default><default>
|
||||
smc_vppen = port:PH14<5><default><default><default>
|
||||
smc_vppp = port:PH15<5><default><default><default>
|
||||
smc_det = port:PH16<5><default><default><default>
|
||||
smc_vccen = port:PH17<5><default><default><default>
|
||||
smc_sck = port:PH18<5><default><default><default>
|
||||
smc_sda = port:PH19<5><default><default><default>
|
||||
|
||||
[ps2_0_para]
|
||||
ps2_used = 0
|
||||
ps2_scl = port:PI20<2><1><default><default>
|
||||
ps2_sda = port:PI21<2><1><default><default>
|
||||
|
||||
[ps2_1_para]
|
||||
ps2_used = 0
|
||||
ps2_scl = port:PI14<3><1><default><default>
|
||||
ps2_sda = port:PI15<3><1><default><default>
|
||||
|
||||
[can_para]
|
||||
can_used = 0
|
||||
can_tx = port:PA16<3><default><default><default>
|
||||
can_rx = port:PA17<3><default><default><default>
|
||||
|
||||
[keypad_para]
|
||||
kp_used = 0
|
||||
kp_in_size = 8
|
||||
kp_out_size = 8
|
||||
kp_in0 = port:PH08<4><1><default><default>
|
||||
kp_in1 = port:PH09<4><1><default><default>
|
||||
kp_in2 = port:PH10<4><1><default><default>
|
||||
kp_in3 = port:PH11<4><1><default><default>
|
||||
kp_in4 = port:PH14<4><1><default><default>
|
||||
kp_in5 = port:PH15<4><1><default><default>
|
||||
kp_in6 = port:PH16<4><1><default><default>
|
||||
kp_in7 = port:PH17<4><1><default><default>
|
||||
kp_out0 = port:PH18<4><1><default><default>
|
||||
kp_out1 = port:PH19<4><1><default><default>
|
||||
kp_out2 = port:PH22<4><1><default><default>
|
||||
kp_out3 = port:PH23<4><1><default><default>
|
||||
kp_out4 = port:PH24<4><1><default><default>
|
||||
kp_out5 = port:PH25<4><1><default><default>
|
||||
kp_out6 = port:PH26<4><1><default><default>
|
||||
kp_out7 = port:PH27<4><1><default><default>
|
||||
|
||||
[usbc0]
|
||||
usb_used = 1
|
||||
usb_port_type = 2
|
||||
usb_detect_type = 1
|
||||
usb_id_gpio = port:PH04<0><1><default><default>
|
||||
usb_det_vbus_gpio = port:PH05<0><0><default><default>
|
||||
usb_drv_vbus_gpio = port:PB09<1><0><default><0>
|
||||
usb_host_init_state = 0
|
||||
|
||||
[usbc1]
|
||||
usb_used = 1
|
||||
usb_port_type = 1
|
||||
usb_detect_type = 0
|
||||
usb_id_gpio =
|
||||
usb_det_vbus_gpio =
|
||||
usb_drv_vbus_gpio = port:PH06<1><0><default><0>
|
||||
usb_host_init_state = 1
|
||||
|
||||
[usbc2]
|
||||
usb_used = 1
|
||||
usb_port_type = 1
|
||||
usb_detect_type = 0
|
||||
usb_id_gpio =
|
||||
usb_det_vbus_gpio =
|
||||
usb_drv_vbus_gpio = port:PH03<1><0><default><0>
|
||||
usb_host_init_state = 1
|
||||
|
||||
[usb_feature]
|
||||
vendor_id = 6353
|
||||
mass_storage_id = 1
|
||||
adb_id = 2
|
||||
manufacturer_name = "USB Developer"
|
||||
product_name = "Android"
|
||||
serial_number = "20080411"
|
||||
|
||||
[msc_feature]
|
||||
vendor_name = "USB 2.0"
|
||||
product_name = "USB Flash Driver"
|
||||
release = 100
|
||||
luns = 3
|
||||
|
||||
[gsensor_para]
|
||||
gsensor_used = 0
|
||||
gsensor_name = "bma250"
|
||||
gsensor_twi_id = 1
|
||||
gsensor_twi_addr = 0x18
|
||||
gsensor_int1 = port:PH00<6><1><default><default>
|
||||
gsensor_int2 = port:PI10<6><1><default><default>
|
||||
|
||||
[gps_para]
|
||||
gps_used = 0
|
||||
gps_spi_id = 2
|
||||
gps_spi_cs_num = 0
|
||||
gps_lradc = 1
|
||||
gps_clk = port:PI00<2><default><default><default>
|
||||
gps_sign = port:PI01<2><default><default><default>
|
||||
gps_mag = port:PI02<2><default><default><default>
|
||||
gps_vcc_en = port:PC22<1><default><default><0>
|
||||
gps_osc_en = port:PI14<1><default><default><0>
|
||||
gps_rx_en = port:PI15<1><default><default><0>
|
||||
|
||||
[sdio_wifi_para]
|
||||
sdio_wifi_used = 0
|
||||
sdio_wifi_sdc_id = 3
|
||||
sdio_wifi_mod_sel = 1
|
||||
swl_n20_shdn = port:PH09<1><default><default><0>
|
||||
swl_n20_host_wakeup = port:PH10<1><default><default><1>
|
||||
swl_n20_vdd_en = port:PH11<1><default><default><0>
|
||||
swl_n20_vcc_en = port:PH12<1><default><default><0>
|
||||
|
||||
[usb_wifi_para]
|
||||
usb_wifi_used = 0
|
||||
usb_wifi_usbc_num = 2
|
||||
|
||||
[3g_para]
|
||||
3g_used = 0
|
||||
3g_usbc_num = 2
|
||||
3g_uart_num = 0
|
||||
3g_pwr =
|
||||
3g_wakeup =
|
||||
3g_int =
|
||||
|
||||
[gy_para]
|
||||
gy_used = 0
|
||||
gy_twi_id = 1
|
||||
gy_twi_addr = 0
|
||||
gy_int1 = port:PH18<6><1><default><default>
|
||||
gy_int2 = port:PH19<6><1><default><default>
|
||||
|
||||
[ls_para]
|
||||
ls_used = 0
|
||||
ls_twi_id = 1
|
||||
ls_twi_addr = 0
|
||||
ls_int = port:PH20<6><1><default><default>
|
||||
|
||||
[compass_para]
|
||||
compass_used = 0
|
||||
compass_twi_id = 1
|
||||
compass_twi_addr = 0
|
||||
compass_int = port:PI13<6><1><default><default>
|
||||
|
||||
[bt_para]
|
||||
bt_used = 0
|
||||
bt_uart_id = 2
|
||||
bt_mod_type = 1
|
||||
|
||||
[i2s_para]
|
||||
i2s_used = 1
|
||||
i2s_channel = 2
|
||||
i2s_mclk = port:PB05<2><1><default><default>
|
||||
i2s_bclk = port:PB06<2><1><default><default>
|
||||
i2s_lrclk = port:PB07<2><1><default><default>
|
||||
i2s_dout0 = port:PB08<2><1><default><default>
|
||||
i2s_dout1 =
|
||||
i2s_dout2 =
|
||||
i2s_dout3 =
|
||||
i2s_din = port:PB12<2><1><default><default>
|
||||
|
||||
[spdif_para]
|
||||
spdif_used = 0
|
||||
spdif_mclk =
|
||||
spdif_dout = port:PB13<4><1><default><default>
|
||||
spdif_din =
|
||||
|
||||
[audio_para]
|
||||
audio_used = 1
|
||||
capture_used = 1
|
||||
audio_lr_change = 0
|
||||
audio_pa_ctrl = port:PH15<1><default><default><0>
|
||||
|
||||
[switch_para]
|
||||
switch_used = 0
|
||||
|
||||
[ir_para]
|
||||
ir_used = 1
|
||||
ir0_rx = port:PB04<2><default><default><default>
|
||||
|
||||
[pmu_para]
|
||||
pmu_used = 1
|
||||
pmu_twi_addr = 52
|
||||
pmu_twi_id = 0
|
||||
pmu_irq_id = 0
|
||||
pmu_battery_rdc = 100
|
||||
pmu_battery_cap = 3200
|
||||
pmu_init_chgcur = 300
|
||||
pmu_earlysuspend_chgcur = 600
|
||||
pmu_suspend_chgcur = 1000
|
||||
pmu_resume_chgcur = 300
|
||||
pmu_shutdown_chgcur = 1000
|
||||
pmu_init_chgvol = 4200
|
||||
pmu_init_chgend_rate = 15
|
||||
pmu_init_chg_enabled = 1
|
||||
pmu_init_adc_freq = 100
|
||||
pmu_init_adc_freqc = 100
|
||||
pmu_init_chg_pretime = 50
|
||||
pmu_init_chg_csttime = 720
|
||||
pmu_bat_para1 = 0
|
||||
pmu_bat_para2 = 0
|
||||
pmu_bat_para3 = 0
|
||||
pmu_bat_para4 = 0
|
||||
pmu_bat_para5 = 5
|
||||
pmu_bat_para6 = 8
|
||||
pmu_bat_para7 = 11
|
||||
pmu_bat_para8 = 22
|
||||
pmu_bat_para9 = 33
|
||||
pmu_bat_para10 = 43
|
||||
pmu_bat_para11 = 50
|
||||
pmu_bat_para12 = 59
|
||||
pmu_bat_para13 = 71
|
||||
pmu_bat_para14 = 83
|
||||
pmu_bat_para15 = 92
|
||||
pmu_bat_para16 = 100
|
||||
pmu_usbvol_limit = 1
|
||||
pmu_usbcur_limit = 0
|
||||
pmu_usbvol = 4000
|
||||
pmu_usbcur = 0
|
||||
pmu_usbvol_pc = 4000
|
||||
pmu_usbcur_pc = 0
|
||||
pmu_pwroff_vol = 3300
|
||||
pmu_pwron_vol = 2900
|
||||
pmu_pekoff_time = 6000
|
||||
pmu_pekoff_en = 1
|
||||
pmu_peklong_time = 1500
|
||||
pmu_pekon_time = 1000
|
||||
pmu_pwrok_time = 64
|
||||
pmu_pwrnoe_time = 2000
|
||||
pmu_intotp_en = 1
|
||||
pmu_used2 = 0
|
||||
pmu_adpdet = port:PH02<0><default><default><default>
|
||||
pmu_init_chgcur2 = 400
|
||||
pmu_earlysuspend_chgcur2 = 600
|
||||
pmu_suspend_chgcur2 = 1200
|
||||
pmu_resume_chgcur2 = 400
|
||||
pmu_shutdown_chgcur2 = 1200
|
||||
pmu_suspendpwroff_vol = 3500
|
||||
pmu_batdeten = 1
|
||||
|
||||
[recovery_key]
|
||||
key_min = 4
|
||||
key_max = 6
|
||||
|
||||
[dvfs_table]
|
||||
max_freq = 1008000000
|
||||
min_freq = 60000000
|
||||
LV_count = 5
|
||||
LV1_freq = 1056000000
|
||||
LV1_volt = 1500
|
||||
LV2_freq = 1008000000
|
||||
LV2_volt = 1400
|
||||
LV3_freq = 912000000
|
||||
LV3_volt = 1350
|
||||
LV4_freq = 864000000
|
||||
LV4_volt = 1300
|
||||
LV5_freq = 624000000
|
||||
LV5_volt = 1250
|
||||
|
||||
[leds_para]
|
||||
leds_used = 1
|
||||
leds_num = 2
|
||||
leds_pin_1 = port:PH20<1><default><default><0>
|
||||
leds_name_1 = "green:ph20:led1"
|
||||
leds_default_1 = 1
|
||||
leds_trigger_1 = "mmc0"
|
||||
leds_pin_2 = port:PH21<1><default><default><0>
|
||||
leds_name_2 = "blue:ph21:led2"
|
||||
leds_trigger_2 = "heartbeat"
|
4
projects/a10/bootloader/uEnv.txt
Normal file
4
projects/a10/bootloader/uEnv.txt
Normal file
@ -0,0 +1,4 @@
|
||||
script=script.bin
|
||||
kernel=KERNEL
|
||||
extraargs='console=ttyS0,115200 console=tty0 boot=/dev/mmcblk0p1 disk=/dev/mmcblk0p2 rootwait quiet ssh loglevel=2 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x1024p60 consoleblank=0'
|
||||
boot_mmc=fatload mmc 0 0x43000000 ${script}; fatload mmc 0 0x48000000 ${kernel}; bootm 0x48000000
|
9
projects/a10/filesystem/etc/asound.conf
Normal file
9
projects/a10/filesystem/etc/asound.conf
Normal file
@ -0,0 +1,9 @@
|
||||
pcm.!default {
|
||||
type hw
|
||||
card sunxisndhdmi
|
||||
}
|
||||
|
||||
ctl.!default {
|
||||
type hw
|
||||
card sunxisndhdmi
|
||||
}
|
3927
projects/a10/linux/linux.arm.conf
Normal file
3927
projects/a10/linux/linux.arm.conf
Normal file
File diff suppressed because it is too large
Load Diff
151
projects/a10/options
Normal file
151
projects/a10/options
Normal file
@ -0,0 +1,151 @@
|
||||
################################################################################
|
||||
# setup system defaults
|
||||
################################################################################
|
||||
|
||||
# The TARGET_CPU variable controls which processor should be targeted for
|
||||
# generated code.
|
||||
case $TARGET_ARCH in
|
||||
arm)
|
||||
# TARGET_CPU:
|
||||
# arm2 arm250 arm3 arm6 arm60 arm600 arm610 arm620 arm7 arm7m arm7d
|
||||
# arm7dm arm7di arm7dmi arm70 arm700 arm700i arm710 arm710c
|
||||
# arm7100 arm720 arm7500 arm7500fe arm7tdmi arm7tdmi-s arm710t
|
||||
# arm720t arm740t strongarm strongarm110 strongarm1100
|
||||
# strongarm1110 arm8 arm810 arm9 arm9e arm920 arm920t arm922t
|
||||
# arm946e-s arm966e-s arm968e-s arm926ej-s arm940t arm9tdmi
|
||||
# arm10tdmi arm1020t arm1026ej-s arm10e arm1020e arm1022e
|
||||
# arm1136j-s arm1136jf-s mpcore mpcorenovfp arm1156t2-s
|
||||
# arm1176jz-s arm1176jzf-s cortex-a8 cortex-a9 cortex-r4
|
||||
# cortex-r4f cortex-m3 cortex-m1 xscale iwmmxt iwmmxt2 ep9312.
|
||||
TARGET_CPU="cortex-a8"
|
||||
|
||||
# TARGET_FLOAT:
|
||||
# Specifies which floating-point ABI to use. Permissible values are:
|
||||
# soft softfp hard
|
||||
TARGET_FLOAT="hard"
|
||||
|
||||
# TARGET_FPU:
|
||||
# This specifies what floating point hardware (or hardware emulation) is
|
||||
# available on the target. Permissible names are:
|
||||
# fpa fpe2 fpe3 maverick vfp vfpv3 vfpv3-fp16 vfpv3-d16 vfpv3-d16-fp16
|
||||
# vfpv3xd vfpv3xd-fp16 neon neon-fp16 vfpv4 vfpv4-d16 fpv4-sp-d16
|
||||
# neon-vfpv4.
|
||||
TARGET_FPU="neon"
|
||||
;;
|
||||
esac
|
||||
|
||||
# Bootloader to use (syslinux / u-boot / bcm2835-bootloader)
|
||||
BOOTLOADER="u-boot"
|
||||
|
||||
# u-boot version to use (default)
|
||||
UBOOT_VERSION="sunxi"
|
||||
|
||||
# Configuration for u-boot
|
||||
UBOOT_CONFIG="cubieboard_config"
|
||||
|
||||
# Target Configfile for u-boot
|
||||
UBOOT_CONFIGFILE=""
|
||||
|
||||
# Kernel target for u-boot (default 'uImage' if BOOTLOADER=u-boot) (uImage / zImage)
|
||||
KERNEL_UBOOT_TARGET="uImage"
|
||||
|
||||
# Kernel extra targets to build
|
||||
KERNEL_UBOOT_EXTRA_TARGET=""
|
||||
|
||||
# Additional kernel make parameters (for example to specify the u-boot loadaddress)
|
||||
KERNEL_MAKE_EXTRACMD=""
|
||||
|
||||
# Kernel to use. values can be:
|
||||
# default: default mainline kernel
|
||||
LINUX="linux-sun7i"
|
||||
|
||||
|
||||
################################################################################
|
||||
# setup build defaults
|
||||
################################################################################
|
||||
|
||||
# Build optimizations (size/normal)
|
||||
OPTIMIZATIONS="size"
|
||||
|
||||
# Project CFLAGS
|
||||
PROJECT_CFLAGS=""
|
||||
|
||||
# LTO (Link Time Optimization) support
|
||||
LTO_SUPPORT="yes"
|
||||
|
||||
# GOLD (Google Linker) support
|
||||
GOLD_SUPPORT="yes"
|
||||
|
||||
# SquashFS compression method (gzip / lzo / xz)
|
||||
SQUASHFS_COMPRESSION="gzip"
|
||||
|
||||
|
||||
################################################################################
|
||||
# setup project defaults
|
||||
################################################################################
|
||||
|
||||
# build and install ALSA Audio support (yes / no)
|
||||
ALSA_SUPPORT="yes"
|
||||
|
||||
# OpenGL(X) implementation to use (no / Mesa)
|
||||
OPENGL="no"
|
||||
|
||||
# OpenGL-ES implementation to use (no / bcm2835-driver / gpu-viv-bin-mx6q)
|
||||
OPENGLES="sunxi-mali"
|
||||
|
||||
# include uvesafb support (yes / no)
|
||||
UVESAFB_SUPPORT="no"
|
||||
|
||||
# Displayserver to use (x11 / no)
|
||||
DISPLAYSERVER="no"
|
||||
|
||||
# Windowmanager to use (ratpoison / fluxbox / none)
|
||||
WINDOWMANAGER="none"
|
||||
|
||||
# Xorg Graphic drivers to use (all / i915,i965,r200,r300,r600,nvidia,nouveau)
|
||||
# Space separated list is supported,
|
||||
# e.g. GRAPHIC_DRIVERS="i915 i965 r300 r600 radeonsi nvidia nouveau"
|
||||
GRAPHIC_DRIVERS=""
|
||||
|
||||
# KODI Player implementation to use (default / bcm2835-driver / libfslvpuwrap)
|
||||
KODIPLAYER_DRIVER="libfslvpuwrap"
|
||||
|
||||
# Modules to install in initramfs for early boot
|
||||
INITRAMFS_MODULES=""
|
||||
|
||||
# additional Firmware to use (dvb-firmware, misc-firmware, wlan-firmware)
|
||||
# Space separated list is supported,
|
||||
# e.g. FIRMWARE="dvb-firmware misc-firmware wlan-firmware"
|
||||
FIRMWARE="misc-firmware wlan-firmware dvb-firmware"
|
||||
|
||||
# build and install ATV IR remote support (yes / no)
|
||||
ATVCLIENT_SUPPORT="no"
|
||||
|
||||
# build and install IRServer IR/LCD support (yes / no)
|
||||
IRSERVER_SUPPORT="no"
|
||||
|
||||
# build with swap support (yes / no)
|
||||
SWAP_SUPPORT="no"
|
||||
|
||||
# swap support enabled per default (yes / no)
|
||||
SWAP_ENABLED_DEFAULT="no"
|
||||
|
||||
# swapfile size if SWAP_SUPPORT=yes in MB
|
||||
SWAPFILESIZE="128"
|
||||
|
||||
# build with installer (yes / no)
|
||||
INSTALLER_SUPPORT="no"
|
||||
|
||||
# build and install 'RSXS' Screensaver (yes / no)
|
||||
KODI_SCR_RSXS="no"
|
||||
|
||||
# build and install 'ProjectM' Visualization (yes / no)
|
||||
KODI_VIS_PROJECTM="no"
|
||||
|
||||
# build and install 'GOOM' Visualization (yes / no)
|
||||
KODI_VIS_GOOM="no"
|
||||
|
||||
# build and install 'FishBMC' Visualization (yes / no)
|
||||
KODI_VIS_FISHBMC="no"
|
||||
|
||||
ADDITIONAL_DRIVERS=""
|
10
projects/a10/packages/systemd/config/hwdb.d/README
Normal file
10
projects/a10/packages/systemd/config/hwdb.d/README
Normal file
@ -0,0 +1,10 @@
|
||||
Hardware Database Files
|
||||
|
||||
The hwdb files are read from the files located in the system hwdb directory
|
||||
/usr/lib/udev/hwdb.d and the user runtime directory /storage/.config/hwdb.d
|
||||
All hwdb files are collectively sorted and processed in lexical order, regardless of
|
||||
the directories in which they live. However, files with identical filenames
|
||||
replace each other. /usr/lib/udev/hwdb.d/* takes precedence over /storage/.config/hwdb.d/*
|
||||
|
||||
your files must be named 99-xxxxx.hwdb
|
||||
|
33
projects/a10/packages/systemd/config/modules-load.d/README
Normal file
33
projects/a10/packages/systemd/config/modules-load.d/README
Normal file
@ -0,0 +1,33 @@
|
||||
Name
|
||||
|
||||
modules-load.d — Configure kernel modules to load at boot
|
||||
|
||||
Synopsis
|
||||
|
||||
/etc/modules-load.d/*.conf
|
||||
|
||||
/run/modules-load.d/*.conf
|
||||
|
||||
/usr/lib/modules-load.d/*.conf
|
||||
|
||||
Description
|
||||
|
||||
systemd-modules-load.service(8) reads files from the above directories which contain kernel modules to load during boot in a static list. Each configuration file is named in the style of /etc/modules-load.d/program.conf. Note that it is usually a better idea to rely on the automatic module loading by PCI IDs, USB IDs, DMI IDs or similar triggers encoded in the kernel modules themselves instead of static configuration like this. In fact, most modern kernel modules are prepared for automatic loading already.
|
||||
Configuration Format
|
||||
|
||||
The configuration files should simply contain a list of kernel module names to load, separated by newlines. Empty lines and lines whose first non-whitespace character is # or ; are ignored.
|
||||
|
||||
Each configuration file shall be named in the style of program.conf. Files in /etc/ override files with the same name in /usr/lib/ and /run/. Files in /run/ override files with the same name in /usr/lib/. Packages should install their configuration files in /usr/lib/, files in /etc/ are reserved for the local administrator, who may use this logic to override the configuration files installed from vendor packages.
|
||||
|
||||
If the administrator wants to disable a configuration file supplied by the vendor the recommended way is to place a symlink to /dev/null in /etc/modules-load.d/ bearing the same filename.
|
||||
Example
|
||||
|
||||
Example 1. /etc/modules-load.d/virtio-net.conf example:
|
||||
|
||||
# Load virtio-net.ko at boot
|
||||
virtio-net
|
||||
|
||||
|
||||
See Also
|
||||
|
||||
systemd(1), systemd-modules-load.service(8), systemd-delta(1), modprobe(8)
|
35
projects/a10/packages/systemd/config/sysctl.d/README
Normal file
35
projects/a10/packages/systemd/config/sysctl.d/README
Normal file
@ -0,0 +1,35 @@
|
||||
Name
|
||||
|
||||
sysctl.d — Configure kernel parameters at boot
|
||||
|
||||
Synopsis
|
||||
|
||||
/etc/sysctl.d/*.conf
|
||||
|
||||
/run/sysctl.d/*.conf
|
||||
|
||||
/usr/lib/sysctl.d/*.conf
|
||||
|
||||
Description
|
||||
|
||||
At boot, systemd-sysctl.service(8) reads configuration files from the above directories to configure sysctl(8) kernel parameters.
|
||||
Configuration Format
|
||||
|
||||
The configuration files contain a list of variable assignments, separated by newlines. Empty lines and lines whose first non-whitespace character is # or ; are ignored.
|
||||
|
||||
Note that both / and . are accepted as label separators within sysctl variable names. "kernel.domainname=foo" and "kernel/domainname=foo" hence are entirely equivalent.
|
||||
|
||||
Each configuration file shall be named in the style of program.conf. Files in /etc/ override files with the same name in /usr/lib/ and /run/. Files in /run/ override files with the same name in /usr/lib/. Packages should install their configuration files in /usr/lib/. Files in /etc/ are reserved for the local administrator, who may use this logic to override the configuration files installed by vendor packages. All configuration files are sorted by their filename in alphabetical order, regardless in which of the directories they reside, to guarantee that a specific configuration file takes precedence over another file with an alphabetically later name, if both files contain the same variable setting.
|
||||
|
||||
If the administrator wants to disable a configuration file supplied by the vendor, the recommended way is to place a symlink to /dev/null in /etc/sysctl.d/ bearing the same filename.
|
||||
Example
|
||||
|
||||
Example 1. /etc/sysctl.d/domain-name.conf example:
|
||||
|
||||
# Set kernel YP domain name
|
||||
kernel.domainname=example.com
|
||||
|
||||
|
||||
See Also
|
||||
|
||||
systemd(1), systemd-sysctl.service(8), systemd-delta(1), sysctl(8), sysctl.conf(5)
|
232
projects/a10/packages/systemd/config/system.d/README
Normal file
232
projects/a10/packages/systemd/config/system.d/README
Normal file
@ -0,0 +1,232 @@
|
||||
Name
|
||||
|
||||
systemd.unit — Unit configuration
|
||||
|
||||
Synopsis
|
||||
|
||||
service.service, socket.socket, device.device, mount.mount, automount.automount, swap.swap, target.target, path.path, timer.timer, snapshot.snapshot, slice.slice, scope.scope
|
||||
|
||||
/etc/systemd/system/*
|
||||
/run/systemd/system/*
|
||||
/usr/lib/systemd/system/*
|
||||
...
|
||||
|
||||
|
||||
$HOME/.config/systemd/user/*
|
||||
/etc/systemd/user/*
|
||||
/run/systemd/user/*
|
||||
/usr/lib/systemd/user/*
|
||||
...
|
||||
|
||||
Description
|
||||
|
||||
A unit configuration file encodes information about a service, a socket, a device, a mount point, an automount point, a swap file or partition, a start-up target, a watched file system path, a timer controlled and supervised by systemd(1), a temporary system state snapshot, a resource management slice or a group of externally created processes. The syntax is inspired by XDG Desktop Entry Specification .desktop files, which are in turn inspired by Microsoft Windows .ini files.
|
||||
|
||||
This man page lists the common configuration options of all the unit types. These options need to be configured in the [Unit] or [Install] sections of the unit files.
|
||||
|
||||
In addition to the generic [Unit] and [Install] sections described here, each unit may have a type-specific section, e.g. [Service] for a service unit. See the respective man pages for more information: systemd.service(5), systemd.socket(5), systemd.device(5), systemd.mount(5), systemd.automount(5), systemd.swap(5), systemd.target(5), systemd.path(5), systemd.timer(5), systemd.snapshot(5). systemd.slice(5). systemd.scope(5).
|
||||
|
||||
Unit files are loaded from a set of paths determined during compilation, described in the next section.
|
||||
|
||||
Unit files may contain additional options on top of those listed here. If systemd encounters an unknown option it will write a warning log message but continue loading the unit. If an option is prefixed with X- it is ignored completely by systemd. Applications may use this to include additional information in the unit files.
|
||||
|
||||
Boolean arguments used in unit files can be written in various formats. For positive settings the strings 1, yes, true and on are equivalent. For negative settings the strings 0, no, false and off are equivalent.
|
||||
|
||||
Time span values encoded in unit files can be written in various formats. A stand-alone number specifies a time in seconds. If suffixed with a time unit, the unit is honored. A concatenation of multiple values with units is supported, in which case the values are added up. Example: "50" refers to 50 seconds; "2min 200ms" refers to 2 minutes plus 200 milliseconds, i.e. 120200ms. The following time units are understood: s, min, h, d, w, ms, us. For details see systemd.time(7).
|
||||
|
||||
Empty lines and lines starting with # or ; are ignored. This may be used for commenting. Lines ending in a backslash are concatenated with the following line while reading and the backslash is replaced by a space character. This may be used to wrap long lines.
|
||||
|
||||
Along with a unit file foo.service the directory foo.service.wants/ may exist. All unit files symlinked from such a directory are implicitly added as dependencies of type Wanted= to the unit. This is useful to hook units into the start-up of other units, without having to modify their unit files. For details about the semantics of Wanted= see below. The preferred way to create symlinks in the .wants/ directory of a unit file is with the enable command of the systemctl(1) tool which reads information from the [Install] section of unit files (see below). A similar functionality exists for Requires= type dependencies as well, the directory suffix is .requires/ in this case.
|
||||
|
||||
Along with a unit file foo.service a directory foo.service.d/ may exist. All files with the suffix ".conf" from this directory will be parsed after the file itself is parsed. This is useful to alter or add configuration settings to a unit, without having to modify their unit files. Make sure that the file that is included has the appropriate section headers before any directive.
|
||||
|
||||
If a line starts with .include followed by a filename, the specified file will be parsed at this point. Make sure that the file that is included has the appropriate section headers before any directives.
|
||||
|
||||
Note that while systemd offers a flexible dependency system between units it is recommended to use this functionality only sparingly and instead rely on techniques such as bus-based or socket-based activation which make dependencies implicit, resulting in a both simpler and more flexible system.
|
||||
|
||||
Some unit names reflect paths existing in the file system namespace. Example: a device unit dev-sda.device refers to a device with the device node /dev/sda in the file system namespace. If this applies a special way to escape the path name is used, so that the result is usable as part of a filename. Basically, given a path, "/" is replaced by "-", and all unprintable characters and the "-" are replaced by C-style "\x20" escapes. The root directory "/" is encoded as single dash, while otherwise the initial and ending "/" is removed from all paths during transformation. This escaping is reversible.
|
||||
|
||||
Optionally, units may be instantiated from a template file at runtime. This allows creation of multiple units from a single configuration file. If systemd looks for a unit configuration file it will first search for the literal unit name in the filesystem. If that yields no success and the unit name contains an "@" character, systemd will look for a unit template that shares the same name but with the instance string (i.e. the part between the "@" character and the suffix) removed. Example: if a service getty@tty3.service is requested and no file by that name is found, systemd will look for getty@.service and instantiate a service from that configuration file if it is found.
|
||||
|
||||
To refer to the instance string from within the configuration file you may use the special "%i" specifier in many of the configuration options. See below for details.
|
||||
|
||||
If a unit file is empty (i.e. has the file size 0) or is symlinked to /dev/null its configuration will not be loaded and it appears with a load state of "masked", and cannot be activated. Use this as an effective way to fully disable a unit, making it impossible to start it even manually.
|
||||
|
||||
The unit file format is covered by the Interface Stability Promise.
|
||||
Unit Load Path
|
||||
|
||||
Unit files are loaded from a set of paths determined during compilation, described in the two tables below. Unit files found in directories listed earlier override files with the same name in directories lower in the list.
|
||||
|
||||
When systemd is running in user mode (--user) and the variable $SYSTEMD_UNIT_PATH is set, this contents of this variable overrides the unit load path.
|
||||
|
||||
Table 1. Load path when running in system mode (--system).
|
||||
Path Description
|
||||
/etc/systemd/system Local configuration
|
||||
/run/systemd/systemd Runtime units
|
||||
/usr/lib/systemd/system Units of installed packages
|
||||
|
||||
Table 2. Load path when running in user mode (--user).
|
||||
Path Description
|
||||
$HOME/.config/systemd/user User configuration
|
||||
/etc/systemd/user Local configuration
|
||||
/run/systemd/user Runtime units
|
||||
/usr/lib/systemd/user Units of installed packages
|
||||
|
||||
Additional units might be loaded into systemd ("linked") from directories not on the unit load path. See the link command for systemctl(1). Also, some units are dynamically created via generators Generators.
|
||||
Options
|
||||
|
||||
Unit file may include a [Unit] section, which carries generic information about the unit that is not dependent on the type of unit:
|
||||
|
||||
Description=
|
||||
A free-form string describing the unit. This is intended for use in UIs to show descriptive information along with the unit name.
|
||||
|
||||
Documentation=
|
||||
A space-separated list of URIs referencing documentation for this unit or its configuration. Accepted are only URIs of the types "http://", "https://", "file:", "info:", "man:". For more information about the syntax of these URIs, see uri(7). The URIs should be listed in order of relevance, starting with the most relevant. It is a good idea to first reference documentation that explains what the unit's purpose is, followed by how it is configured, followed by any other related documentation. This option may be specified more than once in which case the specified list of URIs is merged. If the empty string is assigned to this option, the list is reset and all prior assignments will have no effect.
|
||||
Requires=
|
||||
|
||||
Configures requirement dependencies on other units. If this unit gets activated, the units listed here will be activated as well. If one of the other units gets deactivated or its activation fails, this unit will be deactivated. This option may be specified more than once, in which case requirement dependencies for all listed names are created. Note that requirement dependencies do not influence the order in which services are started or stopped. This has to be configured independently with the After= or Before= options. If a unit foo.service requires a unit bar.service as configured with Requires= and no ordering is configured with After= or Before=, then both units will be started simultaneously and without any delay between them if foo.service is activated. Often it is a better choice to use Wants= instead of Requires= in order to achieve a system that is more robust when dealing with failing services.
|
||||
|
||||
Note that dependencies of this type may also be configured outside of the unit configuration file by adding a symlink to a .requires/ directory accompanying the unit file. For details see above.
|
||||
|
||||
RequiresOverridable=
|
||||
Similar to Requires=. Dependencies listed in RequiresOverridable= which cannot be fulfilled or fail to start are ignored if the startup was explicitly requested by the user. If the start-up was pulled in indirectly by some dependency or automatic start-up of units that is not requested by the user this dependency must be fulfilled and otherwise the transaction fails. Hence, this option may be used to configure dependencies that are normally honored unless the user explicitly starts up the unit, in which case whether they failed or not is irrelevant.
|
||||
|
||||
Requisite=, RequisiteOverridable=
|
||||
Similar to Requires= and RequiresOverridable=, respectively. However, if a unit listed here is not started already it will not be started and the transaction fails immediately.
|
||||
|
||||
Wants=
|
||||
A weaker version of Requires=. A unit listed in this option will be started if the configuring unit is. However, if the listed unit fails to start up or cannot be added to the transaction this has no impact on the validity of the transaction as a whole. This is the recommended way to hook start-up of one unit to the start-up of another unit.
|
||||
|
||||
Note that dependencies of this type may also be configured outside of the unit configuration file by adding a symlink to a .wants/ directory accompanying the unit file. For details see above.
|
||||
|
||||
BindsTo=
|
||||
Configures requirement dependencies, very similar in style to Requires=, however in addition to this behavior it also declares that this unit is stopped when any of the units listed suddenly disappears. Units can suddenly, unexpectedly disappear if a service terminates on its own choice, a device is unplugged or a mount point unmounted without involvement of systemd.
|
||||
|
||||
PartOf=
|
||||
Configures dependencies similar to Requires=, but limited to stopping and restarting of units. When systemd stops or restarts the units listed here, the action is propagated to this unit. Note that this is a one way dependency - changes to this unit do not affect the listed units.
|
||||
|
||||
Conflicts=
|
||||
Configures negative requirement dependencies. If a unit has a Conflicts= setting on another unit, starting the former will stop the latter and vice versa. Note that this setting is independent of and orthogonal to the After= and Before= ordering dependencies.
|
||||
|
||||
If a unit A that conflicts with a unit B is scheduled to be started at the same time as B, the transaction will either fail (in case both are required part of the transaction) or be modified to be fixed (in case one or both jobs are not a required part of the transaction). In the latter case the job that is not the required will be removed, or in case both are not required the unit that conflicts will be started and the unit that is conflicted is stopped.
|
||||
|
||||
Before=, After=
|
||||
Configures ordering dependencies between units. If a unit foo.service contains a setting Before=bar.service and both units are being started, bar.service's start-up is delayed until foo.service is started up. Note that this setting is independent of and orthogonal to the requirement dependencies as configured by Requires=. It is a common pattern to include a unit name in both the After= and Requires= option in which case the unit listed will be started before the unit that is configured with these options. This option may be specified more than once, in which case ordering dependencies for all listed names are created. After= is the inverse of Before=, i.e. while After= ensures that the configured unit is started after the listed unit finished starting up, Before= ensures the opposite, i.e. that the configured unit is fully started up before the listed unit is started. Note that when two units with an ordering dependency between them are shut down, the inverse of the start-up order is applied. i.e. if a unit is configured with After= on another unit, the former is stopped before the latter if both are shut down. If one unit with an ordering dependency on another unit is shut down while the latter is started up, the shut down is ordered before the start-up regardless whether the ordering dependency is actually of type After= or Before=. If two units have no ordering dependencies between them they are shut down or started up simultaneously, and no ordering takes place.
|
||||
|
||||
OnFailure=
|
||||
Lists one or more units that are activated when this unit enters the "failed" state.
|
||||
|
||||
PropagatesReloadTo=, ReloadPropagatedFrom=
|
||||
Lists one or more units where reload requests on the unit will be propagated to/on the other unit will be propagated from. Issuing a reload request on a unit will automatically also enqueue a reload request on all units that the reload request shall be propagated to via these two settings.
|
||||
|
||||
RequiresMountsFor=
|
||||
Takes a space-separated list of absolute paths. Automatically adds dependencies of type Requires= and After= for all mount units required to access the specified path.
|
||||
|
||||
OnFailureIsolate=
|
||||
Takes a boolean argument. If true the unit listed in OnFailure= will be enqueued in isolation mode, i.e. all units that are not its dependency will be stopped. If this is set only a single unit may be listed in OnFailure=. Defaults to false.
|
||||
|
||||
IgnoreOnIsolate=
|
||||
Takes a boolean argument. If true this unit will not be stopped when isolating another unit. Defaults to false.
|
||||
|
||||
IgnoreOnSnapshot=
|
||||
Takes a boolean argument. If true this unit will not be included in snapshots. Defaults to true for device and snapshot units, false for the others.
|
||||
|
||||
StopWhenUnneeded=
|
||||
Takes a boolean argument. If true this unit will be stopped when it is no longer used. Note that in order to minimize the work to be executed, systemd will not stop units by default unless they are conflicting with other units, or the user explicitly requested their shut down. If this option is set, a unit will be automatically cleaned up if no other active unit requires it. Defaults to false.
|
||||
|
||||
RefuseManualStart=, RefuseManualStop=
|
||||
Takes a boolean argument. If true this unit can only be activated or deactivated indirectly. In this case explicit start-up or termination requested by the user is denied, however if it is started or stopped as a dependency of another unit, start-up or termination will succeed. This is mostly a safety feature to ensure that the user does not accidentally activate units that are not intended to be activated explicitly, and not accidentally deactivate units that are not intended to be deactivated. These options default to false.
|
||||
|
||||
AllowIsolate=
|
||||
Takes a boolean argument. If true this unit may be used with the systemctl isolate command. Otherwise this will be refused. It probably is a good idea to leave this disabled except for target units that shall be used similar to runlevels in SysV init systems, just as a precaution to avoid unusable system states. This option defaults to false.
|
||||
|
||||
DefaultDependencies=
|
||||
Takes a boolean argument. If true (the default), a few default dependencies will implicitly be created for the unit. The actual dependencies created depend on the unit type. For example, for service units, these dependencies ensure that the service is started only after basic system initialization is completed and is properly terminated on system shutdown. See the respective man pages for details. Generally, only services involved with early boot or late shutdown should set this option to false. It is highly recommended to leave this option enabled for the majority of common units. If set to false, this option does not disable all implicit dependencies, just non-essential ones.
|
||||
|
||||
JobTimeoutSec=
|
||||
When clients are waiting for a job of this unit to complete, time out after the specified time. If this time limit is reached the job will be cancelled, the unit however will not change state or even enter the "failed" mode. This value defaults to 0 (job timeouts disabled), except for device units. NB: this timeout is independent from any unit-specific timeout (for example, the timeout set with Timeout= in service units) as the job timeout has no effect on the unit itself, only on the job that might be pending for it. Or in other words: unit-specific timeouts are useful to abort unit state changes, and revert them. The job timeout set with this option however is useful to abort only the job waiting for the unit state to change.
|
||||
|
||||
ConditionPathExists=, ConditionPathExistsGlob=, ConditionPathIsDirectory=, ConditionPathIsSymbolicLink=, ConditionPathIsMountPoint=, ConditionPathIsReadWrite=, ConditionDirectoryNotEmpty=, ConditionFileNotEmpty=, ConditionFileIsExecutable=, ConditionKernelCommandLine=, ConditionVirtualization=, ConditionSecurity=, ConditionCapability=, ConditionHost=, ConditionACPower=, ConditionNull=
|
||||
Before starting a unit verify that the specified condition is true. If it is not true the starting of the unit will be skipped, however all ordering dependencies of it are still respected. A failing condition will not result in the unit being moved into a failure state. The condition is checked at the time the queued start job is to be executed.
|
||||
|
||||
With ConditionPathExists= a file existence condition is checked before a unit is started. If the specified absolute path name does not exist the condition will fail. If the absolute path name passed to ConditionPathExists= is prefixed with an exclamation mark ("!"), the test is negated, and the unit is only started if the path does not exist.
|
||||
|
||||
ConditionPathExistsGlob= is similar to ConditionPathExists=, but checks for the existence of at least one file or directory matching the specified globbing pattern.
|
||||
|
||||
ConditionPathIsDirectory= is similar to ConditionPathExists= but verifies whether a certain path exists and is a directory.
|
||||
|
||||
ConditionPathIsSymbolicLink= is similar to ConditionPathExists= but verifies whether a certain path exists and is a symbolic link.
|
||||
|
||||
ConditionPathIsMountPoint= is similar to ConditionPathExists= but verifies whether a certain path exists and is a mount point.
|
||||
|
||||
ConditionPathIsReadWrite= is similar to ConditionPathExists= but verifies whether the underlying file system is readable and writable (i.e. not mounted read-only).
|
||||
|
||||
ConditionDirectoryNotEmpty= is similar to ConditionPathExists= but verifies whether a certain path exists and is a non-empty directory.
|
||||
|
||||
ConditionFileNotEmpty= is similar to ConditionPathExists= but verifies whether a certain path exists and refers to a regular file with a non-zero size.
|
||||
|
||||
ConditionFileIsExecutable= is similar to ConditionPathExists= but verifies whether a certain path exists, is a regular file and marked executable.
|
||||
|
||||
Similar, ConditionKernelCommandLine= may be used to check whether a specific kernel command line option is set (or if prefixed with the exclamation mark unset). The argument must either be a single word, or an assignment (i.e. two words, separated "="). In the former case the kernel command line is searched for the word appearing as is, or as left hand side of an assignment. In the latter case the exact assignment is looked for with right and left hand side matching.
|
||||
|
||||
ConditionVirtualization= may be used to check whether the system is executed in a virtualized environment and optionally test whether it is a specific implementation. Takes either boolean value to check if being executed in any virtualized environment, or one of vm and container to test against a generic type of virtualization solution, or one of qemu, kvm, vmware, microsoft, oracle, xen, bochs, chroot, uml, openvz, lxc, lxc-libvirt, systemd-nspawn to test against a specific implementation. If multiple virtualization technologies are nested only the innermost is considered. The test may be negated by prepending an exclamation mark.
|
||||
|
||||
ConditionSecurity= may be used to check whether the given security module is enabled on the system. Currently the recognized values values are selinux, apparmor, ima and smack. The test may be negated by prepending an exclamation mark.
|
||||
|
||||
ConditionCapability= may be used to check whether the given capability exists in the capability bounding set of the service manager (i.e. this does not check whether capability is actually available in the permitted or effective sets, see capabilities(7) for details). Pass a capability name such as "CAP_MKNOD", possibly prefixed with an exclamation mark to negate the check.
|
||||
|
||||
ConditionHost= may be used to match against the hostname or machine ID of the host. This either takes a hostname string (optionally with shell style globs) which is tested against the locally set hostname as returned by gethostname(2), or a machine ID formatted as string (see machine-id(5)). The test may be negated by prepending an exclamation mark.
|
||||
|
||||
ConditionACPower= may be used to check whether the system has AC power, or is exclusively battery powered at the time of activation of the unit. This takes a boolean argument. If set to true the condition will hold only if at least one AC connector of the system is connected to a power source, or if no AC connectors are known. Conversely, if set to false the condition will hold only if there is at least one AC connector known and all AC connectors are disconnected from a power source.
|
||||
|
||||
Finally, ConditionNull= may be used to add a constant condition check value to the unit. It takes a boolean argument. If set to false the condition will always fail, otherwise succeed.
|
||||
|
||||
If multiple conditions are specified the unit will be executed if all of them apply (i.e. a logical AND is applied). Condition checks can be prefixed with a pipe symbol (|) in which case a condition becomes a triggering condition. If at least one triggering condition is defined for a unit then the unit will be executed if at least one of the triggering conditions apply and all of the non-triggering conditions. If you prefix an argument with the pipe symbol and an exclamation mark the pipe symbol must be passed first, the exclamation second. Except for ConditionPathIsSymbolicLink=, all path checks follow symlinks. If any of these options is assigned the empty string the list of conditions is reset completely, all previous condition settings (of any kind) will have no effect.
|
||||
|
||||
SourcePath=
|
||||
A path to a configuration file this unit has been generated from. This is primarily useful for implementation of generator tools that convert configuration from an external configuration file format into native unit files. Thus functionality should not be used in normal units.
|
||||
|
||||
Unit file may include a [Install] section, which carries installation information for the unit. This section is not interpreted by systemd(1) during runtime. It is used exclusively by the enable and disable commands of the systemctl(1) tool during installation of a unit:
|
||||
|
||||
Alias=
|
||||
Additional names this unit shall be installed under. The names listed here must have the same suffix (i.e. type) as the unit file name. This option may be specified more than once, in which case all listed names are used. At installation time, systemctl enable will create symlinks from these names to the unit filename.
|
||||
|
||||
WantedBy=, RequiredBy=
|
||||
A symbolic link is created in the .wants/ or .requires/ directory of the listed unit when this unit is activated by systemctl enable. This has the effect that a dependency of type Wants= or Requires= is added from the listed unit to the current unit. The primary result is that the current unit will be started when the listed unit is started. See the description of Wants= and Requires= in the [Unit] section for details.
|
||||
|
||||
WantedBy=foo.service in a service bar.service is mostly equivalent to Alias=foo.service.wants/bar.service in the same file. In case of template units, systemctl enable must be called with an instance name, and this instance will be added to the .wants/ or .requires/ list of the listed unit. E.g. WantedBy=getty.target in a service getty@.service will result in systemctl enable getty@tty2.service creating a getty.target.wants/getty@tty2.service link to getty@.service.
|
||||
|
||||
Also=
|
||||
Additional units to install/deinstall when this unit is installed/deinstalled. If the user requests installation/deinstallation of a unit with this option configured, systemctl enable and systemctl disable will automatically install/uninstall units listed in this option as well.
|
||||
|
||||
The following specifiers are interpreted in the Install section: %n, %N, %p, %i, %U, %u, %m, %H, %b, %v. For their meaning see the next section.
|
||||
Specifiers
|
||||
|
||||
Many settings resolve specifiers which may be used to write generic unit files referring to runtime or unit parameters that are replaced when the unit files are loaded. The following specifiers are understood:
|
||||
|
||||
Table 3. Specifiers available in unit files
|
||||
Specifier Meaning Details
|
||||
"%n" Full unit name
|
||||
"%N" Unescaped full unit name
|
||||
"%p" Prefix name For instantiated units this refers to the string before the @. For non-instantiated units this refers to to the name of the unit with the type suffix removed.
|
||||
"%P" Unescaped prefix name
|
||||
"%i" Instance name For instantiated units: this is the string between the "@" character and the suffix.
|
||||
"%I" Unescaped instance name
|
||||
"%f" Unescaped filename This is either the unescaped instance name (if applicable) with / prepended (if applicable), or the prefix name similarly prepended with /.
|
||||
"%c" Control group path of the unit
|
||||
"%r" Root control group path where units are placed. For system instances this usually resolves to /system, except in containers, where the path might be prefixed with the container's root control group.
|
||||
"%R" Parent directory of the control group path where units are placed. For system instances this usually resolves to /, except in containers, where this resolves to the container's root directory. This specifier is particularly useful in the ControlGroup= setting (see systemd.exec(5)).
|
||||
"%t" Runtime socket dir This is either /run (for the system manager) or "$XDG_RUNTIME_DIR" (for user managers).
|
||||
"%u" User name This is the name of the configured user of the unit, or (if none is set) the user running the systemd instance.
|
||||
"%U" User UID This is the UID of the configured user of the unit, or (if none is set) the user running the systemd instance.
|
||||
"%h" User home directory This is the home directory of the configured user of the unit, or (if none is set) the user running the systemd instance.
|
||||
"%s" User shell This is the shell of the configured user of the unit, or (if none is set) the user running the systemd instance. If the user is "root" (UID equal to 0), the shell configured in account database is ignored and /bin/sh is always used.
|
||||
"%m" Machine ID The machine ID of the running system, formatted as string. See machine-id(5) for more information.
|
||||
"%b" Boot ID The boot ID of the running system, formatted as string. See random(4) for more information.
|
||||
"%H" Host name The hostname of the running system.
|
||||
"%v" Kernel release Identical to uname -r output.
|
||||
"%%" Escaped % Single percent sign.
|
||||
|
||||
See Also
|
||||
|
||||
systemd(1), systemctl(8), systemd.special(7), systemd.service(5), systemd.socket(5), systemd.device(5), systemd.mount(5), systemd.automount(5), systemd.swap(5), systemd.target(5), systemd.path(5), systemd.timer(5), systemd.snapshot(5), systemd.scope(5), systemd.slice(5), systemd.time(7), capabilities(7), systemd.directives(7), uname(1)
|
@ -0,0 +1,50 @@
|
||||
# This is a sample service script to mount CIFS/SAMBA shares.
|
||||
# Please read carefully the comments in this file. For production usage
|
||||
# you can remove all comments (lines beginning with "#") from this file.
|
||||
|
||||
|
||||
[Unit]
|
||||
# The description should be used to explain what this servicefile is for
|
||||
Description=test cifs mount script
|
||||
|
||||
# if we do network mounts like here we *require* 'network-online.service'
|
||||
# which checks if the network is online
|
||||
Requires=network-online.service
|
||||
|
||||
# our scripts must start *after* 'network-online.service', on timeout and if
|
||||
# 'network-online.service' fails we can not mount and this scripts fails too
|
||||
After=network-online.service
|
||||
|
||||
# usually we mount networks shares because we want they avaible *before* XBMC starts.
|
||||
# so XBMC has access to this mounts from beginning. Note: this slows down the boot!
|
||||
Before=kodi.service
|
||||
|
||||
|
||||
[Mount]
|
||||
# The share we want mount
|
||||
What=//192.168.0.31/Music
|
||||
|
||||
# Where we want mount this share
|
||||
Where=/storage/music2
|
||||
|
||||
# Any options you usually use with the "-o" parameter in the mount command
|
||||
Options=username=myusername,password=mypassword
|
||||
|
||||
# filesystem type
|
||||
Type=cifs
|
||||
|
||||
|
||||
[Install]
|
||||
# The target is used by 'systemctl enable <name_of_this_file.mount>' to link
|
||||
# this service to a runlevel for starting on boot. usually 'multi-user.target'
|
||||
# is ok here.
|
||||
WantedBy=multi-user.target
|
||||
|
||||
# Important:
|
||||
# this file must be renamed to <mountpoint>.mount where <mountpoint>, is the FULL path
|
||||
# where the share will be mounted but slashes "/" MUST BE REPLACED with dashes "-" with .mount
|
||||
# as extension.
|
||||
# This means, if we want mount to "/storage/music2" (see above "Where=/storage/music2")
|
||||
# then this file must be renamed to 'storage-music2.mount' and can be enabled via ssh with the
|
||||
# command 'servicectl enable storage-music2.mount'
|
||||
|
@ -0,0 +1,50 @@
|
||||
# This is a sample service script to mount NFS shares.
|
||||
# Please read carefully the comments in this file. For production usage
|
||||
# you can remove all comments (lines beginning with "#") from this file.
|
||||
|
||||
|
||||
[Unit]
|
||||
# The description should be used to explain what this servicefile is for
|
||||
Description=test nfs mount script
|
||||
|
||||
# if we do network mounts like here we *require* 'network-online.service'
|
||||
# which checks if the network is online
|
||||
Requires=network-online.service
|
||||
|
||||
# our scripts must start *after* 'network-online.service', on timeout and if
|
||||
# 'network-online.service' fails we can not mount and this scripts fails too
|
||||
After=network-online.service
|
||||
|
||||
# usually we mount networks shares because we want they avaible *before* XBMC starts.
|
||||
# so XBMC has access to this mounts from beginning. Note: this slows down the boot!
|
||||
Before=kodi.service
|
||||
|
||||
|
||||
[Mount]
|
||||
# The share we want mount
|
||||
What=192.168.0.31:/movies
|
||||
|
||||
# Where we want mount this share
|
||||
Where=/storage/movies2
|
||||
|
||||
# Any options you usually use with the "-o" parameter in the mount command
|
||||
Options=
|
||||
|
||||
# filesystem type
|
||||
Type=nfs
|
||||
|
||||
|
||||
[Install]
|
||||
# The target is used by 'systemctl enable <name_of_this_file.mount>' to link
|
||||
# this service to a runlevel for starting on boot. usually 'multi-user.target'
|
||||
# is ok here.
|
||||
WantedBy=multi-user.target
|
||||
|
||||
# Important:
|
||||
# this file must be renamed to <mountpoint>.mount where <mountpoint>, is the FULL path
|
||||
# where the share will be mounted but slashes "/" MUST BE REPLACED with dashes "-" with .mount
|
||||
# as extension.
|
||||
# This means, if we want mount to "/storage/movies2" (see above "Where=/storage/movies2")
|
||||
# then this file must be renamed to 'storage-movies2.mount' and can be enabled via ssh with the
|
||||
# command 'servicectl enable storage-movies2.mount'
|
||||
|
109
projects/a10/packages/systemd/config/tmpfiles.d/README
Normal file
109
projects/a10/packages/systemd/config/tmpfiles.d/README
Normal file
@ -0,0 +1,109 @@
|
||||
Name
|
||||
|
||||
tmpfiles.d — Configuration for creation, deletion and cleaning of volatile and temporary files
|
||||
|
||||
Synopsis
|
||||
|
||||
/etc/tmpfiles.d/*.conf
|
||||
|
||||
/run/tmpfiles.d/*.conf
|
||||
|
||||
/usr/lib/tmpfiles.d/*.conf
|
||||
|
||||
Description
|
||||
|
||||
systemd-tmpfiles uses the configuration files from the above directories to describe the creation, cleaning and removal of volatile and temporary files and directories which usually reside in directories such as /run or /tmp.
|
||||
Configuration Format
|
||||
|
||||
Each configuration file shall be named in the style of <program>.conf. Files in /etc/ override files with the same name in /usr/lib/ and /run/. Files in /run/ override files with the same name in /usr/lib/. Packages should install their configuration files in /usr/lib/. Files in /etc/ are reserved for the local administrator, who may use this logic to override the configuration files installed by vendor packages. All configuration files are sorted by their filename in alphabetical order, regardless in which of the directories they reside, to guarantee that a specific configuration file takes precedence over another file with an alphabetically later name.
|
||||
|
||||
If the administrator wants to disable a configuration file supplied by the vendor the recommended way is to place a symlink to /dev/null in /etc/tmpfiles.d/ bearing the same filename.
|
||||
|
||||
The configuration format is one line per path containing action, path, mode, ownership, age and argument fields:
|
||||
|
||||
Type Path Mode UID GID Age Argument
|
||||
d /run/user 0755 root root 10d -
|
||||
L /tmp/foobar - - - - /dev/null
|
||||
|
||||
Type
|
||||
|
||||
f
|
||||
Create a file if it doesn't exist yet (optionally writing a short string into it, if the argument parameter is passed)
|
||||
|
||||
F
|
||||
Create or truncate a file (optionally writing a short string into it, if the argument parameter is passed)
|
||||
|
||||
w
|
||||
Write the argument parameter to a file, if the file exists. Lines of this type accept shell-style globs in place of normal path names. The argument parameter will be written without a trailing newline. C-style backslash escapes are interpreted.
|
||||
|
||||
d
|
||||
Create a directory if it doesn't exist yet
|
||||
|
||||
D
|
||||
Create or empty a directory
|
||||
|
||||
p
|
||||
Create a named pipe (FIFO) if it doesn't exist yet
|
||||
|
||||
L
|
||||
Create a symlink if it doesn't exist yet
|
||||
|
||||
c
|
||||
Create a character device node if it doesn't exist yet
|
||||
|
||||
b
|
||||
Create a block device node if it doesn't exist yet
|
||||
|
||||
x
|
||||
Ignore a path during cleaning. Use this type to exclude paths from clean-up as controlled with the Age parameter. Note that lines of this type do not influence the effect of r or R lines. Lines of this type accept shell-style globs in place of normal path names.
|
||||
|
||||
X
|
||||
Ignore a path during cleanup. Use this type to prevent path removal as controlled with the Age parameter. Note that if path is a directory, content of a directory is not excluded from clean-up, only directory itself. Lines of this type accept shell-style globs in place of normal path names.
|
||||
|
||||
r
|
||||
Remove a file or directory if it exists. This may not be used to remove non-empty directories, use R for that. Lines of this type accept shell-style globs in place of normal path names.
|
||||
|
||||
R
|
||||
Recursively remove a path and all its subdirectories (if it is a directory). Lines of this type accept shell-style globs in place of normal path names.
|
||||
|
||||
z
|
||||
Restore SELinux security context label and set ownership and access mode of a file or directory if it exists. Lines of this type accept shell-style globs in place of normal path names.
|
||||
|
||||
Z
|
||||
Recursively restore SELinux security context label and set ownership and access mode of a path and all its subdirectories (if it is a directory). Lines of this type accept shell-style globs in place of normal path names.
|
||||
|
||||
Mode
|
||||
|
||||
The file access mode to use when creating this file or directory. If omitted or when set to - the default is used: 0755 for directories, 0644 for all other file objects. For z, Z lines if omitted or when set to - the file access mode will not be modified. This parameter is ignored for x, r, R, L lines.
|
||||
UID, GID
|
||||
|
||||
The user and group to use for this file or directory. This may either be a numeric user/group ID or a user or group name. If omitted or when set to - the default 0 (root) is used. For z, Z lines when omitted or when set to - the file ownership will not be modified. These parameters are ignored for x, r, R, L lines.
|
||||
Age
|
||||
|
||||
The date field, when set, is used to decide what files to delete when cleaning. If a file or directory is older than the current time minus the age field it is deleted. The field format is a series of integers each followed by one of the following postfixes for the respective time units:
|
||||
|
||||
s, min, h, d, w, ms, m, us
|
||||
|
||||
If multiple integers and units are specified the time values are summed up. If an integer is given without a unit, s is assumed.
|
||||
|
||||
When the age is set to zero, the files are cleaned unconditionally.
|
||||
|
||||
The age field only applies to lines starting with d, D and x. If omitted or set to - no automatic clean-up is done.
|
||||
|
||||
If the age field starts with a tilde character (~) the clean-up is only applied to files and directories one level inside the directory specified, but not the files and directories immediately inside it.
|
||||
Argument
|
||||
|
||||
For L lines determines the destination path of the symlink. For c, b determines the major/minor of the device node, with major and minor formatted as integers, separated by :, e.g. "1:3". For f, F, w may be used to specify a short string that is written to the file, suffixed by a newline. Ignored for all other lines.
|
||||
Example
|
||||
|
||||
Example 1. /etc/tmpfiles.d/screen.conf example
|
||||
|
||||
screen needs two directories created at boot with specific modes and ownership.
|
||||
|
||||
d /var/run/screens 1777 root root 10d
|
||||
d /var/run/uscreens 0755 root root 10d12h
|
||||
|
||||
|
||||
See Also
|
||||
|
||||
systemd(1), systemd-tmpfiles(8), systemd-delta(1)
|
25
projects/a10/packages/systemd/config/udev.rules.d/README
Normal file
25
projects/a10/packages/systemd/config/udev.rules.d/README
Normal file
@ -0,0 +1,25 @@
|
||||
The files in this directory are read by udev(7) and used when events
|
||||
are performed by the kernel. The udev daemon watches this directory
|
||||
with inotify so that changes to these files are automatically picked
|
||||
up, for this reason they must be files and not symlinks to another
|
||||
location as in the case in Debian.
|
||||
|
||||
Packages do not generally install rules here, this directory is for
|
||||
local rules. If you want to override behaviour of package-supplied
|
||||
rules, which can be found in /usr/lib/udev/rules.d, you can do one of
|
||||
two things:
|
||||
|
||||
1) Write your own rules in this directory that assign the name,
|
||||
symlinks, permissions, etc. that you want. Pick a number higher
|
||||
than the rules you want to override, and yours will be used.
|
||||
|
||||
2) Copy the file from /usr/lib/udev/rules.d and edit it here; you
|
||||
should generally only do this if you want to prevent a program
|
||||
from being run.
|
||||
|
||||
|
||||
If the ordering of files in this directory are not important to you,
|
||||
it's recommended that you simply name your files "descriptive-name.rules"
|
||||
such that they are processed AFTER all numbered rules in both this
|
||||
directory and /usr/lib/udev/rules.d and thus override anything set there.
|
||||
|
268
projects/a10/packages/systemd/package.mk
Normal file
268
projects/a10/packages/systemd/package.mk
Normal file
@ -0,0 +1,268 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# OpenELEC 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.
|
||||
#
|
||||
# OpenELEC 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 OpenELEC. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="systemd"
|
||||
PKG_VERSION="218"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://www.freedesktop.org/wiki/Software/systemd"
|
||||
PKG_URL="http://www.freedesktop.org/software/systemd/$PKG_NAME-$PKG_VERSION.tar.xz"
|
||||
PKG_DEPENDS_TARGET="toolchain libcap kmod util-linux libgcrypt"
|
||||
PKG_PRIORITY="required"
|
||||
PKG_SECTION="system"
|
||||
PKG_SHORTDESC="systemd: a system and session manager"
|
||||
PKG_LONGDESC="systemd is a system and session manager for Linux, compatible with SysV and LSB init scripts. systemd provides aggressive parallelization capabilities, uses socket and D-Bus activation for starting services, offers on-demand starting of daemons, keeps track of processes using Linux cgroups, supports snapshotting and restoring of the system state, maintains mount and automount points and implements an elaborate transactional dependency-based service control logic. It can work as a drop-in replacement for sysvinit."
|
||||
|
||||
PKG_IS_ADDON="no"
|
||||
PKG_AUTORECONF="yes"
|
||||
|
||||
PKG_CONFIGURE_OPTS_TARGET="ac_cv_func_malloc_0_nonnull=yes \
|
||||
KMOD=/usr/bin/kmod \
|
||||
--disable-nls \
|
||||
--disable-gtk-doc \
|
||||
--disable-gtk-doc-html \
|
||||
--disable-gtk-doc-pdf \
|
||||
--disable-python-devel \
|
||||
--disable-dbus \
|
||||
--disable-utmp \
|
||||
--disable-compat-libs \
|
||||
--disable-coverage \
|
||||
--enable-kmod \
|
||||
--disable-xkbcommon \
|
||||
--enable-blkid \
|
||||
--disable-seccomp \
|
||||
--disable-ima \
|
||||
--disable-chkconfig \
|
||||
--disable-selinux \
|
||||
--disable-apparmor \
|
||||
--disable-xz \
|
||||
--disable-lz4 \
|
||||
--disable-pam \
|
||||
--disable-acl \
|
||||
--disable-smack \
|
||||
--disable-gcrypt \
|
||||
--disable-audit \
|
||||
--disable-elfutils \
|
||||
--disable-libcryptsetup \
|
||||
--disable-qrencode \
|
||||
--disable-microhttpd \
|
||||
--disable-gnutls \
|
||||
--disable-libcurl \
|
||||
--disable-libidn \
|
||||
--disable-binfmt \
|
||||
--disable-vconsole \
|
||||
--disable-bootchart \
|
||||
--disable-quotacheck \
|
||||
--enable-tmpfiles \
|
||||
--disable-sysusers \
|
||||
--disable-firstboot \
|
||||
--disable-randomseed \
|
||||
--disable-backlight \
|
||||
--disable-rfkill \
|
||||
--enable-logind \
|
||||
--disable-machined \
|
||||
--disable-hostnamed \
|
||||
--disable-timedated \
|
||||
--disable-timesyncd \
|
||||
--disable-localed \
|
||||
--disable-coredump \
|
||||
--disable-polkit \
|
||||
--disable-resolved \
|
||||
--disable-networkd \
|
||||
--disable-efi \
|
||||
--disable-terminal \
|
||||
--disable-kdbus \
|
||||
--disable-myhostname \
|
||||
--disable-gudev \
|
||||
--disable-manpages \
|
||||
--disable-hibernate \
|
||||
--disable-ldconfig \
|
||||
--enable-split-usr \
|
||||
--disable-tests \
|
||||
--disable-hashmap-debug \
|
||||
--without-python \
|
||||
--disable-python-devel \
|
||||
--with-sysvinit-path= \
|
||||
--with-sysvrcnd-path= \
|
||||
--with-tty-gid=5 \
|
||||
--with-dbuspolicydir=/etc/dbus-1/system.d \
|
||||
--with-dbussessionservicedir=/usr/share/dbus-1/services \
|
||||
--with-dbussystemservicedir=/usr/share/dbus-1/system-services \
|
||||
--with-dbusinterfacedir=/usr/share/dbus-1/interfaces \
|
||||
--with-rootprefix=/usr \
|
||||
--with-rootlibdir=/lib"
|
||||
|
||||
post_makeinstall_target() {
|
||||
# remove unneeded stuff
|
||||
rm -rf $INSTALL/etc/systemd/system
|
||||
rm -rf $INSTALL/etc/xdg
|
||||
rm -f $INSTALL/usr/bin/kernel-install
|
||||
rm -rf $INSTALL/usr/lib/kernel/install.d
|
||||
rm -rf $INSTALL/usr/lib/rpm
|
||||
rm -rf $INSTALL/usr/lib/systemd/user
|
||||
rm -rf $INSTALL/usr/lib/tmpfiles.d/etc.conf
|
||||
rm -rf $INSTALL/usr/lib/tmpfiles.d/systemd-remote.conf
|
||||
rm -rf $INSTALL/usr/share/factory
|
||||
rm -rf $INSTALL/usr/share/zsh
|
||||
|
||||
# clean up hwdb
|
||||
rm -f $INSTALL/usr/lib/udev/hwdb.d/20-OUI.hwdb
|
||||
rm -f $INSTALL/usr/lib/udev/hwdb.d/20-acpi-vendor.hwdb
|
||||
rm -f $INSTALL/usr/lib/udev/hwdb.d/20-bluetooth-vendor-product.hwdb
|
||||
rm -f $INSTALL/usr/lib/udev/hwdb.d/20-net-ifname.hwdb
|
||||
rm -f $INSTALL/usr/lib/udev/hwdb.d/20-sdio-classes.hwdb
|
||||
rm -f $INSTALL/usr/lib/udev/hwdb.d/20-sdio-vendor-model.hwdb
|
||||
|
||||
# remove Network adaper renaming rule, this is confusing
|
||||
rm -rf $INSTALL/usr/lib/udev/rules.d/80-net-setup-link.rules
|
||||
|
||||
# remove debug-shell.service, we install our own
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/debug-shell.service
|
||||
|
||||
# remove systemd-ask-password
|
||||
rm -rf $INSTALL/usr/bin/systemd-ask-password
|
||||
rm -rf $INSTALL/usr/bin/systemd-tty-ask-password-agent
|
||||
rm -rf $INSTALL/usr/lib/systemd/systemd-reply-password
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/systemd-ask-password-console.path
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/systemd-ask-password-console.service
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/systemd-ask-password-wall.path
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/systemd-ask-password-wall.service
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/*.target.wants/systemd-ask-password-console.path
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/*.target.wants/systemd-ask-password-wall.path
|
||||
|
||||
# remove getty units, we dont want a console
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/autovt@.service
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/console-getty.service
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/console-shell.service
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/container-getty@.service
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/getty.target
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/getty@.service
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/serial-getty@.service
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/*.target.wants/getty.target
|
||||
|
||||
# remove other notused or nonsense stuff (our /etc is ro)
|
||||
rm -rf $INSTALL/usr/lib/systemd/systemd-update-done
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/systemd-update-done.service
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/*.target.wants/systemd-update-done.service
|
||||
|
||||
# remove systemd-udev-hwdb-update. we have own hwdb.service
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/systemd-udev-hwdb-update.service
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/*.target.wants/systemd-udev-hwdb-update.service
|
||||
|
||||
# remove rootfs fsck
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/systemd-fsck-root.service
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/*.target.wants/systemd-fsck-root.service
|
||||
|
||||
# remove fsck
|
||||
rm -rf $INSTALL/usr/lib/systemd/systemd-fsck
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/systemd-fsck@.service
|
||||
|
||||
# remove remount fs
|
||||
rm -rf $INSTALL/usr/lib/systemd/systemd-remount-fs
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/systemd-remount-fs.service
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/*.target.wants/systemd-remount-fs.service
|
||||
|
||||
# remove initrd services
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/initrd-*.service
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/initrd-*.target
|
||||
|
||||
# remove nspawn
|
||||
rm -rf $INSTALL/usr/bin/systemd-nspawn
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/systemd-nspawn@.service
|
||||
|
||||
# remove genetators/catalog
|
||||
rm -rf $INSTALL/usr/lib/systemd/system-generators
|
||||
rm -rf $INSTALL/usr/lib/systemd/catalog
|
||||
|
||||
# meh presets
|
||||
rm -rf $INSTALL/usr/lib/systemd/system-preset
|
||||
|
||||
# remove networkd
|
||||
rm -rf $INSTALL/usr/lib/systemd/network
|
||||
|
||||
# remove systemd-journal-remote.conf
|
||||
rm -rf $INSTALL/usr/lib/tmpfiles.d/systemd-remote.conf
|
||||
|
||||
# tune journald.conf
|
||||
sed -e "s,^.*Compress=.*$,Compress=no,g" -i $INSTALL/etc/systemd/journald.conf
|
||||
sed -e "s,^.*SplitMode=.*$,SplitMode=none,g" -i $INSTALL/etc/systemd/journald.conf
|
||||
sed -e "s,^.*MaxRetentionSec=.*$,MaxRetentionSec=1day,g" -i $INSTALL/etc/systemd/journald.conf
|
||||
sed -e "s,^.*RuntimeMaxUse=.*$,RuntimeMaxUse=2M,g" -i $INSTALL/etc/systemd/journald.conf
|
||||
sed -e "s,^.*RuntimeMaxFileSize=.*$,RuntimeMaxFileSize=128K,g" -i $INSTALL/etc/systemd/journald.conf
|
||||
sed -e "s,^.*SystemMaxUse=.*$,SystemMaxUse=10M,g" -i $INSTALL/etc/systemd/journald.conf
|
||||
|
||||
# tune logind.conf
|
||||
sed -e "s,^.*HandleLidSwitch=.*$,HandleLidSwitch=ignore,g" -i $INSTALL/etc/systemd/logind.conf
|
||||
|
||||
# replace systemd-machine-id-setup with ours
|
||||
rm -rf $INSTALL/usr/lib/systemd/systemd-machine-id-commit
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/systemd-machine-id-commit.service
|
||||
rm -rf $INSTALL/usr/lib/systemd/system/*.target.wants/systemd-machine-id-commit.service
|
||||
rm -rf $INSTALL/usr/bin/systemd-machine-id-setup
|
||||
mkdir -p $INSTALL/usr/bin
|
||||
cp $PKG_DIR/scripts/systemd-machine-id-setup $INSTALL/usr/bin
|
||||
|
||||
# provide 'halt', 'shutdown', 'reboot' & co.
|
||||
mkdir -p $INSTALL/usr/sbin
|
||||
ln -sf /usr/bin/systemctl $INSTALL/usr/sbin/halt
|
||||
ln -sf /usr/bin/systemctl $INSTALL/usr/sbin/poweroff
|
||||
ln -sf /usr/bin/systemctl $INSTALL/usr/sbin/reboot
|
||||
ln -sf /usr/bin/systemctl $INSTALL/usr/sbin/runlevel
|
||||
ln -sf /usr/bin/systemctl $INSTALL/usr/sbin/shutdown
|
||||
ln -sf /usr/bin/systemctl $INSTALL/usr/sbin/telinit
|
||||
|
||||
mkdir -p $INSTALL/usr/config
|
||||
cp -PR $PKG_DIR/config/* $INSTALL/usr/config
|
||||
|
||||
rm -rf $INSTALL/etc/modules-load.d
|
||||
ln -sf /storage/.config/modules-load.d $INSTALL/etc/modules-load.d
|
||||
rm -rf $INSTALL/etc/sysctl.d
|
||||
ln -sf /storage/.config/sysctl.d $INSTALL/etc/sysctl.d
|
||||
rm -rf $INSTALL/etc/tmpfiles.d
|
||||
ln -sf /storage/.config/tmpfiles.d $INSTALL/etc/tmpfiles.d
|
||||
rm -rf $INSTALL/etc/udev/hwdb.d
|
||||
ln -sf /storage/.config/hwdb.d $INSTALL/etc/udev/hwdb.d
|
||||
rm -rf $INSTALL/etc/udev/rules.d
|
||||
ln -sf /storage/.config/udev.rules.d $INSTALL/etc/udev/rules.d
|
||||
}
|
||||
|
||||
post_install() {
|
||||
add_group systemd-journal 190
|
||||
|
||||
add_group systemd-network 193
|
||||
add_user systemd-network x 193 193 "systemd-network" "/" "/bin/sh"
|
||||
|
||||
add_group audio 63
|
||||
add_group cdrom 11
|
||||
add_group dialout 18
|
||||
add_group disk 6
|
||||
add_group floppy 19
|
||||
add_group kmem 9
|
||||
add_group lp 7
|
||||
add_group tape 33
|
||||
add_group tty 5
|
||||
add_group video 39
|
||||
add_group utmp 22
|
||||
add_group input 199 # TODO change gid
|
||||
|
||||
enable_service machine-id.service
|
||||
enable_service debugconfig.service
|
||||
enable_service userconfig.service
|
||||
enable_service hwdb.service
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
From 8eade3f4d12255d1802433447b5fee53b44ff4f4 Mon Sep 17 00:00:00 2001
|
||||
From: Stefan Saraev <stefan@saraev.ca>
|
||||
Date: Sat, 16 Aug 2014 14:06:18 +0300
|
||||
Subject: [PATCH] fix pkgconf
|
||||
|
||||
---
|
||||
src/gudev/gudev-1.0.pc.in | 6 +++---
|
||||
src/libsystemd/libsystemd.pc.in | 6 +++---
|
||||
src/libudev/libudev.pc.in | 6 +++---
|
||||
3 files changed, 9 insertions(+), 9 deletions(-)
|
||||
|
||||
diff --git a/src/gudev/gudev-1.0.pc.in b/src/gudev/gudev-1.0.pc.in
|
||||
index 058262d..84d6b8b 100644
|
||||
--- a/src/gudev/gudev-1.0.pc.in
|
||||
+++ b/src/gudev/gudev-1.0.pc.in
|
||||
@@ -1,7 +1,7 @@
|
||||
prefix=@prefix@
|
||||
-exec_prefix=@exec_prefix@
|
||||
-libdir=@libdir@
|
||||
-includedir=@includedir@
|
||||
+exec_prefix=${prefix}
|
||||
+libdir=${exec_prefix}/lib
|
||||
+includedir=${prefix}/include
|
||||
|
||||
Name: gudev-1.0
|
||||
Description: GObject bindings for libudev
|
||||
diff --git a/src/libsystemd/libsystemd.pc.in b/src/libsystemd/libsystemd.pc.in
|
||||
index e8f7950..127e9ea 100644
|
||||
--- a/src/libsystemd/libsystemd.pc.in
|
||||
+++ b/src/libsystemd/libsystemd.pc.in
|
||||
@@ -6,9 +6,9 @@
|
||||
# (at your option) any later version.
|
||||
|
||||
prefix=@prefix@
|
||||
-exec_prefix=@exec_prefix@
|
||||
-libdir=@libdir@
|
||||
-includedir=@includedir@
|
||||
+exec_prefix=${prefix}
|
||||
+libdir=${exec_prefix}/lib
|
||||
+includedir=${prefix}/include
|
||||
|
||||
Name: systemd
|
||||
Description: systemd Library
|
||||
diff --git a/src/libudev/libudev.pc.in b/src/libudev/libudev.pc.in
|
||||
index a0f3f52..5582559 100644
|
||||
--- a/src/libudev/libudev.pc.in
|
||||
+++ b/src/libudev/libudev.pc.in
|
||||
@@ -6,9 +6,9 @@
|
||||
# (at your option) any later version.
|
||||
|
||||
prefix=@prefix@
|
||||
-exec_prefix=@exec_prefix@
|
||||
-libdir=@libdir@
|
||||
-includedir=@includedir@
|
||||
+exec_prefix=${prefix}
|
||||
+libdir=${exec_prefix}/lib
|
||||
+includedir=${prefix}/include
|
||||
|
||||
Name: libudev
|
||||
Description: Library to access udev device information
|
||||
--
|
||||
1.7.2.5
|
||||
|
@ -0,0 +1,31 @@
|
||||
From fcccd4547215855cc2d931546172f936a570ae01 Mon Sep 17 00:00:00 2001
|
||||
From: Stefan Saraev <stefan@saraev.ca>
|
||||
Date: Sat, 30 Nov 2013 13:16:37 +0200
|
||||
Subject: [PATCH 2/8] journald: decrease limits
|
||||
|
||||
happy rpi users...
|
||||
---
|
||||
src/journal/journal-file.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
|
||||
index c5d2d19..8ffcb04 100644
|
||||
--- a/src/journal/journal-file.c
|
||||
+++ b/src/journal/journal-file.c
|
||||
@@ -41,11 +41,11 @@
|
||||
#define COMPRESSION_SIZE_THRESHOLD (512ULL)
|
||||
|
||||
/* This is the minimum journal file size */
|
||||
-#define JOURNAL_FILE_SIZE_MIN (4ULL*1024ULL*1024ULL) /* 4 MiB */
|
||||
+#define JOURNAL_FILE_SIZE_MIN (128ULL*1024ULL) /* 128 K */
|
||||
|
||||
/* These are the lower and upper bounds if we deduce the max_use value
|
||||
* from the file system size */
|
||||
-#define DEFAULT_MAX_USE_LOWER (1ULL*1024ULL*1024ULL) /* 1 MiB */
|
||||
+#define DEFAULT_MAX_USE_LOWER (512ULL*1024ULL) /* 512 K */
|
||||
#define DEFAULT_MAX_USE_UPPER (4ULL*1024ULL*1024ULL*1024ULL) /* 4 GiB */
|
||||
|
||||
/* This is the upper bound if we deduce max_size from max_use */
|
||||
--
|
||||
1.7.10.4
|
||||
|
@ -0,0 +1,57 @@
|
||||
From 0fe627a4c4a10f5ed7aee8372cee7956aa1ccb80 Mon Sep 17 00:00:00 2001
|
||||
From: Stefan Saraev <stefan@saraev.ca>
|
||||
Date: Thu, 19 Dec 2013 11:21:13 +0200
|
||||
Subject: [PATCH 3/8] move /etc/systemd/system to /storage/.config/system.d
|
||||
|
||||
---
|
||||
Makefile.am | 4 ++--
|
||||
Makefile.in | 4 ++--
|
||||
2 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index ac7924e..8288850 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -164,7 +164,7 @@ udevlibexec_PROGRAMS =
|
||||
AM_CPPFLAGS = \
|
||||
-include $(top_builddir)/config.h \
|
||||
-DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
|
||||
- -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
|
||||
+ -DSYSTEM_CONFIG_UNIT_PATH=\"/storage/.config/system.d\" \
|
||||
-DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
|
||||
-DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
|
||||
-DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
|
||||
@@ -5838,7 +5838,7 @@ substitutions = \
|
||||
'|SYSTEMCTL=$(rootbindir)/systemctl|' \
|
||||
'|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
|
||||
'|pkgsysconfdir=$(pkgsysconfdir)|' \
|
||||
- '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
|
||||
+ '|SYSTEM_CONFIG_UNIT_PATH=/storage/.config/system.d|' \
|
||||
'|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
|
||||
'|pkgdatadir=$(pkgdatadir)|' \
|
||||
'|systemunitdir=$(systemunitdir)|' \
|
||||
diff --git a/Makefile.in b/Makefile.in
|
||||
index 3b35030..f0ad455 100644
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -5435,7 +5435,7 @@ manual_tests = test-ns test-loopback test-hostname test-daemon \
|
||||
AM_CPPFLAGS = \
|
||||
-include $(top_builddir)/config.h \
|
||||
-DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
|
||||
- -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
|
||||
+ -DSYSTEM_CONFIG_UNIT_PATH=\"/storage/.config/system.d\" \
|
||||
-DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
|
||||
-DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
|
||||
-DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
|
||||
@@ -8954,7 +8954,7 @@ substitutions = \
|
||||
'|SYSTEMCTL=$(rootbindir)/systemctl|' \
|
||||
'|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
|
||||
'|pkgsysconfdir=$(pkgsysconfdir)|' \
|
||||
- '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
|
||||
+ '|SYSTEM_CONFIG_UNIT_PATH=/storage/.config/system.d|' \
|
||||
'|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
|
||||
'|pkgdatadir=$(pkgdatadir)|' \
|
||||
'|systemunitdir=$(systemunitdir)|' \
|
||||
--
|
||||
1.7.10.4
|
||||
|
@ -0,0 +1,24 @@
|
||||
diff -Naur systemd-217/src/libudev/libudev-hwdb.c systemd-217.patch/src/libudev/libudev-hwdb.c
|
||||
--- systemd-217/src/libudev/libudev-hwdb.c 2014-10-28 14:31:25.105131602 +0100
|
||||
+++ systemd-217.patch/src/libudev/libudev-hwdb.c 2014-10-31 22:42:05.250433377 +0100
|
||||
@@ -257,7 +257,7 @@
|
||||
}
|
||||
|
||||
static const char hwdb_bin_paths[] =
|
||||
- "/etc/udev/hwdb.bin\0"
|
||||
+ "/run/hwdb.bin\0"
|
||||
UDEVLIBEXECDIR "/hwdb.bin\0";
|
||||
|
||||
|
||||
diff -Naur systemd-217/src/udev/udevadm-hwdb.c systemd-217.patch/src/udev/udevadm-hwdb.c
|
||||
--- systemd-217/src/udev/udevadm-hwdb.c 2014-10-28 14:31:25.105131602 +0100
|
||||
+++ systemd-217.patch/src/udev/udevadm-hwdb.c 2014-10-31 22:42:38.656510374 +0100
|
||||
@@ -557,7 +557,7 @@
|
||||
};
|
||||
const char *test = NULL;
|
||||
const char *root = "";
|
||||
- const char *hwdb_bin_dir = "/etc/udev";
|
||||
+ const char *hwdb_bin_dir = "/run";
|
||||
bool update = false;
|
||||
struct trie *trie = NULL;
|
||||
int err, c;
|
@ -0,0 +1,77 @@
|
||||
From 419e20f0b7d2edaadf39a9724960ca22c473b4e8 Mon Sep 17 00:00:00 2001
|
||||
From: Stefan Saraev <stefan@saraev.ca>
|
||||
Date: Fri, 4 Jul 2014 13:52:55 +0300
|
||||
Subject: [PATCH 4/8] nah. no ln --relative
|
||||
|
||||
It is unclear that systemd now requires very recent coreutils
|
||||
in order to compile.
|
||||
|
||||
I will not upgrade my debian wheezy machines to jessie,
|
||||
nor I will switch to fedora for no good reason. We are not going
|
||||
to tell our users to do so just to be able to build OpenELEC.
|
||||
---
|
||||
Makefile.am | 12 ++++++------
|
||||
configure.ac | 2 --
|
||||
2 files changed, 6 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 8288850..bb9ba9c 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -229,8 +229,8 @@ define move-to-rootlibdir
|
||||
if test "$(libdir)" != "$(rootlibdir)"; then \
|
||||
$(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
|
||||
so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
|
||||
- rm -f $(DESTDIR)$(libdir)/$$libname && \
|
||||
- $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
|
||||
+ so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
|
||||
+ $(LN_S) -f $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
|
||||
mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
|
||||
fi
|
||||
endef
|
||||
@@ -293,9 +293,9 @@ install-aliases-hook:
|
||||
set -- $(SYSTEM_UNIT_ALIASES) && \
|
||||
dir=$(systemunitdir) && $(install-aliases)
|
||||
set -- $(USER_UNIT_ALIASES) && \
|
||||
- dir=$(userunitdir) && $(install-relative-aliases)
|
||||
+ dir=$(userunitdir) && $(install-aliases)
|
||||
set -- $(GENERAL_ALIASES) && \
|
||||
- dir= && $(install-relative-aliases)
|
||||
+ dir= && $(install-aliases)
|
||||
|
||||
define install-aliases
|
||||
while [ -n "$$1" ]; do \
|
||||
@@ -2427,7 +2427,7 @@ systemd_dbus1_generator_LDADD = \
|
||||
dbus1-generator-install-hook:
|
||||
$(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
|
||||
$(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
|
||||
- $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
|
||||
+ $(AM_V_LN)$(LN_S) -f $(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
|
||||
|
||||
dbus1-generator-uninstall-hook:
|
||||
rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
|
||||
@@ -2584,7 +2584,7 @@ systemd_bus_proxyd_LDADD = \
|
||||
bus-proxyd-install-hook:
|
||||
$(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
|
||||
$(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
|
||||
- $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
|
||||
+ $(AM_V_LN)$(LN_S) -f $(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
|
||||
|
||||
bus-proxyd-uninstall-hook:
|
||||
rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 9218ed3..fc557f7 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -98,8 +98,6 @@ AC_PATH_PROG([KMOD], [kmod], [/usr/bin/kmod], [$PATH:/usr/sbin:/sbin])
|
||||
|
||||
AC_PATH_PROG([KEXEC], [kexec], [/usr/sbin/kexec], [$PATH:/usr/sbin:/sbin])
|
||||
|
||||
-AS_IF([! ln --relative --help > /dev/null 2>&1], [AC_MSG_ERROR([*** ln doesn't support --relative ***])])
|
||||
-
|
||||
M4_DEFINES=
|
||||
|
||||
# gtkdocize greps for '^GTK_DOC_CHECK', so it needs to be on its own line
|
||||
--
|
||||
1.7.10.4
|
||||
|
@ -0,0 +1,31 @@
|
||||
From 346874b53f85c06876e793629d8f71ac940da05a Mon Sep 17 00:00:00 2001
|
||||
From: Stefan Saraev <stefan@saraev.ca>
|
||||
Date: Mon, 28 Jul 2014 21:22:10 +0300
|
||||
Subject: [PATCH 5/8] autoreconf: remove gcrypt dependency
|
||||
|
||||
---
|
||||
configure.ac | 8 +-------
|
||||
1 file changed, 1 insertion(+), 7 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index fc557f7..45c68fa 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -687,13 +687,7 @@ AC_ARG_ENABLE([gcrypt],
|
||||
[have_gcrypt=auto])
|
||||
|
||||
if test "x${have_gcrypt}" != xno ; then
|
||||
- AM_PATH_LIBGCRYPT(
|
||||
- [1.4.5],
|
||||
- [have_gcrypt=yes],
|
||||
- [if test "x$have_gcrypt" = xyes ; then
|
||||
- AC_MSG_ERROR([*** GCRYPT headers not found.])
|
||||
- fi])
|
||||
-
|
||||
+ have_gcrypt=no
|
||||
if test "x$have_gcrypt" = xyes ; then
|
||||
GCRYPT_LIBS="$LIBGCRYPT_LIBS"
|
||||
GCRYPT_CFLAGS="$LIBGCRYPT_CFLAGS"
|
||||
--
|
||||
1.7.10.4
|
||||
|
@ -0,0 +1,31 @@
|
||||
From b400665ba497837e9743fe83f500a95ccb94d224 Mon Sep 17 00:00:00 2001
|
||||
From: Stefan Saraev <stefan@saraev.ca>
|
||||
Date: Tue, 28 Oct 2014 22:32:18 +0200
|
||||
Subject: [PATCH 6/8] stop unit_file_preset_all doing stupid things
|
||||
|
||||
populating shitload of useless symlinks into /storage/.config/system.d
|
||||
is not so-nice fuckery. and systemctl preset-all is useless on an
|
||||
embedded distro like openelec anyway.
|
||||
---
|
||||
src/shared/install.c | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/src/shared/install.c b/src/shared/install.c
|
||||
index efbe61e..47213f4 100644
|
||||
--- a/src/shared/install.c
|
||||
+++ b/src/shared/install.c
|
||||
@@ -2049,6 +2049,11 @@ int unit_file_preset_all(
|
||||
UnitFileChange **changes,
|
||||
unsigned *n_changes) {
|
||||
|
||||
+ // meh systemctl preset-all.
|
||||
+ // I DONT WANT shitload of symlink populated
|
||||
+ // just because systemd "thinks" (o_O) /etc is empty
|
||||
+ return 0;
|
||||
+
|
||||
_cleanup_(install_context_done) InstallContext plus = {}, minus = {};
|
||||
_cleanup_lookup_paths_free_ LookupPaths paths = {};
|
||||
_cleanup_free_ char *config_path = NULL;
|
||||
--
|
||||
1.7.10.4
|
||||
|
@ -0,0 +1,22 @@
|
||||
From d49c0c7bd4a901f0f5b93abffb75a5fd4a1aac26 Mon Sep 17 00:00:00 2001
|
||||
From: Stefan Saraev <stefan@saraev.ca>
|
||||
Date: Thu, 11 Dec 2014 21:00:47 +0200
|
||||
Subject: [PATCH 7/8] remove nonexistant dependency
|
||||
|
||||
---
|
||||
units/graphical.target | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/units/graphical.target b/units/graphical.target
|
||||
index a2c4532..6e581c6 100644
|
||||
--- a/units/graphical.target
|
||||
+++ b/units/graphical.target
|
||||
@@ -11,5 +11,4 @@ Documentation=man:systemd.special(7)
|
||||
Requires=multi-user.target
|
||||
After=multi-user.target
|
||||
Conflicts=rescue.target
|
||||
-Wants=display-manager.service
|
||||
AllowIsolate=yes
|
||||
--
|
||||
1.7.10.4
|
||||
|
@ -0,0 +1,60 @@
|
||||
From cc63846c3f3151b0acd37a45bbdd47a4d814689f Mon Sep 17 00:00:00 2001
|
||||
From: Stefan Saraev <stefan@saraev.ca>
|
||||
Date: Thu, 11 Dec 2014 21:36:36 +0200
|
||||
Subject: [PATCH 8/8] systemctl: disable dangerous options
|
||||
|
||||
---
|
||||
src/systemctl/systemctl.c | 25 +++++++++++++++----------
|
||||
1 file changed, 15 insertions(+), 10 deletions(-)
|
||||
|
||||
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
|
||||
index b1441ad..b81beb3 100644
|
||||
--- a/src/systemctl/systemctl.c
|
||||
+++ b/src/systemctl/systemctl.c
|
||||
@@ -6217,6 +6217,11 @@ end:
|
||||
return r;
|
||||
}
|
||||
|
||||
+static int nope(sd_bus *bus, char **args) {
|
||||
+ printf("nope. don't do that\n");
|
||||
+ return 0;
|
||||
+}
|
||||
+
|
||||
static void systemctl_help(void) {
|
||||
|
||||
pager_open_if_enabled();
|
||||
@@ -7310,21 +7315,21 @@ static int systemctl_main(sd_bus *bus, int argc, char *argv[], int bus_error) {
|
||||
{ "enable", MORE, 2, enable_unit, NOBUS },
|
||||
{ "disable", MORE, 2, enable_unit, NOBUS },
|
||||
{ "is-enabled", MORE, 2, unit_is_enabled, NOBUS },
|
||||
- { "reenable", MORE, 2, enable_unit, NOBUS },
|
||||
- { "preset", MORE, 2, enable_unit, NOBUS },
|
||||
- { "preset-all", EQUAL, 1, preset_all, NOBUS },
|
||||
- { "mask", MORE, 2, enable_unit, NOBUS },
|
||||
- { "unmask", MORE, 2, enable_unit, NOBUS },
|
||||
- { "link", MORE, 2, enable_unit, NOBUS },
|
||||
+ { "reenable", MORE, 2, nope, NOBUS },
|
||||
+ { "preset", MORE, 2, nope, NOBUS },
|
||||
+ { "preset-all", EQUAL, 1, nope, NOBUS },
|
||||
+ { "mask", MORE, 2, nope, NOBUS },
|
||||
+ { "unmask", MORE, 2, nope, NOBUS },
|
||||
+ { "link", MORE, 2, nope, NOBUS },
|
||||
{ "switch-root", MORE, 2, switch_root },
|
||||
{ "list-dependencies", LESS, 2, list_dependencies },
|
||||
- { "set-default", EQUAL, 2, set_default, NOBUS },
|
||||
+ { "set-default", EQUAL, 2, nope, NOBUS },
|
||||
{ "get-default", EQUAL, 1, get_default, NOBUS },
|
||||
{ "set-property", MORE, 3, set_property },
|
||||
{ "is-system-running", EQUAL, 1, is_system_running },
|
||||
- { "add-wants", MORE, 3, add_dependency, NOBUS },
|
||||
- { "add-requires", MORE, 3, add_dependency, NOBUS },
|
||||
- { "edit", MORE, 2, edit, NOBUS },
|
||||
+ { "add-wants", MORE, 3, nope, NOBUS },
|
||||
+ { "add-requires", MORE, 3, nope, NOBUS },
|
||||
+ { "edit", MORE, 2, nope, NOBUS },
|
||||
{}
|
||||
}, *verb = verbs;
|
||||
|
||||
--
|
||||
1.7.10.4
|
||||
|
@ -0,0 +1,11 @@
|
||||
diff -Naur systemd-209/src/shared/missing.h systemd-209.patch/src/shared/missing.h
|
||||
--- systemd-209/src/shared/missing.h 2014-02-19 16:23:43.000000000 +0100
|
||||
+++ systemd-209.patch/src/shared/missing.h 2014-02-21 03:45:26.766549911 +0100
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <unistd.h>
|
||||
#include <linux/oom.h>
|
||||
#include <linux/input.h>
|
||||
+#include <sys/socket.h>
|
||||
#include <linux/if_link.h>
|
||||
|
||||
#ifdef HAVE_AUDIT
|
37
projects/a10/packages/systemd/scripts/systemd-machine-id-setup
Executable file
37
projects/a10/packages/systemd/scripts/systemd-machine-id-setup
Executable file
@ -0,0 +1,37 @@
|
||||
#!/bin/sh
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# OpenELEC 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.
|
||||
#
|
||||
# OpenELEC 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 OpenELEC. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
# Attempts to generate a unique machine ID based on one local MAC address
|
||||
# MACHINEID SHOULD be the same between upgrades/reinstalls
|
||||
# MAC is hashed so that it cant be reversed making it anonymous
|
||||
# Used to help with global usage statistics, also used for dbus and systemd
|
||||
|
||||
# creating machine-id, systemd otherwise does this automatically if not present.
|
||||
# this we want to avoid to have the same machine-id over reboot, fallback
|
||||
# to systemd's solution if this dont work here
|
||||
|
||||
if [ -e "/sys/class/net/eth0/address" ]; then
|
||||
MAC_ADRESS=`cat /sys/class/net/eth0/address`
|
||||
elif [ -e "/sys/class/net/wlan0/address" ]; then
|
||||
MAC_ADRESS=`cat /sys/class/net/wlan0/address`
|
||||
fi
|
||||
|
||||
MACHINEID=`echo $MAC_ADRESS | md5sum | cut -f1 -d" "`
|
||||
|
||||
echo "$MACHINEID" > /run/machine-id
|
14
projects/a10/packages/systemd/system.d/debugconfig.service
Normal file
14
projects/a10/packages/systemd/system.d/debugconfig.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Setup debug config
|
||||
DefaultDependencies=no
|
||||
After=systemd-tmpfiles-setup.service
|
||||
ConditionKernelCommandLine=|debugging
|
||||
ConditionPathExists=|/storage/.cache/debug.openelec
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/sh -c 'cp /usr/share/debugconf/*.conf /run/openelec/debug'
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
12
projects/a10/packages/systemd/system.d/hwdb.service
Normal file
12
projects/a10/packages/systemd/system.d/hwdb.service
Normal file
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Update hwdb.bin
|
||||
DefaultDependencies=no
|
||||
After=systemd-tmpfiles-setup.service
|
||||
Before=systemd-udevd.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=-/usr/bin/udevadm hwdb --update
|
||||
|
||||
[Install]
|
||||
WantedBy=basic.target
|
12
projects/a10/packages/systemd/system.d/machine-id.service
Normal file
12
projects/a10/packages/systemd/system.d/machine-id.service
Normal file
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Setup machine-id
|
||||
DefaultDependencies=no
|
||||
Before=systemd-journald.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/systemd-machine-id-setup
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
12
projects/a10/packages/systemd/system.d/userconfig.service
Normal file
12
projects/a10/packages/systemd/system.d/userconfig.service
Normal file
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Setup User config dir
|
||||
DefaultDependencies=no
|
||||
After=systemd-tmpfiles-setup.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/sh -c "false | cp -iR /usr/config/* /storage/.config/ &>/dev/null"
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
20
projects/a10/packages/systemd/tmpfiles.d/z_01_openelec.conf
Normal file
20
projects/a10/packages/systemd/tmpfiles.d/z_01_openelec.conf
Normal file
@ -0,0 +1,20 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# OpenELEC 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.
|
||||
#
|
||||
# OpenELEC 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 OpenELEC. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
d /run/openelec 0755 root root - -
|
||||
d /run/openelec/debug 0755 root root - -
|
2
projects/a10/packages/systemd/udev.d/80-clock.rules
Normal file
2
projects/a10/packages/systemd/udev.d/80-clock.rules
Normal file
@ -0,0 +1,2 @@
|
||||
ACTION=="add", SUBSYSTEM=="rtc", RUN+="/sbin/hwclock --hctosys --utc --rtc=/dev/%k"
|
||||
ACTION=="add", ENV{MAJOR}=="10", ENV{MINOR}=="135", RUN+="/sbin/hwclock --hctosys --utc --rtc=/dev/%k"
|
21
projects/a10/patches/glibc/glibc-01-fix-sunxi-build.patch
Normal file
21
projects/a10/patches/glibc/glibc-01-fix-sunxi-build.patch
Normal file
@ -0,0 +1,21 @@
|
||||
diff -Naur glibc-2.20/misc/sys/xattr.h glibc-2.20.patch/misc/sys/xattr.h
|
||||
--- glibc-2.20/misc/sys/xattr.h 2014-09-07 10:09:09.000000000 +0200
|
||||
+++ glibc-2.20.patch/misc/sys/xattr.h 2015-01-18 02:47:33.169110306 +0100
|
||||
@@ -26,15 +26,8 @@
|
||||
|
||||
/* The following constants should be used for the fifth parameter of
|
||||
`*setxattr'. */
|
||||
-#ifndef __USE_KERNEL_XATTR_DEFS
|
||||
-enum
|
||||
-{
|
||||
- XATTR_CREATE = 1, /* set value, fail if attr already exists. */
|
||||
-#define XATTR_CREATE XATTR_CREATE
|
||||
- XATTR_REPLACE = 2 /* set value, fail if attr does not exist. */
|
||||
-#define XATTR_REPLACE XATTR_REPLACE
|
||||
-};
|
||||
-#endif
|
||||
+#define XATTR_CREATE 1
|
||||
+#define XATTR_REPLACE 2
|
||||
|
||||
/* Set the attribute NAME of the file pointed to by PATH to VALUE (which
|
||||
is SIZE bytes long). Return 0 on success, -1 for errors. */
|
11
projects/a10/patches/linux/linux-01-fix-vsync.patch
Normal file
11
projects/a10/patches/linux/linux-01-fix-vsync.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- linux-sunxi/drivers/video/sunxi/disp/dev_fb.c 2014-07-06 12:47:20.805177840 +0200
|
||||
+++ linux-sunxi.patch/drivers/video/sunxi/disp/dev_fb.c 2014-07-06 20:25:00.924753170 +0200
|
||||
@@ -1071,7 +1071,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
- // Fb_wait_for_vsync(info);
|
||||
+ Fb_wait_for_vsync(info);
|
||||
|
||||
return 0;
|
||||
}
|
@ -0,0 +1,113 @@
|
||||
From a77eec8675618ae50a4281417bf8c6aa0ced4ad9 Mon Sep 17 00:00:00 2001
|
||||
From: dan-and <github@danand.de>
|
||||
Date: Tue, 2 Dec 2014 13:24:35 +0100
|
||||
Subject: [PATCH] Added systemd 216 support (BPF-XOR backport from Kernel 3.7)
|
||||
|
||||
---
|
||||
arch/x86/net/bpf_jit_comp.c | 13 +++++++++++++
|
||||
include/linux/filter.h | 8 +++++++-
|
||||
net/core/filter.c | 10 ++++++++++
|
||||
3 files changed, 30 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/arch/x86/net/bpf_jit_comp.c b/arch/x86/net/bpf_jit_comp.c
|
||||
index 0597f95..db99f9a 100644
|
||||
--- a/arch/x86/net/bpf_jit_comp.c
|
||||
+++ b/arch/x86/net/bpf_jit_comp.c
|
||||
@@ -309,6 +309,19 @@ void bpf_jit_compile(struct sk_filter *fp)
|
||||
else
|
||||
EMIT1_off32(0x0d, K); /* or imm32,%eax */
|
||||
break;
|
||||
+ case BPF_S_ANC_ALU_XOR_X: /* A ^= X; */
|
||||
+ case BPF_S_ALU_XOR_X:
|
||||
+ seen |= SEEN_XREG;
|
||||
+ EMIT2(0x31, 0xd8); /* xor %ebx,%eax */
|
||||
+ break;
|
||||
+ case BPF_S_ALU_XOR_K: /* A ^= K; */
|
||||
+ if (K == 0)
|
||||
+ break;
|
||||
+ if (is_imm8(K))
|
||||
+ EMIT3(0x83, 0xf0, K); /* xor imm8,%eax */
|
||||
+ else
|
||||
+ EMIT1_off32(0x35, K); /* xor imm32,%eax */
|
||||
+ break;
|
||||
case BPF_S_ALU_LSH_X: /* A <<= X; */
|
||||
seen |= SEEN_XREG;
|
||||
EMIT4(0x89, 0xd9, 0xd3, 0xe0); /* mov %ebx,%ecx; shl %cl,%eax */
|
||||
diff --git a/include/linux/filter.h b/include/linux/filter.h
|
||||
index 8eeb205..37cbab2 100644
|
||||
--- a/include/linux/filter.h
|
||||
+++ b/include/linux/filter.h
|
||||
@@ -73,6 +73,8 @@ struct sock_fprog { /* Required for SO_ATTACH_FILTER. */
|
||||
#define BPF_LSH 0x60
|
||||
#define BPF_RSH 0x70
|
||||
#define BPF_NEG 0x80
|
||||
+#define BPF_MOD 0x90
|
||||
+#define BPF_XOR 0xa0
|
||||
#define BPF_JA 0x00
|
||||
#define BPF_JEQ 0x10
|
||||
#define BPF_JGT 0x20
|
||||
@@ -126,7 +128,8 @@ struct sock_fprog { /* Required for SO_ATTACH_FILTER. */
|
||||
#define SKF_AD_HATYPE 28
|
||||
#define SKF_AD_RXHASH 32
|
||||
#define SKF_AD_CPU 36
|
||||
-#define SKF_AD_MAX 40
|
||||
+#define SKF_AD_ALU_XOR_X 40
|
||||
+#define SKF_AD_MAX 44
|
||||
#define SKF_NET_OFF (-0x100000)
|
||||
#define SKF_LL_OFF (-0x200000)
|
||||
|
||||
@@ -185,6 +188,8 @@ enum {
|
||||
BPF_S_ALU_AND_X,
|
||||
BPF_S_ALU_OR_K,
|
||||
BPF_S_ALU_OR_X,
|
||||
+ BPF_S_ALU_XOR_K,
|
||||
+ BPF_S_ALU_XOR_X,
|
||||
BPF_S_ALU_LSH_K,
|
||||
BPF_S_ALU_LSH_X,
|
||||
BPF_S_ALU_RSH_K,
|
||||
@@ -228,6 +233,7 @@ enum {
|
||||
BPF_S_ANC_HATYPE,
|
||||
BPF_S_ANC_RXHASH,
|
||||
BPF_S_ANC_CPU,
|
||||
+ BPF_S_ANC_ALU_XOR_X,
|
||||
};
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
diff --git a/net/core/filter.c b/net/core/filter.c
|
||||
index 3b7398a..63b8b66 100644
|
||||
--- a/net/core/filter.c
|
||||
+++ b/net/core/filter.c
|
||||
@@ -170,6 +170,13 @@ unsigned int sk_run_filter(const struct sk_buff *skb,
|
||||
case BPF_S_ALU_OR_K:
|
||||
A |= K;
|
||||
continue;
|
||||
+ case BPF_S_ANC_ALU_XOR_X:
|
||||
+ case BPF_S_ALU_XOR_X:
|
||||
+ A ^= X;
|
||||
+ continue;
|
||||
+ case BPF_S_ALU_XOR_K:
|
||||
+ A ^= K;
|
||||
+ continue;
|
||||
case BPF_S_ALU_LSH_X:
|
||||
A <<= X;
|
||||
continue;
|
||||
@@ -460,6 +467,8 @@ int sk_chk_filter(struct sock_filter *filter, unsigned int flen)
|
||||
[BPF_ALU|BPF_AND|BPF_X] = BPF_S_ALU_AND_X,
|
||||
[BPF_ALU|BPF_OR|BPF_K] = BPF_S_ALU_OR_K,
|
||||
[BPF_ALU|BPF_OR|BPF_X] = BPF_S_ALU_OR_X,
|
||||
+ [BPF_ALU|BPF_XOR|BPF_K] = BPF_S_ALU_XOR_K,
|
||||
+ [BPF_ALU|BPF_XOR|BPF_X] = BPF_S_ALU_XOR_X,
|
||||
[BPF_ALU|BPF_LSH|BPF_K] = BPF_S_ALU_LSH_K,
|
||||
[BPF_ALU|BPF_LSH|BPF_X] = BPF_S_ALU_LSH_X,
|
||||
[BPF_ALU|BPF_RSH|BPF_K] = BPF_S_ALU_RSH_K,
|
||||
@@ -565,6 +574,7 @@ int sk_chk_filter(struct sock_filter *filter, unsigned int flen)
|
||||
ANCILLARY(HATYPE);
|
||||
ANCILLARY(RXHASH);
|
||||
ANCILLARY(CPU);
|
||||
+ ANCILLARY(ALU_XOR_X);
|
||||
}
|
||||
}
|
||||
ftest->code = code;
|
||||
--
|
||||
1.7.10.4
|
||||
|
@ -0,0 +1,12 @@
|
||||
diff -Naur RetroArch/gfx/drivers_context/mali_fbdev_ctx.c RetroArch.patch/gfx/drivers_context/mali_fbdev_ctx.c
|
||||
--- RetroArch/gfx/drivers_context/mali_fbdev_ctx.c 2015-01-04 16:21:38.919736023 +0100
|
||||
+++ RetroArch.patch/gfx/drivers_context/mali_fbdev_ctx.c 2015-01-04 16:38:58.799908764 +0100
|
||||
@@ -29,7 +28,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
-struct fbdev_window native_window;
|
||||
+struct mali_native_window native_window;
|
||||
static EGLContext g_egl_ctx;
|
||||
static EGLSurface g_egl_surf;
|
||||
static EGLDisplay g_egl_dpy;
|
@ -0,0 +1,31 @@
|
||||
From 75616a1332aff00d27db713cda3bd93c508a5b59 Mon Sep 17 00:00:00 2001
|
||||
From: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
|
||||
Date: Wed, 16 Jul 2014 20:44:45 +0000
|
||||
Subject: missing.h: add IFLA_MACVLAN_FLAGS
|
||||
|
||||
Now we are getting into kernel < 3.4 territory...
|
||||
|
||||
https://bugs.freedesktop.org/show_bug.cgi?id=80095
|
||||
---
|
||||
diff --git a/src/shared/missing.h b/src/shared/missing.h
|
||||
index f129f0b..818d704 100644
|
||||
--- a/src/shared/missing.h
|
||||
+++ b/src/shared/missing.h
|
||||
@@ -371,6 +371,15 @@ static inline int setns(int fd, int nstype) {
|
||||
#define LOOP_CTL_GET_FREE 0x4C82
|
||||
#endif
|
||||
|
||||
+#if !HAVE_DECL_IFLA_MACVLAN_FLAGS
|
||||
+#define IFLA_MACVLAN_UNSPEC 0
|
||||
+#define IFLA_MACVLAN_MODE 1
|
||||
+#define IFLA_MACVLAN_FLAGS 2
|
||||
+#define __IFLA_MACVLAN_MAX 3
|
||||
+
|
||||
+#define IFLA_MACVLAN_MAX (__IFLA_MACVLAN_MAX - 1)
|
||||
+#endif
|
||||
+
|
||||
#if !HAVE_DECL_IFLA_PHYS_PORT_ID
|
||||
#undef IFLA_PROMISCUITY
|
||||
#define IFLA_PROMISCUITY 30
|
||||
--
|
||||
cgit v0.9.0.2-2-gbebe
|
@ -0,0 +1,20 @@
|
||||
diff -Naur systemd-215/src/shared/missing.h systemd-215.patch/src/shared/missing.h
|
||||
--- systemd-215/src/shared/missing.h 2014-07-21 14:28:37.277575885 +0200
|
||||
+++ systemd-215.patch/src/shared/missing.h 2014-07-21 14:27:39.940232879 +0200
|
||||
@@ -381,6 +381,16 @@
|
||||
#define IFLA_MACVLAN_MAX (__IFLA_MACVLAN_MAX - 1)
|
||||
#endif
|
||||
|
||||
+#define IFLA_VTI_UNSPEC 0
|
||||
+#define IFLA_VTI_LINK 1
|
||||
+#define IFLA_VTI_IKEY 2
|
||||
+#define IFLA_VTI_OKEY 3
|
||||
+#define IFLA_VTI_LOCAL 4
|
||||
+#define IFLA_VTI_REMOTE 5
|
||||
+#define __IFLA_VTI_MAX 6
|
||||
+
|
||||
+#define IFLA_VTI_MAX (__IFLA_VTI_MAX - 1)
|
||||
+
|
||||
#if !HAVE_DECL_IFLA_PHYS_PORT_ID
|
||||
#undef IFLA_PROMISCUITY
|
||||
#define IFLA_PROMISCUITY 30
|
22
projects/a10/patches/u-boot/u-boot-01-boot-delay.patch
Normal file
22
projects/a10/patches/u-boot/u-boot-01-boot-delay.patch
Normal file
@ -0,0 +1,22 @@
|
||||
From e1695e99974953cdbefdb145c5271c1c573893ed Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Wood <patrickhwood@gmail.com>
|
||||
Date: Sat, 11 Jan 2014 01:16:23 -0500
|
||||
Subject: [PATCH] 1 second boot delay
|
||||
|
||||
---
|
||||
include/configs/sunxi-common.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
|
||||
index a0c41ac..4601a22 100644
|
||||
--- a/include/configs/sunxi-common.h
|
||||
+++ b/include/configs/sunxi-common.h
|
||||
@@ -272,7 +272,7 @@
|
||||
"\0" \
|
||||
""
|
||||
|
||||
-#define CONFIG_BOOTDELAY 3
|
||||
+#define CONFIG_BOOTDELAY 0
|
||||
#define CONFIG_SYS_BOOT_GET_CMDLINE
|
||||
#define CONFIG_AUTO_COMPLETE
|
||||
|
Loading…
Reference in New Issue
Block a user